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:
Lucas De Marchi 2017-09-12 11:28:42 -07:00
parent 54a4a78795
commit efdc7daf96
2 changed files with 3 additions and 5 deletions

View File

@ -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)

View File

@ -1,5 +1,4 @@
#include "Tracker.h"
#include "version.h"
// mission storage
static const StorageAccess wp_storage(StorageManager::StorageMission);
@ -14,8 +13,8 @@ void Tracker::init_tracker()
// initialise console serial port
serial_manager.init_console();
hal.console->printf("\n\nInit " THISFIRMWARE
"\n\nFree RAM: %u\n",
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