RC_Channel: remove the unused test function get_failsafe

This commit is contained in:
Grant Morphett 2015-09-04 11:40:12 +10:00 committed by Andrew Tridgell
parent a1b96f659b
commit 122e88dbed
2 changed files with 0 additions and 10 deletions

View File

@ -197,13 +197,6 @@ RC_Channel::control_mix(float value)
return (1 - abs(control_in / _high)) * value + control_in; return (1 - abs(control_in / _high)) * value + control_in;
} }
// are we below a threshold?
bool
RC_Channel::get_failsafe(void)
{
return (radio_in < (radio_min - 50));
}
// returns just the PWM without the offset from radio_min // returns just the PWM without the offset from radio_min
void void
RC_Channel::calc_pwm(void) RC_Channel::calc_pwm(void)

View File

@ -78,9 +78,6 @@ public:
// call after first set_pwm // call after first set_pwm
void trim(); void trim();
// did our read come in 50µs below the min?
bool get_failsafe(void);
// value generated from PWM // value generated from PWM
int16_t control_in; int16_t control_in;