Revision 02df64f0 joystick/joystick.py

View differences:

joystick/joystick.py
55 55
brake = 1
56 56

  
57 57
# Open serial port
58
ser = serial.Serial('COM8', 9600, timeout=5)
58
ser = serial.Serial('COM12', 9600, timeout=5)
59 59

  
60 60

  
61 61
# -------- Main Program Loop -----------
......
143 143
    pygame.display.flip()
144 144

  
145 145
    sAngle = (-1.0*(steeringAngle - 1))/2.0
146
    sAngle = (sAngle*60)+102
146
    sAngle = (sAngle*60)+95
147 147
    # sAngle = (sAngle*range of motion)+minimum value
148 148
    sAngle = int(sAngle)
149 149
    if sAngle > 180:

Also available in: Unified diff