Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   General Forum (http://www.chiefdelphi.com/forums/forumdisplay.php?f=16)
-   -   Hybrid Challenge-No Robot Left Behind (http://www.chiefdelphi.com/forums/showthread.php?t=61627)

Racer26 25-03-2008 13:56

Re: Hybrid Challenge-No Robot Left Behind
 
I liked 188's strategy against 1114's auto too.

GDC says no defensive auton. 188 makes their auton get 1 line (therefore not being "defensive") and parks right in 1114's path.

T3_1565 25-03-2008 13:58

Re: Hybrid Challenge-No Robot Left Behind
 
we had 1558 try that against 1114 as well (well it was four sec pause then drive to one line) but that failed... horribly...

But they moved!! and thus, keeps another robot from being left behind!! :D

BLCamp 25-03-2008 14:35

Re: Hybrid Challenge-No Robot Left Behind
 
Of course, there are some teams that figured other robots might get in the way so they incorporated some collision avoidance, http://www.youtube.com/watch?v=6qrNdDw-YrM

Brian

Racer26 25-03-2008 14:54

Re: Hybrid Challenge-No Robot Left Behind
 
Wow... thats impressive, 79. I know 1114 was trying to do something similar, but that system sure works nice.

bcieslak 25-03-2008 15:42

Re: Hybrid Challenge-No Robot Left Behind
 
Go to team 1675's website (www.team1675.com) and check out the autoflex program they have that will allow your drivers to train the robot to perform during the 15 second autonomous period..even better than just driving straight.

BC

bcieslak 25-03-2008 16:07

Re: Hybrid Challenge-No Robot Left Behind
 
Quote:

Originally Posted by ShotgunNinja (Post 689864)
Well, my team has shown that they wanted to go with the IR sensor controller, maybe using a TV/VCR remote. But I am in charge of the programming, and I was wondering...

Would something like this (Using ROBOTC) be usable?
Code:

task Autonomous()  { // Note: Just pseudocode, but whatever
while (bIfiAutonomousMode) /* Just in case... */
{
  switch(GetIRInputState()) /* Get the state of the IR sensor, in a different subroutine */
  {
      case Button1:
        Action1; // Something like "Move forward, stop"...
      case Button2:
        Action2; // Maybe "Turn Left"
      case Button3:
        Action3; // Maybe "Turn Right"
      case Button4:
        Action4; /* Something along the lines of: "Grab ball off overpass, however possible" */
      default:
        TakeNoAction; // Just "Stop Motors" or something
  }
  BetweenActions; // Something like "Stop Motors, Wait XX MS"
}
EndingAction; /* Play a sound or something. Reset motors for Human Control. Etc. */
}

Any comments?

You should look into using pointers to functions...it makes what your trying to do real simple...When you press a button, change the pointer to a function to the new behavior function..In your autonomous_routine just call the pointer as if it were the function. I

first decalre a couple of simple functions like: (fill in the code)
void drive_fwd(void);
void drive_bwd(void);
void turn_left(void);
void turn_right(void);

then declare a function pointer:
void (*auto_function)(void); the splat in the parens make a function pointer.
Note the format of the prototype and the fucntion pointer is the same, for the pointer replace the function name with the (*pointer_name)

Now use your code to read the IR board
but the action would assign a fucntion to the pointer.
switch(GetIRInputState()) /* Get the state of the IR sensor, in a different subroutine */
{
case Button1:
auto_function = drive_fwd;; // Something like "Move forward, stop"...
case Button2:
auto_function = drive_bwd;; // Maybe "backwards"
case Button3:
auto_function = turn_left; // Maybe "Turn left"
case Button4:
auto_fucntion = turn_right; /* Something along the lines of: "Grab ball off overpass, however possible" */
default:
TakeNoAction; // Just "Stop Motors" or something
}

then by calling auto_function just as if it were a function it will perform the function you assigned to it.

auto_function(); // do what it assigned to the pointer. call this in the autonomous loop.

The function pointer will stay the same until you change it with the IR board.


BC

Doug Leppard 25-03-2008 16:18

Re: Hybrid Challenge-No Robot Left Behind
 
Quote:

Originally Posted by BLCamp (Post 724633)
Of course, there are some teams that figured other robots might get in the way so they incorporated some collision avoidance, http://www.youtube.com/watch?v=6qrNdDw-YrM

Brian

We had no idea you guys were doing that, way to go very impressive.

We considred it and have the sonar up front but didn't implement it. we may still consider it.

team2061 26-03-2008 14:48

Re: Hybrid Challenge-No Robot Left Behind
 
Quote:

Originally Posted by Doug Leppard (Post 724417)
We have easyc and were able to cross 5 lines in hybrid mode.

BUT, we have encoders and gyro and a pretty sophisticated way point software we developed over the weeks. All that would be too hard for you to start now, but with easyc you can quickly develop the ability to cross two lines for 8 points.

First of all about your robot. What sensors do you have? Do you have wheel encoders or fear counter to tell how far you have gone? Do you have the gyro onboard?

No we were unable to put encoders on our bot

XXShadowXX 26-03-2008 21:51

Re: Hybrid Challenge-No Robot Left Behind
 
done,

flint rookie pilot, our programer wrote another alliance member team's hybrid code for them or improved it, but we all crossed 1 line in hybrid.

Doug Leppard 01-04-2008 16:46

Re: Hybrid Challenge-No Robot Left Behind
 
One story of "no robot left behind".

At each regional we have helped several robot teams. At our last match at Bayou I visited our partners trying to make sure their auto mode would not run into us. Neither team had an auto mode so I sent our lead programmer to work with them.

He got both of them going with a basic go straight and make 4 points after a three second delay.

Both of their auto modes worked each getting 4 points. They were excited because it was the first time they had an auto mode that worked. As it turned out we won by 6 points and without their 8 points we would have lost. That win ended putting us in the top 8 and allowed us to pick our partnership. So it was a win for all!

Tottanka 01-04-2008 19:53

Re: Hybrid Challenge-No Robot Left Behind
 
Quote:

Originally Posted by Doug Leppard (Post 728651)
One story of "no robot left behind".

At each regional we have helped several robot teams. At our last match at Bayou I visited our partners trying to make sure their auto mode would not run into us. Neither team had an auto mode so I sent our lead programmer to work with them.

He got both of them going with a basic go straight and make 4 points after a three second delay.

Both of their auto modes worked each getting 4 points. They were excited because it was the first time they had an auto mode that worked. As it turned out we won by 6 points and without their 8 points we would have lost. That win ended putting us in the top 8 and allowed us to pick our partnership. So it was a win for all!

That is a great story! good job guys =]
Oink Oink...


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

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