To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcx.legosOpen lugnet.robotics.rcx.legos in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / legOS / 1508
1507  |  1509
Subject: 
Re: Difficulty Activating Sensors in v0.2.4
Newsgroups: 
lugnet.robotics.rcx.legos
Date: 
Tue, 7 Nov 2000 16:04:23 GMT
Viewed: 
1278 times
  
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



Message has 1 Reply:
  Re: Difficulty Activating Sensors in v0.2.4
 
(...) 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 (24 years ago, 9-Nov-00, to lugnet.robotics.rcx.legos)

Message is in Reply To:
  Difficulty Activating Sensors in v0.2.4
 
I'm using LegOS 0.2.4 on Windows 2000 (Cygwin solution). I receive errors when I try to compile any code that activates a sensor. I've looked at both old references and new as well as the old Dave Baum book. At first, I thought it may just be the (...) (24 years ago, 6-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

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR