2016-05-27 09:59:22 -03:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <GCS_MAVLink/GCS.h>
|
|
|
|
|
|
|
|
class GCS_MAVLINK_Copter : public GCS_MAVLINK
|
|
|
|
{
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
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;
|
|
|
|
AP_AdvancedFailsafe *get_advanced_failsafe() const 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-11 03:02:52 -03:00
|
|
|
bool set_mode(uint8_t mode) override;
|
|
|
|
|
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;
|
|
|
|
|
|
|
|
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;
|
2018-07-03 22:43:51 -03:00
|
|
|
|
2018-10-13 19:24:43 -03:00
|
|
|
void handle_mount_message(const mavlink_message_t* msg) 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:
|
|
|
|
|
|
|
|
void handleMessage(mavlink_message_t * msg) override;
|
2018-03-20 21:19:42 -03:00
|
|
|
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;
|
2019-02-03 17:42:04 -04:00
|
|
|
void handle_rc_channels_override(const mavlink_message_t *msg) override;
|
2016-05-27 09:59:22 -03:00
|
|
|
bool try_send_message(enum ap_message id) override;
|
|
|
|
|
2016-07-21 09:45:00 -03:00
|
|
|
void packetReceived(const mavlink_status_t &status,
|
|
|
|
mavlink_message_t &msg) override;
|
2018-03-22 05:50:24 -03:00
|
|
|
|
|
|
|
MAV_MODE base_mode() const override;
|
|
|
|
MAV_STATE system_status() 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
|
|
|
|
2016-05-27 09:59:22 -03:00
|
|
|
};
|