NinjaFlight
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
failsafe.h
Go to the documentation of this file.
1 /*
2  * This file is part of Ninjaflight.
3  *
4  * Copyright: collective.
5  * Cleanup: Martin Schröder <mkschreder.uk@gmail.com>
6  * Original source from Cleanflight.
7  *
8  * Ninjaflight is free software: you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation, either version 3 of the License, or
11  * (at your option) any later version.
12  *
13  * Ninjaflight is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with Ninjaflight. If not, see <http://www.gnu.org/licenses/>.
20  */
21 
22 #pragma once
23 
24 typedef enum {
28 
31  uint8_t failsafe_delay;
33  uint16_t failsafe_throttle;
37 } __attribute__((packed));
38 
uint8_t failsafe_kill_switch
failsafe switch action is 0: identical to rc link loss, 1: disarms instantly
Definition: failsafe.h:34
Definition: failsafe.h:26
uint16_t failsafe_throttle_low_delay
Time throttle stick must have been below 'min_check' to "JustDisarm" instead of "full failsafe proced...
Definition: failsafe.h:35
uint8_t failsafe_procedure
selected full failsafe procedure is 0: auto-landing, 1: Drop it
Definition: failsafe.h:36
failsafe_procedure_t
Definition: failsafe.h:24
uint8_t failsafe_delay
Guard time for failsafe activation after signal lost. 1 step = 0.1sec - 1sec in example (10) ...
Definition: failsafe.h:31
uint8_t failsafe_off_delay
Time for Landing before motors stop in 0.1sec. 1 step = 0.1sec - 20sec in example (200) ...
Definition: failsafe.h:32
typedef __attribute__
Failsafe system configuration.
Definition: failsafe.h:30
Definition: failsafe.h:25
uint16_t failsafe_throttle
Throttle level used for landing - specify value between 1000..2000 (pwm pulse width for slightly belo...
Definition: failsafe.h:33