AP_HAL_FLYMAPLE RCOutput.cpp: enable_ch no longer resets servo

FLYMAPLERCOutput::enable_ch incorrectly reset the servo to 0, which caused
servo twitching once per second when RC_Channel_aux::enable_aux_servos
enabled each channel.
This commit is contained in:
Mike McCauley 2014-02-18 08:19:38 +10:00 committed by Andrew Tridgell
parent ad4db4de6c
commit bd768a0c0c
1 changed files with 1 additions and 2 deletions

View File

@ -68,14 +68,13 @@ void FLYMAPLERCOutput::enable_ch(uint8_t ch)
}
pinMode(pin, PWM);
_set_freq(ch, 50); // Default to 50 Hz
write(ch, 0);
}
void FLYMAPLERCOutput::disable_ch(uint8_t ch)
{
if (ch >= FLYMAPLE_RC_OUTPUT_NUM_CHANNELS)
return;
// TODO
// Nothing really to do
}
void FLYMAPLERCOutput::write(uint8_t ch, uint16_t period_us)