CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
Ardupilot

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.

GitHub Repository: Ardupilot/ardupilot
Path: blob/master/AntennaTracker/GCS_MAVLink_Tracker.h
Views: 1798
1
#pragma once
2
3
#include <GCS_MAVLink/GCS.h>
4
5
class GCS_MAVLINK_Tracker : public GCS_MAVLINK
6
{
7
8
public:
9
10
using GCS_MAVLINK::GCS_MAVLINK;
11
12
uint8_t sysid_my_gcs() const override;
13
14
protected:
15
16
// telem_delay is not used by Tracker but is pure virtual, thus
17
// this implementation. it probably *should* be used by Tracker,
18
// as currently Tracker may brick XBees
19
uint32_t telem_delay() const override { return 0; }
20
21
22
MAV_RESULT handle_command_component_arm_disarm(const mavlink_command_int_t &packet) override;
23
MAV_RESULT _handle_command_preflight_calibration_baro(const mavlink_message_t &msg) override;
24
MAV_RESULT handle_command_int_packet(const mavlink_command_int_t &packet, const mavlink_message_t &msg) override;
25
26
int32_t global_position_int_relative_alt() const override {
27
return 0; // what if we have been picked up and carried somewhere?
28
}
29
30
void send_nav_controller_output() const override;
31
void send_pid_tuning() override;
32
33
// Send the mode with the given index (not mode number!) return the total number of modes
34
// Index starts at 1
35
uint8_t send_available_mode(uint8_t index) const override;
36
37
private:
38
39
void packetReceived(const mavlink_status_t &status, const mavlink_message_t &msg) override;
40
void mavlink_check_target(const mavlink_message_t &msg);
41
void handle_message(const mavlink_message_t &msg) override;
42
void handle_message_mission_write_partial_list(const mavlink_message_t &msg);
43
void handle_message_mission_item(const mavlink_message_t &msg);
44
void handle_message_manual_control(const mavlink_message_t &msg);
45
void handle_message_global_position_int(const mavlink_message_t &msg);
46
void handle_message_scaled_pressure(const mavlink_message_t &msg);
47
void handle_set_attitude_target(const mavlink_message_t &msg);
48
49
void send_global_position_int() override;
50
51
MAV_MODE base_mode() const override;
52
MAV_STATE vehicle_system_status() const override;
53
54
bool waypoint_receiving;
55
};
56
57