Go to Post Don't be affraid of trying new things... Even if people say you are crazy, even if you get insulted, even if it involves a lot of time and money, try it. You can't know if it'll work or not if you didn't try it yet. - EDesbiens [more]
Home
Go Back   Chief Delphi > Technical > Control System
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 17-07-2006, 14:52
jakep jakep is offline
Software Engineer
AKA: Jake Poznanski
FRC #0862 (Lightning Robotics)
Team Role: Programmer
 
Join Date: Aug 2005
Rookie Year: 2004
Location: Michigan
Posts: 35
jakep has a spectacular aura aboutjakep has a spectacular aura about
Bypass Disable Switch

We are making a robot over the summer using the 2004 RC. However, this is a fully automous robot, and doesn't need to be hooked up via radio (but it can be). We want to be able to let the robot run, with full control of the motors without any OI turned on or anything. However, if you do decide to turn on the OI, the robot should still accept input from it.

My question: Is there anyway to let the RC output to the motors even without an OI plugged in?

Thanks!
__________________
Jake Poznanski
Programmer - Team 862 - Lightning Robotics

Microsoft MVP, 2005 - Windows - SPOT Technologies
http://www.spotdev.net
  #2   Spotlight this post!  
Unread 17-07-2006, 15:07
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: Bypass Disable Switch

If you set the team number to 0, I believe the RC runs entirely autonomous, I don't have access to confirm this. However I also believe that prevents you from establishing a successful radio link, so this might not help you at all.
__________________
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!)
  #3   Spotlight this post!  
Unread 17-07-2006, 18:55
bear24rw's Avatar
bear24rw bear24rw is offline
Team 11 Programming Captain
AKA: Max T
FRC #0011 (MORT)
Team Role: Programmer
 
Join Date: Sep 2005
Rookie Year: 2005
Location: Flanders, NJ
Posts: 385
bear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to behold
Send a message via AIM to bear24rw
Re: Bypass Disable Switch

Quote:
Originally Posted by Matt Krass
If you set the team number to 0, I believe the RC runs entirely autonomous, I don't have access to confirm this. However I also believe that prevents you from establishing a successful radio link, so this might not help you at all.
I thought it was the last bit down on the dip switch
  #4   Spotlight this post!  
Unread 17-07-2006, 19:34
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: Bypass Disable Switch

Quote:
Originally Posted by bear24rw
I thought it was the last bit down on the dip switch
If by last bit down you mean the left most, that's the MSB (Most Significant Bit) and that was used to unlock extra radio channels on pre-2005 controllers I think.

EDIT: The above statement needs to be amended, I left it there for clarity. Pre-2005 controllers needed a dongle to switch radio channels, as well as the team number change, newer ones only need the team number change. I forgot about the dongle but I remember something about newer controllers was less complicated.
__________________
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!)

Last edited by Matt Krass : 17-07-2006 at 23:25. Reason: Correcting myself.
  #5   Spotlight this post!  
Unread 17-07-2006, 22:30
Andrew Blair's Avatar
Andrew Blair Andrew Blair is offline
SAE Formula is FIRST with Gasoline.
FRC #0306 (CRT)
Team Role: Alumni
 
Join Date: Feb 2005
Rookie Year: 2004
Location: Corry
Posts: 1,193
Andrew Blair has a reputation beyond reputeAndrew Blair has a reputation beyond reputeAndrew Blair has a reputation beyond reputeAndrew Blair has a reputation beyond reputeAndrew Blair has a reputation beyond reputeAndrew Blair has a reputation beyond reputeAndrew Blair has a reputation beyond reputeAndrew Blair has a reputation beyond reputeAndrew Blair has a reputation beyond reputeAndrew Blair has a reputation beyond reputeAndrew Blair has a reputation beyond repute
Send a message via AIM to Andrew Blair Send a message via Yahoo to Andrew Blair
Re: Bypass Disable Switch

I wasn't sure there was a way to enable this type of operation, short of an IFI code change. I thought I read somewhere that the code required an OI be communicating with the RC for any robot operation to take place, so that you can't easily be killed right as you turn on the robot. Kind of like an out of range disable with RC.

Or maybe not...
__________________
Reading makes a full man, conference a ready man, and writing an exact man.
-Sir Francis Bacon

"Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius -- and a lot of courage -- to move in the opposite direction."
-Albert Einstein
  #6   Spotlight this post!  
Unread 17-07-2006, 22:38
KenWittlief KenWittlief is offline
.
no team
Team Role: Engineer
 
Join Date: Mar 2003
Location: Rochester, NY
Posts: 4,213
KenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond repute
Re: Bypass Disable Switch

there is no auton mode switch on the robot controller. You must have the OI on for the RC to operate

think about this for a minute: if the OI is not on then how in the world would the RC know what the switches on the OI are set to?!
  #7   Spotlight this post!  
Unread 17-07-2006, 23:08
CmptrGk's Avatar
CmptrGk CmptrGk is offline
Programming Mentor
AKA: Dillon
FRC #0716 (Who'sCTEKS)
Team Role: College Student
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Kent,CT
Posts: 212
CmptrGk has much to be proud ofCmptrGk has much to be proud ofCmptrGk has much to be proud ofCmptrGk has much to be proud ofCmptrGk has much to be proud ofCmptrGk has much to be proud ofCmptrGk has much to be proud ofCmptrGk has much to be proud of
Re: Bypass Disable Switch

if you happen to have an extra vex controller and the ablility to make cable converters, the vex controller can function without its OI. it even has a #define line in its code to enable only auton mode. i also belive that the edubot controller can function without and OI (this wouldnt need a cable conversion).
__________________
#14


"Great autonomous mode Dillon."," It hasn't been written yet"
after an Archimedes match


  #8   Spotlight this post!  
Unread 17-07-2006, 23:26
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,132
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: Bypass Disable Switch

The robot controller CAN function without the operator interface. To enable this, the team number dipswitch on the OI must be set to 0, then the OI must be tethered to the RC to download the team number setting to it. Once the tether is disconnected and the RC is reset, the autonomous loop will execute forever and the RC will ignore any radio signals, until the team number is changed back to a non-zero value using the tether method.

However, it would be impossible to switch back and forth between OI and non-OI mode on the fly - the team number must be changed each time with the tether cable.

Quote:
Originally Posted by Matt Krass
If by last bit down you mean the left most, that's the MSB (Most Significant Bit) and that was used to unlock extra radio channels on pre-2005 controllers I think.
Just to clarify, setting the MSB enables the extra radio channels on the 2005 and later controllers, while the pre-2005 controllers required you to ground a specific pin on the Competition port in order to do so.
__________________
Patrick Fairbank
Team 254 | Mentor (2012-)
Team 1503 | Mentor (2007-2011)
Team 296 | Alumnus (2001-2004) | Mentor (2005-2006)

patfairbank.com
  #9   Spotlight this post!  
Unread 17-07-2006, 23:54
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: Bypass Disable Switch

Quote:
Originally Posted by Pat Fairbank
Just to clarify, setting the MSB enables the extra radio channels on the 2005 and later controllers, while the pre-2005 controllers required you to ground a specific pin on the Competition port in order to do so.
You're right, I already edited my previous post, but thanks for catching my slip anyway.
__________________
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!)
  #10   Spotlight this post!  
Unread 18-07-2006, 01:30
Andy A. Andy A. is offline
Getting old
FRC #0095
Team Role: Coach
 
Join Date: Jun 2001
Rookie Year: 2001
Location: New Hampshire
Posts: 1,013
Andy A. has a reputation beyond reputeAndy A. has a reputation beyond reputeAndy A. has a reputation beyond reputeAndy A. has a reputation beyond reputeAndy A. has a reputation beyond reputeAndy A. has a reputation beyond reputeAndy A. has a reputation beyond reputeAndy A. has a reputation beyond reputeAndy A. has a reputation beyond reputeAndy A. has a reputation beyond reputeAndy A. has a reputation beyond repute
Re: Bypass Disable Switch

PBasic type educontrollers can also be run autonomously, by setting the team number to 0 and cycling power. If there is a user defined auto mode program, it will execute until power is turned off.

Another option might be to keep the OI on the robot, connected by a tether and enable automode with a dongle switch. Add a short pause at the start of the program to allow you to flip the switch and extract you're hand before it takes off. This would save you from having to set the team number back and forth, and also allow you a quick and easy way to put the robot under manual control. Just connect a joystick and disable automode and away you go. No radio, external power supply and the only range limit is the length of the joystick cable.

I would be a little leery about a large scale robot running in autonomous mode with out any remote way of turning it off though. But I am not the computer trusting sort...
  #11   Spotlight this post!  
Unread 18-07-2006, 09:58
KenWittlief KenWittlief is offline
.
no team
Team Role: Engineer
 
Join Date: Mar 2003
Location: Rochester, NY
Posts: 4,213
KenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond repute
Re: Bypass Disable Switch

Quote:
Originally Posted by Andy A.
I would be a little leery about a large scale robot running in autonomous mode with out any remote way of turning it off though. But I am not the computer trusting sort...
I agree - even if the auton code is simple and the bot moves around slowly - thats how it operates when all on-board systems are operating within normal parameters.

what happens if a wire on a sensor breaks, or a connection to one motor fails - or a feedback sensor goes open loop?

On every piece of commercial robotic equipment, that is used in proximity with humans, there is a big red mushroom shaped KILL button where you can get to it without having to go near the robot.
  #12   Spotlight this post!  
Unread 18-08-2006, 17:15
Robert Flanagan's Avatar
Robert Flanagan Robert Flanagan is offline
Robert Flanagan
FRC #1390 (Welethedawgsout)
Team Role: Programmer
 
Join Date: May 2005
Rookie Year: 2004
Location: ST. Cloud
Posts: 11
Robert Flanagan is an unknown quantity at this point
Re: Bypass Disable Switch

Quote:
Originally Posted by jakep
We are making a robot over the summer using the 2004 RC. However, this is a fully automous robot, and doesn't need to be hooked up via radio (but it can be). We want to be able to let the robot run, with full control of the motors without any OI turned on or anything. However, if you do decide to turn on the OI, the robot should still accept input from it.

My question: Is there anyway to let the RC output to the motors even without an OI plugged in?

Thanks!
This is a theory but should work. Go into main.c. You should see something like this.

if(autonomous_mode)
{
User_Autonomous_Code;
}

It seems that if u delete this if statement to just read out

User_Autonomous_Code;

It should just run Autonomous entirely.
__________________
Everywhere and nowhere, like the wind

Robert Flanagan, Programmer, team 1390
  #13   Spotlight this post!  
Unread 18-08-2006, 21:19
JBotAlan's Avatar
JBotAlan JBotAlan is offline
Forever chasing the 'bot around
AKA: Jacob Rau
FRC #5263
Team Role: Mentor
 
Join Date: Sep 2004
Rookie Year: 2004
Location: Riverview, MI
Posts: 723
JBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond repute
Send a message via AIM to JBotAlan Send a message via Yahoo to JBotAlan
Re: Bypass Disable Switch

Quote:
Originally Posted by Robert Flanagan
This is a theory but should work. Go into main.c. You should see something like this.

if(autonomous_mode)
{
User_Autonomous_Code;
}

It seems that if u delete this if statement to just read out

User_Autonomous_Code;

It should just run Autonomous entirely.
This I do know...

Your program won't run at all at first without an OI--that loop doesn't even execute when you power on the RC with no OI--and no outputs are generated even after an OI is connected and then disconnected, even though this loop is running. Follow the instructions of the person who posted earlier on making the RC run without an OI to make it run all the time, and Robert's modification will make the RC run whatever is in your User_Autonomous_Code function.

JBot

EDIT: Just out of curiosity, how did you learn how to do these calculations--the life of the battery? I really don't know any of this. I don't imagine it's that hard, but I just never learned it and I recognize this is some of the stuff I should know being that I'm dealing with electrical this coming season.

Thanks
__________________
Aren't signatures a bit outdated?

Last edited by JBotAlan : 18-08-2006 at 21:23. Reason: More info...well, questions
  #14   Spotlight this post!  
Unread 19-08-2006, 12:46
Unsung FIRST Hero
Al Skierkiewicz Al Skierkiewicz is offline
Broadcast Eng/Chief Robot Inspector
AKA: Big Al WFFA 2005
FRC #0111 (WildStang)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1996
Location: Wheeling, IL
Posts: 10,766
Al Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond repute
Re: Bypass Disable Switch

Quote:
Originally Posted by JBotAlan
EDIT: Just out of curiosity, how did you learn how to do these calculations--the life of the battery? I really don't know any of this. I don't imagine it's that hard, but I just never learned it and I recognize this is some of the stuff I should know being that I'm dealing with electrical this coming season.
Thanks
A lot of this is not calculable. It comes from experience. There is so many variables from match to match and robot to robot it is almost impossible to take everything into account. A couple of rules of thumb help to analyze what is taking place.
1. Tank style steering will put the drive motors into stall when ever they turn unless something is done to reduce the drag (friction) of the side motion of the wheels. More turns in a match will draw stall currents more often, reducing terminal voltage, available battery power and overall battery life.
2. Drive trains that are optimized for pushing only will draw high currents when running flat out at their highest speeds. Making some trade offs in speed vs. pushing will help in current drain. Drivetrains that are designed for high speed (greater than 12 fps) will likely draw extreme currents when starting out from a dead stop and when pushing, bumping into field objects or driving up ramps. Most mechanical experts design for 8-12 fps.
3. Software modification of drive signals will help in current draw. Ramping up to full speed for instance will smooth out the current demands. Dual speed transmissions will also help by giving the designer two separate optimizations for the drive motors.
4. Six motor drives generally will be less effective electrically due to the additional friction of the extra gears, balancing of the loads, etc. Although they will be the greatest pushers if the wheels can couple to the floor, it has been rare that a robot would only push and do nothing else. If you are in stall every time you start a motor, then you are adding two more loads to the battery. Stall currents are listed in the motor spec sheet. 6 x 129 amps for Chalupa drives exceed the max current spec on the battery. Repetitive current demand near the max reduces battery life. I have seen six motor drives that were not able to move the robot if minor damage to the robot caused some additional friction in the drivetrain.
5. One only needs to observe robot operation during practice to recognize problems. An aggressive practice where the robot stalls, falters or halts for a few seconds, is drawing too much current. A tank style robot that "hops" when turning has too much side friction and can be expected to be at max current every time the robot hops up or down. Any odd problems in robot operation such as software failures, "no data radio", intermittent IO tally LED operation or other apparent failures can be attributed to electrical system failures due to low battery.
6. During practice, a robot driving without opponents ought to last at least 6-8 minutes and preferably 10-15 before the battery runs down. Any less, and your design is inefficient and you are reducing the life of the battery. Our batteries have about a 400 charge/discharge cycle life if used in the normal operating range. A robot that eats a battery in 2 minutes has likely cut that life to 100 cycles or less and no amount of charging is going to fix that. It is also going to fail without warning. Check your design by using a current probe or amp clamp to check overall currents while the robot is practicing and check each individual motor current. Keep a list of these currents. If during a competition something seems wrong, a quick check of motor current can identify bent mechanical systems or wheels that have been pushed out of alignment. Currents should be nearly identical from side to side. If they are not, you may have an electrical problem, bent parts or a bad motor.
Hope this helps.
__________________
Good Luck All. Learn something new, everyday!
Al
WB9UVJ
www.wildstang.org
________________________
Storming the Tower since 1996.

Last edited by Al Skierkiewicz : 19-08-2006 at 15:59.
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
How do you bypass the Operator Interface? jskene Programming 4 31-05-2006 17:50
Need Help Wiring Micro Switch/Limiting Switch Windward Electrical 2 07-02-2006 18:26
Question about human disable Collmandoman Programming 6 10-03-2005 23:30


All times are GMT -5. The time now is 07:34.

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