Class GetMotorPowerResponse
Defined in File responses.hpp
Inheritance Relationships
Base Type
public myactuator_rmd::SingleMotorResponse< CommandType::READ_MOTOR_POWER >
(Template Class SingleMotorResponse)
Class Documentation
-
class GetMotorPowerResponse : public myactuator_rmd::SingleMotorResponse<CommandType::READ_MOTOR_POWER>
Response to request for reading the motor model.
Public Functions
-
GetMotorPowerResponse() = delete
-
GetMotorPowerResponse(GetMotorPowerResponse const&) = default
-
GetMotorPowerResponse &operator=(GetMotorPowerResponse const&) = default
-
GetMotorPowerResponse(GetMotorPowerResponse&&) = default
-
GetMotorPowerResponse &operator=(GetMotorPowerResponse&&) = default
-
float getPower() const noexcept
Get the current motor power.
- Returns:
The current motor power in Watt with a resolution of 0.1
-
constexpr SingleMotorResponse(std::array<std::uint8_t, 8> const &data)
-
constexpr SingleMotorResponse() = delete
-
SingleMotorResponse(SingleMotorResponse const&) = default
-
SingleMotorResponse(SingleMotorResponse&&) = default
-
GetMotorPowerResponse() = delete