Go to Post Do it the good ol' American way and throw money at the problem. In other words, get out of there and call a professional to take care of it. - sanddrag [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 29-01-2005, 07:09
capenga's Avatar
capenga capenga is offline
Penga boy
AKA: Giovane
#1156 (Under Control)
Team Role: Programmer
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Pio XII High School - Brazil
Posts: 33
capenga is an unknown quantity at this point
Send a message via ICQ to capenga Send a message via MSN to capenga
Exclamation Default code problem

I don't know why, some time after turning on the robot and driving with it, the robot stops and the robot controler indicates program error (the led of program state is blinking red), so it doesn't work anymore. And in the OI the pwm[number] leds are not working (instead of green and red for forwards and backwards, its only blinking red).
I'm using the frc default code 2005 for mc18 2.4, have already updated the firmware and have mc18 2.4 and mplab 6.62.

If someone knows what's my problem please tell me!!
__________________


Ignore alien orders.
  #2   Spotlight this post!  
Unread 29-01-2005, 09:35
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,753
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Default code problem

Quote:
Originally Posted by capenga
the robot controler indicates program error (the led of program state is blinking red), so it doesn't work anymore.
It usually means you have hit an infinite loop in your code or something else prevents it from doing a Putdata fast enough to satisfy the Master processor, but you can use the Dashboard Viewer to get more information about the "blinking red light" error.

"Make sure your OI and RC are linked via tether or radio, connect your PC's serial port to the DASHBOARD port on your OI, make sure the OI/RC jumper is set to "RC", and you will see details about the type of error which caused the flashing red LED at the bottom of the Dashboard Viewer window." http://www.chiefdelphi.com/forums/sh...5&postcount=16
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 29-01-2005 at 11:14.
  #3   Spotlight this post!  
Unread 29-01-2005, 09:45
Mr. Lim Mr. Lim is offline
Registered User
AKA: Mr. Lim
no team
Team Role: Leadership
 
Join Date: Jan 2004
Rookie Year: 1998
Location: Toronto, Ontario
Posts: 1,125
Mr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond repute
Re: Default code problem

Quote:
Originally Posted by capenga
I don't know why, some time after turning on the robot and driving with it, the robot stops and the robot controler indicates program error (the led of program state is blinking red), so it doesn't work anymore. And in the OI the pwm[number] leds are not working (instead of green and red for forwards and backwards, its only blinking red).
I'm using the frc default code 2005 for mc18 2.4, have already updated the firmware and have mc18 2.4 and mplab 6.62.

If someone knows what's my problem please tell me!!
Sometimes we get the blinking red light (Code Error) with the default code when we're driving with a low Main Battery and no Backup Battery.

If you see the voltage dip on the OI a lot (hit the select button a few times, and it will eventually display your main battery voltage) after driving, you might be under-volting the RC causing it to code error.

This happend to us quite a lot after a few minutes of driving Blizzard 5 (6 motor, 4x8" wheel drive with really grippy wheels).

If batteries were not fully charged, all it took was a couple seconds of all-out high-gear spinning on axis to cause the problem.

-SlimBoJones...
  #4   Spotlight this post!  
Unread 31-01-2005, 06:04
capenga's Avatar
capenga capenga is offline
Penga boy
AKA: Giovane
#1156 (Under Control)
Team Role: Programmer
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Pio XII High School - Brazil
Posts: 33
capenga is an unknown quantity at this point
Send a message via ICQ to capenga Send a message via MSN to capenga
Re: Default code problem

thanks a lot!!

i think that one of this "things" that you've said will solve my problem here

**Edit:

Now I'm really confused!! Even putting a charged 12V battery, and the charged backup battery, it continues to get the same error

And, a curious thing: The program freezes in exactly 45 seconds!!
__________________


Ignore alien orders.

Last edited by capenga : 31-01-2005 at 07:00. Reason: Uh! Oh! More problems!!
  #5   Spotlight this post!  
Unread 31-01-2005, 07:11
stephenthe1 stephenthe1 is offline
Registered User
#1008
 
Join Date: Dec 2004
Location: Ohio
Posts: 113
stephenthe1 is on a distinguished road
Re: Default code problem

make sure the gyro is unconnected while trying to set the camera up to reconize the colors (callibrating). I found this will mess the program up and make the camera send bad pictures. Once it is first callibrated, then plug in the servo. How do you have the java program AUTOMATICALLY control the servo according to where the red blue or green tetra is?
  #6   Spotlight this post!  
Unread 31-01-2005, 09:18
steven114 steven114 is offline
Programming Wizard and Team Captain
AKA: Steven Schlansker
FRC #0114 (Eaglestrike)
Team Role: Programmer
 
Join Date: Feb 2004
Location: Los Altos, CA
Posts: 335
steven114 is a jewel in the roughsteven114 is a jewel in the roughsteven114 is a jewel in the rough
Send a message via AIM to steven114
Re: Default code problem

Try redownloading the default code. Sounds stupid, but you never know...
__________________
Shift to the left, shift to the right!
Pop up, push down, byte, byte, byte!
  #7   Spotlight this post!  
Unread 31-01-2005, 10:21
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Default code problem

Quote:
Originally Posted by capenga
And in the OI the pwm[number] leds are not working (instead of green and red for forwards and backwards, its only blinking red).
The default code v2.4 with camera support does this to let you know it hasn't established communication with the CMUcam. If you aren't using a camera, you should probably be using default code v2.2 instead.

If you are using a camera, the blinking red LEDs on the OI mean there is something either not connected, connected improperly, or just plain broken. That might be a clue to why your program freezes reliably after 45 seconds.
  #8   Spotlight this post!  
Unread 31-01-2005, 11:42
capenga's Avatar
capenga capenga is offline
Penga boy
AKA: Giovane
#1156 (Under Control)
Team Role: Programmer
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Pio XII High School - Brazil
Posts: 33
capenga is an unknown quantity at this point
Send a message via ICQ to capenga Send a message via MSN to capenga
Re: Default code problem

Quote:
Originally Posted by Alan Anderson
The default code v2.4 with camera support does this to let you know it hasn't established communication with the CMUcam. If you aren't using a camera, you should probably be using default code v2.2 instead.

If you are using a camera, the blinking red LEDs on the OI mean there is something either not connected, connected improperly, or just plain broken. That might be a clue to why your program freezes reliably after 45 seconds.
Yeah, you're right... we're not using the camera yet, and that was the reason for the error on the RC.
So we have downloaded the 2.2 default code, and it's working all right now

thanks a lot!!!
__________________


Ignore alien orders.
  #9   Spotlight this post!  
Unread 01-02-2005, 08:09
ldeffenb ldeffenb is offline
Registered User
AKA: Lynn Deffenbaugh (Mr)
None #0386 (Team Voltage 386)
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2003
Location: Florida
Posts: 75
ldeffenb has a spectacular aura aboutldeffenb has a spectacular aura aboutldeffenb has a spectacular aura about
Send a message via ICQ to ldeffenb Send a message via AIM to ldeffenb Send a message via Yahoo to ldeffenb
Re: Default code problem

Actually, the 2.4 default code can be compiled without the camera support and then you can later turn the camera on. Just go to Project/Build Options/Project and click the MPLAB C18 tab. If you remove _USE_CMU_CAMERA, the camera code will be ignored by the compiler.

Alternatively, you can edit user_camera.h and comment out the #define FREEZE_ON_ERROR. This define causes the blinking Red lights and the controller errors if there is any communication problem with the camera.

On a separate note, has anyone seen the tracking packets from the camera quit after some time when Kevin's gyro code is integrated into the 2.4 default code? I'm suspecting an interrupt conflict or corruption between the gyro's 400hz interrupt and the camera's serial port for receiving the T packet data. Anyone seen anything similar?

Lynn (D) - Team Voltage 386 - www.teamvoltage.org
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
problem with the default code MarkVH Programming 7 28-01-2005 00:04
user code to default code phoenixomega001 Programming 5 09-01-2005 00:09
heres the code. y this not working omega Programming 16 31-03-2004 15:18
Strange IR sensor movement with default tracker code wun Programming 5 19-03-2004 10:51
default code and the actual robot tml240 Programming 15 24-01-2004 11:31


All times are GMT -5. The time now is 10:56.

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