Go to Post We found our bandsaw on Craigslist for $40. We keep looking for laser cutters and waterjets in that price range, but so far no luck. - chapman1 [more]
Home
Go Back   Chief Delphi > Technical > Electrical
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 23-01-2007, 00:36
GMKlenklen's Avatar
GMKlenklen GMKlenklen is offline
The "Masonater"
AKA: George Mason Klenklen
FRC #2167 (MASMabots)
Team Role: Leadership
 
Join Date: Sep 2006
Rookie Year: 2006
Location: Maryville, MO
Posts: 120
GMKlenklen is a name known to allGMKlenklen is a name known to allGMKlenklen is a name known to allGMKlenklen is a name known to allGMKlenklen is a name known to allGMKlenklen is a name known to all
Send a message via AIM to GMKlenklen Send a message via MSN to GMKlenklen Send a message via Yahoo to GMKlenklen
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?!?!
__________________
Thank you,
formerGrand Master Klenklen
-of the MASMabots-
  #2   Spotlight this post!  
Unread 23-01-2007, 01:48
dpick1055's Avatar
dpick1055 dpick1055 is offline
David Pick
FRC #1739 (Chicago Knights)
Team Role: Alumni
 
Join Date: May 2005
Rookie Year: 2004
Location: Chicago
Posts: 75
dpick1055 is on a distinguished road
Send a message via AIM to dpick1055
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);
__________________
Always remember to take your powered wheels off the ground when first testing code. Otherwise you'll end up with holes in the wall like us
  #3   Spotlight this post!  
Unread 23-01-2007, 06:52
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: default drive?

Quote:
Originally Posted by GMKlenklen View Post
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.
  #4   Spotlight this post!  
Unread 23-01-2007, 13:23
GMKlenklen's Avatar
GMKlenklen GMKlenklen is offline
The "Masonater"
AKA: George Mason Klenklen
FRC #2167 (MASMabots)
Team Role: Leadership
 
Join Date: Sep 2006
Rookie Year: 2006
Location: Maryville, MO
Posts: 120
GMKlenklen is a name known to allGMKlenklen is a name known to allGMKlenklen is a name known to allGMKlenklen is a name known to allGMKlenklen is a name known to allGMKlenklen is a name known to all
Send a message via AIM to GMKlenklen Send a message via MSN to GMKlenklen Send a message via Yahoo to GMKlenklen
Re: default drive?

so uh... how do I open .hex files? to look at them / edit them?
__________________
Thank you,
formerGrand Master Klenklen
-of the MASMabots-
  #5   Spotlight this post!  
Unread 23-01-2007, 13:27
dpick1055's Avatar
dpick1055 dpick1055 is offline
David Pick
FRC #1739 (Chicago Knights)
Team Role: Alumni
 
Join Date: May 2005
Rookie Year: 2004
Location: Chicago
Posts: 75
dpick1055 is on a distinguished road
Send a message via AIM to dpick1055
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!
__________________
Always remember to take your powered wheels off the ground when first testing code. Otherwise you'll end up with holes in the wall like us
  #6   Spotlight this post!  
Unread 23-01-2007, 15:32
GMKlenklen's Avatar
GMKlenklen GMKlenklen is offline
The "Masonater"
AKA: George Mason Klenklen
FRC #2167 (MASMabots)
Team Role: Leadership
 
Join Date: Sep 2006
Rookie Year: 2006
Location: Maryville, MO
Posts: 120
GMKlenklen is a name known to allGMKlenklen is a name known to allGMKlenklen is a name known to allGMKlenklen is a name known to allGMKlenklen is a name known to allGMKlenklen is a name known to all
Send a message via AIM to GMKlenklen Send a message via MSN to GMKlenklen Send a message via Yahoo to GMKlenklen
Re: default drive?

sweet, thanks
__________________
Thank you,
formerGrand Master Klenklen
-of the MASMabots-
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

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


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

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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