mirror of https://github.com/ArduPilot/ardupilot
Fix bug for GCS joystick control
git-svn-id: https://arducopter.googlecode.com/svn/trunk@2440 f9c3cf11-9bcb-44bc-f272-b75c42450872
This commit is contained in:
parent
66d76a273f
commit
530eeb4184
|
@ -205,12 +205,12 @@ bool APM_RC_Class::setHIL(int16_t v[NUM_CHANNELS])
|
|||
if (_HIL_override[i] != 0) {
|
||||
sum++;
|
||||
}
|
||||
}
|
||||
if (sum == 0) {
|
||||
return 0;
|
||||
} else {
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
radio_status = 1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue