frc5687 / 2018-robot

Code for 5687's 2018 competition robot Greta and Jitterbug
8 stars 2 forks source link

Calibrate Servo Setpoints #235

Closed JCharante closed 6 years ago

JCharante commented 6 years ago

Calibrated new servo for use on Protobot. Note that due to geometry changes the value for "bottom" is more than for "up."

Tested on the bot. Thanks Julina, you're the best.

BenBernardCIS commented 6 years ago

Hey guys....when geometry changes cause code logic to stop making sense, it's best to fix the logic right then. We don't want to get confused by this later when w're frantically fixing something at an event!

JCharante commented 6 years ago

It makes perfect sense. When we want the servo up we send 0.2, when we want it down we send 0.87. I suppose we could add a comment to say that a higher value leads to the pointy thing on the end of the servo being lower and a lower value leads to it being higher.