Browse Source

AP_OpticalFlow: fix example for not taking ahrs in constructor

master
Peter Barker 7 years ago committed by Andrew Tridgell
parent
commit
e5fa728a28
  1. 4
      libraries/AP_OpticalFlow/examples/AP_OpticalFlow_test/AP_OpticalFlow_test.cpp

4
libraries/AP_OpticalFlow/examples/AP_OpticalFlow_test/AP_OpticalFlow_test.cpp

@ -33,7 +33,7 @@ public: @@ -33,7 +33,7 @@ public:
};
static DummyVehicle vehicle;
static OpticalFlow optflow{vehicle.ahrs};
static OpticalFlow optflow;
void setup()
{
@ -42,7 +42,7 @@ void setup() @@ -42,7 +42,7 @@ void setup()
hal.scheduler->delay(1000);
// flowSensor initialization
optflow.init();
optflow.init(-1);
if (!optflow.healthy()) {
hal.console->printf("Failed to initialise PX4Flow ");

Loading…
Cancel
Save