Setpoint type for direct actuator control (servos and/or motors)
More...
#include <px4_ros2/control/setpoint_types/direct_actuators.hpp>
|
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)
◆ desiredUpdateRateHz()
float px4_ros2::DirectActuatorsSetpointType::desiredUpdateRateHz |
( |
| ) |
|
|
inlineoverridevirtual |
◆ getConfiguration()
Configuration px4_ros2::DirectActuatorsSetpointType::getConfiguration |
( |
| ) |
|
|
overridevirtual |
◆ 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: