|
Re: Please Help: Programming the Robovation Kit
Looks like you want to set a counter
Declare a variable counter:
int counter;
if (counter<100)
{
pwm01=254;
pwm02=254;
counter++;
}
if (counter<200)
{
pwm01=180;
pwm02=180;
counter++
}
//EDIT: had wrong code earlier on, this one should work //
and continue on..
Another way it to use Timers. I would suggets looking at all the help documents included with the compiler and at innovationfirst.com . If you study those and test, you will get where you have to, it has almost anything you need. Yet, if you need help feel free to post
Regarding your second question, are you using a full size controller of robovation?
__________________
-= Bharat Nain =-
Whatever you do, you need courage. Whatever course you decide upon, there is always someone to tell you that you are wrong. There are always difficulties arising that tempt you to believe your critics are right. To map out a course of action and follow it to an end requires some of the same courage that a soldier needs. Peace has its victories, but it takes brave men and women to win them. - Ralph Waldo Emerson
Last edited by Bharat Nain : 06-12-2004 at 22:02.
|