|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
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?!?! |
|
#2
|
||||
|
||||
|
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); |
|
#3
|
|||||
|
|||||
|
Re: default drive?
Quote:
|
|
#4
|
||||
|
||||
|
Re: default drive?
so uh... how do I open .hex files? to look at them / edit them?
|
|
#5
|
||||
|
||||
|
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! |
|
#6
|
||||
|
||||
|
Re: default drive?
sweet, thanks
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Chain drive vs. cogged belt drive(timing belts) | LordBritten | Technical Discussion | 24 | 20-12-2006 23:07 |
| pic: Jester Drive:Mecanum Wheel Drive Train | Ken Delaney 357 | Technical Discussion | 64 | 29-03-2006 22:16 |
| Default Code | Idaman323 | Programming | 5 | 12-02-2006 17:14 |
| default program | nick_champ_2 | Programming | 2 | 06-02-2003 13:11 |
| default code | archiver | 2001 | 2 | 23-06-2002 22:53 |