From b66a1135d9c64f53414c5fa3563e62b6534b9509 Mon Sep 17 00:00:00 2001 From: Randy Mackay Date: Tue, 3 Feb 2015 15:56:54 +0900 Subject: [PATCH] AHRS: fix example sketch compile error --- libraries/AP_AHRS/examples/AHRS_Test/AHRS_Test.pde | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/libraries/AP_AHRS/examples/AHRS_Test/AHRS_Test.pde b/libraries/AP_AHRS/examples/AHRS_Test/AHRS_Test.pde index 1e0fbcaeec..48b68fc354 100644 --- a/libraries/AP_AHRS/examples/AHRS_Test/AHRS_Test.pde +++ b/libraries/AP_AHRS/examples/AHRS_Test/AHRS_Test.pde @@ -38,6 +38,8 @@ #include #include #include +#include +#include const AP_HAL::HAL& hal = AP_HAL_BOARD_DRIVER; @@ -52,6 +54,7 @@ AP_Compass_HMC5843 compass; AP_GPS gps; AP_Baro baro; +AP_SerialManager serial_manager; // choose which AHRS system to use AP_AHRS_DCM ahrs(ins, baro, gps); @@ -75,6 +78,7 @@ void setup(void) ins.init_accel(); ahrs.init(); + serial_manager.init(); if( compass.init() ) { hal.console->printf("Enabling compass\n"); @@ -82,7 +86,7 @@ void setup(void) } else { hal.console->printf("No compass detected\n"); } - gps.init(NULL); + gps.init(NULL, serial_manager); } void loop(void)