mirror of
https://github.com/TimeCrafters/CenterStage
synced 2025-12-15 16:52:35 +00:00
WIP: RevHubTestSuite: Fixed not correctly setting initial encoder position.
This commit is contained in:
@@ -124,10 +124,11 @@ public class RevHubTestSuiteMotorTestsState extends RevTestSuiteTestState {
|
||||
|
||||
if (setInitialValue) {
|
||||
setInitialValue = false;
|
||||
motor.resetEncoder();
|
||||
|
||||
initialValue = motor.getCurrentPosition();
|
||||
lastMonitorTime = runTime();
|
||||
|
||||
motor.resetEncoder();
|
||||
motor.motorEx.setPower(forward ? 0.5 : -0.5);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user