|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
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? |
|
#2
|
||||
|
||||
|
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.
|
|
#3
|
||||
|
||||
|
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.
|
|
#4
|
||||
|
||||
|
Re: Forgetful robot
Quote:
-Kevin |
|
#5
|
||||
|
||||
|
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
|
||||
|
||||
|
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
|
||||
|
||||
|
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
|
||||
|
||||
|
Re: Forgetful robot
Quote:
-Kevin |
|
#9
|
||||
|
||||
|
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; The robot seems to go crazy at random now. It start and stop being crazy without loading the code. |
|
#10
|
||||
|
||||
|
Re: Forgetful robot
Quote:
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 |
|
#11
|
||||
|
||||
|
Re: Forgetful robot
Quote:
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. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
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 |