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:
parent
95641d649d
commit
06217c71a4
21 changed files with 97 additions and 25 deletions
|
@ -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);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue