mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
AntennaTracker: move some common init_ardupilot code up to AP_Vehicle
This commit is contained in:
parent
07c7a98269
commit
de2689bddd
@ -42,7 +42,6 @@
|
|||||||
#include <AP_Mission/AP_Mission.h>
|
#include <AP_Mission/AP_Mission.h>
|
||||||
#include <AP_Stats/AP_Stats.h> // statistics library
|
#include <AP_Stats/AP_Stats.h> // statistics library
|
||||||
#include <AP_BattMonitor/AP_BattMonitor.h> // Battery monitor library
|
#include <AP_BattMonitor/AP_BattMonitor.h> // Battery monitor library
|
||||||
#include <AP_Common/AP_FWVersion.h>
|
|
||||||
|
|
||||||
// Configuration
|
// Configuration
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
@ -74,8 +73,6 @@ public:
|
|||||||
|
|
||||||
Tracker(void);
|
Tracker(void);
|
||||||
|
|
||||||
static const AP_FWVersion fwver;
|
|
||||||
|
|
||||||
// HAL::Callbacks implementation.
|
// HAL::Callbacks implementation.
|
||||||
void loop() override;
|
void loop() override;
|
||||||
|
|
||||||
@ -192,7 +189,7 @@ private:
|
|||||||
void log_init(void);
|
void log_init(void);
|
||||||
|
|
||||||
// Parameters.cpp
|
// Parameters.cpp
|
||||||
void load_parameters(void);
|
void load_parameters(void) override;
|
||||||
|
|
||||||
// radio.cpp
|
// radio.cpp
|
||||||
void read_radio();
|
void read_radio();
|
||||||
|
@ -5,16 +5,6 @@ static const StorageAccess wp_storage(StorageManager::StorageMission);
|
|||||||
|
|
||||||
void Tracker::init_ardupilot()
|
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
|
// initialise stats module
|
||||||
stats.init();
|
stats.init();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user