mirror of https://github.com/ArduPilot/ardupilot
Plane: Only init optflow when enabled by parameter
This commit is contained in:
parent
8793c75da0
commit
d018a32545
|
@ -246,6 +246,10 @@ void Plane::init_ardupilot()
|
|||
|
||||
// initialise sensor
|
||||
#if OPTFLOW == ENABLED
|
||||
if (!optflow.enabled()) {
|
||||
return;
|
||||
}
|
||||
|
||||
optflow.init();
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in New Issue