.. _program_listing_file__tmp_ws_src_myactuator_rmd_include_myactuator_rmd_actuator_state_motor_status_3.hpp: Program Listing for File motor_status_3.hpp =========================================== |exhale_lsh| :ref:`Return to documentation for file ` (``/tmp/ws/src/myactuator_rmd/include/myactuator_rmd/actuator_state/motor_status_3.hpp``) .. |exhale_lsh| unicode:: U+021B0 .. UPWARDS ARROW WITH TIP LEFTWARDS .. code-block:: cpp #ifndef MYACTUATOR_RMD__MOTOR_STATUS_3 #define MYACTUATOR_RMD__MOTOR_STATUS_3 #pragma once namespace myactuator_rmd { class MotorStatus3 { public: constexpr MotorStatus3(int const temperature_ = 0, float const current_phase_a_ = 0.0f, float const current_phase_b_ = 0.0f, float const current_phase_c_ = 0.0f) noexcept; MotorStatus3(MotorStatus3 const&) = default; MotorStatus3& operator = (MotorStatus3 const&) = default; MotorStatus3(MotorStatus3&&) = default; MotorStatus3& operator = (MotorStatus3&&) = default; int temperature; float current_phase_a; float current_phase_b; float current_phase_c; }; constexpr MotorStatus3::MotorStatus3(int const temperature_, float const current_phase_a_, float const current_phase_b_, float const current_phase_c_) noexcept : temperature{temperature_}, current_phase_a{current_phase_a_}, current_phase_b{current_phase_b_}, current_phase_c{current_phase_c_} { return; } } #endif // MYACTUATOR_RMD__MOTOR_STATUS_3