Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Using IFI Controller witout Operator System (http://www.chiefdelphi.com/forums/showthread.php?t=37935)

703pascal 05-05-2005 22:22

Using IFI Controller witout Operator System
 
Hi, my school is working with something called the Lemelson-MIT InvenTeam. Certain schools are chosen to invent some type of machine that will does not currently exist and that has a practical purpose. Our team is building a robotic athletic field striper. To do this we are using the IFI robotics controller. The only problem is that this robot is completely autonomous and it doesn't run by remote control. Currently, the robot won't run unless it has a signal from the operator system (joysticks and such) or if it is tethered to the operator system. We need the robot to run without this, any suggestions? I believe there is code we can edit so that it can run without it. The EDUbot doesn't require anything to be connected so I'm checking out code differences currently but I haven't come up with anything. Any help would be greatly appreciated.

Bharat Nain 05-05-2005 22:25

Re: Using IFI Controller witout Operator System
 
You could put the Operator interface right next to the OI. And yes, you can edit the code(don't ask me how, I will let you know if I find out), but you could save more money by going and researching some other systems built for autonomous programming. I have no researched into this myself, so I hope someone else will pop in and help you with this.

Dave Flowerday 05-05-2005 23:04

Re: Using IFI Controller witout Operator System
 
Check the RC Reference Guide (emphasis mine):
Quote:

Originally Posted by IFI Robot Controller Reference Guide
Autonomous Mode means that the RC will ignore all data from the Operator Interface and it will not require a link with the Operator Interface to execute code.

If you wish to run the Robot Controller exclusively in Autonomous Mode, one way to do this is to set your team number to zero. This is done by setting the team number on your OI to zero, linking your OI and RC by tether, and then disconnecting from tether. After your RC is reset it will be in Autonomous Mode.


703pascal 06-05-2005 09:53

Re: Using IFI Controller witout Operator System
 
Why thank you, I'll try that out.

703pascal 10-05-2005 21:11

Re: Using IFI Controller witout Operator System
 
Does the code go in the regular user_routines.h file or under autonomous code in user_routines_fast.h?

Bharat Nain 10-05-2005 21:13

Re: Using IFI Controller witout Operator System
 
Quote:

Originally Posted by 703pascal
Does the code go in the regular user_routines.h file or under autonomous code in user_routines_fast.h?

user_routines_fast.c

There is a note saying //Insert autonomous code here

RyanMcE 12-05-2005 06:18

Re: Using IFI Controller witout Operator System
 
My understanding is that simply editing the autonomous code will not allow the robot to operate without the operator interface. Yes, the code will run, but the outputs will remain null. This is because of the way in which the IFI system is designed.

As I understand it, there is a chip on either side of the I/O of the microprocessor in the robot controller. The one on the input side disallows all input from the OI during autonomous mode. The one on the output side disallows all output from the RC when it is not connected to the OI, or when the robot is disabled. This is for safety, which is very important to FIRST. If the robots, which weigh as much as many people, and are considerably more powerful in many circumstances, could drive around when the referees wanted them disabled, that would be disasterous. The IFI system simply does not allow it.

Now, the other suggestion on here, which is basically piggy-backing the OI on top of the RC, tethered, should work.

Good luck with your project.

Matt Krass 12-05-2005 08:41

Re: Using IFI Controller witout Operator System
 
He might be right, I've never tried a auton run with team zero and no OI, it just may not go. If that is the case, instead of piggybacking it, you might want to consider the Edu-Robo-Whatevertheheckitscalled RC, it'll run the same (well nearly same) C code, drive the same Spikes/Victors/Whatevers, runs on 7.2 volts, is lighter and is designed to operate completely autonomously..

devicenull 17-05-2005 22:33

Re: Using IFI Controller witout Operator System
 
I have, team zero and no oi attached works fine :) Stopping it is a whole different matter though.

RyanN 11-06-2007 19:33

Re: Using IFI Controller witout Operator System
 
Does anyone know how to do this with a 2003 or earlier RC that runs PBASIC? I have one right here (since I know how to program PBASIC and not C) and would love to run it without the operator interface but team zero isn't working for me... If anyone knows, please tell me or PM me.

RyanN 14-06-2007 00:50

Re: Using IFI Controller witout Operator System
 
Anybody? Maybe some tips? Explain what you would normally do? Help? Please?

cbale2000 14-06-2007 02:10

Re: Using IFI Controller witout Operator System
 
Ahh! Revival of 2 year old topics! :yikes:

Ironically this was a topic started by one of the members on my team a few years back and I just so happened to come across it!

BTW, for anyone interested, that whole Lemelson-MIT InvenTeam project went very well and worked beautifully, we still have it laying around the shop (though in a dysfunctional state).



Im not sure how many people are familiar with the old 2003 RCs, most student programmers have since moved on (graduated) I would think, I'll see if I can ask some of our programming mentors if they remember anything, but I'm not even sure if they were on the team back in 2003. :(

Dave Flowerday 14-06-2007 09:25

Re: Using IFI Controller witout Operator System
 
Quote:

Originally Posted by RyanN (Post 631453)
Does anyone know how to do this with a 2003 or earlier RC that runs PBASIC? I have one right here (since I know how to program PBASIC and not C) and would love to run it without the operator interface but team zero isn't working for me... If anyone knows, please tell me or PM me.

That feature didn't exist in the old RCs. You must have the OI connected (either tethered or radio).

pafwl 14-06-2007 10:38

Re: Using IFI Controller witout Operator System
 
Step1: Connect OI to controller on robot. Forget about autonomous mode. After all the OI just sends the value of the joysticks to the controller, right. The code assigns it to the motors. If you don't assign it it will not run.

Step2: Use your sensors to determine what you want to do. Like if the sensors sees the light then assign a value to you PWM outluts where your motors are. No matter what mode you are in if you assign 255 to a PWM the motor will run.

I suggest you include a kill switch. Use a switch like a plug. If the plug is out the robot stops.

// include at bottom of code.
if( rc_dig_in01 == 1 )
{
// switch is open not closed, closed = 0 yes backards its digital
pwm01 = 127; // stops motor
pwm02 = 127; // stops motor
}


In addition I gave a workshop in 2005 on writing autonomous programs.
http://first.wpi.edu/Workshops/2005w...nferences.html

If you are still stuc that you need autonomous put this at the top of your program.

autonomous_mode = 1;

This will force on the autonomous bit. It is not necessary but put it on if you like.

Pat Fairbank 14-06-2007 11:49

Re: Using IFI Controller witout Operator System
 
Quote:

Originally Posted by RyanN (Post 631453)
Does anyone know how to do this with a 2003 or earlier RC that runs PBASIC? I have one right here (since I know how to program PBASIC and not C) and would love to run it without the operator interface but team zero isn't working for me... If anyone knows, please tell me or PM me.

I definitely remember testing autonomous modes in 2003 by setting the team number dipswitches on the RC to zero. However, it won't work if you have a pre-2003 RC, since autonomous mode only came into existence for the 2003 game.


All times are GMT -5. The time now is 11:24.

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