Gyros with 0 power and consumption can be an excelent option for input mixers since it doesn't generate thrust or plume, they're not direction dependant and they only consume electricity and not monopropellant (it's easy to run out of it)
Another great thing about gyro power consumption is that it's not linear, so it can help to make better aproximations of non linear functions (like acceleration for example)

Suggestion Done Fixed in 0.7.2.2

10 Comments

  • Log in to leave a comment
  • Profile image
    Dev Pedro

    @NathanMikeska if it can be every frame it would be great

    4.9 years ago
  • Profile image

    @pedro16797 Well its easy enough to make _powerConsumption a property so that you can use it as an input with input controllers... Do you want it per-second, or the power consumption for every frame?

    4.9 years ago
  • Profile image
    Dev Pedro

    @NathanMikeska now, using the rcs, I have linear addition and there's a problem with CoM changing the rcs direction, the gimbal would be just as easy as placing it in the center of the craft and have all 3 axis working normally

    4.9 years ago
  • Profile image
    Dev Pedro

    @NathanMikeska Yes, _powerConsumption
    I want to make it have 0 torque and consume electricity basedbon the 3 inputs (yaw, roll, pitch) to then know the value of all 3 inputs combined (for the automatic landing it would be height, speed and mass)

    4.9 years ago
  • Profile image

    I still don't fully understand what you are wanting... here is some code related to the power consumption..


    this._powerConsumption = this.Data.ElectricalConsumption * this.Data.Power * Mathf.Clamp01(torqueSquareMagnitude);
    this.PartScript.BodyScript.RigidBody.AddTorque(worldTorque * this.Data.Power);
    this._battery.RemoveFuel(this._powerConsumption * frame.DeltaTime);

    Are you wanting that _powerConsumption variable (assuming after the delta time multiplication)? Would the torque square magnitude be more useful?

    4.9 years ago
  • Profile image
    Dev Pedro

    @swope It won't be obe because it will be vanilla, you won't need any mod to make it

    4.9 years ago
  • Profile image
    507 swope

    @pedro16797 - I realize in retrospect that OBE is jargon in my circles. Sorry.

    4.9 years ago
  • Profile image
    507 swope

    @pedro16797 "overcome by events".

    That is, it won't matter anymore because of changes.

    4.9 years ago
  • Profile image
    Dev Pedro

    @swope obe?

    4.9 years ago
  • Profile image
    507 swope

    Won't that be OBE when the modding API is available?

    4.9 years ago

2 Upvotes

Log in in to upvote this post.