Thread: Basic Question
View Single Post
  #3   Spotlight this post!  
Unread 19-01-2007, 19:21
Wompas Wompas is offline
Registered User
FRC #1182
 
Join Date: Jan 2007
Location: Missouri
Posts: 7
Wompas is an unknown quantity at this point
Re: Basic Question

Thanks Tom. We understand the logic behind it but we don't actually know how to implement the trigger in easyC. If you could give us a dumbed down version that would be great.

if (trigger == CLOSED)
pwmXX = 200;
else
pwmXX = 127;

^^ What function block (those things at the left of the screen that you drag in), i.e. "OI to PWM" lets me do that. We know what you mean in logic but what type of variables should "trigger" be set to.

Our problem is our lack of experience with EasyC, not with the logic. We just don't know how to implement it into EasyC Pro.

Thanks a lot