How does the 'Sensor_Tilt' work?

This forum is dedicated to all issues and questions related to your individual setups and configurations
Post Reply
Daniel Star
Posts: 4
Joined: Sun Aug 05, 2012 4:31 pm

How does the 'Sensor_Tilt' work?

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