frc5687 / 2017-protobot

For prototyping the 2017 robot
5 stars 2 forks source link

Add motion detection to the autoshift logic #144

Open BenBernardCIS opened 7 years ago

BenBernardCIS commented 7 years ago

Right now, we auto-shift based on encoder values...but if the robot is in a pushing contest with wheels spinning, that results in an autoshift when we really shouldn't. We should try to detect reasonable motion (either using isMoving or by checking if our x/y motions exceed a threshold).