Can anyone help me. im designing a single-axis control system to control two magnetorquers which are placed on the x & y axes. I want to implement a state-feedback controller on a dsPIC microcontroller. How do i get the controller to determine the required torque and implement the current needed to control the torquer dipole moment
I realize the control law will be in the form as T(toqrue) = M(torquer dipole moment) x B(earths magnetic field) and M = NIA, therefore T = MxBy - MyBx, where Mx is the dipole moment of the x-axis torquer and Bx is the x-component of the earths magnetic field. I am using a magnetometer as the sensing device for angular position.
How does the controller come up with the torque to rotate the cubesat to a desired position, and how does this torque convert to a current to create the torquer's dipole moment. I also have to H bridges to change current direction thru the torquers.
I realize the control law will be in the form as T(toqrue) = M(torquer dipole moment) x B(earths magnetic field) and M = NIA, therefore T = MxBy - MyBx, where Mx is the dipole moment of the x-axis torquer and Bx is the x-component of the earths magnetic field. I am using a magnetometer as the sensing device for angular position.
How does the controller come up with the torque to rotate the cubesat to a desired position, and how does this torque convert to a current to create the torquer's dipole moment. I also have to H bridges to change current direction thru the torquers.