Browse Source

Plane: Only init optflow when enabled by parameter

mission-4.1.18
mirkix 9 years ago committed by Andrew Tridgell
parent
commit
d018a32545
  1. 4
      ArduPlane/system.cpp

4
ArduPlane/system.cpp

@ -246,6 +246,10 @@ void Plane::init_ardupilot() @@ -246,6 +246,10 @@ void Plane::init_ardupilot()
// initialise sensor
#if OPTFLOW == ENABLED
if (!optflow.enabled()) {
return;
}
optflow.init();
#endif

Loading…
Cancel
Save