Skip to content

Commit

Permalink
switch back to velo
Browse files Browse the repository at this point in the history
  • Loading branch information
Iris-TheRainbow committed Jun 20, 2024
1 parent 7e64c7f commit 17b9569
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions REVHubInterface/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -727,9 +727,8 @@ def javaMotorEntry(self, motorNumber, moduleNumber, *args):

def javaTargetEntry(self, motorNumber, moduleNumber, *args):
target = int(self.pid_packs[moduleNumber * 4 + motorNumber].Java_entry.get())
self.REVModules[moduleNumber].motors[motorNumber].setTargetPosition(target, 1)
self.REVModules[moduleNumber].motors[motorNumber].setMode(1, 2)
self.REVModules[moduleNumber].motors[motorNumber].setPower(float(1 * 32000))
self.REVModules[moduleNumber].motors[motorNumber].setTargetVelocity(target)
self.REVModules[moduleNumber].motors[motorNumber].setMode(1, 1)
self.repetitiveFunctions = [(lambda: self.send_all_KA())]
self.repetitiveFunctions.append((lambda: self.updateMotorLabels(motorNumber, moduleNumber)))
return True
Expand Down

0 comments on commit 17b9569

Please sign in to comment.