Project

General

Profile

Revision 02df64f0

ID02df64f076cfabdc1177e1613cd3bb28decf4945
Parent 750e8795
Child 347a6e5d

Added by Matthew Sebek over 2 years ago

Made RCBuggyMega.ino more modular...slightly.

It needs more work. like a good bit more work. And then verification that
the more work actually worked.

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