Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Electrical (http://www.chiefdelphi.com/forums/forumdisplay.php?f=53)
-   -   default drive? (http://www.chiefdelphi.com/forums/showthread.php?t=52545)

GMKlenklen 23-01-2007 00:36

default drive?
 
Hi all!

Today we got 50% of the robot running!!! (the right side)

I'd like to know what pwm pins and such are used by the "default" program in there. I think I have pwm output to a victor hooked up to my right cim motor. Now I have pwm output to the other victor hooked up to my left cim motor... but either that does not work (hope not)... or the default isn't Port 1 & 2 on the operator interface!

Does anyone know?!?!

dpick1055 23-01-2007 01:48

Re: default drive?
 
The default drive code uses pwm 13 - 16. pwm 13 and 14 are side of the robot and 15 and 16 are the other side. Here's the code if your interested.

pwm13 = pwm14 = Limit_Mix(2000 + p1_y + p1_x - 127);
pwm15 = pwm16 = Limit_Mix(2000 + p1_y - p1_x + 127);

Alan Anderson 23-01-2007 06:52

Re: default drive?
 
Quote:

Originally Posted by GMKlenklen (Post 563037)
I'd like to know what pwm pins and such are used by the "default" program in there.

Read the default program. You can find it at http://www.ifirobotics.com/rc.shtml (it's the 2007 RC Code link) if you don't already have a copy. It is well commented. The relevant part is Default_Routine() in the user_routines.c file.

GMKlenklen 23-01-2007 13:23

Re: default drive?
 
so uh... how do I open .hex files? to look at them / edit them?

dpick1055 23-01-2007 13:27

Re: default drive?
 
You don't want to open the .hex files. You download default code (the link was posted above, I don't remember it off the top of my head). This will come with a bunch of .c and .h files and an MPLAP workspace file. Once you install MPLAB which came in the kop you can open these files and edit them. You should read the programming getting started thread it has a good explaintion of all of this. http://www.chiefdelphi.com/forums/sh...ad.php?t=30976

Good Luck!

GMKlenklen 23-01-2007 15:32

Re: default drive?
 
sweet, thanks


All times are GMT -5. The time now is 11:47.

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