Skip to content

Commit

Permalink
GCS_MAVLink: move sysid_my_gcs to be public
Browse files Browse the repository at this point in the history
  • Loading branch information
bugobliterator committed Sep 14, 2023
1 parent 12ac07b commit 2b53793
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 2 additions & 1 deletion libraries/GCS_MAVLink/GCS.h
Original file line number Diff line number Diff line change
Expand Up @@ -1144,9 +1144,10 @@ class GCS
void enable_high_latency_connections(bool enabled);
#endif // HAL_HIGH_LATENCY2_ENABLED

virtual uint8_t sysid_this_mav() const = 0;

protected:

virtual uint8_t sysid_this_mav() const = 0;

virtual GCS_MAVLINK *new_gcs_mavlink_backend(GCS_MAVLINK_Parameters &params,
AP_HAL::UARTDriver &uart) = 0;
Expand Down
3 changes: 1 addition & 2 deletions libraries/GCS_MAVLink/GCS_Dummy.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,10 @@ class GCS_MAVLINK_Dummy : public GCS_MAVLINK
void handleMessage(const mavlink_message_t &msg) override {}
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:

uint8_t sysid_my_gcs() const override { return 1; }

// dummy information:
MAV_MODE base_mode() const override { return (MAV_MODE)MAV_MODE_FLAG_CUSTOM_MODE_ENABLED; }
MAV_STATE vehicle_system_status() const override { return MAV_STATE_CALIBRATING; }
Expand Down

0 comments on commit 2b53793

Please sign in to comment.