Go to the source code of this file.
|
enum | alrm_fac {
ALRM_FAC_TOGGLE = 0,
ALRM_FAC_FAILSAFE,
ALRM_FAC_GPS,
ALRM_FAC_BEEPERON,
ALRM_FAC_PMETER,
ALRM_FAC_RUNTIME,
ALRM_FAC_VBAT,
ALRM_FAC_CONFIRM,
ALRM_FAC_ACC,
ALRM_FAC_I2CERROR,
ALRM_FAC_SIZE,
ALRM_FAC_TOGGLE = 0,
ALRM_FAC_FAILSAFE,
ALRM_FAC_GPS,
ALRM_FAC_BEEPERON,
ALRM_FAC_PMETER,
ALRM_FAC_RUNTIME,
ALRM_FAC_VBAT,
ALRM_FAC_CONFIRM,
ALRM_FAC_ACC,
ALRM_FAC_I2CERROR,
ALRM_FAC_SIZE
} |
|
enum | alrm_res {
ALRM_RES_LED = 0,
ALRM_RES_BUZZER,
ALRM_RES_PL_GREEN,
ALRM_RES_PL_BLUE,
ALRM_RES_PL_RED,
ALRM_RES_PL,
ALRM_RES_ANY,
ALRM_RES_LED = 0,
ALRM_RES_BUZZER,
ALRM_RES_PL_GREEN,
ALRM_RES_PL_BLUE,
ALRM_RES_PL_RED,
ALRM_RES_PL,
ALRM_RES_ANY
} |
|
enum | alrm_lvl_onoff { ALRM_LVL_OFF = 0,
ALRM_LVL_ON = 1,
ALRM_LVL_OFF = 0,
ALRM_LVL_ON = 1
} |
|
enum | alrm_lvl_failsafe { ALRM_LVL_FAILSAFE_FINDME = 1,
ALRM_LVL_FAILSAFE_PANIC,
ALRM_LVL_FAILSAFE_FINDME = 1,
ALRM_LVL_FAILSAFE_PANIC
} |
|
enum | alrm_lvl_toggle {
ALRM_LVL_TOGGLE_1 = 1,
ALRM_LVL_TOGGLE_2,
ALRM_LVL_TOGGLE_ELSE,
ALRM_LVL_TOGGLE_1 = 1,
ALRM_LVL_TOGGLE_2,
ALRM_LVL_TOGGLE_ELSE
} |
|
enum | alrm_lvl_confirm {
ALRM_LVL_CONFIRM_1 = 1,
ALRM_LVL_CONFIRM_2,
ALRM_LVL_CONFIRM_ELSE,
ALRM_LVL_CONFIRM_1 = 1,
ALRM_LVL_CONFIRM_2,
ALRM_LVL_CONFIRM_ELSE
} |
|
#define IS_ALARM_SET |
( |
|
fac, |
|
|
|
level |
|
) |
| ( alarmArray[fac] == level ) |
#define SET_ALARM |
( |
|
fac, |
|
|
|
level |
|
) |
| alarmArray[fac] = level |
#define SET_ALARM_BUZZER |
( |
|
fac, |
|
|
|
level |
|
) |
| |
Enumerator |
---|
ALRM_FAC_TOGGLE |
|
ALRM_FAC_FAILSAFE |
|
ALRM_FAC_GPS |
|
ALRM_FAC_BEEPERON |
|
ALRM_FAC_PMETER |
|
ALRM_FAC_RUNTIME |
|
ALRM_FAC_VBAT |
|
ALRM_FAC_CONFIRM |
|
ALRM_FAC_ACC |
|
ALRM_FAC_I2CERROR |
|
ALRM_FAC_SIZE |
|
ALRM_FAC_TOGGLE |
|
ALRM_FAC_FAILSAFE |
|
ALRM_FAC_GPS |
|
ALRM_FAC_BEEPERON |
|
ALRM_FAC_PMETER |
|
ALRM_FAC_RUNTIME |
|
ALRM_FAC_VBAT |
|
ALRM_FAC_CONFIRM |
|
ALRM_FAC_ACC |
|
ALRM_FAC_I2CERROR |
|
ALRM_FAC_SIZE |
|
Enumerator |
---|
ALRM_LVL_CONFIRM_1 |
|
ALRM_LVL_CONFIRM_2 |
|
ALRM_LVL_CONFIRM_ELSE |
|
ALRM_LVL_CONFIRM_1 |
|
ALRM_LVL_CONFIRM_2 |
|
ALRM_LVL_CONFIRM_ELSE |
|
Enumerator |
---|
ALRM_LVL_FAILSAFE_FINDME |
|
ALRM_LVL_FAILSAFE_PANIC |
|
ALRM_LVL_FAILSAFE_FINDME |
|
ALRM_LVL_FAILSAFE_PANIC |
|
Enumerator |
---|
ALRM_LVL_OFF |
|
ALRM_LVL_ON |
|
ALRM_LVL_OFF |
|
ALRM_LVL_ON |
|
Enumerator |
---|
ALRM_LVL_TOGGLE_1 |
|
ALRM_LVL_TOGGLE_2 |
|
ALRM_LVL_TOGGLE_ELSE |
|
ALRM_LVL_TOGGLE_1 |
|
ALRM_LVL_TOGGLE_2 |
|
ALRM_LVL_TOGGLE_ELSE |
|
Enumerator |
---|
ALRM_RES_LED |
|
ALRM_RES_BUZZER |
|
ALRM_RES_PL_GREEN |
|
ALRM_RES_PL_BLUE |
|
ALRM_RES_PL_RED |
|
ALRM_RES_PL |
|
ALRM_RES_ANY |
|
ALRM_RES_LED |
|
ALRM_RES_BUZZER |
|
ALRM_RES_PL_GREEN |
|
ALRM_RES_PL_BLUE |
|
ALRM_RES_PL_RED |
|
ALRM_RES_PL |
|
ALRM_RES_ANY |
|
void alarmHandler |
( |
void |
| ) |
|
void auto_switch_landing_lights |
( |
void |
| ) |
|
void auto_switch_led_flasher |
( |
| ) |
|
void blinkLED |
( |
uint8_t |
num, |
|
|
uint8_t |
ontime, |
|
|
uint8_t |
repeat |
|
) |
| |
void blinkLedRing |
( |
void |
| ) |
|
void i2CLedRingState |
( |
void |
| ) |
|
void init_landing_lights |
( |
void |
| ) |
|
void init_led_flasher |
( |
| ) |
|
uint8_t isBuzzerON |
( |
void |
| ) |
|
void led_flasher_autoselect_sequence |
( |
| ) |
|
void led_flasher_set_sequence |
( |
uint8_t |
s | ) |
|
void PilotLamp |
( |
uint8_t |
count | ) |
|
void vario_signaling |
( |
void |
| ) |
|