uavcan/sensors/battery: add the option to filter raw data

Useful for power modules that send just pure voltage and current without algorithmic prediction of voltage drop, time estimation, etc.
This commit is contained in:
Igor Mišić
2022-07-08 10:03:11 +02:00
committed by Beat Küng
parent 27b65481ba
commit 90e2ac60ce
3 changed files with 72 additions and 6 deletions
+9 -1
View File
@@ -228,7 +228,15 @@ PARAM_DEFINE_INT32(UAVCAN_SUB_BARO, 0);
* uavcan::equipment::power::BatteryInfo
* ardupilot::equipment::power::BatteryInfoAux
*
* @boolean
* 0 - Disable
* 1 - Use raw data. Recommended for Smart battery
* 2 - Filter the data with internal battery library
*
* @min 0
* @max 2
* @value 0 Disable
* @value 1 Raw data
* @value 2 Filter data
* @reboot_required true
* @group UAVCAN
*/