mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-27 02:03:34 +08:00
aerofc: Implement ADC
Measure the battery voltage of Aero RTF kit will be done by FPGA and read by AeroFC using I2C bus. The protocol is a little bit odd, it have different I2C slave address for each "register", in future the FPGA RTL will have a protocol more similar to other I2C sensors. Also Aero RTF don't have a ADC line to measure current consumption.
This commit is contained in:
committed by
Lorenz Meier
parent
71e48c937e
commit
53f2c1eb19
@@ -99,7 +99,7 @@
|
||||
* ADC defines just to not break sensors.cpp build, battery voltage and current
|
||||
* will be read in another way in future.
|
||||
*/
|
||||
#define ADC_BATTERY_VOLTAGE_CHANNEL 0
|
||||
#define ADC_BATTERY_VOLTAGE_CHANNEL 5
|
||||
#define ADC_BATTERY_CURRENT_CHANNEL ((uint8_t)(-1))
|
||||
|
||||
#define DIRECT_PWM_OUTPUT_CHANNELS 1
|
||||
|
||||
Reference in New Issue
Block a user