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:
parent
3ed979e88c
commit
6704ba40b5
12 changed files with 114 additions and 152 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue