diff --git a/REVHubInterface/__main__.py b/REVHubInterface/__main__.py index a5cc912..233fa93 100644 --- a/REVHubInterface/__main__.py +++ b/REVHubInterface/__main__.py @@ -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