Skip to content

Commit

Permalink
docs: Add comments that command is not working on my RMD X8-Pro V2
Browse files Browse the repository at this point in the history
  • Loading branch information
2b-t committed Nov 20, 2023
1 parent 3900a0e commit 8e30480
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/myactuator_rmd/driver.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,8 @@ namespace myactuator_rmd {
/**\fn getSingleTurnAngle
* \brief
* Read the single-turn angle
* \warning
* This does not seem to give correct values with my X8-PRO V2 actuator!
*
* \return
* The current single-turn angle with a resolution of 0.01 deg
Expand Down
1 change: 1 addition & 0 deletions src/protocol/responses.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ namespace myactuator_rmd {
}

float GetSingleTurnAngleResponse::getAngle() const noexcept {
// This does not seem to give the correct results at least with my motor
auto const angle {static_cast<float>(getAs<std::int16_t>(6))*0.01f};
return angle;
}
Expand Down

0 comments on commit 8e30480

Please sign in to comment.