Skip to content

Commit dc0eb83

Browse files
authored
Make ACTUATION suffix available in release (#3162)
Multiple commenters on Reddit, and my own current project, require access to the output of the SteeringManager. This is already available under the ACTUATION suffix of SteeringManager, but only in DEBUG builds. This makes it available in release builds as well. See: https://www.reddit.com/r/Kos/comments/lx5nb6/get_steering_output_values/ and https://www.reddit.com/r/Kos/comments/a4qer7/getting_yawpitchroll_control_deflections_when/
1 parent e3bec32 commit dc0eb83

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/kOS/Control/SteeringManager.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -368,9 +368,9 @@ public void InitializeSuffixes()
368368
AddSuffix("ROLLTORQUEFACTOR", new SetSuffix<ScalarValue>(() => RollTorqueFactor, value => RollTorqueFactor = value));
369369
AddSuffix("AVERAGEDURATION", new Suffix<ScalarValue>(() => AverageDuration.Mean));
370370
AddSuffix("ROLLCONTROLANGLERANGE", new SetSuffix<ScalarValue>(() => RollControlAngleRange, value => RollControlAngleRange = value));
371+
AddSuffix("ACTUATION", new Suffix<Vector>(() => new Vector(accPitch, accRoll, accYaw)));
371372
#if DEBUG
372373
AddSuffix("MOI", new Suffix<Vector>(() => new Vector(momentOfInertia)));
373-
AddSuffix("ACTUATION", new Suffix<Vector>(() => new Vector(accPitch, accRoll, accYaw)));
374374
AddSuffix("CONTROLTORQUE", new Suffix<Vector>(() => new Vector(controlTorque)));
375375
AddSuffix("MEASUREDTORQUE", new Suffix<Vector>(() => new Vector(measuredTorque)));
376376
AddSuffix("RAWTORQUE", new Suffix<Vector>(GetRawTorque));
@@ -1567,4 +1567,4 @@ Vessel IFlightControlParameter.GetResponsibleVessel()
15671567
return shared.Vessel;
15681568
}
15691569
}
1570-
}
1570+
}

0 commit comments

Comments
 (0)