View Single Post
  #1   Spotlight this post!  
Unread 29-01-2007, 19:41
iwdu15 iwdu15 is offline
Registered User
FRC #0811
 
Join Date: Feb 2006
Location: NH
Posts: 10
iwdu15 is an unknown quantity at this point
GTS strange behavior

Hi, im working on the GTS code for our teams robot and ive hit a roadblock of sorts. I have tried using the 2007 default code for the GTS and put printf statements in the encoder initialization function, yet nothing is ever printed. the interrupt handler is also never executed. there is no "Phase B" code and the encoder is wired into the Digital Input 1 input. The Initialize code for the encoders is in the User_Initialization function:

printf("Initializing Encoders......\r\n");
Initialize_Encoders();

printf("Encoders init done!");

both printf statements are executed, however the InitializeEncoders function is not executed:

//first few lines

void Initialize_Encoders(void)
{

printf("initializing encoder 1 \r\n");
//rest of init code here...


whats going on? Thanks

--iwdu15
--Team 811