mirror of https://github.com/ArduPilot/ardupilot
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:
parent
4fbf2e4fac
commit
a05c374de1
|
@ -280,6 +280,11 @@ set_servos_4()
|
|||
APM_RC.OutputCh(CH_3, 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) {
|
||||
APM_RC.OutputCh(CH_7, g.rc_3.radio_min);
|
||||
APM_RC.OutputCh(CH_8, g.rc_3.radio_min);
|
||||
|
|
Loading…
Reference in New Issue