Setpoint type for direct actuator control (servos and/or motors)
More...
#include <px4_ros2/control/setpoint_types/direct_actuators.hpp>
|
| DirectActuatorsSetpointType (Context &context) |
|
Configuration | getConfiguration () override |
|
float | desiredUpdateRateHz () override |
|
void | updateServos (const Eigen::Matrix< float, kMaxNumServos, 1 > &servo_commands) |
|
void | updateMotors (const Eigen::Matrix< float, kMaxNumMotors, 1 > &motor_commands) |
|
| SetpointBase (Context &context) |
|
std::shared_ptr< SetpointBase > | getSharedPtr () |
|
void | setShouldActivateCallback (const ShouldActivateCB &should_activate_cb) |
|
void | setActive (bool active) |
|
|
static constexpr int | kMaxNumMotors = px4_msgs::msg::ActuatorMotors::NUM_CONTROLS |
|
static constexpr int | kMaxNumServos = px4_msgs::msg::ActuatorServos::NUM_CONTROLS |
|
|
using | ShouldActivateCB = std::function< void()> |
|
void | onUpdate () |
|
Setpoint type for direct actuator control (servos and/or motors)
◆ updateMotors()
void px4_ros2::DirectActuatorsSetpointType::updateMotors |
( |
const Eigen::Matrix< float, kMaxNumMotors, 1 > & |
motor_commands | ) |
|
Send motors setpoint
- Parameters
-
motor_commands | range: [-1, 1], where 1 means maximum positive thrust, -1 maximum negative (if not supported by the output, <0 maps to NaN), and NaN maps to disarmed (stop the motors) |
◆ updateServos()
void px4_ros2::DirectActuatorsSetpointType::updateServos |
( |
const Eigen::Matrix< float, kMaxNumServos, 1 > & |
servo_commands | ) |
|
Send servos setpoint
- Parameters
-
servo_commands | range: [-1, 1], where 1 means maximum positive position, -1 maximum negative and NaN maps to disarmed |
The documentation for this class was generated from the following file: