Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   default code and the actual robot (http://www.chiefdelphi.com/forums/showthread.php?t=24229)

tml240 22-01-2004 20:16

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

tml240 22-01-2004 20:41

Re: default code and the actual robot
 
*bump...:(

hello world 22-01-2004 20:53

Re: default code and the actual robot
 
hey BK
:mad: please do try to edit your messages before you post them. this applies to theory 6 forums as well :mad:

tml240 22-01-2004 22:10

Re: default code and the actual robot
 
im not good at grammar

Stephen Kowski 22-01-2004 22:13

Re: default code and the actual robot
 
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...

tml240 22-01-2004 23:35

Re: default code and the actual robot
 
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

Re: default code and the actual robot
 
Quote:

Originally Posted by tml240
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 for specific functions and IO mapping.

tml240 23-01-2004 16:47

Re: default code and the actual robot
 
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

Guest 23-01-2004 16:55

Re: default code and the actual robot
 
What EXACTLY is the problem?

tml240 23-01-2004 18:12

Re: default code and the actual robot
 
if we load the default code onto the robot, the joystick is messed, x and y are switched, do u see that problem?

billstu 23-01-2004 22:36

Re: default code and the actual robot
 
I've seen it (left right on the joystick swapped)... but that should be easy to fix in the code...

tml240 24-01-2004 09:55

Re: default code and the actual robot
 
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

Re: default code and the actual robot
 
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.....

Guest 24-01-2004 10:50

Hardware problem?
 
Quote:

Originally Posted by tml240
so what can be fixed in the code

First 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.

tml240 24-01-2004 11:28

Re: Hardware problem?
 
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?

Guest 24-01-2004 11:31

Re: Hardware problem?
 
Quote:

Originally Posted by tml240
IT WAS THE WIRING!

As my post above said, check the wiring first, before mangling the software.


All times are GMT -5. The time now is 19:51.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi