mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
Tracker: init vehicle capabilities
This commit is contained in:
parent
aa4a7a0b28
commit
d99c85c1fe
@ -244,6 +244,7 @@ private:
|
||||
void tracking_manual_control(const mavlink_manual_control_t &msg);
|
||||
void update_armed_disarmed();
|
||||
void gcs_send_text_fmt(const prog_char_t *fmt, ...);
|
||||
void init_capabilities(void);
|
||||
|
||||
public:
|
||||
void mavlink_snoop(const mavlink_message_t* msg);
|
||||
|
8
AntennaTracker/capabilities.cpp
Normal file
8
AntennaTracker/capabilities.cpp
Normal file
@ -0,0 +1,8 @@
|
||||
// -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*-
|
||||
|
||||
#include "Tracker.h"
|
||||
|
||||
void Tracker::init_capabilities(void)
|
||||
{
|
||||
hal.util->set_capabilities(MAV_PROTOCOL_CAPABILITY_PARAM_FLOAT);
|
||||
}
|
@ -102,6 +102,8 @@ void Tracker::init_tracker()
|
||||
get_home_eeprom(current_loc);
|
||||
}
|
||||
|
||||
init_capabilities();
|
||||
|
||||
gcs_send_text_P(SEVERITY_LOW,PSTR("\nReady to track."));
|
||||
hal.scheduler->delay(1000); // Why????
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user