Skip to content

Commit a1ec6ac

Browse files
authored
Update coderbot.py
1 parent 94e2c76 commit a1ec6ac

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

coderbot.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -93,12 +93,11 @@ class CoderBot(object):
9393
def __init__(self, motor_trim_factor=1.0, encoder=True):
9494
try:
9595
self._mpu = mpu.AccelGyroMag()
96-
self.GPIOS = GPIO_CODERBOT_V_5()
9796
logging.info("MPU available")
9897
except:
9998
logging.info("MPU not available")
100-
self.GPIOS = GPIO_CODERBOT_V_4()
10199

100+
self.GPIOS = GPIO_CODERBOT_V_5()
102101
self._pin_out = [self.GPIOS.PIN_LEFT_FORWARD, self.GPIOS.PIN_RIGHT_FORWARD, self.GPIOS.PIN_LEFT_BACKWARD, self.GPIOS.PIN_RIGHT_BACKWARD, self.GPIOS.PIN_SERVO_1, self.GPIOS.PIN_SERVO_2]
103102
self.pi = pigpio.pi('localhost')
104103
self.pi.set_mode(self.GPIOS.PIN_PUSHBUTTON, pigpio.INPUT)

0 commit comments

Comments
 (0)