Skip to content

Commit

Permalink
refactor: Change name of motor status in ostream operator
Browse files Browse the repository at this point in the history
  • Loading branch information
2b-t committed Feb 17, 2024
1 parent 7bd8dc6 commit 08480ba
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/myactuator_rmd/io.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
#include <ostream>

#include "myactuator_rmd/actuator_state/error_code.hpp"
#include "myactuator_rmd/actuator_state/feedback.hpp"
#include "myactuator_rmd/actuator_state/gains.hpp"
#include "myactuator_rmd/actuator_state/motor_status_1.hpp"
#include "myactuator_rmd/actuator_state/motor_status_2.hpp"
Expand Down Expand Up @@ -68,8 +67,9 @@ namespace myactuator_rmd {
return os;
}

inline std::ostream& operator << (std::ostream& os, Feedback const& f) noexcept {
os << "temperature: " << f.temperature << ", current: " << f.current << ", shaft speed: " << f.shaft_speed << ", shaft angle: " << f.shaft_angle;
inline std::ostream& operator << (std::ostream& os, MotorStatus2 const& motor_status) noexcept {
os << "temperature: " << motor_status.temperature << ", current: " << motor_status.current <<
", shaft speed: " << motor_status.shaft_speed << ", shaft angle: " << motor_status.shaft_angle;
return os;
}

Expand Down

0 comments on commit 08480ba

Please sign in to comment.