![]() |
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.:ahh: I would like to think it is the backup battery, but it seems to be fine. Does anyone have suggestions?
|
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.
|
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.
|
Re: Forgetful robot
Quote:
-Kevin |
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.
|
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. |
Re: Forgetful robot
are the controllers trimmed?
that happened to us a few times |
Re: Forgetful robot
Quote:
-Kevin |
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]; The robot seems to go crazy at random now. It start and stop being crazy without loading the code. |
Re: Forgetful robot
1 Attachment(s)
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 |
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. |
| All times are GMT -5. The time now is 23:11. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi