倒立振子(台車型)のPID制御について
##
LEGO EV3PID
Python3.8,VScodeVScodeEv3
##
`0`
left_motor = Motor(Port.D) #
right_motor = Motor(Port.A) #
robot = DriveBase(left_motor,right_motor,60,123) #
gyro = GyroSensor(Port.S3) #
while True:
robot.drive(-23*gyro.angle(),0)
###
`drive`mm/s, `0`
`gyro.angle()`
##
P`-23`Phile””
EV3
xcX3v84RxoQ-4GxG32940ukFUIEgYdPy
1dbfe37f7e2e59cc05bb6ac6110f80af