PX4 Firmware
PX4 Autopilot Software http://px4.io
sensor_params_battery.c File Reference

Go to the source code of this file.

Functions

 PARAM_DEFINE_FLOAT (BAT_V_DIV, -1.0)
 Battery voltage divider (V divider) More...
 
 PARAM_DEFINE_FLOAT (BAT_A_PER_V, -1.0)
 Battery current per volt (A/V) More...
 

Function Documentation

◆ PARAM_DEFINE_FLOAT() [1/2]

PARAM_DEFINE_FLOAT ( BAT_V_DIV  ,
-1.  0 
)

Battery voltage divider (V divider)

This is the divider from battery voltage to 3.3V ADC voltage. If using e.g. Mauch power modules the value from the datasheet can be applied straight here. A value of -1 means to use the board default.

Battery Calibration 8

◆ PARAM_DEFINE_FLOAT() [2/2]

PARAM_DEFINE_FLOAT ( BAT_A_PER_V  ,
-1.  0 
)

Battery current per volt (A/V)

The voltage seen by the 3.3V ADC multiplied by this factor will determine the battery current. A value of -1 means to use the board default.

Battery Calibration 8