Subject:
|
Re: Difficulty Activating Sensors in v0.2.4
|
Newsgroups:
|
lugnet.robotics.rcx.legos
|
Date:
|
Thu, 9 Nov 2000 06:11:19 GMT
|
Viewed:
|
1350 times
|
| |
| |
In lugnet.robotics.rcx.legos, Jochen Hoenicke writes:
> On Nov 6, Gary Mayer wrote:
> > I include dsensor.h and use commands ( XXX: is the line number )
> > 120: ds_active(&SENSOR_3);
> > 121: ds_rotation_on(&SENSOR_3);
> > 122: ds_rotation_set(&SENSOR_3, 0);
> >
> > Any thoughts and/or suggestions?
>
>
> You have to use the commands inside of a method, e.g. in the main
> method. I just tried it and get the exactly the same error messages
> if I don't put these calls inside a method.
>
> If you think you put them in a method, make sure that you don't have
> an additional "}".
>
> Jochen
Jochen, you're right on target! I put them into one of my sub-routines and
it worked fine. I appreciate everyone else's help as well.
Thanks,
-- Gary Mayer
|
|
Message is in Reply To:
| | Re: Difficulty Activating Sensors in v0.2.4
|
| (...) You have to use the commands inside of a method, e.g. in the main method. I just tried it and get the exactly the same error messages if I don't put these calls inside a method. If you think you put them in a method, make sure that you don't (...) (24 years ago, 7-Nov-00, to lugnet.robotics.rcx.legos)
|
5 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|