Go to Post Just take a chance. Dream and live. It's not a wild decision, but just ask yourself - if I got my team just a little bit more spending money, where would my team be then? Then, change that dream into a reality. Help your team sustain itself to inspire more kids. - CalTran [more]
Home
Go Back   Chief Delphi > Technical > Robotics Education and Curriculum
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-12-2003, 07:43
Buster Buster is offline
Buster from 108
#0108 (SigmaC@TS)
Team Role: Scout
 
Join Date: Oct 2003
Location: Dillard High
Posts: 9
Buster is an unknown quantity at this point
Send a message via ICQ to Buster Send a message via AIM to Buster Send a message via Yahoo to Buster
Question Autonomous modes?

Looking for an autonomous code to use as a test. please reply ASAP
__________________
TEAM 108 ALWAYS GREAT! www.soap108.com

I came, I saw, I rearranged your BOT!

DRIVE YO ROBOT LIKE THE COPS ARE CHASING YA
  #2   Spotlight this post!  
Unread 17-12-2003, 09:03
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: Autonomous modes?

IF auton=0 then 100 'jump if not auton mode
Ldrive = 254
Rdrive = 0 'pre-emptive victory spin

100: 'continue with rest of code

ok, Im joking around - most peoples auton code from last year is specific to there robot - what do you want your bot to do in auton mode?
  #3   Spotlight this post!  
Unread 17-12-2003, 10:17
Mark McLeod's Avatar
Mark McLeod Mark McLeod is online now
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,754
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Autonomous modes?

Quote:
Originally Posted by Buster
Looking for an autonomous code to use as a test. please reply ASAP
/************************************************** *******
* FUNCTION NAME: Sample_Auto_1
* PURPOSE: Primitive form of autonomous mode program
* This overrides the PWM joystick inputs
* CALLED FROM: user_routines.c, Default_Routine
* ARGUMENTS: none
* RETURNS: void
************************************************** *******/
void Sample_Auto_1(void)
{
static unsigned int counter=0;

/* Sample primitive autonomous mode
* This uses a counter of the number of slow loops as a measurement for how long
* to execute any of the PWM overrides below.
* Note: A timer can also be used in place of "counter"
*/

if (counter<100){
counter++;
PWM_in1 = 200;
PWM_in2 = 200;
}
else if(counter< 150){
counter++;
PWM_in1 = 127;
PWM_in2 = 10;
}
else if(counter< 500){
counter++;
PWM_in1 = 127;
PWM_in2 = 127;
}
else if(counter<700){
counter++;
PWM_in1=254;
PWM_in2=1;
}
else if(counter<900){
counter++;
PWM_in1=1;
PWM_in2=127;
}
else /* Make sure it always stops at the end */
{
PWM_in1 = 127;
PWM_in2 = 127;
}

} /* End Sample_Auto_1 */
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
  #4   Spotlight this post!  
Unread 09-01-2004, 14:13
Buster Buster is offline
Buster from 108
#0108 (SigmaC@TS)
Team Role: Scout
 
Join Date: Oct 2003
Location: Dillard High
Posts: 9
Buster is an unknown quantity at this point
Send a message via ICQ to Buster Send a message via AIM to Buster Send a message via Yahoo to Buster
Re: Autonomous modes?

thanx man
__________________
TEAM 108 ALWAYS GREAT! www.soap108.com

I came, I saw, I rearranged your BOT!

DRIVE YO ROBOT LIKE THE COPS ARE CHASING YA
  #5   Spotlight this post!  
Unread 17-03-2004, 15:56
CHS_Tommy's Avatar
CHS_Tommy CHS_Tommy is offline
Registered User
#1368 (Perpetual motion)
Team Role: Driver
 
Join Date: Mar 2004
Location: Safety harbor, FL
Posts: 10
CHS_Tommy is on a distinguished road
Send a message via AIM to CHS_Tommy
Re: Autonomous modes?

if you want some more interesting code, our edu bot does the hokey-pokey in the autonomous mode... if you want the code, i can get it from our programmer

put your right foot in, pull your right foot out, put your right foot in and shake it all about....
__________________
Raoul got 6 years for murder. He also got $10,000 for the hit. if his common-law wife spends $100 per month, how much money will he have when he gets out?
Extra credit: how much more time will he get for killing the ho that spent his money?
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
A better autonomous method.. randomperson Programming 4 24-02-2004 18:02
crazy idea for autonomous Mike Ciance Programming 16 24-04-2003 21:50
autonomous location manodrum Programming 4 02-04-2003 08:05
autonomous mode problem on field Chris_C Programming 17 26-03-2003 19:11
Autonomous Kill Switch UCGL_Guy Programming 8 15-01-2003 17:39


All times are GMT -5. The time now is 13:55.

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