View Single Post
  #1   Spotlight this post!  
Unread 12-02-2011, 13:12
wireties's Avatar
wireties wireties is offline
Principal Engineer
AKA: Keith Buchanan
FRC #1296 (Full Metal Jackets)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2004
Location: Rockwall, TX
Posts: 1,169
wireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond repute
Send a message via AIM to wireties
running 2 encoders - problems

We are using 4 encoders on 4 nanoboxes. All 4 are wired the same and wired correctly (triple checked). We can see the A and B pulses (with a scope) on all 4 channels. But only 2 servos (using PID controller) are working.

We commented out the enable call for the PIDcontroller classes, ran the motors at a constant speed (manually with the motor classes) and are printing out the encoder values using the GetRate method. Two of the values are NaN which explains the problems with the servos.

Anyone have any clues? I guess we can start replacing encoders but the outputs looks good.

TIA