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

LP-446 - Add LiHV

This commit is contained in:
Alessio Morale 2016-12-06 01:00:17 +01:00 committed by Philippe Renon
parent dbbc0f0ed0
commit 9def29d927
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; voltageMin = 3.6f;
voltageMax = 4.2f; voltageMax = 4.2f;
break; break;
case FLIGHTBATTERYSETTINGS_TYPE_LIHV:
voltageMin = 3.6f;
voltageMax = 4.35f;
break;
case FLIGHTBATTERYSETTINGS_TYPE_A123: case FLIGHTBATTERYSETTINGS_TYPE_A123:
voltageMin = 2.01f; voltageMin = 2.01f;
voltageMax = 3.59f; voltageMax = 3.59f;

View File

@ -2,7 +2,7 @@
<object name="FlightBatterySettings" singleinstance="true" settings="true" category="Sensors"> <object name="FlightBatterySettings" singleinstance="true" settings="true" category="Sensors">
<description>Flight Battery configuration.</description> <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="NbCells" units="" type="uint8" elements="1" defaultvalue="0"/>
<field name="Capacity" units="mAh" type="uint32" 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"/> <field name="CellVoltageThresholds" units="V" type="float" elementnames="Warning, Critical" defaultvalue="3.4,3.1"/>