Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions controller/hardware/actuator/motor/ev3-large-motor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ void EV3LargeMotor::forward(int32_t rotation)
return;
}

float speed = m_motor_speed / 1000;
float speed = m_motor_speed / 1000.0;
drive_motor(speed, rotation);
}

Expand All @@ -65,7 +65,7 @@ void EV3LargeMotor::backward(int32_t rotation)
return;
}

float speed = m_motor_speed / 1000;
float speed = m_motor_speed / 1000.0;
drive_motor(-speed, -rotation);
}

Expand Down