AntennaTracker: move some common init_ardupilot code up to AP_Vehicle

This commit is contained in:
Peter Barker 2020-01-16 21:40:52 +11:00 committed by Andrew Tridgell
parent 07c7a98269
commit de2689bddd
2 changed files with 1 additions and 14 deletions

View File

@ -42,7 +42,6 @@
#include <AP_Mission/AP_Mission.h>
#include <AP_Stats/AP_Stats.h> // statistics library
#include <AP_BattMonitor/AP_BattMonitor.h> // Battery monitor library
#include <AP_Common/AP_FWVersion.h>
// Configuration
#include "config.h"
@ -74,8 +73,6 @@ public:
Tracker(void);
static const AP_FWVersion fwver;
// HAL::Callbacks implementation.
void loop() override;
@ -192,7 +189,7 @@ private:
void log_init(void);
// Parameters.cpp
void load_parameters(void);
void load_parameters(void) override;
// radio.cpp
void read_radio();

View File

@ -5,16 +5,6 @@ static const StorageAccess wp_storage(StorageManager::StorageMission);
void Tracker::init_ardupilot()
{
// initialise console serial port
serial_manager.init_console();
hal.console->printf("\n\nInit %s\n\nFree RAM: %u\n",
AP::fwversion().fw_string,
(unsigned)hal.util->available_memory());
// Check the EEPROM format version before loading any parameters from EEPROM
load_parameters();
// initialise stats module
stats.init();