Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Inovation First FRC Robot Controller (http://www.chiefdelphi.com/forums/showthread.php?t=105817)

SeanPerez 20-04-2012 00:50

Inovation First FRC Robot Controller
 
I am trying to use the FRC-2008-RC robot controller to control another robot for testing purpose. The thing is i dont have any documentation at all.
I need to know what i need to program it and get it running and configured for a Tank drive robot configuration. At this time i will only have it control 2 Vex esc's for the drive control. Can someone help me out? Also, What utilities do i need to program it?

Thanks!

RyanN 20-04-2012 01:05

Re: Inovation First FRC Robot Controller
 
You need 5 things.

1) MPLAB - Download MPLABX from Microchip.com

2) C18 Lite Compiler - Also from Microchip.com, and on the same page as above.

3) Kevin Watson's Robot Code, mainly because it works with the above compiler and IDE.

4) IFI Loader (Website might be down?) IFI Loader 4VEX will NOT work.

5) Serial cable for programming.

SeanPerez 20-04-2012 01:14

Re: Inovation First FRC Robot Controller
 
When i open the robot code folder i notice that there are many files, what do i change to configure how i use the joystics to operate the victors and which do i upload?

EHaskins 20-04-2012 01:18

Re: Inovation First FRC Robot Controller
 
1 Attachment(s)
You'll need:
You should be able to install everything with the default settings. I'm not sure about C18 v3.x, but the older version had to be installed in a folder directly on a drive (i.e. c:\mcc18\ or there would be weird issues. If you use the default you should be safe, just don't change the install location.

Post back once you've gotten this far, we'll try to help with specific issues.

EHaskins 20-04-2012 01:27

Re: Inovation First FRC Robot Controller
 
Quote:

Originally Posted by SeanPerez (Post 1160415)
When i open the robot code folder i notice that there are many files, what do i change to configure how i use the joystics to operate the victors and which do i upload?

If you add this code to Teleop in teleop.c it should implement a basic tank drive:

Code:

pwm01 = p1_y; //Set PWM#1 to the value of the Y axis of joystick 1
pwm02 = p2_y;//Set PWM#2 to the value of the Y axis of joystick 2

Once you build there should be an "ifi_frc.hex" file in the directory with all of the files. Select that in IFILoader.

SeanPerez 20-04-2012 15:21

Re: Inovation First FRC Robot Controller
 
Alright

So i have finished installing:
MPLab
C18 Complier
IFIoaded

Now i need to know how to open and upload the code to it. can u please tell me how i would do this? how do i open the files in mplabx?

Also i need to know the wiring diagram of the programming cable because i do not have it.

Also if you can, can someone tell me the power supply ratings to the Driver station, operator interface, and robot controller.


Thanks


Sorry if i sound like a noob. like i said i have no documentation at all and even my robotics club has never used this in such a long times so i took on the challenge of getting it to work for a seperate robo build.

plnyyanks 20-04-2012 15:58

Re: Inovation First FRC Robot Controller
 
Quote:

Originally Posted by SeanPerez (Post 1160613)
Now i need to know how to open and upload the code to it. can u please tell me how i would do this? how do i open the files in mplabx?

In the default code folder, there should be a .mcp file. This is the MPLAB project file. Open this. To download code, I think you go to Programmer->Build, and it will build the .hex file. Then, if you open IFI_LOADER, select the location of your hex file. Under the PortSettings Menu, select the COM port to which your RC is connected, and then hit "download".

Quote:

Originally Posted by SeanPerez (Post 1160613)
Also i need to know the wiring diagram of the programming cable because i do not have it.

The programming cable is just a standard serial cable. Port pinout.

Quote:

Originally Posted by SeanPerez (Post 1160613)
Also if you can, can someone tell me the power supply ratings to the Driver station, operator interface, and robot controller.

The driver station and the operator interface are the same thing. Some useful documents: RC Reference Guide, OI Reference Guide, Control System Overview, Control System Quick Start Guide.

Go to http://www.ifirobotics.com/ for more information, they still have a lot of their legacy documentation posted.

SeanPerez 20-04-2012 17:13

Re: Inovation First FRC Robot Controller
 
for clarification on the programming cable, i connect the rx from the cable to tx on controller and tx from cable to rx on controller right?

Also, what is the wiring on the radio and tether cables?

Can i please get a wiring diagram of both of them?

Thanks

BigJ 20-04-2012 17:24

Re: Inovation First FRC Robot Controller
 
Quote:

Originally Posted by SeanPerez (Post 1160651)
for clarification on the programming cable, i connect the rx from the cable to tx on controller and tx from cable to rx on controller right?

Also, what is the wiring on the radio and tether cables?

Can i please get a wiring diagram of both of them?

Thanks

They are all RS-232 cables.



If you have old IFI systems laying around you should have some of these somewhere.

SeanPerez 20-04-2012 17:40

Re: Inovation First FRC Robot Controller
 
for the radio i have tried a cable that i had and none of the lights lit up on the radio. i did plug the robot controller to the robot radio.
in the refrence guide it says to use a db9 male-female Pin to Pin cable. can someone give me a diagram for this pin to pin cable?

thanks

SeanPerez 20-04-2012 19:46

Re: Inovation First FRC Robot Controller
 
Would any one have the dashboard installer for this controller so i can read data from it?

Thanks

plnyyanks 20-04-2012 20:09

Re: Inovation First FRC Robot Controller
 
Quote:

Originally Posted by SeanPerez (Post 1160687)
Would any one have the dashboard installer for this controller so i can read data from it?

I think this is what you're looking for.

Remember, if it relates to the IFI Control System, chances are, it can be found on http://www.ifirobotics.com

SeanPerez 20-04-2012 20:21

Re: Inovation First FRC Robot Controller
 
Thanks!

SeanPerez 21-04-2012 00:09

Re: Inovation First FRC Robot Controller
 
ok so i have got all the wiring finished and turned it on and it works. They can comunicate between both the OI and RC.

I have also installed these:

•MPLab http://www.microchip.com/pagehandler...family/mplabx/
•C18 compiler. http://www.microchip.com/stellent/id...ame =en010014
•IFILoaded, attached since the site appears to be done or gone. It would normally be at www.ifirobotics.com
•Sample code. Since you'll be using C18 v3.x, the IFI default code won't work, so you'll need to use Kevin Watson's version. ifi_frc_simple.zip from http://kevin.org/frc/
•You should only have to modify code in teleop.c.

Can someone help me configure my settings in mplab so that i can build it properly?

Also what file do i open to open the project in mplab.




Just some info:

MPLAB X IDE v1.10
MPLABC18 v3.4
IFI LOADER V1-1-0
im using the code ifi_frc_simple.zip from http://kevin.org/frc/


Thanks

Mark McLeod 21-04-2012 08:18

Re: Inovation First FRC Robot Controller
 
Quote:

Originally Posted by SeanPerez (Post 1160742)
Can someone help me configure my settings in mplab so that i can build it properly?

Also what file do i open to open the project in mplab.

You have to have a project open already. Use Open Project, not Open File.
The settings you'll have to make are found under:
Project -> Build Options -> Project
You might have to choose Suite Defaults, to reset everything.
Make sure these paths are both assigned correctly:
  • Include Path c:\mcc18\h
  • Library Path c:\mcc18\lib
The project file (the one you open that points to all the others) has the file extension .mcp


Do you have a serial port (to transfer the program) on your computer or a USB-to-serial converter?


All times are GMT -5. The time now is 01:38.

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