Class GetSingleTurnEncoderPositionResponse

Inheritance Relationships

Base Type

Class Documentation

class GetSingleTurnEncoderPositionResponse : public myactuator_rmd::SingleMotorResponse<CommandType::READ_SINGLE_TURN_ENCODER>

Response to request for reading a single-turn encoder position.

Public Functions

GetSingleTurnEncoderPositionResponse() = delete
GetSingleTurnEncoderPositionResponse(GetSingleTurnEncoderPositionResponse const&) = default
GetSingleTurnEncoderPositionResponse &operator=(GetSingleTurnEncoderPositionResponse const&) = default
GetSingleTurnEncoderPositionResponse(GetSingleTurnEncoderPositionResponse&&) = default
GetSingleTurnEncoderPositionResponse &operator=(GetSingleTurnEncoderPositionResponse&&) = default
std::int16_t getPosition() const noexcept

Get the encoder position.

Returns:

The current encoder position

std::int16_t getRawPosition() const noexcept

Get the encoder raw position.

Returns:

The current raw encoder position

std::int16_t getOffset() const noexcept

Get the encoder position offset.

Returns:

The current encoder position offset

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