Skip to content

Commit

Permalink
Bugfix removed conversion from rpm to rad s
Browse files Browse the repository at this point in the history
  • Loading branch information
PerFrivik authored and MaEtUgR committed Feb 6, 2024
1 parent 17d55dd commit 1917c13
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/modules/simulation/gz_bridge/GZMixingInterfaceWheel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,7 @@ void GZMixingInterfaceWheel::wheelSpeedCallback(const gz::msgs::Actuators &actua
wheel_encoders_s wheel_encoders{};

for (int i = 0; i < actuators.velocity_size(); i++) {
// Convert from RPM to rad/s
wheel_encoders.wheel_speed[i] = (float)actuators.velocity(i) * (2.0f * M_PI_F / 60.0f);
wheel_encoders.wheel_speed[i] = (float)actuators.velocity(i);
}

if (actuators.velocity_size() > 0) {
Expand Down

0 comments on commit 1917c13

Please sign in to comment.