Browse Source

Returned channel read order to the original order

git-svn-id: https://arducopter.googlecode.com/svn/trunk@473 f9c3cf11-9bcb-44bc-f272-b75c42450872
mission-4.1.18
deweibel 15 years ago
parent
commit
b7778b2ad9
  1. 6
      libraries/APM_ADC/APM_ADC.cpp

6
libraries/APM_ADC/APM_ADC.cpp

@ -50,11 +50,9 @@ extern "C" {
#include "APM_ADC.h" #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 // Commands for reading ADC channels on ADS7844
// Note change in read order pRate qRate rRate aX aY aZ temp JP5 const unsigned char adc_cmd[9]= { 0x87, 0xC7, 0x97, 0xD7, 0xA7, 0xE7, 0xB7, 0xF7, 0x00 };
// 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 };
volatile long adc_value[8] = { 0, 0, 0, 0, 0, 0, 0, 0 }; 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 }; volatile unsigned char adc_counter[8] = { 0, 0, 0, 0, 0, 0, 0, 0 };

Loading…
Cancel
Save