kopia lustrzana https://github.com/pimoroni/pimoroni-pico
fix typo in inventor example
rodzic
4f8eb8fd20
commit
ff2bb4f026
|
@ -36,7 +36,7 @@ POS_KD = 0.0022 # Position derivative (D) gain
|
||||||
|
|
||||||
|
|
||||||
# Create a new Inventor2040W and get a motor and encoder from it
|
# Create a new Inventor2040W and get a motor and encoder from it
|
||||||
board = Inventor2040W(motor_rear_ratio=GEAR_RATIO)
|
board = Inventor2040W(motor_gear_ratio=GEAR_RATIO)
|
||||||
m = board.motors[MOTOR_A]
|
m = board.motors[MOTOR_A]
|
||||||
enc = board.encoders[MOTOR_A]
|
enc = board.encoders[MOTOR_A]
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue