Class GetAccelerationResponse

Inheritance Relationships

Base Type

Class Documentation

class GetAccelerationResponse : public myactuator_rmd::SingleMotorResponse<CommandType::READ_ACCELERATION>

Response to request for reading the motor model.

Public Functions

GetAccelerationResponse() = delete
GetAccelerationResponse(GetAccelerationResponse const&) = default
GetAccelerationResponse &operator=(GetAccelerationResponse const&) = default
GetAccelerationResponse(GetAccelerationResponse&&) = default
GetAccelerationResponse &operator=(GetAccelerationResponse&&) = default
std::int32_t getAcceleration() const noexcept

Get the current acceleration.

Returns:

The current acceleration with a resolution of 1 dps

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