feat(color): telemetry queues for Lua, enhance default widget options (#5926)
This commit is contained in:
+16
-14
@@ -110,9 +110,11 @@ char *strAppendStringWithIndex(char *dest, const char *s, int idx);
|
||||
#define LEN_TIMER_STRING 10 // "-00:00:00"
|
||||
char *getTimerString(char *dest, int32_t tme,
|
||||
TimerOptions timerOptions = {.options = 0});
|
||||
char *getTimerString(int32_t tme, TimerOptions timerOptions = {.options = 0});
|
||||
char *getFormattedTimerString(char *dest, int32_t tme,
|
||||
TimerOptions timerOptions);
|
||||
char *getCurveString(char *dest, int idx);
|
||||
char *getCurveString(int idx);
|
||||
char *getGVarString(char *dest, int idx);
|
||||
char *getGVarString(int idx);
|
||||
char *getValueOrGVarString(char *dest, size_t len, gvar_t value, gvar_t vmin,
|
||||
@@ -123,33 +125,33 @@ char *getValueOrSrcVarString(char *dest, size_t len, gvar_t value, gvar_t vmin,
|
||||
const char *suffix = nullptr, gvar_t offset = 0, bool usePPMUnit = false);
|
||||
const char *getSwitchWarnSymbol(uint8_t pos);
|
||||
const char *getSwitchPositionSymbol(uint8_t pos);
|
||||
char *getSwitchPositionName(char *dest, swsrc_t idx);
|
||||
char *getSwitchName(char *dest, uint8_t idx);
|
||||
char *getSwitchPositionName(char *dest, swsrc_t idx, bool defaultOnly = false);
|
||||
char *getSwitchPositionName(swsrc_t idx, bool defaultOnly = false);
|
||||
char *getSwitchName(char *dest, uint8_t idx, bool defaultOnly = false);
|
||||
int getSwitchIndex(const char* name, bool all);
|
||||
int getSourceIndex(const char* name, bool all);
|
||||
|
||||
const char *getAnalogLabel(uint8_t type, uint8_t idx);
|
||||
const char *getAnalogLabel(uint8_t type, uint8_t idx, bool defaultOnly = false);
|
||||
const char *getAnalogShortLabel(uint8_t idx);
|
||||
const char *getMainControlLabel(uint8_t idx);
|
||||
const char *getTrimLabel(uint8_t idx);
|
||||
const char *getMainControlLabel(uint8_t idx, bool defaultOnly = false);
|
||||
const char *getTrimLabel(uint8_t idx, bool defaultOnly = false);
|
||||
const char *getTrimSourceLabel(uint16_t src_raw, int8_t trim_src);
|
||||
const char *getPotLabel(uint8_t idx);
|
||||
const char *getPotLabel(uint8_t idx, bool defaultOnly = false);
|
||||
char *getCustomSwitchesGroupName(char *dest, uint8_t idx);
|
||||
|
||||
template <size_t L>
|
||||
char *getSourceString(char (&dest)[L], mixsrc_t idx);
|
||||
char *getSourceString(char (&dest)[L], mixsrc_t idx, bool defaultOnly = false);
|
||||
char *getSourceString(mixsrc_t idx, bool defaultOnly = false);
|
||||
|
||||
template <size_t L>
|
||||
char *getSourceCustomValueString(char (&dest)[L], mixsrc_t source, int32_t val,
|
||||
LcdFlags flags);
|
||||
|
||||
#endif
|
||||
char *getSourceCustomValueString(mixsrc_t source, int32_t val, LcdFlags flags);
|
||||
|
||||
char *getFlightModeString(char *dest, int8_t idx);
|
||||
|
||||
char *getSourceString(mixsrc_t idx);
|
||||
char *getSourceCustomValueString(mixsrc_t source, int32_t val, LcdFlags flags);
|
||||
char *getSwitchPositionName(swsrc_t idx);
|
||||
char *getCurveString(int idx);
|
||||
char *getTimerString(int32_t tme, TimerOptions timerOptions = {.options = 0});
|
||||
#endif
|
||||
|
||||
void splitTimer(char *s0, char *s1, char *s2, char *s3, int tme,
|
||||
bool bLowercase = true);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user