AP_ExternalControl: 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:30 -06:00 committed by Andrew Tridgell
parent 24db18db32
commit 245149ded4

View File

@ -20,13 +20,11 @@ public:
Velocity is in earth frame, NED [m/s]. Velocity is in earth frame, NED [m/s].
Yaw is in earth frame, NED [rad/s]. Yaw is in earth frame, NED [rad/s].
*/ */
virtual bool set_linear_velocity_and_yaw_rate(const Vector3f &linear_velocity, float yaw_rate_rads) virtual bool set_linear_velocity_and_yaw_rate(const Vector3f &linear_velocity, float yaw_rate_rads) WARN_IF_UNUSED {
{
return false; return false;
} }
static AP_ExternalControl *get_singleton(void) static AP_ExternalControl *get_singleton(void) WARN_IF_UNUSED {
{
return singleton; return singleton;
} }