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 / 390 (-20)
  Re: OO programing in RCX
 
Thank you, David. Your gode is great! I learned a lot from your quick example, though I prefer Java more. I will encapsulate RCX commands in some utility objects and use them in more higher level objects. What I focus now is make a RF/IR adapter to (...) (26 years ago, 12-Jan-00, to lugnet.robotics.rcx)
 
  Re: OO programing in RCX
 
(...) OO works very well for things like a parse tree. I can add a new statement and just add its rules for semantic checking and code generation...all within its own class. I think part of the problem is that compiler design is a very heavily (...) (26 years ago, 12-Jan-00, to lugnet.robotics.rcx)
 
  Re: OO programing in RCX
 
I should probably mention again that legOS supports C++, and supports it even better if you add void*builtin_new(size_t n){return malloc(n)}; to the appropriate library, as v0.3.0 will. The rest of this is off-topic. Dave Baum schrieb: (...) (...) (26 years ago, 12-Jan-00, to lugnet.robotics.rcx)
 
  Re: OO programing in RCX
 
Hi Eric, Yes, I believe you could create a sensor object on the VB side and write your code thinking in terms of a sensor object. Here's one way: =-=-=-= BEGIN SAMPLE CODE =-=-=-= Private m_SensorNumber As Integer Private m_SensorType As Integer (...) (26 years ago, 11-Jan-00, to lugnet.robotics.rcx)
 
  Re: How advanced can RCX programming be?
 
(...) but (...) More than that. You can (for instance) have a 'command' thread, which looks at a variable, and decides according to the values on this whether to turn left/right or issue some other response, and does this by changeing other values. (...) (26 years ago, 11-Jan-00, to lugnet.robotics.rcx, lugnet.robotics)
 
  Re: How advanced can RCX programming be?
 
"TM" == Tobias Möller <tobias.moller@telia.com> writes: TM> If I´ve understood this multi-tasking right, then it means that TM> you can have one program running for the motors of a robot, and TM> another for the sensors, but at the same time. It (...) (26 years ago, 11-Jan-00, to lugnet.robotics.rcx, lugnet.robotics)
 
  Re: How advanced can RCX programming be?
 
(...) That wasn't me! David Leeper (has been a computer programmer for 17 years! :^)) (26 years ago, 11-Jan-00, to lugnet.robotics.rcx, lugnet.robotics)
 
  Re: OO programing in RCX
 
Hi Dave, On the RCX side, I wouldn't want true objects. I wouldn't want to fill up the RCX variables with vtables and the program memory with the code to use the vtables. But on the PC side of things I'm beginning to think objects can be very (...) (26 years ago, 11-Jan-00, to lugnet.robotics.rcx)
 
  Re: How advanced can RCX programming be?
 
In lugnet.robotics.rcx, David Leeper writes: I´m no computer programmer, but I´ve downloaded NQC but haven´t installed it yet. If I´ve understood this multi-tasking right, then it means that you can have one program running for the motors of a (...) (26 years ago, 11-Jan-00, to lugnet.robotics.rcx, lugnet.robotics)
 
  Re: OO programing in RCX
 
(...) I toyed with a couple of ideas for this, but most of the really useful things can't be done using the standard bytecodes. About the only thing I came up with was a way to wrap the standard API calls up into some classes. However, implementing (...) (26 years ago, 11-Jan-00, to lugnet.robotics.rcx)
 
  Re: How advanced can RCX programming be?
 
(...) IMHO, spirit.ocx doesn't provide OO capability - it does serve as an enabler, though. What it provides is the ability to write a VB program that writes an RCX program. This VB program can be as OO as you want it, but the calls to spirit.ocx (...) (26 years ago, 11-Jan-00, to lugnet.robotics.rcx, lugnet.robotics)
 
  Re: OO programing in RCX
 
What I mean is to think the RCX in OO. For example, I can add a sensor object in my programming code when I plug a sensor into my RCX. I can make the sensor object to interface with the RCX object in the OO manner. Is that possible? I learned some (...) (26 years ago, 11-Jan-00, to lugnet.robotics.rcx)
 
  Re: How advanced can RCX programming be?
 
(...) You are right, Matthew. It also supports the Mac and Unix, which RCX Code and the Spirit ActiveX control don't. David Leeper (26 years ago, 10-Jan-00, to lugnet.robotics.rcx, lugnet.robotics)
 
  Re: How advanced can RCX programming be?
 
(...) Even if you don't know C, NQC is pretty easy to learn. (26 years ago, 10-Jan-00, to lugnet.robotics.rcx, lugnet.robotics)
 
  Re: How advanced can RCX programming be?
 
Hi Tobias, If you're a computer programmer, I'd definitly suggest using something other than the RCX Code method of writing programs for the RCX. NQC is a nice environment if you know C. If you know a language that supports ActiveX, you can program (...) (26 years ago, 10-Jan-00, to lugnet.robotics.rcx, lugnet.robotics)
 
  Re: How advanced can RCX programming be?
 
Hi Tobias, If you're a computer programmer, I'd definitly suggest using something other than the RCX Code method of writing programs for the RCX. NQC is a nice environment if you know C. If you know a language that supports ActiveX, you can program (...) (26 years ago, 10-Jan-00, to lugnet.robotics.rcx, lugnet.robotics)
 
  Re: How advanced can RCX programming be?
 
(...) Depends how hard you want to work. With LegOS or pbForth, which replace the official firmware, you can program the hardware at the machine level, so you can do very advanced stuff. With NQC (or RoboLab) you're still limited by Lego's firmware, (...) (26 years ago, 10-Jan-00, to lugnet.robotics.rcx, lugnet.robotics)
 
  How advanced can RCX programming be?
 
I got my RIS a couple of weeks ago, and I have been building simple robots and programmed them using the program on the RIS cd. I´ve heard that you can program the RCX in very advanced ways, multitasking and so on. How advanced can it be? How do you (...) (26 years ago, 10-Jan-00, to lugnet.robotics.rcx, lugnet.robotics)
 
  Re: OO programing in RCX
 
Hi Mathew, There are no objects on the RCX, in the sense that there are no vtables on the RCX. I made no changes to spirit.ocx. But I definitely think of the RCX code in terms of objects now. There are "brain" objects, "map" objects, "identity" (...) (26 years ago, 10-Jan-00, to lugnet.robotics.rcx)
 
  Re: OO programing in RCX
 
(...) I'm curious -- are you making it so you can think about your RCX program in OO terms, or just the VB program that sends opcodes? (26 years ago, 10-Jan-00, to lugnet.robotics.rcx)


Next Page:  5 more | 10 more | 20 more

Redisplay Messages:  All | Compact

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