We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5a421c7 commit d86c1c6Copy full SHA for d86c1c6
libraries/AP_OpticalFlow/examples/AP_OpticalFlow_test/AP_OpticalFlow_test.cpp
@@ -31,20 +31,26 @@ class DummyVehicle {
31
};
32
33
static DummyVehicle vehicle;
34
+#if AP_OPTICALFLOW_ENABLED
35
static OpticalFlow optflow;
36
+#endif
37
38
void setup()
39
{
40
hal.console->printf("OpticalFlow library test ver 1.6\n");
41
42
hal.scheduler->delay(1000);
43
44
45
// flowSensor initialization
46
optflow.init(-1);
47
48
if (!optflow.healthy()) {
- hal.console->printf("Failed to initialise PX4Flow ");
49
+ hal.console->printf("Failed to initialise OpticalFlow");
50
}
51
+#else
52
+ hal.console->printf("OpticalFlow compiled out");
53
54
55
56
0 commit comments