kendmaclean / gears_pybricks

Other
3 stars 3 forks source link

Line following in micropython #10

Open kendmaclean opened 3 years ago

kendmaclean commented 3 years ago

From FLL Challenge FB page:

The pybricks drivebase uses two PID controllers (written in C) to manage the drive motors. They do a great job at driving straight and turning smoothly using odometry. But if you don’t understand what they’re up to, they can really get in your way when trying to make a line follower. Have a look at this discussion thread on pybricks support pybricks/support#18

kendmaclean commented 3 years ago

gear_pybricks does not implement these PID controllers, so Micropython code that looks like it can run on gears_pybricks will not run correctly on EV3

kendmaclean commented 3 years ago

see drive command distance_control

The traveled distance and drive speed are controlled by a PID controller. You can use this attribute to change its settings. See The Control Class for an overview of available methods.

heading_control

The robot turn angle and turn rate are controlled by a PID controller. You can use this attribute to change its settings. See The Control Class for an overview of available methods.