Thread: kit bot wireing
View Single Post
  #5   Spotlight this post!  
Unread 27-01-2005, 16:39
cabbagekid2 cabbagekid2 is offline
Registered User
#0368 (Kika Mana)
 
Join Date: Jun 2001
Rookie Year: 2000
Location: Honolulu, HI
Posts: 85
cabbagekid2 has a spectacular aura aboutcabbagekid2 has a spectacular aura aboutcabbagekid2 has a spectacular aura about
Re: kit bot wireing

Quote:
Originally Posted by sirbleedsalot
How do you tell what type of code you are using, and where is the code you put on here because I could not find it. All I found was
/* Add your own code here. */
robot_control();

Generate_Pwms(pwm13,pwm14,pwm15,pwm16);

Putdata(&txdata); /* DO NOT CHANGE! */
}
in user_routines.c

The type of code you are using depends on where you get it from. The 2005 default code is posted on the IFI robotics site at http://www.ifirobotics.com/rc.shtml if you scroll down to the bottom you should see a link to download the RC default user code. The code you posted does not look like any of the default code listed. I'm going to guess that you are using something else other than the default code. WHere did you get your code from? I would look for the robot_control () definition section. Somewhere in here it should show you what pwms are being changed in response to the joystick inputs. Then you can find out which pwms control the drive motors.

Edit: I think you are using kevin watson's Navigation code. So your motors should run off of pwm 1 and 3 as you said you did. So did you try to adjust the trim to get the motors to stop moving? I haven't really looked into that code yet so I'm not sure how it works. But it doesn't look like you can control the motors with the joysticks.(???) Kevin would probably be able to explain how it works.

Last edited by cabbagekid2 : 27-01-2005 at 17:12.