Skip to content

Commit fa9722a

Browse files
committed
Issue #22: All motors GetEncoderCounter() return values with same sign
1 parent 13cb3ba commit fa9722a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/kpi_rover_ecu/src/motor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ int Motor::GetEncoderCounter() {
8989
rc_encoder_write(motorNumber_, 0);
9090

9191
MotorSet(setpointRpm_ + kPidOutput);
92-
return kEncoderTicks;
92+
return pid_encoder_ticks;
9393
}
9494

9595
double Motor::GetDC(int entryRPM) { return static_cast<double>(entryRPM) / kMaxRpm; }

0 commit comments

Comments
 (0)