HIL: fill motor_out[] when disarmed, so HIL sees zero values

git-svn-id: https://arducopter.googlecode.com/svn/trunk@1747 f9c3cf11-9bcb-44bc-f272-b75c42450872
This commit is contained in:
tridge60@gmail.com 2011-03-06 09:35:50 +00:00
parent 4fbf2e4fac
commit a05c374de1
1 changed files with 5 additions and 0 deletions

View File

@ -280,6 +280,11 @@ set_servos_4()
APM_RC.OutputCh(CH_3, g.rc_3.radio_min); APM_RC.OutputCh(CH_3, g.rc_3.radio_min);
APM_RC.OutputCh(CH_4, g.rc_3.radio_min); APM_RC.OutputCh(CH_4, g.rc_3.radio_min);
// fill the motor_out[] array for HIL use
for (unsigned char i=0; i<8; i++) {
motor_out[i] = 0;
}
if (g.frame_type == HEXA_FRAME) { if (g.frame_type == HEXA_FRAME) {
APM_RC.OutputCh(CH_7, g.rc_3.radio_min); APM_RC.OutputCh(CH_7, g.rc_3.radio_min);
APM_RC.OutputCh(CH_8, g.rc_3.radio_min); APM_RC.OutputCh(CH_8, g.rc_3.radio_min);