team2181 / FRC2016

FRC Team 2181 2016 Robot Deploy Code
0 stars 2 forks source link

TOP PRIORITY - Dart Potentiometer #3

Closed webtekz closed 8 years ago

webtekz commented 8 years ago

Software limits for the Dart need to be implemented, based on potentiometer readings. Reading the potentiometer value can be done with the GetAnalogIn() function called from the Dart's Talon SRX (CANTalon) object, which is declared as dart within the Launcher subsystem. This function returns an integer from 0-1023 depending on position, more info on the CANTalon controller can be found at http://first.wpi.edu/FRC/roborio/release/docs/cpp/classCANTalon.html

The Required bounds are 316 and 966. He wants the speed of the Dart to be decreased when it reaches 50 units away from either bound.

webtekz commented 8 years ago

Resolved by Abi, may need to invert signs for checking input speed