1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-23 08:15:30 +03:00

Decouple failsafe from RX drivers.

This removes a number of FIXMEs regarding driver dependencies on the
main code.

The code to verify pulse lengths is now in computeRC which means that
all RX drivers do not have to duplicate the pulse length checking code.

This means that failsafe can be used to validate serial RX providers as
well as PWM/PPM RX providers.
This commit is contained in:
Dominic Clifton 2014-05-08 13:15:29 +01:00
parent 3ed979e88c
commit 6704ba40b5
12 changed files with 114 additions and 152 deletions

View file

@ -15,11 +15,6 @@
#define PULSE_1MS (1000) // 1ms pulse width
#define PULSE_MIN (750) // minimum PWM pulse width which is considered valid
#define PULSE_MAX (2250) // maximum PWM pulse width which is considered valid
#define MAX_INPUTS 8