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

View File

@@ -38,10 +38,7 @@ param set MAV_TYPE 2
# 2. onboard 9-18V DC Jack, which is connect to ADC channel 5. This is the board default.
# 3. other power source (e.g., LiPo battery more than 4S/18V).
# Scale the voltage to below 1.8V and connect it to ADC channel # 0, 1, 2 or 3.
param set BAT_ADC_CHANNEL 5
# 12-bit 1.8V ADC, 1.8V / 2^12 = 0.000439453125 V/CNT
param set BAT_CNT_V_VOLT 0.0004394531
param set BAT1_V_CHANNEL 5
# Battery voltage scale factor, from BBBlue schematics: (4.7K + 47K) / 4.7K = 11
param set BAT_V_DIV 11.0

View File

@@ -38,10 +38,7 @@ param set MAV_TYPE 2
# 2. onboard 9-18V DC Jack, which is connect to ADC channel 5. This is the board default.
# 3. other power source (e.g., LiPo battery more than 4S/18V).
# Scale the voltage to below 1.8V and connect it to ADC channel # 0, 1, 2 or 3.
param set BAT_ADC_CHANNEL 5
# 12-bit 1.8V ADC, 1.8V / 2^12 = 0.000439453125 V/CNT
param set BAT_CNT_V_VOLT 0.0004394531
param set BAT1_V_CHANNEL 5
# Battery voltage scale factor, from BBBlue schematics: (4.7K + 47K) / 4.7K = 11
param set BAT_V_DIV 11.0

View File

@@ -14,8 +14,6 @@ fi
param set SYS_AUTOSTART 4001
param set MAV_BROADCAST 1
param set MAV_TYPE 2
param set BAT_CNT_V_VOLT 0.001
param set BAT_CNT_V_CURR 0.001
dataman start

View File

@@ -14,8 +14,6 @@ fi
param set MAV_BROADCAST 1
param set SYS_AUTOSTART 2100
param set MAV_TYPE 1
param set BAT_CNT_V_VOLT 0.001
param set BAT_CNT_V_CURR 0.001
dataman start

View File

@@ -14,8 +14,6 @@ fi
param set SYS_AUTOSTART 4001
param set MAV_BROADCAST 1
param set MAV_TYPE 2
param set BAT_CNT_V_VOLT 0.001
param set BAT_CNT_V_CURR 0.001
dataman start