Go to Post ...can I play a computer game during a competition, while i'm suppposed to operate the robot? - Gal Longin [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
  #31   Spotlight this post!  
Unread 18-02-2003, 23:24
redbeard0531 redbeard0531 is offline
Registered User
#0686 (Bovine Intervention)
 
Join Date: Jan 2003
Location: New Market, MD
Posts: 40
redbeard0531 is an unknown quantity at this point
Send a message via AIM to redbeard0531
Reset Button

Please add support for a reset button. Or at least set all vars to zero when "Begin match" is clicked. Otherwise my counter is never reset. I have to completely exit out to reset it!
  #32   Spotlight this post!  
Unread 19-02-2003, 12:19
Greg Ross's Avatar
Greg Ross Greg Ross is offline
Grammar Curmudgeon
AKA: gwross
FRC #0330 (Beach 'Bots)
Team Role: Mentor
 
Join Date: Jun 2001
Rookie Year: 1998
Location: Hermosa Beach, CA
Posts: 2,245
Greg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond repute
Send a message via AIM to Greg Ross Send a message via Yahoo to Greg Ross
Re: Reset Button

Quote:
Originally posted by redbeard0531
Please add support for a reset button. Or at least set all vars to zero when "Begin match" is clicked. Otherwise my counter is never reset. I have to completely exit out to reset it!
This sounds like a disaster waiting to happen. (A little hyperbole can sometimes come in handy. )

Remember that you power up your robot when you place it on the field, and your program then begins running (albeit disabled) as soon as communications are established with your OI. This means that if you don't check the comp_mode bit, and only start incrementing your counter after it changes to 0, your counter could have been running for something like 2 minutes before the match starts. I handle this problem by reseting my timer to zero whenever comp_mode = 1. Unfortunately, this isn't a 100% solution when running RoboEmu, since it doesn't start a match disabled.

What I would like to see RoboEmu do is to start a match with the 10 second human player period -- during which time comp_mode would be set to 1. Only then would comp_mode be cleared, and auton_mode be set. It would also be very helpful to have a visible match timer.
__________________
Greg Ross (The Grammar Curmudgeon formerly known as gwross)
S/W Engineer, Team 330, the Beach 'Bots
<--The Grammar Curmudgeon loves this cartoon.
“Life should not be a journey to the grave with the intention of arriving safely in a pretty and well preserved body, but rather to skid in broadside in a cloud of smoke, thoroughly used up, totally worn out, and loudly proclaiming "Wow! What a Ride!" Hunter S. Thompson
"Playing a practical joke means doing something mean and calling it funny." Me

Last edited by Greg Ross : 19-02-2003 at 14:07.
  #33   Spotlight this post!  
Unread 19-02-2003, 19:38
redbeard0531 redbeard0531 is offline
Registered User
#0686 (Bovine Intervention)
 
Join Date: Jan 2003
Location: New Market, MD
Posts: 40
redbeard0531 is an unknown quantity at this point
Send a message via AIM to redbeard0531
I deal with that problem by putting the timer code in the autonomous subroutine. Since it doesn't get called until auto_mode = 1, i time from the start of the autonomous period. The only assumption that I make is that the robot will be fully powered off between matches.
  #34   Spotlight this post!  
Unread 20-02-2003, 17:43
Greg Ross's Avatar
Greg Ross Greg Ross is offline
Grammar Curmudgeon
AKA: gwross
FRC #0330 (Beach 'Bots)
Team Role: Mentor
 
Join Date: Jun 2001
Rookie Year: 1998
Location: Hermosa Beach, CA
Posts: 2,245
Greg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond repute
Send a message via AIM to Greg Ross Send a message via Yahoo to Greg Ross
Quote:
Originally posted by redbeard0531
I deal with that problem by putting the timer code in the autonomous subroutine. Since it doesn't get called until auto_mode = 1, i time from the start of the autonomous period. The only assumption that I make is that the robot will be fully powered off between matches.
I was thinking of my match timer -- which needs to run the entire match. (I won't reveal what it is used for. )
__________________
Greg Ross (The Grammar Curmudgeon formerly known as gwross)
S/W Engineer, Team 330, the Beach 'Bots
<--The Grammar Curmudgeon loves this cartoon.
“Life should not be a journey to the grave with the intention of arriving safely in a pretty and well preserved body, but rather to skid in broadside in a cloud of smoke, thoroughly used up, totally worn out, and loudly proclaiming "Wow! What a Ride!" Hunter S. Thompson
"Playing a practical joke means doing something mean and calling it funny." Me
  #35   Spotlight this post!  
Unread 20-02-2003, 18:18
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
Sorry for the delay everybody. I've gotten a grand total of approx 12 hours of sleep in the past five days and haven't had any time to deal with RoboEmu. Anyway, I'm thinking I might start work on 2.0, which will include some fundamental changes to the core of RoboEmu. Look for a preview release within a few weeks.

--Rob
__________________
New C-based RoboEmu2 (code simulator) available at: http://www.robbayer.com/software.php
  #36   Spotlight this post!  
Unread 20-02-2003, 19:17
Greg Ross's Avatar
Greg Ross Greg Ross is offline
Grammar Curmudgeon
AKA: gwross
FRC #0330 (Beach 'Bots)
Team Role: Mentor
 
Join Date: Jun 2001
Rookie Year: 1998
Location: Hermosa Beach, CA
Posts: 2,245
Greg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond repute
Send a message via AIM to Greg Ross Send a message via Yahoo to Greg Ross
Quote:
Originally posted by rbayer
Sorry for the delay everybody. I've gotten a grand total of approx 12 hours of sleep in the past five days and haven't had any time to deal with RoboEmu.
We understand. That's how we came up with so many RoboEmu suggestions within the last couple of days. We've been spending day and night writing code, debugging in RoboEmu, and then trying to figure out why it doesn't work in the robot.
__________________
Greg Ross (The Grammar Curmudgeon formerly known as gwross)
S/W Engineer, Team 330, the Beach 'Bots
<--The Grammar Curmudgeon loves this cartoon.
“Life should not be a journey to the grave with the intention of arriving safely in a pretty and well preserved body, but rather to skid in broadside in a cloud of smoke, thoroughly used up, totally worn out, and loudly proclaiming "Wow! What a Ride!" Hunter S. Thompson
"Playing a practical joke means doing something mean and calling it funny." Me
  #37   Spotlight this post!  
Unread 20-02-2003, 20:19
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
yes, agreed, well writen, FREE software, especially in this situation, is very helpful, THANK YOU!!!
  #38   Spotlight this post!  
Unread 17-03-2003, 19:51
Ken Delaney's Avatar
Ken Delaney Ken Delaney is offline
Registered User
#0357 (Royal Assault)
 
Join Date: Jan 2002
Location: Drexel Hill,PA
Posts: 40
Ken Delaney is an unknown quantity at this point
Send a message via Yahoo to Ken Delaney
Thumbs up

I would like to express my gratitude to Rob for all his hard work on creating RoboEmu. I found the program invaluable for my programmers since we had so little time with a finished robot. We had to change very little of the code since we had debugged much of it using the emulator.

Our robot is a crab drive robot that can stack autonomously. We spent a lot of the time at Annapolis dealing with unresolved mechanical issues and trying to compensate for a high center of gravity. We should be much more competitive at the Philly Regional.

One suggestion I have for the emulator would be to show the sensor values. We used pots to control our steering and found the interface for using the sensors a little bulky.

Rob if you are going to be at Houston I would like to say thanks in person.

Last edited by Ken Delaney : 17-03-2003 at 20:07.
  #39   Spotlight this post!  
Unread 17-03-2003, 19: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 mrd_udhs

One suggestion I have for the emulator would be to show the sensor values. We used pots to control our steering and found the interface for using the sensors a little bulky.

Rob if you are going to be at Houston I would like to thanks in person.

You're very welcome. I'm glad some people are making good use of these things and finding them useful.

I've been trying to find ways of streamlining the sensor interface (same with the wheel and aux) but haven't found anything good yet. I'm still working on it, though, and will hopefully have something in version 2.0.

Unfortunately, my team doesn't qualify for nats this year (team 6) and I don't think I'll be able to take time off school to drive down myself. Anyways, I'm glad you've found RoboEmu useful and I really do appreciate the thanks and the feedback.

--Rob
__________________
New C-based RoboEmu2 (code simulator) available at: http://www.robbayer.com/software.php
  #40   Spotlight this post!  
Unread 28-03-2003, 16:35
Gobiner Gobiner is offline
Registered User
#0753 (High Desert Droids)
 
Join Date: Nov 2002
Location: Bend, Oregon
Posts: 54
Gobiner is an unknown quantity at this point
Send a message via ICQ to Gobiner Send a message via AIM to Gobiner
I have a modest suggestion. Using ctrl-P to pause the emulation is really great, but you can't do that unless the main tool bar is the window that is active. If you've been playing with inputs, you have to go back and click on the tool bar to ctrl-P. That's the only GUI issue I have.
Code:
coolness++;
  #41   Spotlight this post!  
Unread 28-03-2003, 20:10
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'll add it to the list. Anyways, my plans for this weekend fell through, so I should be able to get a lot of work done on 2.0. Then again, I've said that about every weekend...

With any luck, I'll have something usable before nats.

--Rob
__________________
New C-based RoboEmu2 (code simulator) available at: http://www.robbayer.com/software.php
  #42   Spotlight this post!  
Unread 03-04-2003, 06:55
WizardOfAz's Avatar
WizardOfAz WizardOfAz is offline
Lead Mentor
AKA: Bill Bennett
FRC #1011 (CRUSH)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Tucson, AZ
Posts: 101
WizardOfAz will become famous soon enough
Send a message via AIM to WizardOfAz
1.11beta1 problem - error parsing file on line xxxx

Hi Rob,
Great to have so many issues resolve with 1.11. But there is a problem with reload I guess.

If I load my program and run it, all fine. If I then modify it (even just resave with no changes)I get then offer to reload, which I OK, then a popup error dialog that says "Error Parsing file on line 560. Error: Malformed Serout: 14 Do you wish to quit?"

If I say yes, it quits, I restart, all is well again.

If I say no, then pause, then unpause, I get the prompt to reload again, and the same sequence follows.

If I use file->open files etc to try to reload the file that way, RoboEmu just freezes up.

I will send the source file off the list if you want, let me know.

Bill
  #43   Spotlight this post!  
Unread 03-04-2003, 13:53
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
Darn it! I thought I fixed that. Anyways, the problem is probably that your serout doesn't contain all the bytes (255, 255, followed by two relay bytes and 16 PWMs). In theory, I fixed this issue way back when the eduBot came out, but apparently the reload feature doesn't make use of the new, less-strict serout requirements. I'm sure everybody is sick of hearing this by now, but I'll say it anyways: I'll try to incorporate it into 2.0. In any event, I would definately appreciate the source if you are willing to send it as it helps me track down bugs faster.

--Rob
__________________
New C-based RoboEmu2 (code simulator) available at: http://www.robbayer.com/software.php
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