View Single Post
  #1   Spotlight this post!  
Unread 05-02-2012, 12:34
alb4h alb4h is offline
Registered User
FRC #3862
 
Join Date: Dec 2011
Location: MO
Posts: 27
alb4h is an unknown quantity at this point
encoder problems......

We are having a problem that occurs when plugging in an encoder.

The encoder is wired into 2 digital I/O ports on the digital sidecar, with careful attention made to plugging in gnd and signal to one port and 5v and signal to other port. The problem occurs even when plugged into any 2 ports.

With the encoder wired, when the code is enabled, and in teleop mode, the motors start to run, with no joystick input.
With the encoder unplugged, everything works as expected, with no movement until the joystick is moved.

We are using C++ and this happens even when deploying the FRC Default Program (current with imaging tool), which when loaded into workbench is titled BuiltinDefaultCode.
That code does not explicitly reference digital input ports or the encoder classes at all.
Why does hardware plugged into the digital I/O ports effect the motor control?

I'm confused.......

Ann

Last edited by alb4h : 05-02-2012 at 12:46.
Reply With Quote