|
Re: Need help measuring RPM with the american Digital E4P-250 encoders
You could try adding a gyroscope to help with driving straight.
Code:
If gyro_error > 0
motors_right++
If gyro_error < 0
motors_left++
If motors_left + motors_right > desired_speed
all motors--
__________________
Team SHARP
Pittsburgh Regional Champions 2014
Vex Pittsburgh Excellence Award 2014
Vex Pittsburgh Champions 2014
Vex Maryland Champions 2014
Pittsburgh Regional Finalists 2013
Buckeye Regional Finalists 2013
Last edited by Kevin Selavko : 13-02-2014 at 23:30.
|