Team612 / 612-2017

Chantilly Robotics Team 612 robot code repository for 2017 game FIRST Steamworks
GNU General Public License v3.0
4 stars 4 forks source link

Update systems check command #61

Closed Ahmad-Bamba closed 7 years ago

Ahmad-Bamba commented 7 years ago

We've added quite a few more talons since this was written. Off the top of my head we now have 2 shooters, 6 drivetrain motors, 2 intake motors, and most likely two climber motors. The systems check needs to run all of these motors individually forwards and backwards for 2 seconds.

It may be best to set them to kThrottle (the mode that allows you to set them as -1, 1) mode briefly before setting them back to the mode they were originally in.

Also, encoder test should take in a Talon instead of an encoder and should do this

whatever_talon->Set(0.5);
std::cout << "Encoder test: " << whatever_talon->GetAnalogIn() << std::endl;

Which will print the value of the encoder connected to that talon. There is an encoder on every motor, but you probably want to only run an encoder test for the two middle talons on the drivetrain and the shooter.