Plane: init vehicle capabilities

This commit is contained in:
squilter 2015-07-31 15:39:36 -07:00 committed by Randy Mackay
parent 328332d6c0
commit 7c575b251a
3 changed files with 12 additions and 0 deletions

View File

@ -914,6 +914,7 @@ private:
void log_init();
uint32_t millis() const;
uint32_t micros() const;
void init_capabilities(void);
public:
void mavlink_delay_cb();

View File

@ -0,0 +1,9 @@
// -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*-
#include "Plane.h"
void Plane::init_capabilities(void)
{
hal.util->set_capabilities(MAV_PROTOCOL_CAPABILITY_MISSION_FLOAT);
hal.util->set_capabilities(MAV_PROTOCOL_CAPABILITY_PARAM_FLOAT);
}

View File

@ -235,6 +235,8 @@ void Plane::init_ardupilot()
}
#endif // CLI_ENABLED
init_capabilities();
startup_ground();
Log_Write_Startup(TYPE_GROUNDSTART_MSG);