Default accel. values (for using non-default orientations)
Posted: Fri Apr 19, 2013 5:33 pm
If you're going to mount your RCP in a non-default orientation (not with the LEDs pointing towards the back of the car), you'll want to know the default output values so you can match them when you change the accelerometer axes.
Accel X (lateral accelerometer): Negative for leftward acceleration (turning left), positive for rightward acceleration (turning right).
Accel Y (longitudinal accelerometer): Positive for forward acceleration, negative for deceleration (or accelerating in reverse).
Accel Z (vertical accelerometer): Measured in Gs so this is easy, greater than 1 for accelerating upwards, less than 1 for accelerating downwards. If it's not giving a value around +1 you've got it backwards.
Yaw sensor: Opposite of Accel X, negative for right turns, positive for left turns.
Accel X (lateral accelerometer): Negative for leftward acceleration (turning left), positive for rightward acceleration (turning right).
Accel Y (longitudinal accelerometer): Positive for forward acceleration, negative for deceleration (or accelerating in reverse).
Accel Z (vertical accelerometer): Measured in Gs so this is easy, greater than 1 for accelerating upwards, less than 1 for accelerating downwards. If it's not giving a value around +1 you've got it backwards.
Yaw sensor: Opposite of Accel X, negative for right turns, positive for left turns.