 | | I'm being stupid. But how?
|
|
I've written a test program using the 19990330 LegOS snapshot[1], and it's misbehaving oddly. The program looks like this: (the headers are the result of my frobbing the LegOS headers to refer to <mindstorms/{legOS header}>...) #include (...) (28 years ago, 29-Apr-99, to lugnet.robotics.rcx.legos)
|
| |
 | | Battery Status
|
|
Hi, I would like to measure the battery capacity (how much longer can I keep the operating robot, running under the present battery), but I very newbie in regards to electonics... so here are my newbie questions... :) 1) Is voltage; information (...) (28 years ago, 3-May-99, to lugnet.robotics.handyboard)
|
| |
 | | Re: HOWTO v 0.1
|
|
(...) Thanks (I think...) (...) Because I've found that it is significantly faster, and nearly canonical (as, technically speaking, it is part of the same domain, despite being hosted elsewhere(Stanford, IIRC.)) The only reason I found it in the (...) (28 years ago, 3-May-99, to lugnet.robotics.rcx.legos)
|
| |
 | | Re: Something else is needed, I think...
|
|
(...) My thoughts on the JVM: - too complicated for what we need or want - no direct support for interfacing with the RCX I envision the new byte code being specific to the RCX, and as simple as possible to get the job done, which is the exact (...) (28 years ago, 3-May-99, to lugnet.robotics)
|
| |
 | | Re: I'm being stupid. But how?
|
|
(...) Hahaha, regarding that LegOS is more of a library than an OS, my opinion too. But you have to admit the name has some appeal, even if it is something of a misnomer... :) Clearly it says something about TLG's attitude toward LegOS that they (...) (28 years ago, 3-May-99, to lugnet.robotics.rcx.legos)
|
| |
 | | Re: Something else is needed, I think...
|
|
(...) C may be the best choice for a base language to start with simply because its well known. Quite frankly, if the bytecode is written reasonably well, different compilers for different base languages should be very feasible - compilers based on (...) (28 years ago, 3-May-99, to lugnet.robotics)
|
| |
 | | Dowload of PCode and registers
|
|
I am building a new handyboard and when I attempt to send the PCode to the board using HBDL for Windows I get an error if 0c is put in the register window. However, if I put 0d it works fine, the files load and the handyboard functions properly. Why (...) (28 years ago, 3-May-99, to lugnet.robotics.handyboard)
|
| |
 | | Re: Something else is needed, I think...
|
|
(...) I agree, that would make pbForth much more appealing if the source could be compiled on a pc in a nice gui environment and then the bytecode loaded into the rcx. Not only could someone enhance the gui front end as Mark has suggested, but (...) (28 years ago, 3-May-99, to lugnet.robotics)
|
| |
 | | Re: Something else is needed, I think...
|
|
(...) I guess that depends on who you talk to. Personally, I want an object oriented language with multithreading support. I want to be able to write generic code that can be reused in multiple applications (ie, here is a module that follows a line, (...) (28 years ago, 3-May-99, to lugnet.robotics)
|
| |
 | | RE: Something else is needed, I think...
|
|
(...) Do NOT underestimate the amount of work we are talking about. I took a working version of hFORTH for the PC and ported a few machine specific definitions and rewrote the IO drivers and debugged and tested using GNU tools, and I have 80 hours (...) (28 years ago, 3-May-99, to lugnet.robotics)
|
| |
 | | RE: Something else is needed, I think...
|
|
(...) Once you get around the idea that the RCX does the compiling which makes it platform independent, you will see the light... (...) This is a good plan. You have my full support :-) Cheers, Ralph Hempel - P.Eng ---...--- Check out pbFORTH for (...) (28 years ago, 3-May-99, to lugnet.robotics)
|
| |
 | | RE: Something else is needed, I think...
|
|
Maybe we could write a program that compiles c source code into forth :) just joking Joel Shafer joel@connect.net -- Did you check the web site first?: (URL) (28 years ago, 3-May-99, to lugnet.robotics)
|
| |
 | | Re: Something else is needed, I think...
|
|
(...) Thank you. Kekoa. I was starting to think I was completely alone in my attitudes. Just a couple of comments on what I think a new byte code should do or be 1) It should resemble machine language. The commands in the bytecode should be (...) (28 years ago, 3-May-99, to lugnet.robotics)
|
| |
 | | Re: Something else is needed, I think...
|
|
(...) I don't deny that these are reasonable things to want. But you don't need the JVM to get these. The problem with the JVM is that there is so much extra fluff associated with Java. You mentioned 64-bit floats and ints, security, etc. Why start (...) (28 years ago, 3-May-99, to lugnet.robotics)
|
| |
 | | Re: Something else is needed, I think...
|
|
(...) Basically what you are talking about at this level is an interpreted machine language. The only benefit you get from interpreting it rather than running directly on the hardware is that you can catch errors. However, if the bytecodes are (...) (28 years ago, 3-May-99, to lugnet.robotics)
|
| |
 | | Re: Something else is needed, I think...
|
|
(...) All I am saying is that there will be no existing product that does exactly what everyone wants. However, I think it is worth considering JVM as a starting point close to what we want since it represents a huge body of solid code. (...) (...) (28 years ago, 3-May-99, to lugnet.robotics)
|
| |
 | | Re: Something else is needed, I think...
|
|
(...) I don't think I am underestimating the amount of work, actually.Just because a language has a GUI toolkit does NOT make it user friendly or portable. (...) Then it's not self contained on TWO counts. One, as you mentioned, you need NQC to get (...) (28 years ago, 3-May-99, to lugnet.robotics)
|
| |
 | | Re: Something else is needed, I think...
|
|
(...) Yes. (...) Wrong. Because we could design the instruction set from scratch ourselves, a small set of instructions could be included in the entire instruction set which do things require a great deal of regular machine instructions to do. (...) (28 years ago, 3-May-99, to lugnet.robotics)
|
| |
 | | Re: Battery Status
|
|
(...) This is usually how it's done. The voltage will drop predictably as the battery discharges. (...) Yes. You could use a voltage divider. You may have to play with the cutoff point a bit, and be aware that nicads experience a rather sharp (...) (28 years ago, 3-May-99, to lugnet.robotics.handyboard)
|
| |
 | | Re: Something else is needed, I think...
|
|
(...) Q: How large are the compiled FP emulation routines for the RCX? -Kekoa (28 years ago, 3-May-99, to lugnet.robotics)
|