Skip to content

Commit

Permalink
Rover: update for changed signature of set_target_velocity_NED()
Browse files Browse the repository at this point in the history
  • Loading branch information
andyp1per committed Dec 8, 2023
1 parent f7eb6a0 commit 47d66ac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Rover/Rover.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ bool Rover::set_target_location(const Location& target_loc)
}

// set target velocity (for use by scripting)
bool Rover::set_target_velocity_NED(const Vector3f& vel_ned)
bool Rover::set_target_velocity_NED(const Vector3f& vel_ned, bool align_yaw_to_target)
{
// exit if vehicle is not in Guided mode or Auto-Guided mode
if (!control_mode->in_guided_mode()) {
Expand Down
2 changes: 1 addition & 1 deletion Rover/Rover.h
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ class Rover : public AP_Vehicle {
// Rover.cpp
#if AP_SCRIPTING_ENABLED
bool set_target_location(const Location& target_loc) override;
bool set_target_velocity_NED(const Vector3f& vel_ned) override;
bool set_target_velocity_NED(const Vector3f& vel_ned, bool align_yaw_to_target) override;
bool set_steering_and_throttle(float steering, float throttle) override;
bool get_steering_and_throttle(float& steering, float& throttle) override;
// set desired turn rate (degrees/sec) and speed (m/s). Used for scripting
Expand Down

0 comments on commit 47d66ac

Please sign in to comment.