mirror of https://github.com/ArduPilot/ardupilot
Plane: init vehicle capabilities
This commit is contained in:
parent
328332d6c0
commit
7c575b251a
|
@ -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();
|
||||
|
|
|
@ -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);
|
||||
}
|
|
@ -235,6 +235,8 @@ void Plane::init_ardupilot()
|
|||
}
|
||||
#endif // CLI_ENABLED
|
||||
|
||||
init_capabilities();
|
||||
|
||||
startup_ground();
|
||||
Log_Write_Startup(TYPE_GROUNDSTART_MSG);
|
||||
|
||||
|
|
Loading…
Reference in New Issue