Bug between thrusterStateEffector and thrusterDynamicEffector #369
Replies: 2 comments 3 replies
-
Hey Mitchell, Are you sure you didn't change anything in your first scenario? I've just run both scenarios and they yield results similar to the second example you showed. |
Beta Was this translation helpful? Give feedback.
-
The two thruster modules to behave slightly differently. The dynamic trusters uses a series of In contrast, the state effector use a low pass filter to process the on/off commands. As a result it is not possible to have an instantaneous jump from 0 to 1 in the thrust state, but the low pass filter frequency will control the smoothed on ramping. The benefit is that this thruster can be used with variable time step integration. Finally, we just last week discovered a bug in the newer thruster state effectors. Unique default state names were not being set. This means if you added multiple thrusters the last thruster value would over-ride all the other thrust values. This has not been fixed in the latest develop as of a week ago. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
I noticed a discrepancy with the implemented force between the thrusterStateEffector module and the thrusterDynamicEffector module. It appears that when accessing the log for thrustForce in the thrOutputMsgPayload using the dynamic effector thruster, the results are incorrect and do not align with those in the thrusterStateEffector. Interestingly, the tracking error still converges to zero for both cases. Please see screenshots attached below.
Note that the implemented force log doesn't exist in the thrusterDynamicEffector example - I just replicated the creation of the log from the thrusterStateEffector example.
Let me know if I should be accessing a different payload message when using the dynamic effector, but please note that the fuelTank module also uses the thrOutputMsgPayload when calculating fuel usage, and thus also produces incorrect results. If there is another message you can recommend to use in the meantime to monitor fuel usage, I'd appreciate it.
Thank you!
Thruster Dynamic Effector results (scenarioAttitudeFeedback2T_TH.py)

Thruster State Effector results (scenarioAttitudeFeedback2T_stateEffTH.py)

Beta Was this translation helpful? Give feedback.
All reactions