def __init__(self):
self.motor1 = Motor(24, 27)
self.motor1_enable = OutputDevice(5, initial_value=1)
# motor2 = Motor(6, 22)
self.motor2 = Motor(22, 6)
self.motor2_enable = OutputDevice(17, initial_value=1)
self.motor3 = Motor(23, 16)
self.motor3_enable = OutputDevice(12, initial_value=1)
self.motor4 = Motor(13, 18)
self.motor4_enable = OutputDevice(25, initial_value=1)
self.motors = (self.motor1,
self.motor2,
self.motor3,
self.motor4)
self.motors_enable = (self.motor1_enable,
self.motor2_enable,
self.motor3_enable,
self.motor4_enable)
评论列表
文章目录