Flight control is pixhawk cube orange . firmware is arduplane 4.5.7 .
The drone has an electrical system that reports the voltage on one line and the current on two lines (the sum of the two reports is the total current) .
voltage sense is connected only to power1 connector (pin 4 - batt voltage sens) .
first current sense is connected to power1 connector (pin 3- batt current sens).
second current sense is connected to power2 connector (pin 3- batt current sens).
i want the firmware to calculate the battery voltage based on power1 connector (pin 4 - batt voltage sens) and the total current By calculating the sum of power1&2 (pin 3- batt current sens).
How to set the BATT parameters?
Configuring BATT(1) as sum backend, BATT 2 and 3 as analog voltage and current with shared voltage pin should work.
1 Like
It works, thanks.
A few more questions on the same subject:
-
There are several mechanisms that use the current and voltage data, for example COMPASS MOT X/Y/Z or MOT_BAT_VOLT_MIN/MAX. I want them to use the unified data reported in BAT1. Is this configurable? Is this the default?
-
Currently I only see BAT1/2 in MP. I want to see BAT3 as well, is it possible? How? (I see that all the data is reported in the BATTEY message and the BAT1 data is also reported in the SYSTEM STATUS message).