Quote:
|
Originally Posted by devicenull
Also, AFAIK its better to call Get_Gyro_Angle() once. Each time you call it, you shut off interrupts while the code inside it executes.. You want to keep them on as much as possible.
While this probably isn't your idea, don't Reset_Gyro_Angle() before you get the angle.. it will result in getting 0 as an angle 
|
Would something like this work?
Code:
if(i==0){
Reset_Gyro_Angle();
i++;
}
and then, store the gyro value into a temporary variable?
Code:
temp_gyro_angle = Get_Gyro_Angle();