2016-06-08 01:49:10 -03:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <GCS_MAVLink/GCS.h>
|
|
|
|
|
2017-02-03 17:33:27 -04:00
|
|
|
class GCS_MAVLINK_Sub : public GCS_MAVLINK {
|
2016-06-08 01:49:10 -03:00
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
void data_stream_send(void) override;
|
|
|
|
|
|
|
|
protected:
|
|
|
|
|
2017-02-03 17:33:27 -04:00
|
|
|
uint32_t telem_delay() const override {
|
|
|
|
return 0;
|
|
|
|
};
|
2016-06-08 01:49:10 -03:00
|
|
|
|
|
|
|
private:
|
|
|
|
|
|
|
|
void handleMessage(mavlink_message_t * msg) override;
|
|
|
|
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;
|
|
|
|
|
|
|
|
};
|