Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   How to Start Autonomous mode? (http://www.chiefdelphi.com/forums/showthread.php?t=41472)

jjbarrow 10-01-2006 12:34

How to Start Autonomous mode?
 
How does our team activate autonomuos mode to see if the programming we put in it works?

Thank you

Greg Needel 10-01-2006 12:39

Re: How to Start Autonomous mode?
 
you need to jumper from pins 5 to 8 on your operator interface competition port

a schematic for building an autonomous switch is here
http://ifirobotics.com/docs/competit...guide-reva.pdf

you can also buy one from http://andymark.biz

jjbarrow 10-01-2006 12:56

Re: How to Start Autonomous mode?
 
THANK YOU

kevlarman 13-01-2006 22:45

Re: How to Start Autonomous mode?
 
Quote:

Originally Posted by Greg Needel
you need to jumper from pins 5 to 8 on your operator interface competition port

a schematic for building an autonomous switch is here
http://ifirobotics.com/docs/competit...guide-reva.pdf

you can also buy one from http://andymark.biz

this is something that they really should put in the kit. the autonomous switch is very useful, but the disable switch is the most useful piece of hardware ever (and that includes the pic to run code on, and the laptop used to write said code)

Tsom467 14-01-2006 00:20

Re: How to Start Autonomous mode?
 
We were discussing this the other day. Since, if you don't wire up the disable/auton switch correctly, you will fry your operator interface. Yes, we did, twice... $200 to repair each time....

Instead of leaving it up to the teams to do this, it would be easy for them to include a correctly wired one and help to limit the number of controllers they have to fix!

Tom Bottiglieri 14-01-2006 00:47

Re: How to Start Autonomous mode?
 
You can also have a button on one of your joysticks to toggle the Auto mode function.

Code:

int automode=0;

if(p1_trig==1)autmode=1;

while(automode==1)
{
    if(p1_trig==1)autmode=0;
    User_Autonomous_Code();
}


Billfred 14-01-2006 07:14

Re: How to Start Autonomous mode?
 
Quote:

Originally Posted by Tsom467
We were discussing this the other day. Since, if you don't wire up the disable/auton switch correctly, you will fry your operator interface. Yes, we did, twice... $200 to repair each time....

Instead of leaving it up to the teams to do this, it would be easy for them to include a correctly wired one and help to limit the number of controllers they have to fix!

Well, if you're paranoid about soldering up a good switch, there is an alternative.

Oumonkey 15-01-2006 14:03

Re: How to Start Autonomous mode?
 
Quote:

Originally Posted by Tom Bottiglieri
You can also have a button on one of your joysticks to toggle the Auto mode function.

Code:

int automode=0;

if(p1_trig==1)autmode=1;

while(automode==1)
{
    if(p1_trig==1)autmode=0;
    User_Autonomous_Code();
}


Where would I put that piece of code?
I don't know much about C, so I wanted to ask before I mess something up. :( don't hurt me...

Tom Bottiglieri 15-01-2006 14:35

Re: How to Start Autonomous mode?
 
Quote:

Originally Posted by Oumonkey
Where would I put that piece of code?
I don't know much about C, so I wanted to ask before I mess something up. :( don't hurt me...

You could put it right in Default_Routine() or Process_Data_From_Master_uP()

Just make sure you initialize the trigger variable outside the function.

Code:

int automode=0;
void Default_Routine(void)
{

what I had before....

}


Oumonkey 15-01-2006 20:35

Re: How to Start Autonomous mode?
 
Quote:

Originally Posted by Tom Bottiglieri
You could put it right in Default_Routine() or Process_Data_From_Master_uP()

Just make sure you initialize the trigger variable outside the function.

Code:

int automode=0;
void Default_Routine(void)
{

what I had before....

}


Great,, I think I know what do to know, I'll have to try it know. Thanks. :D

amateurrobotguy 15-01-2006 23:18

Re: How to Start Autonomous mode?
 
:yikes: <-- Totally my reaction! We gotta buying one of those switches!...not that we couldn't make it ourselves :D , but the fact that it has nice toggle switches and a giant stop the robot button so we won't have to chase down the robot, tackle it, and hit the e-stop :)

devicenull 16-01-2006 17:02

Re: How to Start Autonomous mode?
 
Make your disable button very, very big. And always have it plugged into the OI. Earlier today I had a robot start running away because the joystick was out of calibration... I was literally holding onto the transmission mount panel, and hoping that someone would come hit the circut breaker.

Last year I had the robot come full speed in reverse at me. That wasn't too fun.

I think I may want to put a large EStop button on the robot itself this year..just tell it in code to zero all pwm's when its pressed :)

Astronouth7303 16-01-2006 17:08

Re: How to Start Autonomous mode?
 
For the uninitiated: When Robots Attack. (Watch Phrontist get dragged around by a robot, laptop and all. ;) )

Tom Bottiglieri 16-01-2006 20:12

Re: How to Start Autonomous mode?
 
Quote:

Originally Posted by Astronouth7303
For the uninitiated: When Robots Attack. (Watch Phrontist get dragged around by a robot, laptop and all. ;) )

That has got to be the funniest thing I have ever seen. :p :p

Greg Marra 16-01-2006 20:34

Re: How to Start Autonomous mode?
 
Quote:

Originally Posted by Astronouth7303
For the uninitiated: When Robots Attack. (Watch Phrontist get dragged around by a robot, laptop and all. ;) )

Haha.

Yea, this is why kill switches are good ideas.


All times are GMT -5. The time now is 00:48.

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