Skip to content

Commit

Permalink
AP_ExternalControl: add method set_path_position_tangent_and_curvature
Browse files Browse the repository at this point in the history
Signed-off-by: Rhys Mainwaring <[email protected]>
  • Loading branch information
srmainwaring committed Mar 12, 2024
1 parent 72f40b4 commit da34da0
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion libraries/AP_ExternalControl/AP_ExternalControl.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,15 @@ class AP_ExternalControl
return false;
}

/*
Set the target setpoint for path guidance: the closest position on the
path, the unit tangent to the path, and path curvature and direction.
*/
virtual bool set_path_position_tangent_and_curvature(const Location &position_on_path,
Vector2f unit_path_tangent, const float path_curvature, const bool direction_is_ccw) WARN_IF_UNUSED {
return false;
}

static AP_ExternalControl *get_singleton(void) WARN_IF_UNUSED {
return singleton;
}
Expand All @@ -42,7 +51,6 @@ class AP_ExternalControl
static AP_ExternalControl *singleton;
};


namespace AP
{
AP_ExternalControl *externalcontrol();
Expand Down

0 comments on commit da34da0

Please sign in to comment.