Skip to content

Commit

Permalink
Added auto constant file #BESTLG-22
Browse files Browse the repository at this point in the history
  • Loading branch information
MKS2345 committed Oct 23, 2024
1 parent 46711a7 commit ed9e19e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
9 changes: 9 additions & 0 deletions constants/auto.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
TURRET_START_A = 0
TURRET_START_B = 0
GRIPPER_OPEN = 0
BACK_SPEED = 0
WRIST_START = 0
TURRET_ROTATION = 0
WRIST_END = 0
GRIPPER_CLOSE = 0
FWD_SPEED = 0
5 changes: 4 additions & 1 deletion subsystems/wrist.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,18 @@

import constants.wrist


servoTwo = 0

def wristUp():
global servoTwo
servoTwo += constants.wrist.ROTATE_INCREMENT


def wristDown():
global servoTwo
servoTwo -= constants.wrist.ROTATE_INCREMENT


def setWrist(value):
global servoTwo
servoTwo = value

0 comments on commit ed9e19e

Please sign in to comment.