The purpose of this lab is to combine labs 6 and 7 to perform fast stunts. Unfortunately, I was not able to get my Kalman filter working well.
Lab
I first tried PID without the Kalman filter, since my PID works very well. I quickly found it didn't matter how well the PID works, the front sensor just
can't read fast enough. This meant I had to drive slowly to get reliable data. The speed I had to drive with PID was way too slow to be able to perform a flip.
Because of this, I had to switch to open loop control. This is unfortunate as it makes the robot only somewhat reliable when under very specific circumstances.
While I was able to get the robot to do a flip and return 108 degrees from where it came, I was not able to get it on video. The wheels on my robots turn at different
rates depending on how fast the robot is going. The right wheels tend to spin faster when writing lower values, and the left wheels tend to spin faster at higher values.
The video I got does show a stunt, but the robot also turns during the stunt.
Open loop control isn't the place for a task like this, so I will likely return to this to try again with the Kalman filter if time permits at the end of the semester.
To futher motivate the use of closed loop control, here are 35 attempts to get the robot to flip properly again after I missed getting a good flip on camera.