Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   RoboEmu 1.09 (supports PBASIC 2.5) (http://www.chiefdelphi.com/forums/showthread.php?t=16198)

rbayer 15-01-2003 18:50

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.

Mike Soukup 16-01-2003 22:01

Modulus operator?
 
Does RoboEmu support the modulus operator (//)? I have a statement:
Code:

if (CCDataIn <> ((PrevDataIn + 2) // 256)) then
and it give the error "Error: Variable /256 does not exist. Can't get value. While processing If @((CCDATAIN;((PREVDATAIN+2)//256)))"

Thanks for the tool, it's been a big help while we're sitting around waiting for a robot to play with.

Mike

rbayer 16-01-2003 22:03

Ooops. Kinda forgot that one. Look for it in 1.10 as it definately should be there.

rust710 21-01-2003 07:37

Does the RoboEMU support delta_t?

rbayer 21-01-2003 09:09

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.

rust710 21-01-2003 15:07

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?

rbayer 21-01-2003 17:08

I honestly don't know. It shouldn't crash, but it may return some insane number. Let me know if you find out.

rust710 21-01-2003 17:22

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