Go to Post Aww, but I ENJOY getting all up in arms about something that's ultimately inconsequential! - Cothron Theiss [more]
Home
Go Back   Chief Delphi > Technical > Programming
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 14-01-2005, 21:18
Astronouth7303's Avatar
Astronouth7303 Astronouth7303 is offline
Why did I come back?
AKA: Jamie Bliss
FRC #4967 (That ONE Team)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Grand Rapids, MI
Posts: 2,071
Astronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud of
A (More) Readable Script

I've revised the scripting setup slightly so that the written scripts are slightly more readable (not what I eventually want, but better.)

Here's the default script rewritten in this format:
Code:
BEGIN_SCRIPT(command_list)
  GYRO_BIAS
  WAIT_FOR_BUMP
  WAIT(1000)
  DRIVE(1500)
  WAIT(4000)
  TURN(-1500), 50)
  WAIT(3000)
  DRIVE(2400)
  WAIT(4000)
  TURN((PI_MRAD / 2), 50)
  WAIT(4000)
  DRIVE(2400)
  WAIT(4000)
  TURN((-1500), 50)
  WAIT(1000)
  DRIVE(0)
  KEEP_HEADING(240000, 100)
  JUMP(1)
END_SCRIPT
The argument to BEGIN_SCRIPT is the name of the script in code (must be "command_list" unless you modify robot.c )

I've attached the required header, and have posted it (or will if not already) to frcoder.

[edit]A few of the commands in the header are not in the default code. If you use them, it won't compile.[/edit]

[edit=2]The header and more usage notes are now at frcoder. I wrote this file entirely, so it is under LGPL like the rest of the site.[/edit]
Attached Files
File Type: txt Script.h.txt (1.5 KB, 50 views)

Last edited by Astronouth7303 : 14-01-2005 at 21:36.
  #2   Spotlight this post!  
Unread 15-01-2005, 18:27
Ryan M. Ryan M. is offline
Programming User
FRC #1317 (Digital Fusion)
Team Role: Programmer
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Ohio
Posts: 1,508
Ryan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud of
Re: A (More) Readable Script

Very nice!

I may actually use this now.
__________________

  #3   Spotlight this post!  
Unread 15-01-2005, 20:26
DanDon's Avatar
DanDon DanDon is offline
ohhh MY god
AKA: Dan Hoizner
FRC #0375 (The Robotic Plague)
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2004
Location: Staten Island, NY
Posts: 1,432
DanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond repute
Send a message via ICQ to DanDon Send a message via AIM to DanDon Send a message via MSN to DanDon
Re: A (More) Readable Script

Thank you very much, I was going to do this, but my fellow programmer (glares) put me off of it. Now he doesn't have an excuse .

Thanks again,

Dan
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
email displaying script. Rickertsen2 IT / Communications 2 04-09-2004 16:10
Top Gun Script for IRI Talent Show Travis Hoffman Off-Season Events 4 13-07-2004 17:09
Looking for SECURE login script plutonium83 Website Design/Showcase 9 22-01-2004 14:40
Kickoff Countdown Ricky Q. General Forum 27 04-01-2003 09:54
PBASIC HELP, ASAP!! archiver 2001 12 24-06-2002 00:53


All times are GMT -5. The time now is 02:47.

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