From 354d9588bf9a27d471e2a892ed78f732ab76c0e8 Mon Sep 17 00:00:00 2001 From: Jason Short Date: Tue, 10 Jan 2012 23:41:01 -0800 Subject: [PATCH] sensorSign swicth --- libraries/AP_ADC/AP_ADC_HIL.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_ADC/AP_ADC_HIL.h b/libraries/AP_ADC/AP_ADC_HIL.h index dee48c586c..f7bcde465c 100644 --- a/libraries/AP_ADC/AP_ADC_HIL.h +++ b/libraries/AP_ADC/AP_ADC_HIL.h @@ -79,7 +79,7 @@ class AP_ADC_HIL : public AP_ADC // @param index the axis for the accelerometer(0-x,1-y,2-z) inline void setAccel(uint8_t index, int16_t val) { int16_t temp = val * accelScale[index] / 1000 + accelBias[index]; - adcValue[sensors[index+3]] = (sensors[index+3] < 0) ? -temp : temp; + adcValue[sensors[index+3]] = (sensorSign[index+3] < 0) ? -temp : temp; } ///