Skip to content

Commit

Permalink
build correction
Browse files Browse the repository at this point in the history
  • Loading branch information
Astik-2002 committed Apr 8, 2024
1 parent a7db178 commit 5f32d70
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions ArduCopter/AP_ExternalControl_Copter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,13 @@ bool AP_ExternalControl_Copter::set_linear_velocity_and_yaw_rate(const Vector3f
Sets the target orientation, angular velocity, angular acceleration and desired thrust
in body frame
*/
bool set_angular_goals(const Quaternion &orientation, const Vector3f &angular_velocity, const Vector3f &angular_acceleration, const float &thrust)
bool AP_ExternalControl_Copter::set_angular_goals(const Quaternion &orientation, const Vector3f &angular_velocity, const Vector3f &angular_acceleration, const float &thrust)
{
if (!ready_for_external_control()) {
return false
return false;
}
copter.mode_guided.set_angle(orientation, angular_velocity, angular_acceleration, thrust, true)
copter.mode_guided.set_angle(orientation, angular_velocity, angular_acceleration, thrust, true);
return true;
}

bool AP_ExternalControl_Copter::ready_for_external_control()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ module custom_msgs {

@verbatim (language="comment", text="Thrust represented as a single floating-point number. \
It describes the magnitude of the thrust force.")
floatgit thrust;
float thrust;
};
};
};

0 comments on commit 5f32d70

Please sign in to comment.