HAL_PX4: added comment on oneshot

This commit is contained in:
Andrew Tridgell 2016-04-22 13:50:05 +10:00
parent ca6bb27a3c
commit 0af322e90d
1 changed files with 6 additions and 0 deletions

View File

@ -537,6 +537,12 @@ void PX4RCOutput::set_output_mode(enum output_mode mode)
return;
}
if (mode == MODE_PWM_ONESHOT) {
// when using oneshot we don't want the regular pulses. The
// best we can do with the current PX4Firmware code is ask for
// 1Hz. This does still produce pulses, but the trigger calls
// mean the timer is constantly reset, so no pulses are
// produced except when triggered by push() when the main loop
// is running
set_freq(_rate_mask, 1);
}
_output_mode = mode;