Copter: Add WARN_IF_UNUSED

Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
This commit is contained in:
Ryan Friedman 2023-10-30 18:18:46 -06:00 committed by Andrew Tridgell
parent 245149ded4
commit 1fa88bacd9
1 changed files with 2 additions and 2 deletions

View File

@ -14,13 +14,13 @@ public:
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