View Single Post
  #3   Spotlight this post!  
Unread 14-02-2007, 10:06
Mike Bortfeldt Mike Bortfeldt is offline
Registered User
FRC #1126 (& 1511)
Team Role: Mentor
 
Join Date: Oct 2004
Rookie Year: 2004
Location: Rochester, NY
Posts: 119
Mike Bortfeldt has much to be proud ofMike Bortfeldt has much to be proud ofMike Bortfeldt has much to be proud ofMike Bortfeldt has much to be proud ofMike Bortfeldt has much to be proud ofMike Bortfeldt has much to be proud ofMike Bortfeldt has much to be proud ofMike Bortfeldt has much to be proud of
Re: Code for sensor still doesn't work

Ianuser,

While I haven't really taken a detailed look at your code, I believe you want to make all your now/last variables static (static int now; ). As they are written, they will lose their value when the Default_Routine exits as they are only temporary stack variables.

Mike