Class SetVelocityRequest

Inheritance Relationships

Base Type

Class Documentation

class SetVelocityRequest : public myactuator_rmd::SingleMotorRequest<CommandType::SPEED_CLOSED_LOOP_CONTROL>

Request for setting the velocity of the actuator.

Public Functions

SetVelocityRequest(float const speed)
SetVelocityRequest() = delete

Class constructor.

Parameters:

speed[in] The velocity set-point in degree per second

SetVelocityRequest(SetVelocityRequest const&) = default
SetVelocityRequest &operator=(SetVelocityRequest const&) = default
SetVelocityRequest(SetVelocityRequest&&) = default
SetVelocityRequest &operator=(SetVelocityRequest&&) = default
float getSpeed() const noexcept

Get the velocity set-point.

Returns:

The speed for the motion in degree per second

constexpr SingleMotorRequest(std::array<std::uint8_t, 8> const &data)
constexpr SingleMotorRequest() = default
SingleMotorRequest(SingleMotorRequest const&) = default
SingleMotorRequest(SingleMotorRequest&&) = default