Rover: init vehicle capabilities

This commit is contained in:
squilter 2015-07-31 14:14:51 -07:00 committed by Randy Mackay
parent 5f706252fe
commit c77182b748
3 changed files with 12 additions and 0 deletions

View File

@ -498,6 +498,7 @@ private:
void do_set_home(const AP_Mission::Mission_Command& cmd);
void do_digicam_configure(const AP_Mission::Mission_Command& cmd);
void do_digicam_control(const AP_Mission::Mission_Command& cmd);
void init_capabilities(void);
public:
bool print_log_menu(void);

View File

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

View File

@ -210,6 +210,8 @@ void Rover::init_ardupilot()
}
#endif
init_capabilities();
startup_ground();
Log_Write_Startup(TYPE_GROUNDSTART_MSG);