From b7778b2ad9dd9a5af8a71b60f05bd5688a9c284c Mon Sep 17 00:00:00 2001 From: deweibel Date: Sat, 11 Sep 2010 14:21:16 +0000 Subject: [PATCH] Returned channel read order to the original order git-svn-id: https://arducopter.googlecode.com/svn/trunk@473 f9c3cf11-9bcb-44bc-f272-b75c42450872 --- libraries/APM_ADC/APM_ADC.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/libraries/APM_ADC/APM_ADC.cpp b/libraries/APM_ADC/APM_ADC.cpp index e4e6855150..28e35de03f 100644 --- a/libraries/APM_ADC/APM_ADC.cpp +++ b/libraries/APM_ADC/APM_ADC.cpp @@ -50,11 +50,9 @@ extern "C" { #include "APM_ADC.h" -// HJI - changed read order to p, q, r, ax, ay, az, gyro temperature, JP5 pin 3 + // Commands for reading ADC channels on ADS7844 -// Note change in read order pRate qRate rRate aX aY aZ temp JP5 -// ADC Input Channel Ch1 Ch2 Ch0 Ch4 Ch5 Ch6 Ch3 Ch7 -const unsigned char adc_cmd[9] = { 0xC7, 0x97, 0x87, 0xA7, 0xE7, 0xB7, 0xD7, 0xF7, 0x00 }; +const unsigned char adc_cmd[9]= { 0x87, 0xC7, 0x97, 0xD7, 0xA7, 0xE7, 0xB7, 0xF7, 0x00 }; volatile long adc_value[8] = { 0, 0, 0, 0, 0, 0, 0, 0 }; volatile unsigned char adc_counter[8] = { 0, 0, 0, 0, 0, 0, 0, 0 };