mirror of https://github.com/ArduPilot/ardupilot
HIL: fixed radio_status in setHIL() for APM_RC
thanks to Michael Oborne for noticing this! git-svn-id: https://arducopter.googlecode.com/svn/trunk@2952 f9c3cf11-9bcb-44bc-f272-b75c42450872
This commit is contained in:
parent
7d65418fa1
commit
1dc0063e67
|
@ -206,12 +206,12 @@ bool APM_RC_Class::setHIL(int16_t v[NUM_CHANNELS])
|
|||
sum++;
|
||||
}
|
||||
}
|
||||
radio_status = 1;
|
||||
if (sum == 0) {
|
||||
return 0;
|
||||
} else {
|
||||
return 1;
|
||||
}
|
||||
radio_status = 1;
|
||||
}
|
||||
|
||||
void APM_RC_Class::clearOverride(void)
|
||||
|
|
Loading…
Reference in New Issue