BATTC_ parameters¶
38 parameters in the BATTC_ family. ArduCopter 4.7 only — other vehicles share many of these names but not always the same ranges or meanings.
BATTC_AMP_OFFSET¶
AMP offset
Voltage offset at zero current on current sensor
Units |
|
User level |
Standard |
BATTC_AMP_PERVLT¶
Amps per volt
Number of amps that a 1V reading on the current sensor corresponds to.
Units |
|
User level |
Standard |
BATTC_ARM_MAH¶
Required arming remaining capacity
Battery capacity remaining which is required to arm the aircraft. Set to 0 to allow arming at any capacity. Note that execept for smart batteries rebooting the vehicle will always reset the remaining capacity estimate, which can lead to this check not providing sufficent protection, it is recommended to always use this in conjunction with the BATTC_ARM_VOLT parameter.
Units |
|
Increment |
|
User level |
Advanced |
BATTC_ARM_VOLT¶
Required arming voltage
Battery voltage level which is required to arm the aircraft. Set to 0 to allow arming at any voltage.
Units |
|
Increment |
|
User level |
Advanced |
BATTC_CAPACITY¶
Battery capacity
Capacity of the battery in mAh when full
Units |
|
Increment |
|
User level |
Standard |
BATTC_CHANNEL¶
INA3221 channel
INA3221 channel to return data for
Range |
|
Reboot required |
Yes — the change takes effect after a reboot. |
User level |
Advanced |
BATTC_CRT_MAH¶
Battery critical capacity
Battery capacity at which the critical battery failsafe is triggered. Set to 0 to disable battery remaining failsafe. If the battery capacity drops below this level the vehicle will perform the failsafe specified by the BATTC_FS_CRT_ACT parameter.
Units |
|
Increment |
|
User level |
Standard |
BATTC_CRT_VOLT¶
Critical battery voltage
Battery voltage that triggers a critical battery failsafe. Set to 0 to disable. If the battery voltage drops below this voltage continuously for more then the period specified by the BATTC_LOW_TIMER parameter then the vehicle will perform the failsafe specified by the BATTC_FS_CRT_ACT parameter.
Units |
|
Increment |
|
User level |
Standard |
BATTC_CURR_MULT¶
Scales reported power monitor current
Multiplier applied to all current related reports to allow for adjustment if no UAVCAN param access or current splitting applications
Range |
|
User level |
Advanced |
BATTC_CURR_PIN¶
Battery Current sensing pin
Sets the analog input pin that should be used for Current monitoring on AD7091R5.
Range |
|
Reboot required |
Yes — the change takes effect after a reboot. |
User level |
Standard |
Values¶
Value |
Meaning |
|---|---|
|
Disabled |
BATTC_ESC_INDEX¶
ESC Telemetry Index to write to
ESC Telemetry Index to write voltage, current, consumption and temperature data to. Use 0 to disable.
Range |
|
Increment |
|
User level |
Advanced |
BATTC_ESC_MASK¶
ESC mask
If 0 all connected ESCs will be used. If non-zero, only those selected in will be used.
User level |
Standard |
Bitmask¶
Value |
Meaning |
|---|---|
|
ESC 1 |
|
ESC 2 |
|
ESC 3 |
|
ESC 4 |
|
ESC 5 |
|
ESC 6 |
|
ESC 7 |
|
ESC 8 |
|
ESC 9 |
|
ESC 10 |
|
ESC 11 |
|
ESC 12 |
|
ESC 13 |
|
ESC 14 |
|
ESC 15 |
|
ESC 16 |
|
ESC 17 |
|
ESC 18 |
|
ESC 19 |
|
ESC 20 |
|
ESC 21 |
|
ESC 22 |
|
ESC 23 |
|
ESC 24 |
|
ESC 25 |
|
ESC 26 |
|
ESC 27 |
|
ESC 28 |
|
ESC 29 |
|
ESC 30 |
|
ESC 31 |
|
ESC 32 |
BATTC_FL_FF¶
First order term
First order polynomial fit term
Range |
|
User level |
Advanced |
BATTC_FL_FLTR¶
Fuel level filter frequency
Filter frequency in Hertz where a low pass filter is used. This is used to filter out tank slosh from the fuel level reading. A value of -1 disables the filter and unfiltered voltage is used to determine the fuel level. The suggested values at in the range of 0.2 Hz to 0.5 Hz.
Units |
|
Range |
|
Reboot required |
Yes — the change takes effect after a reboot. |
User level |
Advanced |
BATTC_FL_FS¶
Second order term
Second order polynomial fit term
Range |
|
User level |
Advanced |
BATTC_FL_FT¶
Third order term
Third order polynomial fit term
Range |
|
User level |
Advanced |
BATTC_FL_OFF¶
Offset term
Offset polynomial fit term
Range |
|
User level |
Advanced |
BATTC_FL_PIN¶
Fuel level analog pin number
Analog input pin that fuel level sensor is connected to.Analog Airspeed or RSSI ports can be used for Analog input( some autopilots provide others also). Values for some autopilots are given as examples. Search wiki for “Analog pins”.
Range |
|
Values¶
Value |
Meaning |
|---|---|
|
Disabled |
|
Pixhawk/Pixracer/Navio2/Pixhawk2_PM1 |
|
Navigator |
|
Pixhawk2_PM2/CubeOrange_PM2 |
|
CubeOrange |
|
Durandal |
|
PX4-v1 |
BATTC_FL_VLT_MIN¶
Empty fuel level voltage
The voltage seen on the analog pin when the fuel tank is empty. Note: For this type of battery monitor, the voltage seen by the analog pin is displayed as battery voltage on a GCS.
Units |
|
Range |
|
User level |
Advanced |
BATTC_FL_V_MULT¶
Fuel level voltage multiplier
Voltage multiplier to determine what the full tank voltage reading is. This is calculated as 1 / (Voltage_Full - Voltage_Empty) Note: For this type of battery monitor, the voltage seen by the analog pin is displayed as battery voltage on a GCS.
Range |
|
User level |
Advanced |
BATTC_FS_CRT_ACT¶
Critical battery failsafe action
What action the vehicle should perform if it hits a critical battery failsafe
User level |
Standard |
Values¶
Value |
Meaning |
|---|---|
|
Warn only |
|
Land |
|
RTL |
|
SmartRTL or RTL |
|
SmartRTL or Land |
|
Terminate |
|
Auto DO_LAND_START/DO_RETURN_PATH_START or RTL |
|
Brake or Land |
BATTC_FS_LOW_ACT¶
Low battery failsafe action
What action the vehicle should perform if it hits a low battery failsafe
User level |
Standard |
Values¶
Value |
Meaning |
|---|---|
|
Warn only |
|
Land |
|
RTL |
|
SmartRTL or RTL |
|
SmartRTL or Land |
|
Terminate |
|
Auto DO_LAND_START/DO_RETURN_PATH_START or RTL |
|
Brake or Land |
BATTC_FS_VOLTSRC¶
Failsafe voltage source
Voltage type used for detection of low voltage event
User level |
Advanced |
Values¶
Value |
Meaning |
|---|---|
|
Raw Voltage |
|
Sag Compensated Voltage |
BATTC_I2C_ADDR¶
Battery monitor I2C address
Battery monitor I2C address. If this is zero then probe list of supported addresses
Range |
|
Reboot required |
Yes — the change takes effect after a reboot. |
User level |
Advanced |
BATTC_I2C_BUS¶
Battery monitor I2C bus number
Battery monitor I2C bus number
Range |
|
Reboot required |
Yes — the change takes effect after a reboot. |
User level |
Advanced |
BATTC_LOW_MAH¶
Low battery capacity
Battery capacity at which the low battery failsafe is triggered. Set to 0 to disable battery remaining failsafe. If the battery capacity drops below this level the vehicle will perform the failsafe specified by the BATTC_FS_LOW_ACT parameter.
Units |
|
Increment |
|
User level |
Standard |
BATTC_LOW_TIMER¶
Low voltage timeout
This is the timeout in seconds before a low voltage event will be triggered. For aircraft with low C batteries it may be necessary to raise this in order to cope with low voltage on long takeoffs. A value of zero disables low voltage errors.
Units |
|
Range |
|
Increment |
|
User level |
Advanced |
BATTC_LOW_VOLT¶
Low battery voltage
Battery voltage that triggers a low battery failsafe. Set to 0 to disable. If the battery voltage drops below this voltage continuously for more then the period specified by the BATTC_LOW_TIMER parameter then the vehicle will perform the failsafe specified by the BATTC_FS_LOW_ACT parameter.
Units |
|
Increment |
|
User level |
Standard |
BATTC_MAX_AMPS¶
Battery monitor max current
This controls the maximum current the INA239 sensor will work with.
Units |
|
Range |
|
User level |
Advanced |
BATTC_MAX_VOLT¶
Maximum Battery Voltage
Maximum voltage of battery. Provides scaling of current versus voltage
Range |
|
User level |
Advanced |
BATTC_MONITOR¶
Battery monitoring
Controls enabling monitoring of the battery’s voltage and current
Reboot required |
Yes — the change takes effect after a reboot. |
User level |
Standard |
Values¶
Value |
Meaning |
|---|---|
|
Disabled |
|
Analog Voltage Only |
|
Analog Voltage and Current |
|
Solo |
|
Bebop |
|
SMBus-Generic |
|
DroneCAN-BatteryInfo |
|
ESC |
|
Sum Of Selected Monitors |
|
FuelFlow |
|
FuelLevelPWM |
|
SMBUS-SUI3 |
|
SMBUS-SUI6 |
|
NeoDesign |
|
SMBus-Maxell |
|
Generator-Elec |
|
Generator-Fuel |
|
Rotoye |
|
MPPT |
|
INA2XX (INA226 INA228 INA238 INA231 INA260) |
|
LTC2946 |
|
Torqeedo |
|
FuelLevelAnalog |
|
Synthetic Current and Analog Voltage |
|
INA239_SPI |
|
EFI |
|
AD7091R5 |
|
Scripting |
|
INA3221 |
|
Analog Current Only |
|
TIBQ76952-I2C (Periph only) |
BATTC_OPTIONS¶
Battery monitor options
This sets options to change the behaviour of the battery monitor
User level |
Advanced |
Bitmask¶
Value |
Meaning |
|---|---|
|
Ignore DroneCAN SoC |
|
MPPT reports input voltage and current |
|
MPPT Powered off when disarmed |
|
MPPT Powered on when armed |
|
MPPT Powered off at boot |
|
MPPT Powered on at boot |
|
Send resistance compensated voltage to GCS |
|
Allow DroneCAN InfoAux to be from a different CAN node |
|
Battery is for internal autopilot use only |
|
Sum monitor measures minimum voltage instead of average |
|
Allow DroneCAN dynamic node update on hot-swap |
BATTC_SERIAL_NUM¶
Battery serial number
Battery serial number, automatically filled in for SMBus batteries, otherwise will be -1. With DroneCan it is the battery_id.
User level |
Advanced |
BATTC_SHUNT¶
Battery monitor shunt resistor
This sets the shunt resistor used in the device
Units |
|
Range |
|
User level |
Advanced |
BATTC_SUM_MASK¶
Battery Sum mask
0: sum of remaining battery monitors, If none 0 sum of specified monitors. Current will be summed and voltages averaged.
User level |
Standard |
Bitmask¶
Value |
Meaning |
|---|---|
|
monitor 1 |
|
monitor 2 |
|
monitor 3 |
|
monitor 4 |
|
monitor 5 |
|
monitor 6 |
|
monitor 7 |
|
monitor 8 |
|
monitor 9 |
BATTC_VLT_OFFSET¶
Volage offset
Voltage offset on voltage pin. This allows for an offset due to a diode. This voltage is subtracted before the scaling is applied
Units |
|
User level |
Advanced |
BATTC_VOLT_MULT¶
Voltage Multiplier
Used to convert the voltage of the voltage sensing pin (BATTC_VOLT_PIN) to the actual battery’s voltage (pin_voltage * VOLT_MULT).
User level |
Advanced |
BATTC_VOLT_PIN¶
Battery Voltage sensing pin on the AD7091R5 Ic
Sets the analog input pin that should be used for voltage monitoring on AD7091R5.
Range |
|
Reboot required |
Yes — the change takes effect after a reboot. |
User level |
Standard |
Values¶
Value |
Meaning |
|---|---|
|
Disabled |