Subject:
|
Fw: RcxCC Joystick controls
|
Newsgroups:
|
lugnet.robotics
|
Date:
|
Mon, 11 Jan 1999 10:50:38 GMT
|
Viewed:
|
1317 times
|
| |
| |
Very simple. Write a little nc program that defines some tasks. Download
it to the robot but don't run it. Here is a trivial example. After
downloading it, the first button will start motor B and the second
button will stop it. (Note that the order of the tasks is important, not
the names.)
task task1
{
Fwd(OUT_B,7);
}
task task2
{
Off(OUT_B);
}
task main // = task0
{
// Do nothing
}
Mark Overmars
http://www.cs.uu.nl/people/markov/lego/index.html
Clay Aucoin wrote:
>
> What about the buttons on the joystick? How would you program them while
> using the joystick in the RCX Command center 2.0.
>
> Thank You,
>
> Clay Aucoin, caucoin@cruiseshoppes.com
> Information Technologies Director, Web Services Division
> Cruise & Vacation Shoppes America
> http://www.cruiseshoppes.com
> 800 375-0199 x22
> 504 833-0340 x22
> 504 831-3165 fax
>
> --
> Did you check the web site first?: http://www.crynwr.com/lego-robotics
|
|
1 Message in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
Active threads in Robotics
|
|
|
|