To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.roboticsOpen lugnet.robotics in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / 5491
5490  |  5492
Subject: 
VB Downloadable Prgm Question
Newsgroups: 
lugnet.robotics
Date: 
Thu, 1 Jul 1999 07:12:46 GMT
Original-From: 
starrwarss@aolSPAMLESS.com
Viewed: 
1154 times
  
Ok, I am making a scanning program as some might be aware of.  I am doing
part Real-Time interface, part RCX Program interface.

I do have a question tho regarding downloadable programs.  (AKA 1 of the 5
you use in the RCX)

I am using rotation sensors to activate the datalog, but I ran into a problem.

What will happen when the thing runs in the opposite direction?

I have the coding set up like this:

PBrickCtrl.While 9, 0, 0, 2, 8
AKA While Sensor 0 is Greater than 8 do ....

Well, that is fine and dandy, but do I have to make another program for when
the thing runs in the other direction (-8)  or do I have to poll the sensor,
make that an abs value, then do the While statement?

Just a simple question regarding absolute value, nothin big.

KGB AgEnT #4 OUT
--
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
    

Custom Search

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