|
Gradual stop without an encoder
Hey guys,
I'm trying to write autonomous code for our practice robot.
It's very simple and all it does is moving forward and shooting.
The problem is that it doesn't have an encoder and when we try to set the chassis' motors to constant power for a certain time the stop is too abrupt.
How can we make the robot drive forward and stop gradually like a PID encoder drive does?
__________________
2016-2017 - Programming Mentor
► Curie Sub-Division Champions with 694, 379 & 1511
2015 - Team Captain & Head of Programming Crew
► Carson Sub-Division Champions with 1325, 20 & 1711
► First ever Israeli team on Einstein
2014 - Team Captain & Head of Programming Crew
2013 - Head of Programming Crew
2012 - Member of Programming Crew
|