Skip to content

Commit

Permalink
Rover: 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 1fa88ba commit 8f130f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Rover/AP_ExternalControl_Rover.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ class AP_ExternalControl_Rover : 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 Rover 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 8f130f9

Please sign in to comment.