mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-30 20:48:33 -04:00
AP_OpticalFlow: fix example for not taking ahrs in constructor
This commit is contained in:
parent
78313dab4a
commit
e5fa728a28
@ -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 ");
|
||||
|
Loading…
Reference in New Issue
Block a user