To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcxOpen lugnet.robotics.rcx in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / 2720
2719  |  2721
Subject: 
Re: ScriptEd - Question
Newsgroups: 
lugnet.robotics.rcx
Date: 
Mon, 8 Aug 2005 18:43:33 GMT
Viewed: 
4182 times
  
In lugnet.robotics.rcx, Steve Hassenplug wrote:
On Thu, August 4, 2005 3:34 pm, ludo soete wrote:

The error apears in following line:
const delay1 = 1000 // minimum stop time in station (10 seconds)
The word 'const' is highlighted in blue


Check the line before that.  Your code says:
//
direction_ // direction of monorail
const delay1=1500 // minimum stop time in station (10 seconds)
const delay2=3000 // maximum stop time in station (30 seconds)

The MindScript compiler is very buggy when it comes to reporting the actual
location of a compiler error, unfortunately.  The wrapper I wrote that is used
within BricxCC tries to account for the problems it has and adjust the error
information accordingly but it is still far from perfect.  I highly recommend
using BricxCC for all MindScript programming since it does a much better job
than ScriptEd when it comes to editing programs, getting help, navigating
through program code, and downloading programs to the programmable brick.

In lugnet.robotics.rcx, Ludo Soete wrote:
event endstationtime when  {sw1 &= sw2).pressed
event middlestationtime when {sw3 &= sw4}.pressed

These two lines also fail to compile.  I can't figure out what {sw1 &=
sw2).pressed is supposed to mean here.

John Hansen



Message is in Reply To:
  Re: ScriptEd - Question
 
(...) Check the line before that. Your code says: // direction_ // direction of monorail const delay1=1500 // minimum stop time in station (10 seconds) const delay2=3000 // maximum stop time in station (30 seconds) // I'm not sure exactly what (...) (19 years ago, 4-Aug-05, to lugnet.robotics.rcx)

5 Messages 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