AP_GPS: fix GPS_AUTO_test

This commit is contained in:
Pierre Kancir 2019-05-01 17:38:23 +02:00 committed by Tom Pittenger
parent cd72657c94
commit deb6aafcbe
1 changed files with 8 additions and 21 deletions

View File

@ -16,32 +16,12 @@
Test for AP_GPS_AUTO
*/
#include <stdlib.h>
#include <AP_Common/AP_Common.h>
#include <AP_Param/AP_Param.h>
#include <AP_HAL/AP_HAL.h>
#include <AP_GPS/AP_GPS.h>
#include <AP_Logger/AP_Logger.h>
#include <AP_InertialSensor/AP_InertialSensor.h>
#include <GCS_MAVLink/GCS_MAVLink.h>
#include <AP_Baro/AP_Baro.h>
#include <Filter/Filter.h>
#include <AP_AHRS/AP_AHRS.h>
#include <AP_Compass/AP_Compass.h>
#include <AP_Declination/AP_Declination.h>
#include <AP_Airspeed/AP_Airspeed.h>
#include <AP_Vehicle/AP_Vehicle.h>
#include <AP_Mission/AP_Mission.h>
#include <StorageManager/StorageManager.h>
#include <AP_Terrain/AP_Terrain.h>
#include <AP_Math/AP_Math.h>
#include <GCS_MAVLink/GCS_Dummy.h>
#include <AP_Notify/AP_Notify.h>
#include <AP_Notify/AP_BoardLED.h>
#include <AP_Scheduler/AP_Scheduler.h>
#include <AP_BattMonitor/AP_BattMonitor.h>
#include <AP_SerialManager/AP_SerialManager.h>
#include <AP_RangeFinder/AP_RangeFinder.h>
#include <AP_BoardConfig/AP_BoardConfig.h>
void setup();
@ -54,6 +34,13 @@ static AP_BoardConfig board_config;
// create board led object
AP_BoardLED board_led;
// create fake gcs object
GCS_Dummy _gcs;
const AP_Param::GroupInfo GCS_MAVLINK::var_info[] = {
AP_GROUPEND
};
// This example uses GPS system. Create it.
static AP_GPS gps;
// Serial manager is needed for UART communications