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:
parent
dbbc0f0ed0
commit
9def29d927
@ -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;
|
||||
|
@ -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"/>
|
||||
|
Loading…
x
Reference in New Issue
Block a user