Skip to content

Commit

Permalink
Copter: Add WARN_IF_UNUSED
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Friedman <[email protected]>
  • Loading branch information
Ryanf55 authored and tridge committed Nov 1, 2023
1 parent 245149d commit 1fa88ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ArduCopter/AP_ExternalControl_Copter.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ class AP_ExternalControl_Copter : public AP_ExternalControl {
Velocity is in earth frame, NED [m/s].
Yaw is in earth frame, NED [rad/s].
*/
bool set_linear_velocity_and_yaw_rate(const Vector3f &linear_velocity, float yaw_rate_rads) override;
bool set_linear_velocity_and_yaw_rate(const Vector3f &linear_velocity, float yaw_rate_rads) override WARN_IF_UNUSED;
private:
/*
Return true if Copter is ready to handle external control data.
Currently checks mode and arm states.
*/
bool ready_for_external_control();
bool ready_for_external_control() WARN_IF_UNUSED;
};

#endif // AP_EXTERNAL_CONTROL_ENABLED

0 comments on commit 1fa88ba

Please sign in to comment.