HIL: we need very fast update of motor controls for HIL

When doing HIL with a copter you need to update the controls very
rapidly, much more so than with a plane. This puts the update in the
fast loop

git-svn-id: https://arducopter.googlecode.com/svn/trunk@1749 f9c3cf11-9bcb-44bc-f272-b75c42450872
This commit is contained in:
tridge60@gmail.com 2011-03-06 09:36:03 +00:00
parent f7f48ebb20
commit 756a5b0052
1 changed files with 5 additions and 0 deletions

View File

@ -481,6 +481,11 @@ void fast_loop()
// write out the servo PWM values
// ------------------------------
set_servos_4();
#if HIL_PROTOCOL == HIL_PROTOCOL_MAVLINK
// HIL for a copter needs very fast update of the servo values
gcs.send_message(MSG_RADIO_OUT);
#endif
}
void medium_loop()