mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-31 10:26:52 +08:00
Bugfix removed conversion from rpm to rad s
This commit is contained in:
@@ -111,8 +111,7 @@ void GZMixingInterfaceWheel::wheelSpeedCallback(const gz::msgs::Actuators &actua
|
|||||||
wheel_encoders_s wheel_encoders{};
|
wheel_encoders_s wheel_encoders{};
|
||||||
|
|
||||||
for (int i = 0; i < actuators.velocity_size(); i++) {
|
for (int i = 0; i < actuators.velocity_size(); i++) {
|
||||||
// Convert from RPM to rad/s
|
wheel_encoders.wheel_speed[i] = (float)actuators.velocity(i);
|
||||||
wheel_encoders.wheel_speed[i] = (float)actuators.velocity(i) * (2.0f * M_PI_F / 60.0f);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (actuators.velocity_size() > 0) {
|
if (actuators.velocity_size() > 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user