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

Commit

Permalink
don't check run mode in isBusy(): more useful, matches ftchq
Browse files Browse the repository at this point in the history
Former-commit-id: 5ed39b78ef17795c0c5f3c69577668ac015fd66e
Former-commit-id: 729000e
  • Loading branch information
rgatkinson committed Nov 27, 2015
1 parent 5805a45 commit 06bf5f4
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -252,9 +252,8 @@ private void deusurpDevices()

int cur = getMotorCurrentPosition(motor);
int tar = getMotorTargetPosition(motor);
RunMode mode = getMotorChannelMode(motor);

return mode==RunMode.RUN_TO_POSITION && (Math.abs(cur - tar) > busyThreshold);
return (Math.abs(cur - tar) > busyThreshold);
}

@Override public synchronized double getMotorPower(int motor)
Expand Down

0 comments on commit 06bf5f4

Please sign in to comment.