View Single Post
  #2   Spotlight this post!  
Unread 08-02-2007, 09:39
Imajie Imajie is offline
Registered User
AKA: James Letendre
FRC #0195 (Cyber Knights)
Team Role: Electrical
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Southington
Posts: 114
Imajie has much to be proud ofImajie has much to be proud ofImajie has much to be proud ofImajie has much to be proud ofImajie has much to be proud ofImajie has much to be proud ofImajie has much to be proud ofImajie has much to be proud of
Send a message via AIM to Imajie
Re: Potentiometer Problems

Quote:
Originally Posted by Joohoo View Post
one thing that I can see that might be problem is you are locking yourself in an infinite while loop which might not be allow the program to print anything.

thats just what i see but, I have not worked with easy c.
With EasyC you don't need to worry about your loop speed like in MPLab, the while(1) loop is fine.

Isn't the potentiometer built in to EasyC, there should be a block under Inputs(I think) that says potentiometer that you can use that may help, although the way you are doing it should work fine.
__________________
2007 UTC Champions Thanks 1124 and 558
2007 UTC GM Industrial Design Award

2006 Newton Divisional Winners
2006 Championship finalists
(Thanks 25 and 968 for picking us!)
2006 National Innovation in Control