Skip to content

Commit

Permalink
GCS_MAVLink: provide and use base-method implementation for guided mo…
Browse files Browse the repository at this point in the history
…de request
  • Loading branch information
peterbarker authored and tridge committed Feb 6, 2024
1 parent 95661bb commit f145703
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion libraries/GCS_MAVLink/GCS.h
Original file line number Diff line number Diff line change
Expand Up @@ -1014,7 +1014,7 @@ class GCS_MAVLINK

void send_distance_sensor(const class AP_RangeFinder_Backend *sensor, const uint8_t instance) const;

virtual bool handle_guided_request(AP_Mission::Mission_Command &cmd) = 0;
virtual bool handle_guided_request(AP_Mission::Mission_Command &cmd) { return false; };
virtual void handle_change_alt_request(AP_Mission::Mission_Command &cmd) {};
void handle_common_mission_message(const mavlink_message_t &msg);

Expand Down
1 change: 0 additions & 1 deletion libraries/GCS_MAVLink/GCS_Dummy.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ class GCS_MAVLINK_Dummy : public GCS_MAVLINK

uint32_t telem_delay() const override { return 0; }
bool try_send_message(enum ap_message id) override { return true; }
bool handle_guided_request(AP_Mission::Mission_Command &cmd) override { return true; }
uint8_t sysid_my_gcs() const override { return 1; }

protected:
Expand Down

0 comments on commit f145703

Please sign in to comment.