Class SetAccelerationRequest

Inheritance Relationships

Base Type

Class Documentation

class SetAccelerationRequest : public myactuator_rmd::SingleMotorRequest<CommandType::WRITE_ACCELERATION_TO_RAM_AND_ROM>

Request for setting the maximum acceleration/deceleration of the actuator.

Public Functions

SetAccelerationRequest(std::uint32_t const acceleration, AccelerationType const mode)
SetAccelerationRequest() = delete

Class constructor.

Parameters:
  • acceleration[in] The desired acceleration/deceleration in dps with a resolution of 1 dps [100, 60000]

  • mode[in] The mode of the desired acceleration/deceleration to be set

SetAccelerationRequest(SetAccelerationRequest const&) = default
SetAccelerationRequest &operator=(SetAccelerationRequest const&) = default
SetAccelerationRequest(SetAccelerationRequest&&) = default
SetAccelerationRequest &operator=(SetAccelerationRequest&&) = default
std::uint32_t getAcceleration() const noexcept

Get the acceleration.

Returns:

The acceleration in degree per second**2 [100, 60000]

AccelerationType getMode() const noexcept

Get the acceleration mode.

Returns:

The acceleration mode

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