mirror of https://github.com/ArduPilot/ardupilot
Copter: remove enabled check from optflow init
This commit is contained in:
parent
def17582c6
commit
34560fb1fb
|
@ -139,11 +139,6 @@ void Copter::compass_accumulate(void)
|
|||
void Copter::init_optflow()
|
||||
{
|
||||
#if OPTFLOW == ENABLED
|
||||
// exit immediately if not enabled
|
||||
if (!optflow.enabled()) {
|
||||
return;
|
||||
}
|
||||
|
||||
// initialise optical flow sensor
|
||||
optflow.init();
|
||||
#endif // OPTFLOW == ENABLED
|
||||
|
|
Loading…
Reference in New Issue