Ardupilot2/libraries/AP_ADC
Lucas De Marchi 85c0c98194 AP_ADC: ADS1115: fix driver after conversion to I2CDevice
In _start_conversion(), the check for return code of _dev->transfer() was
inverted. The structure also needs to be PACKED, otherwise there will be
a hole in the middle.  Fix these issues and use be16_t where it makes
sense.

In read() we need to check for the second byte of config register, so
either make it an array of uint8_t or convert from big endian to host
endianness.  It's simpler to leave it as it was, accessing just the
first byte. Also the conversion value is in be16 type an needs to be
converted to host endiannes, not the opposite.

Fix bus number: all boards that use it expect it to be on bus 1, not 0.
2016-07-14 17:32:32 -03:00
..
examples/AP_ADC_test AP_ADC: fix warning on printf 2016-05-04 08:58:37 -03:00
AP_ADC_ADS1115.cpp AP_ADC: ADS1115: fix driver after conversion to I2CDevice 2016-07-14 17:32:32 -03:00
AP_ADC_ADS1115.h AP_ADC_ADS1115: use I2CDevice interface 2016-07-14 17:32:32 -03:00
AP_ADC_ADS7844.cpp AP_ADC: use millis/micros/panic functions 2015-11-20 12:28:36 +09:00
AP_ADC_ADS7844.h AP_ADC: replace header guard with pragma once 2016-02-18 14:52:34 -02:00
AP_ADC.cpp AP_ADC: fixed license text 2013-08-30 13:01:32 +10:00
AP_ADC.h AP_ADC: replace header guard with pragma once 2016-02-18 14:52:34 -02:00
keywords.txt AP_ADC: fixup line endings 2014-04-15 15:56:13 +09:00