ardupilot/libraries/AP_BattMonitor
Thomas Watson 9f7ed65bc0 AP_BattMonitor: optimize DroneCAN subscription process
* remove unnecessary nullptr check, these are always called from an
  initialized AP_DroneCAN so if it's nullptr something has gone
  horrifically wrong

* pass in driver index instead of repeatedly calling function to get it

* simplify error handling; knowing exactly which allocation failed is not
  super helpful and one failing likely means subsequent ones will too,
  as it can only fail due to being out of memory
2024-11-18 10:30:29 +11:00
..
tests AP_BattMonitor: fix missing method declaration compile failure 2023-05-20 17:28:08 +10:00
AP_BattMonitor.cpp AP_BattMonitor: add more-specific prearm failure when SUM backend not available 2024-10-01 09:48:13 +10:00
AP_BattMonitor.h AP_BattMonitor: add and use Battery backend internal-use-only flag 2024-08-08 09:12:08 +10:00
AP_BattMonitor_AD7091R5.cpp AP_BattMonitor: Addition of AD7091R5 ADC I2C Read Driver 2023-11-08 18:24:41 +11:00
AP_BattMonitor_AD7091R5.h AP_BattMonitor: Addition of AD7091R5 ADC I2C Read Driver 2023-11-08 18:24:41 +11:00
AP_BattMonitor_Analog.cpp AP_BattMonitor: Fixes the setting of a default parameter for battery instance #2 set in hwdef 2023-04-28 16:13:33 +10:00
AP_BattMonitor_Analog.h AP_BattMonitor: add defines for all battery backends 2023-03-10 08:48:24 +11:00
AP_BattMonitor_Backend.cpp AP_BatteryMonitor: add missing failsafe with no action 2024-07-02 09:54:36 +10:00
AP_BattMonitor_Backend.h AP_BattMonitor: add and use AP_BATTERY_ENABLED 2024-02-06 11:01:02 +11:00
AP_BattMonitor_Bebop.cpp AP_BattMonitor: Fix some typos 2023-10-12 18:30:42 +11:00
AP_BattMonitor_Bebop.h AP_BattMonitor: added reset_remaining() API 2019-06-25 09:56:25 +10:00
AP_BattMonitor_DroneCAN.cpp AP_BattMonitor: optimize DroneCAN subscription process 2024-11-18 10:30:29 +11:00
AP_BattMonitor_DroneCAN.h AP_BattMonitor: optimize DroneCAN subscription process 2024-11-18 10:30:29 +11:00
AP_BattMonitor_EFI.cpp AP_BattMonitor: add defines for all battery backends 2023-03-10 08:48:24 +11:00
AP_BattMonitor_EFI.h AP_BattMonitor: add defines for all battery backends 2023-03-10 08:48:24 +11:00
AP_BattMonitor_ESC.cpp AP_BattMonitor: ESC: integrate consumed mah if not provided by ESC 2024-07-30 10:59:17 +10:00
AP_BattMonitor_ESC.h AP_BattMonitor: ESC: integrate consumed mah if not provided by ESC 2024-07-30 10:59:17 +10:00
AP_BattMonitor_FuelFlow.cpp AP_BattMonitor: add defines for all battery backends 2023-03-10 08:48:24 +11:00
AP_BattMonitor_FuelFlow.h AP_BattMonitor: add defines for all battery backends 2023-03-10 08:48:24 +11:00
AP_BattMonitor_FuelLevel_Analog.cpp AP_BattMonitor : update metadata for fuellevel param ranges 2024-11-12 09:22:21 +11:00
AP_BattMonitor_FuelLevel_Analog.h AP_BattMonitor: FuelLevel_Ananlog: set has_current true so capacity is reported 2024-05-21 10:07:48 +10:00
AP_BattMonitor_FuelLevel_PWM.cpp AP_BattMonitor: add defines for all battery backends 2023-03-10 08:48:24 +11:00
AP_BattMonitor_FuelLevel_PWM.h AP_BattMonitor: add defines for all battery backends 2023-03-10 08:48:24 +11:00
AP_BattMonitor_Generator.cpp AP_BattMonitor: Fix some typos 2023-10-12 18:30:42 +11:00
AP_BattMonitor_Generator.h AP_BattMonitor: Fix some typos 2023-10-12 18:30:42 +11:00
AP_BattMonitor_INA2xx.cpp AP_BattMonitor: support I2C INA231 battery monitor 2024-07-11 09:26:17 +10:00
AP_BattMonitor_INA2xx.h AP_BattMonitor: support I2C INA231 battery monitor 2024-07-11 09:26:17 +10:00
AP_BattMonitor_INA239.cpp AP_BattMonitor: added MAX_AMPS and SHUNT parameters for INA239 2024-03-12 11:15:10 +11:00
AP_BattMonitor_INA239.h AP_BattMonitor: added MAX_AMPS and SHUNT parameters for INA239 2024-03-12 11:15:10 +11:00
AP_BattMonitor_LTC2946.cpp AP_BattMonitor: add defines for all battery backends 2023-03-10 08:48:24 +11:00
AP_BattMonitor_LTC2946.h AP_BattMonitor: fixed reset_remaining() for INAxxx and LTC2946 2023-08-10 07:43:25 +10:00
AP_BattMonitor_Logging.cpp AP_BattMonitor: add and use AP_BATTERY_ENABLED 2024-02-06 11:01:02 +11:00
AP_BattMonitor_Params.cpp AP_BattMonitor: Fix documentation generating incorrect parameter name 2024-11-05 10:05:01 +09:00
AP_BattMonitor_Params.h AP_BattMonitor: add option minimum volt option 2024-10-01 10:05:01 +10:00
AP_BattMonitor_SMBus.cpp AP_BattMonitor: add defines for all battery backends 2023-03-10 08:48:24 +11:00
AP_BattMonitor_SMBus.h AP_BattMonitor: add defines for all battery backends 2023-03-10 08:48:24 +11:00
AP_BattMonitor_SMBus_Generic.cpp AP_BattMonitor: Fix some typos 2023-10-12 18:30:42 +11:00
AP_BattMonitor_SMBus_Generic.h AP_BattMonitor: add defines for all battery backends 2023-03-10 08:48:24 +11:00
AP_BattMonitor_SMBus_Maxell.h AP_BattMonitor: add defines for all battery backends 2023-03-10 08:48:24 +11:00
AP_BattMonitor_SMBus_NeoDesign.cpp AP_BattMonitor: add defines for all battery backends 2023-03-10 08:48:24 +11:00
AP_BattMonitor_SMBus_NeoDesign.h AP_BattMonitor: add defines for all battery backends 2023-03-10 08:48:24 +11:00
AP_BattMonitor_SMBus_Rotoye.cpp AP_BattMonitor: add defines for all battery backends 2023-03-10 08:48:24 +11:00
AP_BattMonitor_SMBus_Rotoye.h AP_BattMonitor: add defines for all battery backends 2023-03-10 08:48:24 +11:00
AP_BattMonitor_SMBus_SUI.cpp AP_BattMonitor: add defines for all battery backends 2023-03-10 08:48:24 +11:00
AP_BattMonitor_SMBus_SUI.h AP_BattMonitor: add defines for all battery backends 2023-03-10 08:48:24 +11:00
AP_BattMonitor_SMBus_Solo.cpp AP_BattMonitor: Fix some typos 2023-10-12 18:30:42 +11:00
AP_BattMonitor_SMBus_Solo.h SMBus :expanded SoloBMS to 6s 2023-09-26 10:17:02 +10:00
AP_BattMonitor_Scripting.cpp AP_BattMonitor: tidy defines in scripting backend 2024-02-14 23:43:41 +11:00
AP_BattMonitor_Scripting.h AP_BattMonitor: tidy defines in scripting backend 2024-02-14 23:43:41 +11:00
AP_BattMonitor_Sum.cpp AP_BattMonitor: add option minimum volt option 2024-10-01 10:05:01 +10:00
AP_BattMonitor_Sum.h AP_BattMonitor: Sum: report average temperature 2024-07-30 11:00:49 +10:00
AP_BattMonitor_Synthetic_Current.cpp AP_BattMonitor: add defines for all battery backends 2023-03-10 08:48:24 +11:00
AP_BattMonitor_Synthetic_Current.h AP_BattMonitor: Fix some typos 2023-10-12 18:30:42 +11:00
AP_BattMonitor_Torqeedo.cpp AP_BattMonitor: torqeedo support for multiple instances 2024-05-08 17:51:09 +10:00
AP_BattMonitor_Torqeedo.h AP_BattMonitor: add defines for all battery backends 2023-03-10 08:48:24 +11:00
AP_BattMonitor_config.h Tools:remove BATTRY_SUM from <1K builds 2024-10-01 09:48:13 +10:00
LogStructure.h AP_BattMonitor: support logging state-of-health percentage 2024-01-10 18:38:25 +11:00