Quote:
|
Originally Posted by dm0ney
My next change to our code once the 'No Work' period is ended for our team (Nationals) is going to use a toggle switch on our OI to enable or disable printfs for pots and encoders.
|
We have something similar to this. We have a 3-way switch that changes the OI mode between Driver mode, Joystick calibration, and Aux. The joystick calibration is what Mike described above. The Aux position allows us to remap any of our OI buttons/switches. For example, pressing one of our momentary switches in driver mode will trigger the pneumatics on one of our fingers while in aux mode it will toggle debug prints for the lift height encoder. Once we take it out of aux mode, the prints continue and we can move the lift to verify the state of the encoder. It is a real time saver and I would recommend it to anyone.