AP_AHRS: examples: correct AHRS_Test

This is required so gcs() returns an object
This commit is contained in:
Peter Barker 2017-02-23 17:49:26 +11:00 committed by Andrew Tridgell
parent 4ed7fb154f
commit 35f876f853
1 changed files with 3 additions and 0 deletions

View File

@ -6,6 +6,7 @@
#include <AP_AHRS/AP_AHRS.h>
#include <AP_HAL/AP_HAL.h>
#include <AP_BoardConfig/AP_BoardConfig.h>
#include <GCS_MAVLink/GCS.h>
const AP_HAL::HAL& hal = AP_HAL::get_HAL();
@ -95,4 +96,6 @@ void loop(void)
}
}
GCS _gcs;
AP_HAL_MAIN();