Go to Post I always wondered what would happen if two robots mated. - Greg Needel [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 09-02-2003, 20:38
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
Quote:
Originally posted by guzugi
I'm not sure if it this version, or if it's all, but it doesn't seem to support the "Toggle" command for feedback lights on the operator control.
You are correct. No toggle support yet.
__________________
New C-based RoboEmu2 (code simulator) available at: http://www.robbayer.com/software.php
  #17   Spotlight this post!  
Unread 09-02-2003, 21:01
guzugi's Avatar
guzugi guzugi is offline
Registered User
#0580
 
Join Date: Feb 2003
Location: North Hollywood
Posts: 16
guzugi is an unknown quantity at this point
Send a message via AIM to guzugi
any idea if that would be in the next version (toggle) ? and when do you expect the next version?

also, let me just personally thank you because RoboEmu has saved me SO MUCH time! Now i can work on robot software AT HOME, without any robot, and know that when i put it on the bot, it will work perfectly, the first time!

THANK YOU!!!
  #18   Spotlight this post!  
Unread 10-02-2003, 00:44
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,590
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Quote:
Originally posted by gwross
THAN. Have you been programming PBASIC too long?
I don't think that's the problem...just that it has been too long since I took Mrs. Ross's English Class


Back on topic...

I tried the timing on my windows 2000 machine, and it works fine. On the windows 98 machine, it runs too fast. Any ideas?
  #19   Spotlight this post!  
Unread 10-02-2003, 01: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
Quote:
Originally posted by Joe Ross

I tried the timing on my windows 2000 machine, and it works fine. On the windows 98 machine, it runs too fast. Any ideas?
That's very, very strange. On my computer, it seems to run 2x too slow. (ie 50ms/loop). I'm going to keep trying to fix it, but I'm not quite sure what's going on.

--Rob
__________________
New C-based RoboEmu2 (code simulator) available at: http://www.robbayer.com/software.php
  #20   Spotlight this post!  
Unread 10-02-2003, 01:08
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,590
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
actually, I saw the 2x too slow when i ran it in wine...but I attributed that to wine, not the program.
  #21   Spotlight this post!  
Unread 10-02-2003, 11:44
web-hed's Avatar
web-hed web-hed is offline
Registered User
#0457
 
Join Date: Feb 2003
Location: San Antonio
Posts: 2
web-hed is an unknown quantity at this point
Send a message via Yahoo to web-hed
I agree with Steven Carmain. I am running my same program which is using the posted 38 loop count per second algorithm on emu 1.10 and 1.11 and there is a marked difference. My program runs much faster on 1.11. (Actually, under the 1.10, my program would run the 15 second loop in just under 18 seconds, anywhere between 17.6 and 17.9 seconds.)

Also, the serout from the default program I downloaded from the Innovation First site has to be adjusted by adding 4 instances of ",127" at the end of the serout command which makes the completely compliant with the comment that comes with the default code that talks about the SEROUT line.

Lastly, 1.11 keeps dying when I have bad code.

Also, if there is bad code and I get the standard "Would you like to quit?" and I say "No" then the file I just loaded get's locked so that I can't save it using the PBASIC editor. I have to kill RoboEmu to save the file. This is not too much of a problem when I am writing good code.
__________________
Bill Gonzalez
Team #457 - South San High School
  #22   Spotlight this post!  
Unread 10-02-2003, 13:29
Steven Carmain Steven Carmain is offline
Bit Twiddler
FRC #2832
Team Role: Mentor
 
Join Date: Jan 2003
Rookie Year: 2002
Location: Westland, MI
Posts: 92
Steven Carmain will become famous soon enough
I used the code that I posted, and it still runs 2x fast, but runs fine in 1.10. My computer is an XP.
__________________
2017 - Team 2832 Mentor
2016 - Team 6013 Mentor
2002-05 - Team 45 Software/Electrical

A robot is like a campfire: it takes a while to bulid it, and then everyone surounds it!
A world without standards is chaos. A world with standards is chaos.
  #23   Spotlight this post!  
Unread 15-02-2003, 11:00
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
Wow. Five days of no activity and this is already on the second page. Anyway, I'm going to try to finish up 1.11 tonight, so this is the last call for any bug reports, etc. Here's the current list:

Bugs:
Strange timing issues
Crashes if dividing by zero
Crashes with very long lines
Doesn't close file handle properly on errors
Falsely gives ELSE without IF in some instances (doesn't happen in 1.10)
comp_mode is backwards (I hadn't read the update from InnovationFirst at the time)


Proposed features:
Toggle
Arrays (::shudder:: may or may not happen until next beta release)
Single-step
More of the DEBUG modifiers (ie BIN8, etc)


Anything else? I'm going to start working on it around 8:00 tonight, so please let me know by then. As always, either post here or send me a PM/email.
__________________
New C-based RoboEmu2 (code simulator) available at: http://www.robbayer.com/software.php

Last edited by rbayer : 15-02-2003 at 11:06.
  #24   Spotlight this post!  
Unread 15-02-2003, 11:14
Jeff_Rice's Avatar
Jeff_Rice Jeff_Rice is offline
ElementisRegamusProelium
#1359
Team Role: Programmer
 
Join Date: Dec 2002
Location: Linn County
Posts: 283
Jeff_Rice will become famous soon enoughJeff_Rice will become famous soon enough
It does not detect errors with the number of initialization constants turned on not being the same as the number of things in the Serin.
This is important when you are making a timer.
Thank you for making RoboEmu, rbayer.
__________________
"He said my name is Private Andrew Malone
If you're reading this then I didn't make it home
But for every dream that's shattered another one comes true
This car was once a dream of mine now it belongs to you
And though you may take her and make her your own
You'll always be riding with Private Malone" David Ball, "Private Malone"
  #25   Spotlight this post!  
Unread 15-02-2003, 11:50
guzugi's Avatar
guzugi guzugi is offline
Registered User
#0580
 
Join Date: Feb 2003
Location: North Hollywood
Posts: 16
guzugi is an unknown quantity at this point
Send a message via AIM to guzugi
well, for one thing, the toggle function might be nice...

but also...

i noticed some differences in the way that roboEmu and the true basic stamp interpret logic statements. I'm not sure what the problem is exactly, but in the example i had, if you have more than one operator in a series like this...

if [condition1] & [condition2] & [condition3] & [condition4] then
...

roboEmu does this the "correct" way, where ALL conditions have to be true, but this is not the case with the stamp interpreter. i've tries many combinations of parenthesis’ with varied results, but never the way i want them.

i guess i'm not sure what the problems is here, if it is roboEmu, or the stamp. Maybe i'm just have some syntax error, but i'll let you decide..

MEH
  #26   Spotlight this post!  
Unread 15-02-2003, 12:12
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
The & is not the correct way to do it as it is meant for bitwise anding (like C's &). Use the keyword AND instead as it is like C's &&.

Hmmm... I'll see what I can do to make RoboEmu more correctly incorrect.


Anybody have anything else?


--Rob
__________________
New C-based RoboEmu2 (code simulator) available at: http://www.robbayer.com/software.php
  #27   Spotlight this post!  
Unread 15-02-2003, 12:23
guzugi's Avatar
guzugi guzugi is offline
Registered User
#0580
 
Join Date: Feb 2003
Location: North Hollywood
Posts: 16
guzugi is an unknown quantity at this point
Send a message via AIM to guzugi
lol, THAT would fix it! thankyou!

by the way, what does the '&' operator do then?
  #28   Spotlight this post!  
Unread 15-02-2003, 12:57
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
Quote:
Originally posted by guzugi
lol, THAT would fix it! thankyou!

by the way, what does the '&' operator do then?
It performs an AND on each bit. Likewise, the | performs an OR and ~ performs a NOT. Examples:
Code:
  110111001 
& 010101011
----------------
  010101001


  110111001 
| 010101011
----------------
  110111011


~110111001 
----------------
 001000110
You should always use the keywords OR, AND, and NOT when combining expressions (ie IF NOT (p1_y <137 AND p1_y>117)) and only use the bitwise versions when you really know what you are doing.


Any other RoboEmu comments from anyone? I'm off to robotics in a few minutes, but should still be able to work on stuff later tonight.

--Rob
__________________
New C-based RoboEmu2 (code simulator) available at: http://www.robbayer.com/software.php
  #29   Spotlight this post!  
Unread 15-02-2003, 23:38
guzugi's Avatar
guzugi guzugi is offline
Registered User
#0580
 
Join Date: Feb 2003
Location: North Hollywood
Posts: 16
guzugi is an unknown quantity at this point
Send a message via AIM to guzugi
another thing that would be nice is to have indicators for port feedback lights...such as "out12, out13, etc"

just an idea

eric
  #30   Spotlight this post!  
Unread 18-02-2003, 01:06
Dan's Avatar
Dan Dan is offline
Registered User
#0267 (Demolition Squad)
 
Join Date: Feb 2002
Location: Boca Raton, Fl
Posts: 7
Dan is an unknown quantity at this point
Send a message via Yahoo to Dan
Gosub Depth Reporting

RoboEmu properly reports if the gosub depth is too great. However, if you fix the problem in your code, save it and have RoboEmu reload it, the depth is still reported as incorrect. RoboEmu must be exited and restarted.
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
Making RoboEmu 1.09 work rbayer Programming 2 14-01-2003 00:49
RoboEmu 1.08 released rbayer Programming 9 26-12-2002 22:31
RoboEmu 1.07 rbayer Programming 3 08-12-2002 18:28
RoboEmu for Linux (PBASIC emulator) rbayer Programming 5 21-11-2002 21:08


All times are GMT -5. The time now is 12:08.

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