What is the 'Sensor_Tilt' ?

Post Reply
Daniel Star
Posts: 4
Joined: Sun Aug 05, 2012 4:31 pm

What is the 'Sensor_Tilt' ?

Post by Daniel Star »

#if defined(SENSORS_TILT_45DEG_LEFT)
int16_t temp = ((gyroADC[PITCH] - gyroADC[ROLL] )*7)/10;
gyroADC[ROLL] = ((gyroADC[ROLL] + gyroADC[PITCH])*7)/10;
gyroADC[PITCH]= temp;
#endif

These sentences could be found in mwc_2.1. I have known the function of the 'Sensor_Tilt' , but I wonder how does it work?
If I want 60 DEG tilt ,then what the formula will be ?

Post Reply