PX4 ROS 2 Interface Library
Library to interface with PX4 from a companion computer using ROS 2
px4_ros2::PeripheralActuatorControls Class Reference

Provides control of one or more extra actuators. More...

#include <px4_ros2/control/peripheral_actuators.hpp>

Public Member Functions

 PeripheralActuatorControls (Context &context)
 
void set (const Eigen::Matrix< float, kNumActuators, 1 > &values)
 
void set (float value, unsigned index=0)
 

Static Public Attributes

static constexpr int kNumActuators = 6
 

Detailed Description

Provides control of one or more extra actuators.

It maps to the 'Peripheral Actuator Set' output functions on the PX4 side. This can be used by a mode independent from the setpoints.

Member Function Documentation

◆ set() [1/2]

void px4_ros2::PeripheralActuatorControls::set ( const Eigen::Matrix< float, kNumActuators, 1 > &  values)

Control actuators

Parameters
valuesrange [-1, 1], NAN=ignore value

◆ set() [2/2]

void px4_ros2::PeripheralActuatorControls::set ( float  value,
unsigned  index = 0 
)

Sets a single actuator output

Parameters
valuerange [-1, 1]
indexrange [0, kNumActuators)

The documentation for this class was generated from the following file: