![]() |
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???? |
Re: NEED HELP WITH PROGRAMMING
Maybe you shouldn't yell and people would help.
But are you programming in EasyC or MPLAB? |
Re: NEED HELP WITH PROGRAMMING
MY BAD WASNT TRYING TO YELL
WELL WE ARE USING MPLAB |
Re: NEED HELP WITH PROGRAMMING
Quote:
|
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 ^_^ |
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. |
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. |
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 |
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 |
| All times are GMT -5. The time now is 09:10. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi