|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
NEED HELP WITH PROGRAMMING
HEY
WE ARE A ROOKIE TEAM AND WE HAVE NO IDEA WHAT TO DO AND WE WANT TO SEE A SAMPLE CODE IN TELEOPARATED MODE ANY HELP???? |
|
#2
|
|||
|
|||
|
Re: NEED HELP WITH PROGRAMMING
Maybe you shouldn't yell and people would help.
But are you programming in EasyC or MPLAB? |
|
#3
|
|||
|
|||
|
Re: NEED HELP WITH PROGRAMMING
MY BAD WASNT TRYING TO YELL
WELL WE ARE USING MPLAB |
|
#4
|
|||||
|
|||||
|
Re: NEED HELP WITH PROGRAMMING
Go download the default code. Open up user_routines and read the comments. It should have enough code to get your robot driving as is.
|
|
#5
|
||||
|
||||
|
Re: NEED HELP WITH PROGRAMMING
In general when 'speaking' on the internet, using ALL CAPS is considered yelling. That's what iwin2000 was probably getting at.
By the way, the default code can be found near the bottom of the this page. It's labeled '2007 RC Code'. If I remember correctly, IFI hasn't released any different code for the 2008 season. If I'm wrong, someone will almost definitely correct me ^_^ |
|
#6
|
|||
|
|||
|
Re: NEED HELP WITH PROGRAMMING
We have gone through the default code, but we are missing what the code means. We have someone to help us with C programming, but how do we define things so that they match up with physical layout on the robot control. Is there some manual that helps explain some of this. For example:
pwm01 = p1_y; pwm02 = p2_y; pwm03 = p3_y; pwm04 = p4_y; pwm05 = p1_x; pwm06 = p2_x; pwm07 = p3_x; pwm08 = p4_x; pwm09 = p1_wheel; pwm10 = p2_wheel; pwm11 = p3_wheel; pwm12 = p4_wheel; The comments help in the program, but we need some more direction. |
|
#7
|
|||||
|
|||||
|
Re: NEED HELP WITH PROGRAMMING
Take a look at the IFI user guide to the default code: http://www.ifirobotics.com/docs/lega...e-2004-1-7.pdf
Also see http://www.ifirobotics.com/docs/lega...2-apr-2004.pdf Both are linked from the IFI webpage that CardcaptorRLH85 refered to. |
|
#8
|
||||
|
||||
|
Re: NEED HELP WITH PROGRAMMING
Programming reference guide:
http://www.ifirobotics.com/docs/lega...2-apr-2004.pdf Default code reference guide: http://www.ifirobotics.com/docs/lega...e-2004-1-7.pdf |
|
#9
|
|||||
|
|||||
|
Re: NEED HELP WITH PROGRAMMING
Quote:
So with what's setup below if you plug in joysticks to the OI in ports 1 and 2. Then plug in your speed controllers for your drive into PWMs 1 and 2. Then you should be able to drive your robot with 2 joysticks. pwm01 = p1_y; //Map the y axis of joystick 1 to pwm01 pwm02 = p2_y; //Map the y axis of joystick 1 to pwm02 pwm05 = p1_x; //Map the x axis of joystick 1 to pwm01 pwm06 = p2_x; //Map the x axis of joystick 1 to pwm02 |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Need Help With Maplab C programming on serial communication | loveheb3 | Programming | 0 | 04-06-2007 21:24 |
| PLEASE HELP!! Need help programming arm?? | amirjpl | Programming | 12 | 15-03-2007 15:11 |
| Need help programming our swerve with feedback? | activemx | Programming | 25 | 13-04-2004 07:29 |
| need help with programming | magical hands | Programming | 1 | 11-02-2004 22:12 |
| Need help with programming | Kori E. | Programming | 7 | 24-02-2003 21:21 |