We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 649b750 commit 7106666Copy full SHA for 7106666
src/hardware/Motor/Motor.cpp
@@ -107,8 +107,8 @@ int Motor::setAngle(Angle angle) {
107
// get the raw position
108
const int ticks = pros::c::motor_get_raw_position(m_port, NULL);
109
if (ticks == INT_MAX) return INT_MAX;
110
- // get the number of times the motor rotated
111
- const Angle raw = from_stRot(ticks / 3600.0);
+ // get the number of times the internal motor rotated
+ const Angle raw = from_stRot(ticks / 50.0);
112
// calculate position after using the gear ratio
113
const Angle position = raw * (m_outputVelocity / 3600_rpm);
114
// calculate offset
0 commit comments