1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-26 17:55:19 +03:00

Implement a constant calculated telemetry source (closes #3579)

This commit is contained in:
Arne Schwabe 2016-06-13 00:31:09 +02:00
parent 95641d649d
commit 06217c71a4
21 changed files with 97 additions and 25 deletions

View file

@ -664,6 +664,10 @@ PACK(struct TelemetrySensor {
uint8_t alt;
uint16_t spare;
}) dist;
PACK(struct {
uint8_t spare[2];
int16_t value;
}) constant;
uint32_t param;
};
NOBACKUP(
@ -673,6 +677,7 @@ PACK(struct TelemetrySensor {
int32_t getValue(int32_t value, uint8_t unit, uint8_t prec) const;
bool isConfigurable() const;
bool isPrecConfigurable() const;
bool isUnitConfigurable() const;
int32_t getPrecMultiplier() const;
int32_t getPrecDivisor() const);
});