Go to Post not national champ.....WORLD CHAMPION - Stephen Kowski [more]
Home
Go Back   Chief Delphi > Technical > Programming
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 06-02-2005, 13:18
hawk_11's Avatar
hawk_11 hawk_11 is offline
FIRST Survivor
None #9999
 
Join Date: Jan 2005
Rookie Year: 2000
Location: USA
Posts: 18
hawk_11 is an unknown quantity at this point
Need help with code.

Hello, I'm a beginner programmer on Team 1302. I need help with a simple code.

The story runs like this. Today I was asked to make a very simple code to just make the motors rotate. I then realized that my mentors/other programmers never taught me how to start a program. This is really bad because I've been almost the only programmer here all build season. Long story short, I plugged the code in, but it is saying I'm missing a source code. Guess what, I was never told about source codes and seeing as it has the word 'source' in it, you'd think someone would remember to teach me -.- Can anyone help?
  #2   Spotlight this post!  
Unread 06-02-2005, 13:20
Mike's Avatar
Mike Mike is offline
has common ground with Matt Krass
AKA: Mike Sorrenti
FRC #0237 (Sie-H2O-Bots (See-Hoe-Bots) [T.R.I.B.E.])
Team Role: Programmer
 
Join Date: Dec 2004
Rookie Year: 2004
Location: Watertown, CT
Posts: 1,003
Mike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond repute
Re: Need help with code.

What do you mean you "plugged the code in"? Do you have the latest MPLab IDE and compiler on your computer?
__________________
http://www.mikesorrenti.com/
  #3   Spotlight this post!  
Unread 06-02-2005, 13:22
D.J. Fluck
 
Posts: n/a
Re: Need help with code.

More specific FIRST related coding help
http://www.chiefdelphi.com/forums/sh...ad.php?t=30976
http://www.chiefdelphi.com/forums/sh...ad.php?t=31817
http://www.ifirobotics.com/rc.shtml#Programming

If you have no experience with C try this white paper
http://www.chiefdelphi.com/forums/pa...le&paperid=396


There are plenty of tutorials and help all around this forum if you just search and look around. Hope these help

Last edited by D.J. Fluck : 06-02-2005 at 13:24. Reason: added link
  #4   Spotlight this post!  
Unread 06-02-2005, 13:25
hawk_11's Avatar
hawk_11 hawk_11 is offline
FIRST Survivor
None #9999
 
Join Date: Jan 2005
Rookie Year: 2000
Location: USA
Posts: 18
hawk_11 is an unknown quantity at this point
Re: Need help with code.

Quote:
Originally Posted by MikeWasHere05
What do you mean you "plugged the code in"? Do you have the latest MPLab IDE and compiler on your computer?
yes
  #5   Spotlight this post!  
Unread 06-02-2005, 13:28
hawk_11's Avatar
hawk_11 hawk_11 is offline
FIRST Survivor
None #9999
 
Join Date: Jan 2005
Rookie Year: 2000
Location: USA
Posts: 18
hawk_11 is an unknown quantity at this point
Re: Need help with code.

Quote:
Originally Posted by D.J. Fluck
More specific FIRST related coding help
http://www.chiefdelphi.com/forums/sh...ad.php?t=30976
http://www.chiefdelphi.com/forums/sh...ad.php?t=31817
http://www.ifirobotics.com/rc.shtml#Programming

If you have no experience with C try this white paper
http://www.chiefdelphi.com/forums/pa...le&paperid=396


There are plenty of tutorials and help all around this forum if you just search and look around. Hope these help
thanks
  #6   Spotlight this post!  
Unread 06-02-2005, 13:31
Anton's Avatar
Anton Anton is offline
Anton Povzner
#1581 (Element)
Team Role: Programmer
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Israel
Posts: 51
Anton can only hope to improve
Re: Need help with code.

you should download the default code from ifirobotics.com/rc.shtml
fo to file>>open workspase>> the only *mcp file in the code folder and then just modify default_routie(found in user_routines.c) as you need.
to access motors give a value between 0 and 255 to a pwm port where the motor is plugged in.
pwm01=255; for example
  #7   Spotlight this post!  
Unread 06-02-2005, 13:56
hawk_11's Avatar
hawk_11 hawk_11 is offline
FIRST Survivor
None #9999
 
Join Date: Jan 2005
Rookie Year: 2000
Location: USA
Posts: 18
hawk_11 is an unknown quantity at this point
Re: Need help with code.

Quote:
Originally Posted by Anton
you should download the default code from ifirobotics.com/rc.shtml
fo to file>>open workspase>> the only *mcp file in the code folder and then just modify default_routie(found in user_routines.c) as you need.
to access motors give a value between 0 and 255 to a pwm port where the motor is plugged in.
pwm01=255; for example

thanks, actually I found out what I was doing wrong fifteen seconds ago so this post is now effectively dead.

Thanks for the help everyone!
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
Example gyro code released. Kevin Watson Programming 60 17-03-2005 18:32
Updated: Serial Port Driver Code Kevin Watson Programming 4 05-02-2005 18:39
Team THRUST - Kevin's Code and Camera Code Combine Chris_Elston Programming 3 31-01-2005 22:28
Sourceforge for Code Repository and other stuff SilverStar Programming 9 15-01-2005 21:16
heres the code. y this not working omega Programming 16 31-03-2004 15:18


All times are GMT -5. The time now is 03:20.

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