Program Listing for File motor_status_2.hpp

Return to documentation for file (/tmp/ws/src/myactuator_rmd/include/myactuator_rmd/actuator_state/motor_status_2.hpp)

#ifndef MYACTUATOR_RMD__MOTOR_STATUS_2
#define MYACTUATOR_RMD__MOTOR_STATUS_2
#pragma once


namespace myactuator_rmd {

  class MotorStatus2 {
    public:
      constexpr MotorStatus2(int const temperature_ = 0, float const current_ = 0.0f, float const shaft_speed_ = 0.0f, float const shaft_angle_ = 0.0f) noexcept;
      MotorStatus2(MotorStatus2 const&) = default;
      MotorStatus2& operator = (MotorStatus2 const&) = default;
      MotorStatus2(MotorStatus2&&) = default;
      MotorStatus2& operator = (MotorStatus2&&) = default;

      int temperature;
      float current;
      float shaft_speed;
      float shaft_angle;
  };

  constexpr MotorStatus2::MotorStatus2(int const temperature_, float const current_, float const shaft_speed_, float const shaft_angle_) noexcept
  : temperature{temperature_}, current{current_}, shaft_speed{shaft_speed_}, shaft_angle{shaft_angle_} {
    return;
  }

}

#endif // MYACTUATOR_RMD__MOTOR_STATUS_2