![]() |
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?!?! |
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); |
Re: default drive?
Quote:
|
Re: default drive?
so uh... how do I open .hex files? to look at them / edit them?
|
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! |
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