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
dcbf161c41
commit
f5700c75c8
|
@ -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