Log in

View Full Version : Need help with code.


hawk_11
06-02-2005, 13:18
Hello, I'm a beginner programmer on Team 1302 (http://robotics.popejohn.org). 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?

Mike
06-02-2005, 13:20
What do you mean you "plugged the code in"? Do you have the latest MPLab IDE and compiler on your computer?

D.J. Fluck
06-02-2005, 13:22
More specific FIRST related coding help
http://www.chiefdelphi.com/forums/showthread.php?t=30976
http://www.chiefdelphi.com/forums/showthread.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/papers.php?&action=single&paperid=396


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

hawk_11
06-02-2005, 13:25
What do you mean you "plugged the code in"? Do you have the latest MPLab IDE and compiler on your computer?

yes

hawk_11
06-02-2005, 13:28
More specific FIRST related coding help
http://www.chiefdelphi.com/forums/showthread.php?t=30976
http://www.chiefdelphi.com/forums/showthread.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/papers.php?&action=single&paperid=396


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

thanks

Anton
06-02-2005, 13:31
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

hawk_11
06-02-2005, 13:56
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!