"""
Defines port numbers for motors and sensors.
"""

class Map(object):
    def __init__(self):
        # Joysticks have suffix 'J'
        self.leftJ       = 0
        self.middleJ     = 1
        self.rightJ      = 2

        # Motors have suffix 'M'. All motors use PWM.
        self.frontLeftM  = 2
        self.frontRightM = 1
        self.backLeftM   = 0
        self.backRightM  = 3

        self.beltM       = 9

        # Soleniods
        self.gearSol     = {'in': 0, 'out': 2}

        # Sensors have suffix 'S'. Gyro and sonar use analog in, everything else uses the DIO.
        self.gyroS       = 0
        self.sonicS      = {'left': 1, 'right': 2}

        # LED strip
        self.ledStrip    = {'r': 4, 'g': 5, 'b': 6}

        pass

"""
Defines port numbers for motors and sensors.
"""

class Map(object):
    def __init__(self):
        # Joysticks have suffix 'J'
        self.leftJ       = 0
        self.middleJ     = 1
        self.rightJ      = 2

        # Motors have suffix 'M'. All motors use PWM.
        self.frontLeftM  = 0
        self.frontRightM = 1
        self.backLeftM   = 2
        self.backRightM  = 3

        self.collectorM  = 9

        # Soleniods
        self.gearSol     = {'in': 2, 'out': 0}

        # Sensors have suffix 'S'. Gyro and sonar use analog in, everything else uses the DIO.
        self.gyroS       = 0
        self.sonicS      = {'left': 1, 'right': 2} # pin 4 on both sensors is also connected to the same DIO pin

        # LED strip
        self.ledStrip    = {'r': 4, 'g': 5, 'b': 6}

        pass

Correct mapping