Auterion App SDK
Auterion SDK is a library that can be used by AuterionOS apps to communicate with the system.
|
Control one or more extra actuators. More...
#include <auterion_sdk/control/common/peripheral_actuator_controls.hpp>
Public Member Functions | |
PeripheralActuatorControls (SDK &sdk) | |
void | set (const Eigen::Matrix< float, kNumActuators, 1 > &values) |
void | set (const float value, const unsigned int index=0) |
Static Public Attributes | |
static constexpr int | kNumActuators = 6 |
Control one or more extra actuators.
It maps to the 'Peripheral Actuator Set' output functions on the PX4 side.
void auterion::PeripheralActuatorControls::set | ( | const Eigen::Matrix< float, kNumActuators, 1 > & | values | ) |
Control actuators
values | value for each actuator, range [-1, 1], NAN=ignore value |
void auterion::PeripheralActuatorControls::set | ( | const float | value, |
const unsigned int | index = 0 |
||
) |
Sets a single actuator output
value | value in range [-1, 1] |
index | actuator index who's value to set, range [0, kNumActuators) |