mirror of https://github.com/ArduPilot/ardupilot
AntennaTracker: do not include version.h/ap_version.h
The interface provided by each vehicle should be used to get the version. The user of the macro has been converted to use that interface.
This commit is contained in:
parent
54a4a78795
commit
efdc7daf96
|
@ -1,7 +1,6 @@
|
|||
#include "GCS_Mavlink.h"
|
||||
|
||||
#include "Tracker.h"
|
||||
#include "version.h"
|
||||
|
||||
// default sensors are present and healthy: gyro, accelerometer, barometer, rate_control, attitude_stabilization, yaw_position, altitude control, x/y position control, motor_control
|
||||
#define MAVLINK_SENSOR_PRESENT_DEFAULT (MAV_SYS_STATUS_SENSOR_3D_GYRO | MAV_SYS_STATUS_SENSOR_3D_ACCEL | MAV_SYS_STATUS_SENSOR_ABSOLUTE_PRESSURE | MAV_SYS_STATUS_SENSOR_ANGULAR_RATE_CONTROL | MAV_SYS_STATUS_SENSOR_ATTITUDE_STABILIZATION | MAV_SYS_STATUS_SENSOR_YAW_POSITION | MAV_SYS_STATUS_SENSOR_Z_ALTITUDE_CONTROL | MAV_SYS_STATUS_SENSOR_XY_POSITION_CONTROL | MAV_SYS_STATUS_SENSOR_MOTOR_OUTPUTS)
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
#include "Tracker.h"
|
||||
#include "version.h"
|
||||
|
||||
// mission storage
|
||||
static const StorageAccess wp_storage(StorageManager::StorageMission);
|
||||
|
@ -14,9 +13,9 @@ void Tracker::init_tracker()
|
|||
// initialise console serial port
|
||||
serial_manager.init_console();
|
||||
|
||||
hal.console->printf("\n\nInit " THISFIRMWARE
|
||||
"\n\nFree RAM: %u\n",
|
||||
hal.util->available_memory());
|
||||
hal.console->printf("\n\nInit %s\n\nFree RAM: %u\n",
|
||||
fwver.fw_string,
|
||||
hal.util->available_memory());
|
||||
|
||||
// Check the EEPROM format version before loading any parameters from EEPROM
|
||||
load_parameters();
|
||||
|
|
Loading…
Reference in New Issue