ardupilot/Rover/AP_ExternalControl_Rover.h
Rhys Mainwaring 23244eda9e Rover: implement external control
Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com>

Rover: update comment in Rover/AP_ExternalControl_Rover.h

Co-authored-by: Nick E <NExton@sypaq.com.au>
2023-10-25 10:05:08 +11:00

27 lines
724 B
C++

/*
external control library for rover
*/
#pragma once
#include <AP_ExternalControl/AP_ExternalControl.h>
#if AP_EXTERNAL_CONTROL_ENABLED
class AP_ExternalControl_Rover : public AP_ExternalControl {
public:
/*
Set linear velocity and yaw rate. Pass NaN for yaw_rate_rads to not control yaw.
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;
private:
/*
Return true if Rover is ready to handle external control data.
Currently checks mode and arm states.
*/
bool ready_for_external_control();
};
#endif // AP_EXTERNAL_CONTROL_ENABLED