ADC: replace ioctl with uorb message (#14087)

This commit is contained in:
SalimTerryLi
2020-03-20 18:23:32 +08:00
committed by GitHub
parent 40af5b0fbe
commit dc8e775d8f
30 changed files with 345 additions and 486 deletions
+1 -1
View File
@@ -32,7 +32,7 @@ px4_add_board(
MODULES
airspeed_selector
attitude_estimator_q
#battery_status
battery_status
camera_feedback
commander
dataman
@@ -57,5 +57,11 @@
#define PX4_SPI_BUS_SENSORS 0
#define PX4_SPIDEV_MPU PX4_MK_SPI_SEL(0, 0) // spidev0.0
#define ADC_BATTERY_VOLTAGE_CHANNEL 0
#define ADC_BATTERY_CURRENT_CHANNEL -1
#define ADC_AIRSPEED_VOLTAGE_CHANNEL 2
#define ADC_DP_V_DIV 1.0f
#include <system_config.h>
#include <px4_platform_common/board_common.h>