From 8f571f1225df9574115b54788b4c3c1337f37319 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sat, 3 Jan 2015 11:09:02 +1100 Subject: [PATCH] Plane: make optflow available to AHRS --- ArduPlane/system.pde | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ArduPlane/system.pde b/ArduPlane/system.pde index 91009e4f9f..d7b4a42235 100644 --- a/ArduPlane/system.pde +++ b/ArduPlane/system.pde @@ -167,6 +167,9 @@ static void init_ardupilot() ahrs.set_compass(&compass); } } + + // make optflow available to libraries + ahrs.set_optflow(&optflow); // Register mavlink_delay_cb, which will run anytime you have // more than 5ms remaining in your call to hal.scheduler->delay