2016-05-27 09:59:22 -03:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <GCS_MAVLink/GCS.h>
|
|
|
|
|
|
|
|
class GCS_MAVLINK_Copter : public GCS_MAVLINK
|
|
|
|
{
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
2019-06-18 07:38:00 -03:00
|
|
|
using GCS_MAVLINK::GCS_MAVLINK;
|
|
|
|
|
2016-05-27 09:59:22 -03:00
|
|
|
protected:
|
|
|
|
|
2016-05-29 20:54:36 -03:00
|
|
|
uint32_t telem_delay() const override;
|
|
|
|
|
2017-07-25 03:36:17 -03:00
|
|
|
MAV_RESULT handle_flight_termination(const mavlink_command_long_t &packet) override;
|
2017-07-07 23:51:10 -03:00
|
|
|
|
2017-07-12 04:21:28 -03:00
|
|
|
uint8_t sysid_my_gcs() const override;
|
2018-12-13 19:12:42 -04:00
|
|
|
bool sysid_enforce() const override;
|
2017-07-12 04:21:28 -03:00
|
|
|
|
2017-08-19 08:23:28 -03:00
|
|
|
bool params_ready() const override;
|
|
|
|
void send_banner() override;
|
|
|
|
|
2018-03-17 06:12:57 -03:00
|
|
|
MAV_RESULT _handle_command_preflight_calibration(const mavlink_command_long_t &packet) override;
|
|
|
|
|
2018-05-11 08:59:05 -03:00
|
|
|
void send_position_target_global_int() override;
|
2019-03-28 06:42:26 -03:00
|
|
|
void send_position_target_local_ned() override;
|
2018-05-11 08:59:05 -03:00
|
|
|
|
2018-10-13 19:24:43 -03:00
|
|
|
MAV_RESULT handle_command_do_set_roi(const Location &roi_loc) override;
|
2019-10-04 06:08:35 -03:00
|
|
|
MAV_RESULT handle_preflight_reboot(const mavlink_command_long_t &packet) override;
|
2018-10-13 19:24:43 -03:00
|
|
|
MAV_RESULT handle_command_mount(const mavlink_command_long_t &packet) override;
|
2018-07-03 22:43:51 -03:00
|
|
|
MAV_RESULT handle_command_int_packet(const mavlink_command_int_t &packet) override;
|
2018-07-03 23:16:58 -03:00
|
|
|
MAV_RESULT handle_command_long_packet(const mavlink_command_long_t &packet) override;
|
2020-06-30 17:48:11 -03:00
|
|
|
MAV_RESULT handle_command_int_do_reposition(const mavlink_command_int_t &packet);
|
2018-07-03 22:43:51 -03:00
|
|
|
|
2019-04-30 07:22:50 -03:00
|
|
|
void handle_mount_message(const mavlink_message_t &msg) override;
|
2018-10-13 19:24:43 -03:00
|
|
|
|
2019-05-31 08:02:12 -03:00
|
|
|
void handle_landing_target(const mavlink_landing_target_t &packet, uint32_t timestamp_ms) override;
|
|
|
|
|
2018-05-29 21:47:08 -03:00
|
|
|
bool set_home_to_current_location(bool lock) override WARN_IF_UNUSED;
|
|
|
|
bool set_home(const Location& loc, bool lock) override WARN_IF_UNUSED;
|
2018-05-04 21:10:00 -03:00
|
|
|
void send_nav_controller_output() const override;
|
2018-03-28 21:51:26 -03:00
|
|
|
uint64_t capabilities() const override;
|
2018-07-05 21:56:43 -03:00
|
|
|
|
2019-03-14 19:27:34 -03:00
|
|
|
virtual MAV_VTOL_STATE vtol_state() const override { return MAV_VTOL_STATE_MC; };
|
|
|
|
virtual MAV_LANDED_STATE landed_state() const override;
|
2018-04-30 06:50:04 -03:00
|
|
|
|
2016-05-27 09:59:22 -03:00
|
|
|
private:
|
|
|
|
|
2019-04-30 07:22:50 -03:00
|
|
|
void handleMessage(const mavlink_message_t &msg) override;
|
|
|
|
void handle_command_ack(const mavlink_message_t &msg) override;
|
2016-05-27 09:59:22 -03:00
|
|
|
bool handle_guided_request(AP_Mission::Mission_Command &cmd) override;
|
|
|
|
void handle_change_alt_request(AP_Mission::Mission_Command &cmd) override;
|
|
|
|
bool try_send_message(enum ap_message id) override;
|
|
|
|
|
2016-07-21 09:45:00 -03:00
|
|
|
void packetReceived(const mavlink_status_t &status,
|
2019-04-30 07:22:50 -03:00
|
|
|
const mavlink_message_t &msg) override;
|
2018-03-22 05:50:24 -03:00
|
|
|
|
|
|
|
MAV_MODE base_mode() const override;
|
2019-11-25 22:46:20 -04:00
|
|
|
MAV_STATE vehicle_system_status() const override;
|
2017-11-20 02:30:39 -04:00
|
|
|
|
2020-11-25 00:28:26 -04:00
|
|
|
float vfr_hud_airspeed() const override;
|
2017-11-20 02:30:39 -04:00
|
|
|
int16_t vfr_hud_throttle() const override;
|
2018-11-05 21:04:00 -04:00
|
|
|
float vfr_hud_alt() const override;
|
2017-11-20 02:30:39 -04:00
|
|
|
|
2019-02-28 19:32:26 -04:00
|
|
|
void send_pid_tuning() override;
|
2018-11-05 21:04:00 -04:00
|
|
|
|
2020-07-24 05:40:49 -03:00
|
|
|
void send_winch_status() const override;
|
2020-11-25 00:28:26 -04:00
|
|
|
|
|
|
|
void send_wind() const;
|
2016-05-27 09:59:22 -03:00
|
|
|
};
|