How Can I..........
Archiver
Posts: 46,084
MAke my robot go
20 counts
turn left for 10 counts
go forward for 20 counts
turn left for 10 counts
go forward for 200 counts
I cant find a program that will do it I am aprat of a robtics team
at my high school and I dont understand the pbasic at all could
someone please help me
20 counts
turn left for 10 counts
go forward for 20 counts
turn left for 10 counts
go forward for 200 counts
I cant find a program that will do it I am aprat of a robtics team
at my high school and I dont understand the pbasic at all could
someone please help me
Comments
Reps Var Byte 'Change the variable to the size needed
For Reps = 0 to 19
ForwardCmd 'Your Command to the bot to make it go forward for
20x
Next
Then just put in the other parts of your code using that command
Original Message
From: piccolojr2k [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=m7kYurlNvMndIx19Y3_nR7q8B77eYGH66u4abXJBc5mkKFM8CMMgc-wWC1yFWSqj0nNupHbwYTp_U-gR0A]piccolojr2k@y...[/url
Sent: Sunday, March 23, 2003 7:22 AM
To: basicstamps@yahoogroups.com
Subject: [noparse][[/noparse]basicstamps] How Can I..........
MAke my robot go
20 counts
turn left for 10 counts
go forward for 20 counts
turn left for 10 counts
go forward for 200 counts
I cant find a program that will do it I am aprat of a robtics team
at my high school and I dont understand the pbasic at all could
someone please help me
To UNSUBSCRIBE, just send mail to:
basicstamps-unsubscribe@yahoogroups.com
from the same email address that you subscribed. Text in the Subject
and Body of the message will be ignored.
Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/
Mike Dillon <laxboy687@e...> wrote:Its pretty simple, the basic
commands are For...Next. Heres a sample:
Reps Var Byte 'Change the variable to the size needed
For Reps = 0 to 19
ForwardCmd 'Your Command to the bot to make it go forward for
20x
Next
Then just put in the other parts of your code using that command
Original Message
From: piccolojr2k [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=oAFXYMb6YtJQFf83c-IqmXHWlbDuDEKYmIBiBWni21Su7e4u0g4bNC64tdZVvLkcVKGfvq6hZTiAA57z]piccolojr2k@y...[/url
Sent: Sunday, March 23, 2003 7:22 AM
To: basicstamps@yahoogroups.com
Subject: [noparse][[/noparse]basicstamps] How Can I..........
MAke my robot go
20 counts
turn left for 10 counts
go forward for 20 counts
turn left for 10 counts
go forward for 200 counts
I cant find a program that will do it I am aprat of a robtics team
at my high school and I dont understand the pbasic at all could
someone please help me
To UNSUBSCRIBE, just send mail to:
basicstamps-unsubscribe@yahoogroups.com
from the same email address that you subscribed. Text in the Subject
and Body of the message will be ignored.
Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/
To UNSUBSCRIBE, just send mail to:
basicstamps-unsubscribe@yahoogroups.com
from the same email address that you subscribed. Text in the Subject and Body of
the message will be ignored.
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
[noparse][[/noparse]Non-text portions of this message have been removed]
It sure does, just change the number of reps that you need and then
change the command between for and next.
i.e.
for reps = (Your rep # here)
(your command here)
Next
Original Message
From: Anthony Diaz [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=gRhLi5XzQ4glYbr2PBY0AiA-uazWy2eoXSDGr6s1vXtkN4j9CYQtrEn3s4XzpA7oXd-i3aBdECKb0rk]piccolojr2k@y...[/url
Sent: Tuesday, March 25, 2003 5:43 AM
To: basicstamps@yahoogroups.com
Subject: RE: [noparse][[/noparse]basicstamps] How Can I..........
Does this handle turns and going backwards and thank you a lot
Mike Dillon <laxboy687@e...> wrote:Its pretty simple, the
basic commands are For...Next. Heres a sample:
Reps Var Byte 'Change the variable to the size needed
For Reps = 0 to 19
ForwardCmd 'Your Command to the bot to make it go forward for
20x
Next
Then just put in the other parts of your code using that command
Original Message
From: piccolojr2k [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=gRhLi5XzQ4glYbr2PBY0AiA-uazWy2eoXSDGr6s1vXtkN4j9CYQtrEn3s4XzpA7oXd-i3aBdECKb0rk]piccolojr2k@y...[/url
Sent: Sunday, March 23, 2003 7:22 AM
To: basicstamps@yahoogroups.com
Subject: [noparse][[/noparse]basicstamps] How Can I..........
MAke my robot go
20 counts
turn left for 10 counts
go forward for 20 counts
turn left for 10 counts
go forward for 200 counts
I cant find a program that will do it I am aprat of a robtics team
at my high school and I dont understand the pbasic at all could
someone please help me
To UNSUBSCRIBE, just send mail to:
basicstamps-unsubscribe@yahoogroups.com
from the same email address that you subscribed. Text in the Subject
and Body of the message will be ignored.
Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/
To UNSUBSCRIBE, just send mail to:
basicstamps-unsubscribe@yahoogroups.com
from the same email address that you subscribed. Text in the Subject and
Body of the message will be ignored.
Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
[noparse][[/noparse]Non-text portions of this message have been removed]
To UNSUBSCRIBE, just send mail to:
basicstamps-unsubscribe@yahoogroups.com
from the same email address that you subscribed. Text in the Subject
and Body of the message will be ignored.
Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/