|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#16
|
||||||
|
||||||
|
Yeah, somebody else just told me about that last night. I'm now hitting my head against my desk repeatedly for adding a call to removeSpaces withing the makeCmdIf function. Stupid, stupid, stupid, stupid, stupid...
Look for yet another new version by tomorrow night. |
|
#17
|
||||
|
||||
|
Modulus operator?
Does RoboEmu support the modulus operator (//)? I have a statement:
Code:
if (CCDataIn <> ((PrevDataIn + 2) // 256)) then Thanks for the tool, it's been a big help while we're sitting around waiting for a robot to play with. Mike |
|
#18
|
||||||
|
||||||
|
Ooops. Kinda forgot that one. Look for it in 1.10 as it definately should be there.
|
|
#19
|
||||
|
||||
|
Does the RoboEMU support delta_t?
|
|
#20
|
||||||
|
||||||
|
No. It wouldn't really work, either, due to the speed differences between computers. If I figure out a way of making it work, I might add it. Anyway, 1.10 is done now, so grab that.
|
|
#21
|
||||
|
||||
|
I have the 1.10 but I posted in the wrong forum. Thanks for the response. What will the program do when it incounters delta_t?
|
|
#22
|
||||||
|
||||||
|
I honestly don't know. It shouldn't crash, but it may return some insane number. Let me know if you find out.
|
|
#23
|
||||
|
||||
|
Well I tried it and it just returns a 0. Which actually is fine. The Stamp will return a 0 if the code is executed in 26ms or less. So my code works fine. delta_t has to be declared and is in the serin so it acts like a varible not set.
One thing that you program doesn't support is toggle. For example toggle 15 changes the state for one of the relay lights. Really same as out15 = ~(out15). I really like your program. I have been using it even when I have a robot controller because it is easier to setup. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Obscure PBASIC for RoboEmu | rbayer | Programming | 1 | 28-03-2003 23:57 |
| PBasic 2.5 vs. 2.0 | Anthony Kesich | Programming | 6 | 09-02-2003 22:06 |
| Broken PBASIC 2.5 Complier? | Mike Yan | Programming | 12 | 01-02-2003 09:11 |
| PBASIC 2.5 Questions | Noah | Programming | 6 | 10-01-2003 19:26 |
| PBASIC 2.5 answer from Parallax | JasonS | Programming | 6 | 07-01-2003 19:21 |