1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-17 13:25:30 +03:00

Added PG config definitions 3

This commit is contained in:
Martin Budden 2017-02-25 09:21:05 +00:00
parent ff40e8c844
commit a94318a75f
7 changed files with 147 additions and 10 deletions

View file

@ -70,6 +70,14 @@ int16_t rcCommand[4]; // interval [1000;2000] for THROTTLE and [-500;+
uint32_t rcModeActivationMask; // one bit per mode defined in boxId_e
PG_REGISTER_WITH_RESET_TEMPLATE(armingConfig_t, armingConfig, PG_ARMING_CONFIG, 0);
PG_RESET_TEMPLATE(armingConfig_t, armingConfig,
.gyro_cal_on_first_arm = 0, // TODO - Cleanup retarded arm support
.disarm_kill_switch = 1,
.auto_disarm_delay = 5
);
bool isAirmodeActive(void) {
return (IS_RC_MODE_ACTIVE(BOXAIRMODE) || feature(FEATURE_AIRMODE));
}