feat: Support for 8s Cell Sensor such as FrSky FLVS ADV (#2302)
* first commit for FrSky 8s Lipo Sensor FLVS Advanced transfers up to 8 cell voltages for Cels sensor * correcting mistake made transferring local change to PR * complementary extension of Companion telemetry simulator to enable simulation of 8 cells * change to allow selection of cells 7 and 8 in calculated sensor with formula Cell * (cpn) Add bin and yml conversions and basic semantic version helper Co-authored-by: elecpower <neilh713@tpg.com.au>
This commit is contained in:
@@ -2066,6 +2066,12 @@ class SensorField: public TransformedField {
|
||||
}
|
||||
}
|
||||
|
||||
// Cells 7 and 8 introduced in v2.8 requiring Highest and Delta to be shifted + 2
|
||||
if (version < 221) {
|
||||
if (sensor.formula == SensorData::TELEM_FORMULA_CELL && sensor.index > 6)
|
||||
sensor.index += 2;
|
||||
}
|
||||
|
||||
qCDebug(eepromImport) << QString("imported %1").arg(internalField.getName());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user