Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Needs Help Right here (http://www.chiefdelphi.com/forums/showthread.php?t=24450)

Hop_of_752 28-01-2004 11:12

Needs Help Right here
 
Hey, I need some serious help with the auto programming. I just dont know where to start can anyone point me in the right direction.

sanddrag 28-01-2004 11:30

Re: Needs Help Right here
 
Well, the other threads in the "Programming" forum and the documentation on the Innovation First website would be a good place to start.

ShadowKnight 28-01-2004 11:57

Re: Needs Help Right here
 
what kinda help do you need? Like is the C language teh issue or do you have no concept for what to do and how to do it in Autonomous?

Astronouth7303 28-01-2004 20:55

Re: Needs Help Right here
 
Quote:

Originally Posted by Hop_of_752
Hey, I need some serious help with the auto programming. I just dont know where to start can anyone point me in the right direction.

Well, One way is to do 'dumb reckoning': hard code directions to go through w/timing. Of course, this doesn't even compensate for left/right, not that THAT's difficult.

matt111 28-01-2004 22:14

Re: Needs Help Right here
 
Quote:

Originally Posted by Astronouth7303
Well, One way is to do 'dumb reckoning': hard code directions to go through w/timing. Of course, this doesn't even compensate for left/right, not that THAT's difficult.


u mean dead reckoning :D yea that is probably the easiest to do. i think (im not the programmer) that u need to find how far u will go with one wheel revoultion and find out how far u want to go etc etc. good luck

Hop_of_752 28-01-2004 22:48

Re: Needs Help Right here
 
Well basically I want to know how to write my code for the auto program. An example if i was to use the beacon , do i just place the default beacon in there or wut exactly do I modify.

Astronouth7303 29-01-2004 13:38

Re: Needs Help Right here
 
Quote:

Originally Posted by matt111
u mean dead reckoning :D yea that is probably the easiest to do. i think (im not the programmer) that u need to find how far u will go with one wheel revoultion and find out how far u want to go etc etc. good luck

No, I mean dumb. the simplest way is no sensors and just hard-code. Execute series of instructions with timing.

Hop_of_752 29-01-2004 17:28

Re: Needs Help Right here
 
So how would I go about this Dumb reckoning basically tell me the how to start im sorry but for a programmer I basically dont know anything

Astronouth7303 29-01-2004 17:52

Re: Needs Help Right here
 
It's a simple concept, and one of the easiest to do. One of my first programs was that. Of couse, I wouldn't recomend doing for competition, but it is a method. I call it dumb because it uses NO sensory input, and when you start it, it goes until it finishes.

try something like:
Code:

const int gTime = 75;

//...

void Default_Routine(void)
{
 static unsigned int i_Count;

  if (i_Count > 6*gTime)
  {
//    Set-up for Mode 6
    i_Count = 0;
  }
  else if (i_Count > 5*gTime)
  {
//    Set-up for Mode 6
  }
  else if (i_Count > 4*gTime)
  {
//    Set-up for Mode 4
  }
  else if (i_Count > 3*gTime)
  {
//    Set-up for Mode 3
  }
  else if (i_Count > 2*gTime)
  {
//    Set-up for Mode 2
  }
  else if (i_Count > 1*gTime)
  {
//    Set-up for Mode 1
  }

    i_Count = i_Count + 1;
 
  printf("i_cCount=%d\n",(int)i_cCount);
} // END Default_Routine();

to expand this, just put in more else if's. Be shure to put the HIGHEST first. The sample should be enough to get you started. Of course, it will loop through this forever. To get it to stop I'll leave to YOU ;). (you can roll your eyes and be a little sarcastic when you respond to that)

If you want to know more about DEAD reckoning, check What to do with autonomous. Dead reckoning has been discussed there to the ends of posibility, then a considerate bit more.

Don't worry, this my first year too.

p.s. Can you use periods? PLEASE?

matt111 29-01-2004 20:30

Re: Needs Help Right here
 
well ive heard it called dead reckoning because ur robot has no sensor inputs so if u screw up its dead :D nice post though should be a big help to all teams in need.


All times are GMT -5. The time now is 04:21.

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