/branches/dongfang_FC_fixedwing/arduino_atmega328/analog.c |
---|
185,10 → 185,18 |
} |
/* |
* Here the axes of the sensor can be shuffled around. |
* The sensor is installed vertically and the axes are moved around a little... |
*/ |
int16_t rawGyroValue(uint8_t axis) { |
return ITG3200SensorInputs[axis+1]; // skip temperature mesaurement in any case.. |
switch(axis) { |
case PITCH: |
return ITG3200SensorInputs[3]; |
case ROLL: |
return ITG3200SensorInputs[1]; |
case YAW: |
return ITG3200SensorInputs[2]; |
} |
return 0; |
} |
/* |