![]() |
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. |
Modulus operator?
Does RoboEmu support the modulus operator (//)? I have a statement:
Code:
if (CCDataIn <> ((PrevDataIn + 2) // 256)) thenThanks for the tool, it's been a big help while we're sitting around waiting for a robot to play with. Mike |
Ooops. Kinda forgot that one. Look for it in 1.10 as it definately should be there.
|
Does the RoboEMU support delta_t?
|
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.
|
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?
|
I honestly don't know. It shouldn't crash, but it may return some insane number. Let me know if you find out.
|
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. |
| All times are GMT -5. The time now is 15:42. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi