Subject:
|
Re: Compiler errors.
|
Newsgroups:
|
lugnet.robotics.handyboard
|
Date:
|
Wed, 21 May 1997 04:34:54 GMT
|
Original-From:
|
Katt97@aol#spamless#.com
|
Viewed:
|
1769 times
|
| |
| |
I really don't know what the problem with your compiler is. Maybe it's the
wrong one for your programming language or for the board you're using.
In the version of IC I program with, the program would look more like the
following. Maybe that can help you, I'm not sure...programming is really not
my strong suite (that's one of the reasons why I want to major in biomedical
engineering :) ), and I know very little about it...just enough to get by :)
-Kat-
/*Square Program*/
void turn(){
fd(0);
sleep(1.0);
bk(1);
sleep(1.0);
ao();
}
void forward(){
fd(0);
sleep(2.0);
fd(1);
sleep(2.0);
ao();
}
void square(){
beep;
forward();
turn();
forward();
turn();
forward();
turn();
forward();
turn();
beep;
}
|
|
1 Message in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|