RaspberryPi/Hardware/TwoMotorDriver.py
def Turn(self, angle):
        '''
        Accepts a degree between -90 to 90, if Angle < 0, then turn left, if Angle > 0, then turn right
        :param angle:
        :return:
        '''
        if angle < 0:  # Left Turn
            self.TurnLeft(-angle)  # Make negative angle positive
        elif (angle > 0):  # Right turn
            self.TurnRight(angle)
        elif (angle == 0):  # Stop --> Center steer
            self.ResetSteer()
            print("Steer CENTER")

        Accepts a degree between -90 to 90, if Angle < 0, then turn left, if Angle > 0, then turn right
        :param angle:
        :return:
        
Accepts a degree between -90 to 90, if Angle < 0, then turn left, if Angle > 0, then turn right
Accepts a degree between - 90 to 90 if Angle < 0 then turn left if Angle > 0 then turn right
def Turn(self, angle):
        if angle < 0:  
            self.TurnLeft(-angle)  
        elif (angle > 0):  
            self.TurnRight(angle)
        elif (angle == 0):  
            self.ResetSteer()
            print("Steer CENTER")
def Turn ( self , angle ) : if angle < 0 : self . TurnLeft ( - angle ) elif ( angle > 0 ) : self . TurnRight ( angle ) elif ( angle == 0 ) : self . ResetSteer ( ) print ( "Steer CENTER" )
Accepts a degree between -90 to 90, if Angle < 0, then turn left, if Angle > 0, then turn right
Accepts a degree between - 90 to 90 if Angle < 0 then turn left if Angle > 0 then turn right
'''
        Accepts a degree between -90 to 90, if Angle < 0, then turn left, if Angle > 0, then turn right
        :param angle:
        :return:
        ''' # Left Turn # Make negative angle positive # Right turn # Stop --> Center steer
None
self
angle
None