Skip to content

Commit

Permalink
camera move
Browse files Browse the repository at this point in the history
  • Loading branch information
devjewel01 committed May 20, 2022
1 parent 5acbedd commit a9321d1
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions servo.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,17 @@ def cameraRight():
def cameraPosition():
servoCameraLeftRight.ChangeDutyCycle(7.5)
servoCameraUpDown.ChangeDutyCycle(6.5)

def cameraUpDown(x):
if x>13:
x = 13
if x<0:
x = 0
servoCameraUpDown.ChangeDutyCycle(x)

def cameraLeftRight(x):
if x>13:
x = 13
if x<0:
x = 0
servoCameraLeftRight.ChangeDutyCycle(x)

0 comments on commit a9321d1

Please sign in to comment.