1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-03-15 07:29:15 +01:00

LP-446 - Add LiHV

This commit is contained in:
Alessio Morale 2016-12-06 01:00:17 +01:00
parent d59054d8a6
commit 44365cf3e9
2 changed files with 5 additions and 1 deletions

View File

@ -256,6 +256,10 @@ static int8_t GetNbCells(const FlightBatterySettingsData *batterySettings, Fligh
voltageMin = 3.6f;
voltageMax = 4.2f;
break;
case FLIGHTBATTERYSETTINGS_TYPE_LIHV:
voltageMin = 3.6f;
voltageMax = 4.35f;
break;
case FLIGHTBATTERYSETTINGS_TYPE_A123:
voltageMin = 2.01f;
voltageMax = 3.59f;

View File

@ -2,7 +2,7 @@
<object name="FlightBatterySettings" singleinstance="true" settings="true" category="Sensors">
<description>Flight Battery configuration.</description>
<field name="Type" units="" type="enum" elements="1" options="LiPo,A123,LiCo,LiFeSO4,None" defaultvalue="LiPo"/>
<field name="Type" units="" type="enum" elements="1" options="LiPo,LiHV,A123,LiCo,LiFeSO4,None" defaultvalue="LiPo"/>
<field name="NbCells" units="" type="uint8" elements="1" defaultvalue="0"/>
<field name="Capacity" units="mAh" type="uint32" elements="1" defaultvalue="0"/>
<field name="CellVoltageThresholds" units="V" type="float" elementnames="Warning, Critical" defaultvalue="3.4,3.1"/>