mirror of
https://github.com/opentx/opentx.git
synced 2025-07-20 06:45:10 +03:00
Fixes #2579: Added support for Trainer signal alarm
- added alarm “Trainer signal lost” & “Trainer signal recovered”. - moved PPM capture code to trainer_input.{h,cpp}
This commit is contained in:
parent
3d461b771f
commit
f6bff9683d
12 changed files with 185 additions and 78 deletions
|
@ -1127,10 +1127,8 @@ extern uint8_t g_vbat100mV;
|
|||
extern uint8_t g_beepCnt;
|
||||
extern uint8_t g_beepVal[5];
|
||||
|
||||
extern uint8_t ppmInState; //0=unsync 1..8= wait for value i-1
|
||||
extern uint8_t ppmInValid;
|
||||
#define PPM_IN_VALID_TIMEOUT 100
|
||||
extern int16_t g_ppmIns[NUM_TRAINER];
|
||||
#include "trainer_input.h"
|
||||
|
||||
extern int32_t chans[NUM_CHNOUT];
|
||||
extern int16_t ex_chans[NUM_CHNOUT]; // Outputs (before LIMITS) of the last perMain
|
||||
extern int16_t channelOutputs[NUM_CHNOUT];
|
||||
|
@ -1392,6 +1390,8 @@ enum AUDIO_SOUNDS {
|
|||
AU_SWR_RED,
|
||||
AU_TELEMETRY_LOST,
|
||||
AU_TELEMETRY_BACK,
|
||||
AU_TRAINER_LOST,
|
||||
AU_TRAINER_BACK,
|
||||
#endif
|
||||
#if defined(PCBSKY9X)
|
||||
AU_TX_MAH_HIGH,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue