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)
10 Comments
- Log in to leave a comment
-
Dev NathanMikeska
@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?
-
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
-
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) -
Dev NathanMikeska
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?
-
Dev Pedro
@swope It won't be obe because it will be vanilla, you won't need any mod to make it
-
507 swope
@pedro16797 - I realize in retrospect that OBE is jargon in my circles. Sorry.
-
507 swope
@pedro16797 "overcome by events".
That is, it won't matter anymore because of changes.
-
-
@NathanMikeska if it can be every frame it would be great