AP_OpticalFlow: fix example for not taking ahrs in constructor

This commit is contained in:
Peter Barker 2018-09-03 08:17:23 +10:00 committed by Andrew Tridgell
parent 78313dab4a
commit e5fa728a28

View File

@ -33,7 +33,7 @@ public:
};
static DummyVehicle vehicle;
static OpticalFlow optflow{vehicle.ahrs};
static OpticalFlow optflow;
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 ");