40 telemetry sensors instead of 32

This commit is contained in:
Bertrand Songis
2019-04-01 12:02:35 +02:00
parent 9ac97ed5b8
commit 6df76451af
4 changed files with 17 additions and 9 deletions
@@ -34,8 +34,7 @@ typedef ModelData ModelData_v219;
void convertModelData_218_to_219(ModelData &model)
{
TRACE("TODO check what we do with model sizes %d %d", sizeof(ModelData_v218), sizeof(ModelData));
// assert(sizeof(ModelData_v218) <= sizeof(ModelData));
assert(sizeof(ModelData_v218) <= sizeof(ModelData));
ModelData_v218 oldModel;
memcpy(&oldModel, &model, sizeof(oldModel));
@@ -197,6 +197,9 @@ PACK(typedef struct {
int16_t spare:7;
uint8_t fadeIn;
uint8_t fadeOut;
#if defined(PCBSKY9X)
int16_t rotaryEncoders[1];
#endif
gvar_t gvars[MAX_GVARS_218];
}) FlightModeData_v218;
@@ -345,6 +348,12 @@ PACK(typedef struct {
TelemetrySensor telemetrySensors[MAX_TELEMETRY_SENSORS_218];
TARANIS_PCBX9E_FIELD(uint8_t toplcdTimer)
#if defined(PCBHORUS)
// TODO conversion for custom screens?
#else
uint8_t view;
#endif
}) ModelData_v218;
#define EXTRA_GENERAL_FIELDS_GENERAL_218 \