Sensor type & formula

This commit is contained in:
Raphael Coeffic
2021-11-10 11:07:02 +01:00
parent 24b69098c7
commit 3da2aee1ff
31 changed files with 545 additions and 209 deletions
+2 -2
View File
@@ -370,11 +370,11 @@ PACK(struct TelemetrySensor {
uint8_t rxIndex:3; // 1 bit for module index, 2 bits for receiver index
}) frskyInstance);
uint8_t instance;
NOBACKUP(uint8_t formula);
NOBACKUP(uint8_t formula ENUM(TelemetrySensorFormula));
} NAME(id2) FUNC(select_id2);
char label[TELEM_LABEL_LEN]; // user defined label
uint8_t subId;
uint8_t type:1; // 0=custom / 1=calculated
uint8_t type:1 ENUM(TelemetrySensorType); // 0=custom / 1=calculated
// user can choose what unit to display each value in
uint8_t spare1:1 SKIP;
uint8_t unit:6;