r/modelrocketry • u/myroslavrepin • May 17 '26
Rocket Help integrate angular velocity into my static stabilization system
Building an actively stabilized model rocket using movable fins how do I incorporate angular velocity into the control loop?
I have the aerodynamic side mostly figured out: I calculate the required fin deflection angle based on the rocket's tilt angle (from the IMU) and the aerodynamic restoring force the fins need to produce. The math checks out on paper.
What I'm unsure about is how to properly use the gyroscope data (angular velocity) alongside the accelerometer tilt estimate. Should angular velocity feed directly into the PID as the derivative term, or should I fuse both signals first (e.g. complementary filter or Kalman) and then run PID on the fused angle?
Using an MPU6050 on an Arduino Nano. Any advice on the control loop architecture would be appreciated.
1
u/LinkKey1340 May 25 '26
Hey dude, pretty impressive work. Although I can't quite help you out since I'm an absolute beginner, I'd like to get in touch with you so I can comprehend and learn from your own journey. Cheers mate
1
u/Automatic-Term4991 Jun 09 '26
Your gyro is a true derivative measurement (but messed up a little by thrust and vibration,) the PID is a noisy aproximation, do not add the gyro into PID as a derivative term, as the angle should already contain the gyro data, this could lead to phase and noise issues. Think of the gyro as the main stabiliser, and the angle loop the slower outer correction. Are you running the PID directly on raw fused signals? Again this will probably cause issues. I have never used an MPU6050 how does its output deal with vibration during burn, maybe rely on the gyro only during acceleration burn.
I think cascade control is probably the way to go, and yeah I would go with a complementary filter for simplicity, unless you feel you need something better.
Good luck