mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-21 01:12:11 +00:00
ADC: replace ioctl with uorb message (#14087)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user