Go to Post I had a fight with my robot once during competition. I felt bad about it and apologized. - Tommy F. [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 20-01-2008, 11:04
xrabohrok's Avatar
xrabohrok xrabohrok is offline
hunter of errors
FRC #1208 (The Metool Brigade)
Team Role: Programmer
 
Join Date: Jan 2006
Location: O'Fallon
Posts: 62
xrabohrok is an unknown quantity at this point
Forgetful robot

Our team's robot has finally been assembled (well, the chasis anyway) and the came to load the code. When the code was loaded, it did fine. But when we turned it off and then back on, the robot went crazy, defaulting to a bizarre control scheme were the x direction of a undefined joystick controls half of the robot. I would like to think it is the backup battery, but it seems to be fine. Does anyone have suggestions?
__________________
"It's programming's fault" may be a viable excuse for just about everything, except the robot falling apart.

It will 'cause it can!

constants aren't. variables won't.
  #2   Spotlight this post!  
Unread 20-01-2008, 11:18
paulcd2000's Avatar
paulcd2000 paulcd2000 is offline
Accidentally speaks in C
AKA: Paul Dagnelie
FRC #1719 (The Umbrella Corp.)
Team Role: Programmer
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Baltimore
Posts: 368
paulcd2000 is a jewel in the roughpaulcd2000 is a jewel in the roughpaulcd2000 is a jewel in the rough
Send a message via AIM to paulcd2000
Re: Forgetful robot

are you sure nothing changed? no pwms moved, no joysticks changed? Check the joystick trims? honestly, if reloading the code and checking your wiring setup doesn't fix the problem, then it might be a coding error.
__________________
"People don't say 'It's just a game' when their team is winning!" -- Scott Adams

5.5 students (on average)* $7/h *210 hours/student= $8085 of labor, all volunteered (not counting mentors', who are each that much)

We have blades on our robot?! ***sweeeeeet***

There are 11 types of people in the world. Those who can read binary, those who can't, and those who say this joke is supposed to be, "There are 10 types of people in the world. Those who can read binary and those who have a life."
  #3   Spotlight this post!  
Unread 20-01-2008, 14:00
xrabohrok's Avatar
xrabohrok xrabohrok is offline
hunter of errors
FRC #1208 (The Metool Brigade)
Team Role: Programmer
 
Join Date: Jan 2006
Location: O'Fallon
Posts: 62
xrabohrok is an unknown quantity at this point
Re: Forgetful robot

I'm quite sure. The control scheme is correct when the code is first loaded, but turning off the robot makes it go crazy. When the robot does that, control for two wheels go to the auxilary joystick, in the x directions. trim is not an issue when this happens. The code does not change.
__________________
"It's programming's fault" may be a viable excuse for just about everything, except the robot falling apart.

It will 'cause it can!

constants aren't. variables won't.
  #4   Spotlight this post!  
Unread 20-01-2008, 14:35
Kevin Watson's Avatar
Kevin Watson Kevin Watson is offline
La Caņada High School
FRC #2429
Team Role: Mentor
 
Join Date: Jan 2002
Rookie Year: 2001
Location: La Caņada, California
Posts: 1,335
Kevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond repute
Re: Forgetful robot

Quote:
Originally Posted by xrabohrok View Post
Our team's robot has finally been assembled (well, the chasis anyway) and the came to load the code. When the code was loaded, it did fine. But when we turned it off and then back on, the robot went crazy, defaulting to a bizarre control scheme were the x direction of a undefined joystick controls half of the robot. I would like to think it is the backup battery, but it seems to be fine. Does anyone have suggestions?
Using the "select" button on your operator interface, switch to the battery voltage and report back here. What base code are you using? Are you getting the red-light-of-death (program state LED on the robot controller is red)?

-Kevin
__________________
Kevin Watson
Engineer at stealth-mode startup
http://kevin.org
  #5   Spotlight this post!  
Unread 20-01-2008, 19:17
tseres's Avatar
tseres tseres is offline
obsessed with FIRST...
FRC #1565 (Think Tank Tech)
Team Role: Leadership
 
Join Date: Apr 2007
Rookie Year: 2007
Location: Cambridge, ON
Posts: 305
tseres is a glorious beacon of lighttseres is a glorious beacon of lighttseres is a glorious beacon of lighttseres is a glorious beacon of lighttseres is a glorious beacon of lighttseres is a glorious beacon of light
Re: Forgetful robot

check if your main battery i charged. we were testing omni code and it was going crazy. after 1hr of messing with our code, we realized it was a low battery.
__________________


  #6   Spotlight this post!  
Unread 21-01-2008, 11:39
xrabohrok's Avatar
xrabohrok xrabohrok is offline
hunter of errors
FRC #1208 (The Metool Brigade)
Team Role: Programmer
 
Join Date: Jan 2006
Location: O'Fallon
Posts: 62
xrabohrok is an unknown quantity at this point
Re: Forgetful robot

It looks like I spoke too soon. Changing the main battery fixes it temporarily but turning it on and off gets the crazyness back.

The operator interface puts out crazyness as well:
c40
0003
quickly switching between u056 and u008 and u024.

Testing the battery with a multi-meter yields the battery at 12 v.

all lights on the control board were green.

Last edited by xrabohrok : 21-01-2008 at 11:41.
  #7   Spotlight this post!  
Unread 21-01-2008, 11:51
11Mort11's Avatar
11Mort11 11Mort11 is offline
Registered User
AKA: Alex Joss
FRC #0011 (MORT)
 
Join Date: Feb 2007
Rookie Year: 2006
Location: Mount Olive
Posts: 94
11Mort11 is a splendid one to behold11Mort11 is a splendid one to behold11Mort11 is a splendid one to behold11Mort11 is a splendid one to behold11Mort11 is a splendid one to behold11Mort11 is a splendid one to behold11Mort11 is a splendid one to behold11Mort11 is a splendid one to behold
Send a message via AIM to 11Mort11
Re: Forgetful robot

are the controllers trimmed?
that happened to us a few times

Last edited by 11Mort11 : 21-01-2008 at 12:12.
  #8   Spotlight this post!  
Unread 21-01-2008, 12:09
Kevin Watson's Avatar
Kevin Watson Kevin Watson is offline
La Caņada High School
FRC #2429
Team Role: Mentor
 
Join Date: Jan 2002
Rookie Year: 2001
Location: La Caņada, California
Posts: 1,335
Kevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond repute
Re: Forgetful robot

Quote:
Originally Posted by xrabohrok View Post
It looks like I spoke too soon. Changing the main battery fixes it temporarily but turning it on and off gets the crazyness back.

The operator interface puts out crazyness as well:
c40
0003
quickly switching between u056 and u008 and u024.

Testing the battery with a multi-meter yields the battery at 12 v.

all lights on the control board were green.
What base code are you using and what, if any, modification have been made to it?

-Kevin
__________________
Kevin Watson
Engineer at stealth-mode startup
http://kevin.org
  #9   Spotlight this post!  
Unread 21-01-2008, 12:32
xrabohrok's Avatar
xrabohrok xrabohrok is offline
hunter of errors
FRC #1208 (The Metool Brigade)
Team Role: Programmer
 
Join Date: Jan 2006
Location: O'Fallon
Posts: 62
xrabohrok is an unknown quantity at this point
Re: Forgetful robot

I am using 2007 frc_serial_ports version of the code from kevin.org.

my modifications are as follows:

Code:
  pwm01 = joystick_values[p1_y];   
  pwm02 = joystick_values[p2_y];   
  pwm03 = joystick_values[p3_y];   
  pwm04 = 127; //p4_y;   
  pwm05 = 127; //p1_x;   
  pwm06 = 127; //p2_x;   
  pwm07 = 127; //p3_x;   
  pwm08 = 127; //p4_x;   
  pwm09 = 127; //p1_wheel;
  pwm10 = 127; //p2_wheel;   
  pwm11 = 127; //p3_wheel;   
  pwm12 = 127; //p4_wheel;
joystick_values is a 256 element global array with each element a value that the pwm should be in relation to the joystick value. We have been using that array the same way for 4 years (its kind of a hand me down).

The robot seems to go crazy at random now. It start and stop being crazy without loading the code.
__________________
"It's programming's fault" may be a viable excuse for just about everything, except the robot falling apart.

It will 'cause it can!

constants aren't. variables won't.
  #10   Spotlight this post!  
Unread 21-01-2008, 13:27
Kevin Watson's Avatar
Kevin Watson Kevin Watson is offline
La Caņada High School
FRC #2429
Team Role: Mentor
 
Join Date: Jan 2002
Rookie Year: 2001
Location: La Caņada, California
Posts: 1,335
Kevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond repute
Re: Forgetful robot

Quote:
Originally Posted by xrabohrok View Post
I am using 2007 frc_serial_ports version of the code from kevin.org.

my modifications are as follows:

Code:
  pwm01 = joystick_values[p1_y];   
  pwm02 = joystick_values[p2_y];   
  pwm03 = joystick_values[p3_y];   
  pwm04 = 127; //p4_y;   
  pwm05 = 127; //p1_x;   
  pwm06 = 127; //p2_x;   
  pwm07 = 127; //p3_x;   
  pwm08 = 127; //p4_x;   
  pwm09 = 127; //p1_wheel;
  pwm10 = 127; //p2_wheel;   
  pwm11 = 127; //p3_wheel;   
  pwm12 = 127; //p4_wheel;
joystick_values is a 256 element global array with each element a value that the pwm should be in relation to the joystick value. We have been using that array the same way for 4 years (its kind of a hand me down).

The robot seems to go crazy at random now. It start and stop being crazy without loading the code.
This is on a 2008 controller? Does it work correctly with unmodified code? Before you do anything else, can you please send me your .map file?

As a possible solution, try this and report back with the results. Also make sure you're using the attached linker script (delete the .txt part, then drop into your build directory).

-Kevin
Attached Files
File Type: txt 18f8722.lkr.txt (1.8 KB, 58 views)
__________________
Kevin Watson
Engineer at stealth-mode startup
http://kevin.org
  #11   Spotlight this post!  
Unread 21-01-2008, 13:31
ay2b's Avatar
ay2b ay2b is offline
Registered User
AKA: Andy
FRC #2928
Team Role: Mentor
 
Join Date: Mar 2004
Rookie Year: 1994
Location: Seattle, WA
Posts: 211
ay2b has a brilliant futureay2b has a brilliant futureay2b has a brilliant futureay2b has a brilliant futureay2b has a brilliant futureay2b has a brilliant futureay2b has a brilliant futureay2b has a brilliant futureay2b has a brilliant futureay2b has a brilliant futureay2b has a brilliant future
Re: Forgetful robot

Quote:
Originally Posted by xrabohrok View Post
It looks like I spoke too soon. Changing the main battery fixes it temporarily but turning it on and off gets the crazyness back.

The operator interface puts out crazyness as well:
c40
0003
quickly switching between u056 and u008 and u024.

Testing the battery with a multi-meter yields the battery at 12 v.

all lights on the control board were green.
The select button cycles through channel number, team number, battery voltage and "user number". When first powered on, the user number should display the version of the code on the master processor. (After a few seconds, it displays whatever the user processor wants to display.)

What version of the master code are you running? The latest version (I believe) is version 15, and can be downloaded from IFI at the bottom of the FRC Robot Controller page. The direct link is: http://www.ifirobotics.com/docs/frc-master-ver15.zip

Since no one else has suggested it, I'll suggest that you try re-downloading the master code. After doing so, you will also need to re-download your user code.
__________________

2011 - SD Quarterfinalists (980), LA Quarterfinalists (980)
2010 - LA (2404) Finalists (980), AZ Motorola Quality (980)
2009 - LA Semifinalists (980); Las Vegas Quarterfinalists (980); SD (2404); IRI #1 Seed, Finalist (980)
2008 - SD Quarterfinalists (980), LA Champions (980), LA Rookie Inspiration Award (2404); CalGames Finalists
2007 - So.Cal Finalists (980), SD Quarterfinalists (980); CalGames Finalists
2006 - So.Cal Regional Champion (4), Toronto Judge's Award Day 1 (4)
2005 - SVR Champions, Delphi "Driving Tomorrow's Technology" (980); AZ Xerox Creativity (980); So.Cal Finalists, RadioShack Innovation in Control (980); Championship Archimedes Division Semifinalists; IRI Finalists (980)
2004 - So.Cal Regional Champions, Leadership in Controls (980); AZ GM Industrial Design (980); Championship Galileo Division #2 Seed; IRI Champions
2003 - PNW Semi-finalists (488)
2002 - PNW Finalists (488)
2000 - X-bot / 488 - Mentor / Founder
1994 - Sunny Delight - Driver - champion
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
pic: 233 robot teaser, yep, theres our robot ; ) ducttapedude Extra Discussion 20 15-02-2007 22:02
Sony QRIO Robot = cool FVC robot! artdutra04 FIRST Tech Challenge 0 18-10-2005 16:55
pic: Team 114 Real Robot Vs. Inventor Robot James114 Robot Showcase 3 18-02-2005 13:02
Can an a robot take a tetra from another robot in their allinace? Koko Ed Rules/Strategy 3 10-01-2005 23:01
Robot Gallery from the 2003 robot expostion in Tokyo, Japan Andrew Rudolph Chit-Chat 1 04-12-2003 15:22


All times are GMT -5. The time now is 18:35.

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