Hello. I currently have a MPU 6050 (G521) IMU. I have a kalman filter, and have angle values from the IMU (not just acceleration but actual values for tilt. Like 0 is level, -5 is angled lower one end, 5 is the angled a little the oposite way etc). The angle readings all work, and are not super noisy. I also have integrated a PID library that I have attempted to tune. Finally I have build a PVC rig with a piece of wood with motors on both ends to test balancing in a controlled enviroment. I want to make it so that it balances flat. The balance rig is like a see-saw with two motors instead of seats. I am having alot of trouble making the see-saw balance.
Does anyone know of a general algorithm to make the two motors balance together?