mirror of https://github.com/ArduPilot/ardupilot
APMrover2: move some common init_ardupilot code up to AP_Vehicle
This commit is contained in:
parent
de2689bddd
commit
692d7abf1c
|
@ -361,7 +361,7 @@ private:
|
|||
Mode *mode_from_mode_num(enum Mode::Number num);
|
||||
|
||||
// Parameters.cpp
|
||||
void load_parameters(void);
|
||||
void load_parameters(void) override;
|
||||
|
||||
// radio.cpp
|
||||
void set_control_channels(void);
|
||||
|
|
|
@ -6,7 +6,6 @@ The init_ardupilot function processes everything we need for an in - air restart
|
|||
*****************************************************************************/
|
||||
|
||||
#include "Rover.h"
|
||||
#include <AP_Common/AP_FWVersion.h>
|
||||
|
||||
static void failsafe_check_static()
|
||||
{
|
||||
|
@ -15,19 +14,6 @@ static void failsafe_check_static()
|
|||
|
||||
void Rover::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();
|
||||
#if STATS_ENABLED == ENABLED
|
||||
// initialise stats module
|
||||
g2.stats.init();
|
||||
|
|
Loading…
Reference in New Issue