mirror of https://github.com/ArduPilot/ardupilot
hwdef: use zero address for INA2XX to allow for different sensors
This commit is contained in:
parent
e2041e10b5
commit
b019978e22
|
@ -303,7 +303,7 @@ define HAL_WITH_RAMTRON 1
|
|||
|
||||
# INA226 battery monitor
|
||||
define HAL_BATTMON_INA2XX_BUS 1
|
||||
define HAL_BATTMON_INA2XX_ADDR 0x41
|
||||
define HAL_BATTMON_INA2XX_ADDR 0
|
||||
define HAL_BATT_MONITOR_DEFAULT 21
|
||||
|
||||
# allow to have have a dedicated safety switch pin
|
||||
|
|
|
@ -305,7 +305,7 @@ define HAL_WITH_RAMTRON 1
|
|||
|
||||
# INA226 battery monitor
|
||||
define HAL_BATTMON_INA2XX_BUS 1
|
||||
define HAL_BATTMON_INA2XX_ADDR 0x41
|
||||
define HAL_BATTMON_INA2XX_ADDR 0
|
||||
define HAL_BATT_MONITOR_DEFAULT 21
|
||||
|
||||
# allow to have have a dedicated safety switch pin
|
||||
|
|
|
@ -343,7 +343,7 @@ define HAL_WITH_RAMTRON 1
|
|||
|
||||
# INA226 battery monitor
|
||||
define HAL_BATTMON_INA2XX_BUS 1
|
||||
define HAL_BATTMON_INA2XX_ADDR 0x41
|
||||
define HAL_BATTMON_INA2XX_ADDR 0
|
||||
define HAL_BATT_MONITOR_DEFAULT 21
|
||||
|
||||
# allow to have have a dedicated safety switch pin
|
||||
|
|
|
@ -201,7 +201,7 @@ define HAL_DISABLE_ADC_DRIVER TRUE
|
|||
|
||||
# INA231 battery monitor
|
||||
define HAL_BATTMON_INA2XX_BUS 1
|
||||
define HAL_BATTMON_INA2XX_ADDR 0x44
|
||||
define HAL_BATTMON_INA2XX_ADDR 0
|
||||
define HAL_BATT_MONITOR_DEFAULT 21
|
||||
|
||||
# on some units a LTC2946 is used
|
||||
|
|
Loading…
Reference in New Issue