Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove class specifier prefixing Location in function declarations #26503

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion libraries/AC_Fence/AC_Fence.h
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ class AC_Fence
uint8_t check();

// returns true if the destination is within fence (used to reject waypoints outside the fence)
bool check_destination_within_fence(const class Location& loc);
bool check_destination_within_fence(const Location& loc);

/// get_breaches - returns bit mask of the fence types that have been breached
uint8_t get_breaches() const { return _breached_fences; }
Expand Down
2 changes: 1 addition & 1 deletion libraries/AP_DAL/AP_DAL.h
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ class AP_DAL {

// get the home location. This is const to prevent any changes to
// home without telling AHRS about the change
const class Location &get_home(void) const {
const Location &get_home(void) const {
return _home;
}

Expand Down
4 changes: 2 additions & 2 deletions libraries/AP_L1_Control/AP_L1_Control.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ class AP_L1_Control : public AP_Navigation {
float turn_distance(float wp_radius) const override;
float turn_distance(float wp_radius, float turn_angle) const override;
float loiter_radius (const float loiter_radius) const override;
void update_waypoint(const class Location &prev_WP, const class Location &next_WP, float dist_min = 0.0f) override;
void update_loiter(const class Location &center_WP, float radius, int8_t loiter_direction) override;
void update_waypoint(const Location &prev_WP, const Location &next_WP, float dist_min = 0.0f) override;
void update_loiter(const Location &center_WP, float radius, int8_t loiter_direction) override;
void update_heading_hold(int32_t navigation_heading_cd) override;
void update_level_flight(void) override;
bool reached_loiter_target(void) override;
Expand Down
4 changes: 2 additions & 2 deletions libraries/AP_Navigation/AP_Navigation.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class AP_Navigation {
// main flight code will call an output function (such as
// nav_roll_cd()) after this function to ask for the new required
// navigation attitude/steering.
virtual void update_waypoint(const class Location &prev_WP, const class Location &next_WP, float dist_min = 0.0f) = 0;
virtual void update_waypoint(const Location &prev_WP, const Location &next_WP, float dist_min = 0.0f) = 0;

// update the internal state of the navigation controller for when
// the vehicle has been commanded to circle about a point. This
Expand All @@ -76,7 +76,7 @@ class AP_Navigation {
// main flight code will call an output function (such as
// nav_roll_cd()) after this function to ask for the new required
// navigation attitude/steering.
virtual void update_loiter(const class Location &center_WP, float radius, int8_t loiter_direction) = 0;
virtual void update_loiter(const Location &center_WP, float radius, int8_t loiter_direction) = 0;

// update the internal state of the navigation controller, given a
// fixed heading. This is the step function for navigation control
Expand Down
Loading