Skip to content
This repository has been archived by the owner on Sep 6, 2024. It is now read-only.

Commit

Permalink
fix EasyLegacyMotorController.getPosition()
Browse files Browse the repository at this point in the history
Former-commit-id: 353875b981cabb07960093b3c56be623c546e351
Former-commit-id: 957fcda
  • Loading branch information
rgatkinson committed Oct 13, 2015
1 parent f59e0ed commit 5bff912
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ private synchronized void disarm()
@Override public int getMotorCurrentPosition(int motor)
{
this.validateMotor(motor);
byte[] bytes = this.i2cDeviceClient.read(mpMotorRegMotorPower[motor], cbEncoder);
byte[] bytes = this.i2cDeviceClient.read(mpMotorRegCurrentEncoderValue[motor], cbEncoder);
return TypeConversion.byteArrayToInt(bytes);
}

Expand Down

0 comments on commit 5bff912

Please sign in to comment.