Thread: limit switches
View Single Post
  #17   Spotlight this post!  
Unread 28-04-2005, 12:44
eugenebrooks eugenebrooks is offline
Team Role: Engineer
AKA: Dr. Brooks
no team (WRRF)
 
Join Date: Jan 2004
Rookie Year: 2001
Location: Livermore, CA
Posts: 601
eugenebrooks has a reputation beyond reputeeugenebrooks has a reputation beyond reputeeugenebrooks has a reputation beyond reputeeugenebrooks has a reputation beyond reputeeugenebrooks has a reputation beyond reputeeugenebrooks has a reputation beyond reputeeugenebrooks has a reputation beyond reputeeugenebrooks has a reputation beyond reputeeugenebrooks has a reputation beyond reputeeugenebrooks has a reputation beyond reputeeugenebrooks has a reputation beyond repute
Re: limit switches

Quote:
Originally Posted by MikeWasHere05
Try adding a printf to your code, see what it puts out.

printf("Limit Switch: %f \n", rc_dig_in08);
printf("Limit Switch: %d \n", (int)rc_dig_in08);

Both the %d and (for our RC compiler) the cast to int are important...