Quote:
Originally Posted by PhilBot
No wonder my bot corrected in the wrong direction on evey second lap 
|
Just to make sure we didn't have odd problems like this, our code looked something like
Code:
void Read_Yaw(void) {
phi=Get_Gyro_Angle();
phi=phi%6283L; // Avoid unneccesary wraparound
}