Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   How to download program to robot? (http://www.chiefdelphi.com/forums/showthread.php?t=62068)

Gamer930 19-01-2008 22:04

Re: How to download program to robot?
 
Quote:

Originally Posted by Hazmatt (Post 681644)
Can I just download the IFI source code hex file to the robot?
Another question... do I have to hold the program button down as I turn the robot on?

With you saying HEX file I'm assuming that you are using MPLab and the IFI Default code and loader. If you look at the default code under 1 Joystick Drive you will see the Default PWM placement is:
Left 13 and 14
Right
15 and 16
Your joystick should be plugged into Joystick Port 1

I sent you a Private Message with even more detailed instructions

Gamer930 19-01-2008 22:14

Re: How to download program to robot?
 
Quote:

Originally Posted by iwin2000 (Post 681867)
Code:

while(1)
{
SetPWM(1,254)
}

So I thought, I'm missing something in my code, something on the robot is broken, or I don't know how to run the code on the robot. Do the boards from last year work for this year? Also, does the Operator interface have to be connected to the robot, even though I don't need it to take any commands from the operator? Can anyone help me out? Thanks a lot.

If you are putting this code in the OperatorControl section of EasyC you do not need the while(1) statement. Make sure you tether your robot (with the red cable) after you set your team number on the OperatorInterface so it can automatically set the team number in the Robot Controller also.

After you tether you can then disconnect the cable and hook up the 2 radios to their respective ports and use the AC Adaptor.

Controller Boards from last year will work on this years robot for testing purposes. I would put a label on your radios (2007 and 2008) so they don't get interchanged.


All times are GMT -5. The time now is 18:43.

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