pathfinder-for-autonomous-navigation / psim

Six DOF flight simulator and related GNC implementations.
MIT License
4 stars 6 forks source link

Verify and Update GNC Documentation with Regard to Controller Torque Sign #281

Open kylekrol opened 3 years ago

kylekrol commented 3 years ago

@shihaocao and I spent a long time chasing down a potential sign error across flight software, psim, gnc, and adcs code. We shoudl audit the controllers implemented in gnc and verify all signs and comments are correct.

shihaocao commented 3 years ago

This was discovered because Flight Software required a -1* in order to show that the space craft could detumble with working with C++ psim

shihaocao commented 3 years ago

https://github.com/pathfinder-for-autonomous-navigation/psim/blob/3f837a3f6e8d61a5fc9b1d6bce612ee312bfaaed/src/gnc/attitude_controller.cpp#L157

shihaocao commented 3 years ago

The above line of code is correct assuming the following:

If the line of code is correct that also implies the following: