I'm trying to run a Matlab simulation for desaturation of a reaction wheel using magnetorquers.
But there is still something that I'm not entirely sure of :
I know that when the reaction wheel reaches its max speed ( in terms of rpm), it becomes saturated and will have 0 acceleration. Assuming that you stop the reaction wheel motor after saturation, will the angular velocity generated by the reaction wheel still cause it to turn? I think this is true as it would then justify using magnetorquers to externally counteract this angular velocity, but I am not entirely sure.
Also, this is my current plan to desaturate the reaction wheel:
When the reaction wheel is saturated, a control signal will be sent to active a P controller with the control law : m=-Kp(href-hw) where m is the magnetic moment of the magnetorquer, hw is the momentum of the reaction wheel and href is a reference momentum. This P controller would then be connected to a magnetorquer ( Let's call the this torque tmag).
tmag would then be added into the dynamic equations for the satellite.
Would this work?
Thanks!