mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-03-11 17:13:56 -03:00
AP_BattMonitor_Analog: allow per-board setting of CURR_AMP_OFFSET
This commit is contained in:
parent
998e163dba
commit
ed61fd72f1
@ -75,6 +75,11 @@
|
||||
# define AP_BATT_CURR_AMP_PERVOLT_DEFAULT 17.0f
|
||||
#endif
|
||||
|
||||
// This is 0 for the majority of the power modules.
|
||||
#ifndef AP_BATT_CURR_AMP_OFFSET_DEFAULT
|
||||
#define AP_BATT_CURR_AMP_OFFSET_DEFAULT 0.0f
|
||||
#endif
|
||||
|
||||
// Other values normally set directly by mission planner
|
||||
// # define AP_BATT_VOLTDIVIDER_DEFAULT 15.70 // Volt divider for AttoPilot 50V/90A sensor
|
||||
// # define AP_BATT_VOLTDIVIDER_DEFAULT 4.127 // Volt divider for AttoPilot 13.6V/45A sensor
|
||||
|
@ -52,7 +52,7 @@ const AP_Param::GroupInfo AP_BattMonitor_Params::var_info[] = {
|
||||
// @Description: Voltage offset at zero current on current sensor
|
||||
// @Units: V
|
||||
// @User: Standard
|
||||
AP_GROUPINFO("AMP_OFFSET", 6, AP_BattMonitor_Params, _curr_amp_offset, 0),
|
||||
AP_GROUPINFO("AMP_OFFSET", 6, AP_BattMonitor_Params, _curr_amp_offset, AP_BATT_CURR_AMP_OFFSET_DEFAULT),
|
||||
|
||||
// @Param: CAPACITY
|
||||
// @DisplayName: Battery capacity
|
||||
|
Loading…
Reference in New Issue
Block a user