Quote:
Originally Posted by Joe Ross
What else do you have plugged into the digital sidecar? What additional things are you doing in the code when you're enabled?
|
The compressor switch is plugged into port 5, that's it. Nothing different in code happens between disabled and enabled.
initialize in chassis constructor:
m_encoder = new Encoder(aChannel, bChannel, true, CounterBase.EncodingType.k4X);
m_encoder.start();
each period output to SmartDashboard:
m_encoder.getRaw();