Go to Post I am a geek and proud of it. - +()c|D [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
  #1   Spotlight this post!  
Unread 19-02-2002, 21:46
Ulibrium Ulibrium is offline
Registered User
#0920 (Lancers)
 
Join Date: Jan 2002
Location: Philadelphia, PA
Posts: 29
Ulibrium is an unknown quantity at this point
Send a message via AIM to Ulibrium
Basic Run Error

Hi,

We have the problem of generating a BASIC Run Error in the middle of robot operation. We have put in a lot of custom programming, but none of it looks error-causing. The only way I could see a BASIC Run Error occurring is a divide by zero, or a loss in syncrhonization between the RC and OI. I don't think that either of those are the problems. Can someone help me out here?
__________________
Three mathematicians slave over a board full of tensor calculus. One looks to the other and asks... "do you remember what we sent out to prove?"
  #2   Spotlight this post!  
Unread 19-02-2002, 22:23
Ian W. Ian W. is offline
College? What?
no team (Gompei and the Herd)
Team Role: College Student
 
Join Date: Jan 2002
Rookie Year: 2002
Location: Worcester, MA | Smithtown, NY
Posts: 1,464
Ian W. is a name known to allIan W. is a name known to allIan W. is a name known to allIan W. is a name known to allIan W. is a name known to allIan W. is a name known to all
Send a message via AIM to Ian W.
well, the only time i've seen a basic run error is if i use GreenDice's dashboard program plugged into the program port (not sure why though) or if i download some new code. other than that, i've never seen that happen.
  #3   Spotlight this post!  
Unread 19-02-2002, 22:26
Curtis Williams Curtis Williams is offline
Registered User
#0588 (Team 588)
Team Role: College Student
 
Join Date: Jan 2002
Rookie Year: 2001
Location: Jacksonville, FL
Posts: 122
Curtis Williams is on a distinguished road
Send a message via ICQ to Curtis Williams Send a message via AIM to Curtis Williams Send a message via MSN to Curtis Williams Send a message via Yahoo to Curtis Williams
Try putting debug statements somewhere in your main loop. See if the loop is completing or stopping somewhere.
  #4   Spotlight this post!  
Unread 19-02-2002, 22:43
Ulibrium Ulibrium is offline
Registered User
#0920 (Lancers)
 
Join Date: Jan 2002
Location: Philadelphia, PA
Posts: 29
Ulibrium is an unknown quantity at this point
Send a message via AIM to Ulibrium
I made a custom dashboard program in VB for the robot. If what you are saying about the GreenDice program is true, maybe that's what's causing the problem?
__________________
Three mathematicians slave over a board full of tensor calculus. One looks to the other and asks... "do you remember what we sent out to prove?"
  #5   Spotlight this post!  
Unread 20-02-2002, 01:46
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
I think that was the error I saw last night when I was using one of the other engineer's Windows XP laptop (I normally have used Win95.) When I downloaded a program which contained debug statements, and closed the debug window, I would get a basic run error on the robot. To recover from the error, I had to do one of the following:[list=1][*]Start up a new debug window.[*]Download a new program (and reset the robot controller)[*]Disconnect the programming cable between the robot and the laptop (and reset the robot controller -- I think.)[/list=1]

If that doesn't do it for you, the old standby reply is "Make sure the data requested in your initialization shiftout matches the variables read in the serin command."
__________________
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 : 20-02-2002 at 01:49.
  #6   Spotlight this post!  
Unread 20-02-2002, 09:26
GreenDice GreenDice is offline
Registered User
#0891
 
Join Date: Jan 2002
Location: Syracuse, NY
Posts: 33
GreenDice is an unknown quantity at this point
Programming Port

Please note that the Basic Stamp uses the DTR signal on the programming port as a "Reset" line. When you download a new program, the editor changes the state of the DTR line to reset the processor before downloading.

I think the Dashboard Monitor program changes the DTR line when it initalize the COM port. Thus the program is reset. So it is better to have the cable plugged in first when you start up the Dashboard Monitor porgram.

If you need more help on the RC connection with the Dashboard Monitor, please email me directly (liu@syrres.com)
__________________
Peter Liu
  #7   Spotlight this post!  
Unread 20-02-2002, 11:52
Ian W. Ian W. is offline
College? What?
no team (Gompei and the Herd)
Team Role: College Student
 
Join Date: Jan 2002
Rookie Year: 2002
Location: Worcester, MA | Smithtown, NY
Posts: 1,464
Ian W. is a name known to allIan W. is a name known to allIan W. is a name known to allIan W. is a name known to allIan W. is a name known to allIan W. is a name known to all
Send a message via AIM to Ian W.
Well, that will be something to try at the first regional i'm going to (LI Regional) since the robot is gone, and i have no other robot to test it on (being a rookie team and all). It's not that i need the program working, it's just a nice feature to play with.
  #8   Spotlight this post!  
Unread 20-02-2002, 15:09
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: Basic Run Error

Quote:
Originally posted by Ulibrium
We have the problem of generating a BASIC Run Error in the middle of robot operation.
I just noticed you said "in the middle of robot operation". This will happen if your battery voltage is too low too.
__________________
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
  #9   Spotlight this post!  
Unread 20-02-2002, 15:49
Ian W. Ian W. is offline
College? What?
no team (Gompei and the Herd)
Team Role: College Student
 
Join Date: Jan 2002
Rookie Year: 2002
Location: Worcester, MA | Smithtown, NY
Posts: 1,464
Ian W. is a name known to allIan W. is a name known to allIan W. is a name known to allIan W. is a name known to allIan W. is a name known to allIan W. is a name known to all
Send a message via AIM to Ian W.
Really? When our batteries "died" i thought the little orange light just went on. Then, the spinning light turned off, along with everything else, and my entire team is yelling at me, "What's wrong! Hit the button and make the robot go!".

then, i sat there trying to explain to them how the RC turns itself off with a voltage lower that 9, and they were all scratching their heads. sheesh, gotta love all the people who build the robot, but have no idea how it works.
__________________
AIM --> Woloi
Email --> ian@woloschin.com
  #10   Spotlight this post!  
Unread 20-02-2002, 16:05
Ulibrium Ulibrium is offline
Registered User
#0920 (Lancers)
 
Join Date: Jan 2002
Location: Philadelphia, PA
Posts: 29
Ulibrium is an unknown quantity at this point
Send a message via AIM to Ulibrium
Ok, here are the details. All I know is what they told me when they tested the robot, because unfortunately our team worked on the 'bot up until the last day and we had zero time to debug. Additionally, I wasn't there when they got it running so they had to figure things out without me. We designed a control system which includes a custom VB dashboard plugged into the serial dashboard port of the OI, and a steering wheel. We programmed the RC for steering wheel support on the USER slot and 2-joystick support on the DEFAULT slot. This way, if the calibration is funky, we can just fall back on a surefire system. The only difference between the two programs is a scaling factor, because steering wheel output only seems to range between 183-254, for example, instead of the full 0-254, and also a forward/reverse flag that is triggered by one of the buttons on the steering wheel. At the time of robot operation, nothing was plugged into program port of the RC. They reported to me that the BASIC Run Error LED would come on much more often for steering wheel drive than for joystick drive. This puzzles me. As soon as I get back in, I'm going to scour the code for debug statements and purge it. If this is the problem, I'll return and make you guys aware. Otherwise, I need some help.

P.S. They would have been aware if the battery voltage drops. That is part of our dashboard.
__________________
Three mathematicians slave over a board full of tensor calculus. One looks to the other and asks... "do you remember what we sent out to prove?"
  #11   Spotlight this post!  
Unread 20-02-2002, 22:06
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 Ulibrium
The only difference between the two programs is a scaling factor...
You might check your scaling algorithm. Remember, you need to limit your PWM outputs to 254. I don't know what (if anything) untoward happens if you send an occasional 255, but if you send two in a row in the serout command, the robot controller takes that as the beginning of a new data packet. It wouldn't surprise me at all if the symptom in such a case is a BASIC Run Error.
__________________
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
  #12   Spotlight this post!  
Unread 20-02-2002, 23:32
Matt Attallah's Avatar
Matt Attallah Matt Attallah is offline
Now at sub 14's in a 5000lb vehicle
AKA: Maher Attallah
FRC #0005 (Robocards)
Team Role: Alumni
 
Join Date: Sep 2001
Rookie Year: 2000
Location: Detroit area, Michigan
Posts: 1,660
Matt Attallah has a reputation beyond reputeMatt Attallah has a reputation beyond reputeMatt Attallah has a reputation beyond reputeMatt Attallah has a reputation beyond reputeMatt Attallah has a reputation beyond reputeMatt Attallah has a reputation beyond reputeMatt Attallah has a reputation beyond reputeMatt Attallah has a reputation beyond reputeMatt Attallah has a reputation beyond reputeMatt Attallah has a reputation beyond reputeMatt Attallah has a reputation beyond repute
Send a message via AIM to Matt Attallah Send a message via MSN to Matt Attallah Send a message via Yahoo to Matt Attallah
Lightbulb

Our controls had a basic error too, but it ran perfect. The robot one didn't pick it up, i think, but our driver-controller did. That little red light stayed on, or until i put duck tape over it. Haha, little red, basic error light, who has the upper hand now?

Just put a strip of duck tape when you see your robot agian, and all will be well. Just give it 2-3 hours to let the duck tape act as a bandage, and there u go, brand new robot!
__________________
That rug really tied the room together...
  #13   Spotlight this post!  
Unread 21-02-2002, 01:02
Ian W. Ian W. is offline
College? What?
no team (Gompei and the Herd)
Team Role: College Student
 
Join Date: Jan 2002
Rookie Year: 2002
Location: Worcester, MA | Smithtown, NY
Posts: 1,464
Ian W. is a name known to allIan W. is a name known to allIan W. is a name known to allIan W. is a name known to allIan W. is a name known to allIan W. is a name known to all
Send a message via AIM to Ian W.
Actually, sending two 255's in a row will not make the RC get a basic run error. Believe me, I've done it (hey, it's my first year programming). All it did was make the RC flip out. For the Basic Run Error, well, i would guess you just screwed up one thing in the code, like a "+" sign instead of a "-" sign. This downloads fine, but when you try and run the program, boy can something as simple as that flip the robot out. Especially when controlling the motors. It's not good when you're motors go from full reverse to full forward in about .02 seconds. Not good at all...
__________________
AIM --> Woloi
Email --> ian@woloschin.com
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
Impending BASIC Stamp Editor Beta 2 release Greg Ross Programming 9 19-09-2003 06:05
Basic Run Error BBFIRSTCHICK Programming 10 02-04-2003 22:43
Basic Init Error yan184 Programming 5 14-12-2002 13:10
BASIC error punarhero Programming 4 16-02-2002 23:21
BASIC Stamp Error mpatterson Programming 4 22-01-2002 12:08


All times are GMT -5. The time now is 23:20.

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