mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-10 09:58:28 -04:00
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
Block a user