View Single Post
  #8   Spotlight this post!  
Unread 03-01-2013, 14:06
Brian Selle's Avatar
Brian Selle Brian Selle is offline
Mentor
FRC #3310 (Black Hawk Robotics)
Team Role: Engineer
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Texas
Posts: 166
Brian Selle has a spectacular aura aboutBrian Selle has a spectacular aura aboutBrian Selle has a spectacular aura about
Re: Digital Side Car Issue with Encoder

Quote:
Originally Posted by Joe Ross View Post
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();