Go to Post Students... be sure to drill air holes in the crate though. Maybe toss in some cheetos for the programmers. - Andrew Schreiber [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 05-05-2005, 22:22
703pascal 703pascal is offline
Pascal
AKA: Pascal Carole
FRC #0703 (Phoenix)
Team Role: Programmer
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Saginaw, MI
Posts: 10
703pascal is on a distinguished road
Send a message via AIM to 703pascal Send a message via MSN to 703pascal
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.
__________________
team703.com
  #2   Spotlight this post!  
Unread 05-05-2005, 22:25
Bharat Nain's Avatar
Bharat Nain Bharat Nain is offline
Registered User
no team
Team Role: Alumni
 
Join Date: Jan 2004
Rookie Year: 2003
Location: New York
Posts: 2,000
Bharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond repute
Send a message via AIM to Bharat Nain Send a message via MSN to Bharat Nain
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.
__________________
-= Bharat Nain =-

Whatever you do, you need courage. Whatever course you decide upon, there is always someone to tell you that you are wrong. There are always difficulties arising that tempt you to believe your critics are right. To map out a course of action and follow it to an end requires some of the same courage that a soldier needs. Peace has its victories, but it takes brave men and women to win them. - Ralph Waldo Emerson
  #3   Spotlight this post!  
Unread 05-05-2005, 23:04
Dave Flowerday Dave Flowerday is offline
Software Engineer
VRC #0111 (Wildstang)
Team Role: Engineer
 
Join Date: Feb 2002
Rookie Year: 1995
Location: North Barrington, IL
Posts: 1,366
Dave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond repute
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.
  #4   Spotlight this post!  
Unread 06-05-2005, 09:53
703pascal 703pascal is offline
Pascal
AKA: Pascal Carole
FRC #0703 (Phoenix)
Team Role: Programmer
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Saginaw, MI
Posts: 10
703pascal is on a distinguished road
Send a message via AIM to 703pascal Send a message via MSN to 703pascal
Re: Using IFI Controller witout Operator System

Why thank you, I'll try that out.
__________________
team703.com
  #5   Spotlight this post!  
Unread 10-05-2005, 21:11
703pascal 703pascal is offline
Pascal
AKA: Pascal Carole
FRC #0703 (Phoenix)
Team Role: Programmer
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Saginaw, MI
Posts: 10
703pascal is on a distinguished road
Send a message via AIM to 703pascal Send a message via MSN to 703pascal
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?
__________________
team703.com
  #6   Spotlight this post!  
Unread 10-05-2005, 21:13
Bharat Nain's Avatar
Bharat Nain Bharat Nain is offline
Registered User
no team
Team Role: Alumni
 
Join Date: Jan 2004
Rookie Year: 2003
Location: New York
Posts: 2,000
Bharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond repute
Send a message via AIM to Bharat Nain Send a message via MSN to Bharat Nain
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
__________________
-= Bharat Nain =-

Whatever you do, you need courage. Whatever course you decide upon, there is always someone to tell you that you are wrong. There are always difficulties arising that tempt you to believe your critics are right. To map out a course of action and follow it to an end requires some of the same courage that a soldier needs. Peace has its victories, but it takes brave men and women to win them. - Ralph Waldo Emerson
  #7   Spotlight this post!  
Unread 12-05-2005, 06:18
RyanMcE RyanMcE is offline
Still Learning...
FRC #0492 (Titan Robotics)
Team Role: Mentor
 
Join Date: Jan 2002
Location: Bellevue, WA
Posts: 60
RyanMcE will become famous soon enough
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.
__________________
Titan Robotics Club (Team 492) Co-Founder, Alumni & Mentor

#1 in the Northwest: 2001 Silicon Valley Regional Rookie All-Star Award || 2001 Galileo Incredible Play Award || 2002 Southern California Regional Judge's Award || 2002 Pacific Northwest Regional Finalist || 2003 Silicon Valley Regional Entrepreneurship Award || 2003 Pacific Northwest Regional Website Award || 2003 Pacific Northwest Regional Finalist || 2003 Pacific Northwest Regional Engineering Inspiration Award || 2004 Pacific Northwest Website Award || 2004 Pacific Northwest Regional Champions (#1 seed) || 2004 Galileo Semi-Finalist || 2005 Pacific Northwest Regional General Motors Industiral Design Award || 2005 Pacific Northwest Regional Champions (#1 seed) || 2005 Galileo Finalist

"We'll do better next time" -- Team Motto
  #8   Spotlight this post!  
Unread 12-05-2005, 08:41
Matt Krass's Avatar
Matt Krass Matt Krass is offline
"Old" and Cranky. Get off my lawn!
AKA: Dark Ages
FRC #0263 (Sachem Aftershock)
Team Role: Mentor
 
Join Date: Oct 2002
Rookie Year: 2002
Location: Long Island, NY
Posts: 1,187
Matt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond repute
Send a message via AIM to Matt Krass
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..
__________________
Matt Krass
If I suggest something to try and fix a problem, and you don't understand what I mean, please PM me!

I'm a FIRST relic of sorts, I remember when we used PBASIC and we got CH Flightsticks in the KoP. In my day we didn't have motorized carts, we pushed our robots uphill, both ways! (Houston 2003!)
  #9   Spotlight this post!  
Unread 17-05-2005, 22:33
devicenull devicenull is offline
Robot? We need a robot?
no team
 
Join Date: Sep 2004
Rookie Year: 1234
Location: n/a
Posts: 359
devicenull is just really nicedevicenull is just really nicedevicenull is just really nicedevicenull is just really nicedevicenull is just really nice
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.
  #10   Spotlight this post!  
Unread 11-06-2007, 19:33
RyanN's Avatar
RyanN RyanN is offline
RyanN
AKA: Ryan Nazaretian
FRC #4901 (Garnet Squadron)
Team Role: Mentor
 
Join Date: Jun 2006
Rookie Year: 2005
Location: Columbia, SC
Posts: 1,126
RyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond repute
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.
__________________
Garnet Squadron
FRC 4901
Controls Mentor
@rnazaretian

Previous mentor and student from Team Fusion, FRC 364
  #11   Spotlight this post!  
Unread 14-06-2007, 00:50
RyanN's Avatar
RyanN RyanN is offline
RyanN
AKA: Ryan Nazaretian
FRC #4901 (Garnet Squadron)
Team Role: Mentor
 
Join Date: Jun 2006
Rookie Year: 2005
Location: Columbia, SC
Posts: 1,126
RyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond repute
Re: Using IFI Controller witout Operator System

Anybody? Maybe some tips? Explain what you would normally do? Help? Please?
__________________
Garnet Squadron
FRC 4901
Controls Mentor
@rnazaretian

Previous mentor and student from Team Fusion, FRC 364
  #12   Spotlight this post!  
Unread 14-06-2007, 02:10
cbale2000's Avatar
cbale2000 cbale2000 is offline
Registered User
AKA: Chris Bale
FRC #5712 (Gray Matter)
Team Role: Mentor
 
Join Date: Apr 2006
Rookie Year: 2004
Location: Saginaw, MI
Posts: 931
cbale2000 has a reputation beyond reputecbale2000 has a reputation beyond reputecbale2000 has a reputation beyond reputecbale2000 has a reputation beyond reputecbale2000 has a reputation beyond reputecbale2000 has a reputation beyond reputecbale2000 has a reputation beyond reputecbale2000 has a reputation beyond reputecbale2000 has a reputation beyond reputecbale2000 has a reputation beyond reputecbale2000 has a reputation beyond repute
Re: Using IFI Controller witout Operator System

Ahh! Revival of 2 year old topics!

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.
__________________
2005-2008: FRC 703 Phoenix - Driver
2009-2016: FRC 703 Phoenix - Mentor
2017-????: FRC 5712 Gray Matter - Mentor
  #13   Spotlight this post!  
Unread 14-06-2007, 09:25
Dave Flowerday Dave Flowerday is offline
Software Engineer
VRC #0111 (Wildstang)
Team Role: Engineer
 
Join Date: Feb 2002
Rookie Year: 1995
Location: North Barrington, IL
Posts: 1,366
Dave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond repute
Re: Using IFI Controller witout Operator System

Quote:
Originally Posted by RyanN View Post
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).
  #14   Spotlight this post!  
Unread 14-06-2007, 10:38
pafwl pafwl is offline
Franciose
AKA: Frank Larkin
FRC #0272 (Cyber Crusaders)
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 1998
Location: Lansdale, Pennsylvania
Posts: 108
pafwl has much to be proud ofpafwl has much to be proud ofpafwl has much to be proud ofpafwl has much to be proud ofpafwl has much to be proud ofpafwl has much to be proud ofpafwl has much to be proud ofpafwl has much to be proud ofpafwl has much to be proud ofpafwl has much to be proud of
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.
  #15   Spotlight this post!  
Unread 14-06-2007, 11:49
Pat Fairbank's Avatar
Pat Fairbank Pat Fairbank is offline
Circuit Breaker
FRC #0254 (The Cheesy Poofs)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2001
Location: San Jose, CA
Posts: 2,131
Pat Fairbank has a reputation beyond reputePat Fairbank has a reputation beyond reputePat Fairbank has a reputation beyond reputePat Fairbank has a reputation beyond reputePat Fairbank has a reputation beyond reputePat Fairbank has a reputation beyond reputePat Fairbank has a reputation beyond reputePat Fairbank has a reputation beyond reputePat Fairbank has a reputation beyond reputePat Fairbank has a reputation beyond reputePat Fairbank has a reputation beyond repute
Send a message via MSN to Pat Fairbank
Re: Using IFI Controller witout Operator System

Quote:
Originally Posted by RyanN View Post
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.
__________________
Patrick Fairbank
Team 254 | Mentor (2012-)
Team 1503 | Mentor (2007-2011)
Team 296 | Alumnus (2001-2004) | Mentor (2005-2006)

patfairbank.com
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Building an arena controller CJO Control System 32 29-03-2005 07:04
IFI Loader Problems BrendaB Programming 3 24-01-2004 22:45
Help On Coding 2K1 Controller GregTheGreat Programming 9 05-12-2003 18:35
serious problem found - robot controller resets when jarred! KenWittlief Electrical 23 19-03-2003 13:30
How much code can an IFI controller handle? Larry Barello Programming 7 10-02-2002 19:06


All times are GMT -5. The time now is 10:57.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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