team3130 / Robot-2014

The code for the 2014 robot
4 stars 0 forks source link

Refactor the JoystickStopperWinch class #8

Closed kyraha closed 10 years ago

kyraha commented 10 years ago

Description

The implementation of the class JoystickStopperWinch is not complete. It needs finishing it up. Please follow the logic that is already in the code and make it work. The new convention is to store the encoder's PPR (pulses per revolution) into the Robot's preferences. The values can be 256 or 128 or 360 (see the encoder's manual). You'll also have to implement logic if PPR=0 that means that the encoder is disabled (e.g. not installed or damaged in action). In that case the functionality should degrade gracefully but still keep working as much as possible. The magic number 114.53 pulses per inch was found experimentally with a 256ppr encoder.

Acceptance criteria

The two modes "smart" and "dumb" should work similarly from the driver's perspective, maybe with different precision or additional efforts but with the same interface concepts.

kyraha commented 10 years ago

A manual override for the HIGH position has been added but is not intended to be used unless the automatic presets stop working.

kyraha commented 10 years ago

A driver request. Flip the thumbstick axis direction.