- Joined
- Aug 6, 2011
- Messages
- 405
- Reaction score
- 2
- Points
- 18
For IMS2, I've made an RCS solver- given the COG and a set of thrusters, it figures out the best way to achieve commanded force/torque. Because of that, the RCS thrusters are not assigned to groups such as THGROUP_ATT_PITCHUP.
The solver works, I just need a way to get the desired thrust levels in each of the default RCS groups, either set by Orbiter autopilots or by the user, to know which values to pass to the solver.
I was originally using VESSEL::GetManualControlLevel() for each of the default groups, but I could only get values for rotations (even in translation mode, GetManualControlLevel was returning values for the rotation thruster groups, but returned all zeros for the translation groups) and it didn't include levels set by MFDs or built-in autopilots.
I then tried VESSEL::GetThrusterGroupLevel, but with no thrusters assigned to the group, I got all zero results.
I'm planning on creating a dummy zero-thrust thruster for each of those groups, and then getting the thruster level of the dummy thrusters, but am I overlooking an API function?
The solver works, I just need a way to get the desired thrust levels in each of the default RCS groups, either set by Orbiter autopilots or by the user, to know which values to pass to the solver.
I was originally using VESSEL::GetManualControlLevel() for each of the default groups, but I could only get values for rotations (even in translation mode, GetManualControlLevel was returning values for the rotation thruster groups, but returned all zeros for the translation groups) and it didn't include levels set by MFDs or built-in autopilots.
I then tried VESSEL::GetThrusterGroupLevel, but with no thrusters assigned to the group, I got all zero results.
I'm planning on creating a dummy zero-thrust thruster for each of those groups, and then getting the thruster level of the dummy thrusters, but am I overlooking an API function?