Setpoint type for rover throttle and rate control.
More...
#include <px4_ros2/control/setpoint_types/experimental/rover/throttle_rate.hpp>
|
|
| RoverThrottleRateSetpointType (Context &context) |
| |
| Configuration | getConfiguration () override |
| |
| float | desiredUpdateRateHz () override |
| |
| void | update (float throttle_body_x, float yaw_rate_setpoint, std::optional< float > throttle_body_y={}) |
| | Send a rover throttle setpoint and a rover rate setpoint to the flight controller.
|
| |
|
| SetpointBase (Context &context) |
| |
|
std::shared_ptr< SetpointBase > | getSharedPtr () |
| |
|
void | setShouldActivateCallback (const ShouldActivateCB &should_activate_cb) |
| |
|
void | setActive (bool active) |
| |
|
|
using | ShouldActivateCB = std::function< void()> |
| |
|
void | onUpdate () |
| |
Setpoint type for rover throttle and rate control.
◆ desiredUpdateRateHz()
| float px4_ros2::RoverThrottleRateSetpointType::desiredUpdateRateHz |
( |
| ) |
|
|
inlineoverridevirtual |
◆ getConfiguration()
| Configuration px4_ros2::RoverThrottleRateSetpointType::getConfiguration |
( |
| ) |
|
|
overridevirtual |
◆ update()
| void px4_ros2::RoverThrottleRateSetpointType::update |
( |
float |
throttle_body_x, |
|
|
float |
yaw_rate_setpoint, |
|
|
std::optional< float > |
throttle_body_y = {} |
|
) |
| |
Send a rover throttle setpoint and a rover rate setpoint to the flight controller.
- Parameters
-
| throttle_body_x | [-] Throttle setpoint along body X axis. Takes values in [-1 (Backwards), 1 (Forwards)]. |
| yaw_rate_setpoint | [rad/s] Yaw rate setpoint in NED frame. Takes values in [-inf, inf]. |
| throttle_body_y | [-] Mecanum only: Throttle setpoint along body Y axis (Only relevant for mecanum rovers). Takes values in [-1 (Left), 1 (Right)]. |
The documentation for this class was generated from the following file:
- px4_ros2_cpp/include/px4_ros2/control/setpoint_types/experimental/rover/throttle_rate.hpp