Go to Post We had an over all losing record this year. When I look at kid's faces, they don't give a rip about that. I see excitement about the next event and talking about improvements for next year. Winning is nice, but that is not the reason I do what I do. - wilsonmw04 [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #16   Spotlight this post!  
Unread 15-01-2003, 18:50
rbayer's Avatar Unsung FIRST Hero
rbayer rbayer is offline
Blood, Sweat, and Code
no team (Teamless Orphan)
 
Join Date: Mar 2002
Rookie Year: 2001
Location: Minnetonka, MN
Posts: 1,087
rbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of light
Send a message via AIM to rbayer
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.
__________________
New C-based RoboEmu2 (code simulator) available at: http://www.robbayer.com/software.php
  #17   Spotlight this post!  
Unread 16-01-2003, 22:01
Mike Soukup's Avatar
Mike Soukup Mike Soukup is offline
Software guy
FRC #0111 (Wildstang)
Team Role: Engineer
 
Join Date: May 2001
Rookie Year: 1996
Location: Schaumburg, IL
Posts: 797
Mike Soukup has a reputation beyond reputeMike Soukup has a reputation beyond reputeMike Soukup has a reputation beyond reputeMike Soukup has a reputation beyond reputeMike Soukup has a reputation beyond reputeMike Soukup has a reputation beyond reputeMike Soukup has a reputation beyond reputeMike Soukup has a reputation beyond reputeMike Soukup has a reputation beyond reputeMike Soukup has a reputation beyond reputeMike Soukup has a reputation beyond repute
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
  #18   Spotlight this post!  
Unread 16-01-2003, 22:03
rbayer's Avatar Unsung FIRST Hero
rbayer rbayer is offline
Blood, Sweat, and Code
no team (Teamless Orphan)
 
Join Date: Mar 2002
Rookie Year: 2001
Location: Minnetonka, MN
Posts: 1,087
rbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of light
Send a message via AIM to rbayer
Ooops. Kinda forgot that one. Look for it in 1.10 as it definately should be there.
__________________
New C-based RoboEmu2 (code simulator) available at: http://www.robbayer.com/software.php
  #19   Spotlight this post!  
Unread 21-01-2003, 07:37
rust710's Avatar
rust710 rust710 is offline
Registered User
#0862 (Lightning Robotics)
 
Join Date: Dec 2002
Location: Canton, MI
Posts: 103
rust710 is an unknown quantity at this point
Send a message via AIM to rust710
Does the RoboEMU support delta_t?
  #20   Spotlight this post!  
Unread 21-01-2003, 09:09
rbayer's Avatar Unsung FIRST Hero
rbayer rbayer is offline
Blood, Sweat, and Code
no team (Teamless Orphan)
 
Join Date: Mar 2002
Rookie Year: 2001
Location: Minnetonka, MN
Posts: 1,087
rbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of light
Send a message via AIM to rbayer
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.
__________________
New C-based RoboEmu2 (code simulator) available at: http://www.robbayer.com/software.php
  #21   Spotlight this post!  
Unread 21-01-2003, 15:07
rust710's Avatar
rust710 rust710 is offline
Registered User
#0862 (Lightning Robotics)
 
Join Date: Dec 2002
Location: Canton, MI
Posts: 103
rust710 is an unknown quantity at this point
Send a message via AIM to rust710
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   Spotlight this post!  
Unread 21-01-2003, 17:08
rbayer's Avatar Unsung FIRST Hero
rbayer rbayer is offline
Blood, Sweat, and Code
no team (Teamless Orphan)
 
Join Date: Mar 2002
Rookie Year: 2001
Location: Minnetonka, MN
Posts: 1,087
rbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of light
Send a message via AIM to rbayer
I honestly don't know. It shouldn't crash, but it may return some insane number. Let me know if you find out.
__________________
New C-based RoboEmu2 (code simulator) available at: http://www.robbayer.com/software.php
  #23   Spotlight this post!  
Unread 21-01-2003, 17:22
rust710's Avatar
rust710 rust710 is offline
Registered User
#0862 (Lightning Robotics)
 
Join Date: Dec 2002
Location: Canton, MI
Posts: 103
rust710 is an unknown quantity at this point
Send a message via AIM to rust710
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.
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

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


All times are GMT -5. The time now is 19:09.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi