View Full Version : default code and the actual robot
ok did anyone have problem with the default code not working with the 'default wiring'? cuz ours seems to have a problem and we're trying to fix it
hello world
22-01-2004, 20:53
hey BK
:mad: please do try to edit your messages before you post them. this applies to theory 6 forums as well :mad:
Stephen Kowski
22-01-2004, 22:13
what is wrong specifically? i know we had to reupload the default code like the default code reference guide suggested....mainly our prob was with the compressor and that fixed it...
my question was that when u just built the default code and loaded it onto the robot, does it work (robot's movement) properly for you guys?
Astronouth7303
23-01-2004, 13:46
my question was that when u just built the default code and loaded it onto the robot, does it work (robot's movement) properly for you guys?
It worked as expected for us. We ploped it in last year's bot (Not Dig.IOs or Analog) and it worked as expected. Check the FRC Default Code Reference Guide (http://www.innovationfirst.com/FIRSTRobotics/pdfs/FRC_RC_Default_Software_Ref_Guide_2004-1-7.pdf) for specific functions and IO mapping.
Thanx for the info but we are still having trouble with the code and our robot. I was wondering if u edited or changed the defauls code in any way before putting it on the bot? cause we were having a lot of trouble. another thing i was just wondering was r u guys using one joystick for ur bot or r u guys using 2???? and for my finial question i was wondering how u guys set up the motors for ur wheels( like in which pwm output pin u put them in?) all ur help is greatly appreciated. thanx
What EXACTLY is the problem?
if we load the default code onto the robot, the joystick is messed, x and y are switched, do u see that problem?
I've seen it (left right on the joystick swapped)... but that should be easy to fix in the code...
we are trying to fix this part:
pwm13 = pwm14 = Limit_Mix(2000+ p1_y + p1_x - 127);
pwm15 = pwm16 = Limit_Mix(2000+ p1_y - p1_x + 127);
ok here's the thing...
pwm 13 and 14 should be on one side and 15 and 16 on the other,
but we got 13 and 15, and 14 and 16.
so what can be fixed in the code?
Stephen Kowski
24-01-2004, 10:22
nah never had a problem with the default code (make sure you are reading the default code reference guide if you are planning on hacking up the default code) either you are plugging in 13, 15, 14, and 16 wrong or the aliases for them are screwed up, check in "ifi_aliases.h" and check everything is ok in there......other than that im all out of ideas at the moment.....
so what can be fixed in the codeFirst check what can't be fixed in the code:
Maybe somebody's already said this, but have you checked the connections from each PWM output to the Victor 884's? Then check the connections from the Victor's to the motors.
If you "fix" the code without fixing the hardware connections, your robot might work for now. But when somebody realizes that the connections are incorrect and fixes those, your robot will stop working and it'll be hard to debug.
Check software, hardware, then repeat.
bup forget it...we got it fixed....IT WAS THE WIRING! we are using two controllers to get the robot going...thx for the advices....:D but we still need to control the speed, anyone got that?
IT WAS THE WIRING!As my post above said, check the wiring first, before mangling the software.
vBulletin® v3.6.4, Copyright ©2000-2017, Jelsoft Enterprises Ltd.