Go to Post A team pulls together when things get rough. - Aignam [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 29-05-2004, 13:00
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
Question Template Project

I'm making a Template Project. What do you want in it?
  #2   Spotlight this post!  
Unread 29-05-2004, 13:12
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
Re: Template Project

Here's my list:
  • Kevin's Interupts.c
  • TTL support (Flag to redirect Printf()s to TTL?)
  • Variables.c/.h
  • multiple autons
  • flags.h
    Code:
    #define __NO_PRINTF_
    #define __EDU_RC_
    #define __USE_TTL_
    //etc...
  • sgn, abs, absdif (macros, math.h)
    Code:
    #define sgn(Number) ( (0 - ((Number) < 0)) || ((Number) > 0) )
    #define abs(Number) ( ((Number) < 0) ? (0 - (Number)) : (Number) )
    #define absdif(Num1,Num2) ( ((Num1) < (Num2)) ? ((Num2) - (Num1)) : ((Num1) - (Num2)) )
  • EDU & FRC (flag)
  • // C++ style Comments
  • main.c bug fixed
  • Botalias.h
  • Kevin's EDU RC code?
  • DoData macro.
    Code:
    #define DoData ( (statusflag.NEW_SPI_DATA) ? (Getdata(&rxdata) | Putdata(&txdata)) : 0)
  #3   Spotlight this post!  
Unread 30-05-2004, 02:49
Kevin Watson's Avatar
Kevin Watson Kevin Watson is offline
La Caņada High School
FRC #2429
Team Role: Mentor
 
Join Date: Jan 2002
Rookie Year: 2001
Location: La Caņada, California
Posts: 1,335
Kevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond repute
Re: Template Project

Quote:
Originally Posted by Astronouth7303
Here's my list:
  • TTL support (Flag to redirect Printf()s to TTL?)
This would be kinda cool. Can I suggest that you look into adding a circular buffer too? For extra credit, how about making it interrupt driven?

-Kevin
__________________
Kevin Watson
Engineer at stealth-mode startup
http://kevin.org
  #4   Spotlight this post!  
Unread 30-05-2004, 09:08
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
Re: Template Project

Quote:
Originally Posted by Kevin Watson
This would be kinda cool. Can I suggest that you look into adding a circular buffer too? For extra credit, how about making it interrupt driven?

-Kevin
"Gah!" -JVN

I'll see what I can do...
  #5   Spotlight this post!  
Unread 30-05-2004, 14:06
wun's Avatar
wun wun is offline
Registered User
AKA: David Wolever
#0865 (Warp7)
Team Role: Programmer
 
Join Date: Dec 2003
Rookie Year: 2001
Location: Toronto
Posts: 84
wun will become famous soon enough
Send a message via AIM to wun Send a message via MSN to wun
Re: Template Project

Something to make tweaking variables easer would be really nice (you know, for those situations where you need to get the deadzone on the joystick just right or tweak the speed so the right motor goes a little slower).
__________________
Help Microsoft stop piracy. Use Linux!

I have three gmail invitations, message me if you want one
  #6   Spotlight this post!  
Unread 30-05-2004, 17:13
Max Lobovsky's Avatar
Max Lobovsky Max Lobovsky is offline
Fold em oval!
FRC #1257 (Parallel Universe)
Team Role: College Student
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Scotch Plains, NJ
Posts: 1,026
Max Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant future
Send a message via AIM to Max Lobovsky
Re: Template Project

Quote:
Originally Posted by wun
Something to make tweaking variables easer would be really nice (you know, for those situations where you need to get the deadzone on the joystick just right or tweak the speed so the right motor goes a little slower).
Some teams created a command prompt, via a terminal program, to change constants and make other changes to the robot without uploading new code.
__________________
Learn, edit, inspire: The FIRSTwiki.
Team 1257


2005 NYC Regional - 2nd seed, Xerox Creativity Award, Autodesk Visualization Award
2005 Chesapeake Regional - Engineering Inspiration Award
2004 Chesapeake Regional - Rookie Inspiration award
2004 NJ Regional - Team Spirit Award

Last edited by Max Lobovsky : 30-05-2004 at 19:22.
  #7   Spotlight this post!  
Unread 30-05-2004, 19:08
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
Re: Template Project

Quote:
Originally Posted by maxlobovsky
yeah, like a little mini command prompt that some teams use.
I don't know what your talking about, but this is entirely within the standard MPLAB project. So add:
  • Interpret_Data()
for checking that sort of thing. The challenge is making it extremely flexible and general, yet doing that sort of thing easily, W/O BLOAT.
  #8   Spotlight this post!  
Unread 30-05-2004, 20:04
wun's Avatar
wun wun is offline
Registered User
AKA: David Wolever
#0865 (Warp7)
Team Role: Programmer
 
Join Date: Dec 2003
Rookie Year: 2001
Location: Toronto
Posts: 84
wun will become famous soon enough
Send a message via AIM to wun Send a message via MSN to wun
Re: Template Project

Quote:
Originally Posted by maxlobovsky
Some teams created a command prompt, via a terminal program, to change constants and make other changes to the robot without uploading new code.
Thats a really good idea! How is it done? Do you know where I can take a look at the code?
__________________
Help Microsoft stop piracy. Use Linux!

I have three gmail invitations, message me if you want one
  #9   Spotlight this post!  
Unread 30-05-2004, 20:05
Max Lobovsky's Avatar
Max Lobovsky Max Lobovsky is offline
Fold em oval!
FRC #1257 (Parallel Universe)
Team Role: College Student
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Scotch Plains, NJ
Posts: 1,026
Max Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant future
Send a message via AIM to Max Lobovsky
Re: Template Project

Well by some teams, i only meant one specific example, but I'm sure there are more. Let me see if I have can get permission to post the relevant part of the code.
__________________
Learn, edit, inspire: The FIRSTwiki.
Team 1257


2005 NYC Regional - 2nd seed, Xerox Creativity Award, Autodesk Visualization Award
2005 Chesapeake Regional - Engineering Inspiration Award
2004 Chesapeake Regional - Rookie Inspiration award
2004 NJ Regional - Team Spirit Award
  #10   Spotlight this post!  
Unread 29-05-2004, 13:24
mtrawls's Avatar
mtrawls mtrawls is offline
I am JVN! (John von Neumann)
#0122 (NASA Knights)
Team Role: Programmer
 
Join Date: Mar 2003
Location: Hampton, VA
Posts: 295
mtrawls is a splendid one to beholdmtrawls is a splendid one to beholdmtrawls is a splendid one to beholdmtrawls is a splendid one to beholdmtrawls is a splendid one to beholdmtrawls is a splendid one to beholdmtrawls is a splendid one to behold
Send a message via AIM to mtrawls
Re: Template Project

Quote:
Originally Posted by Astronouth7303
I'm making a Template Project. What do you want in it?
You might add some debug/test routines. E.g.,

Code:
Set_Debug_Level (HIGH); // or maybe Set_Debug_Level (5), etc.
...
debug (msg, threshold); // i.e., if debug level < threshold, print msg
eq (some_var, some_val, severity); // i.e., if some_var!=some_val do action based on severity
// etc., more tests/debug features
Just a thought ... it's nice sometimes to write code based on certain tests, and since you don't always have the robot with you while coding, it can be helpful to print out errors where something unexpected occurrs, but then have it go silent when you are doing the competition ... but still have it ready to go if you change something and need to make sure it all works. Wow, I'm going to stop rambling now.
  #11   Spotlight this post!  
Unread 29-05-2004, 13:31
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
Re: Template Project

No, no. that's the point. And it's better than mine, I think.
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
Math project edomus General Forum 4 01-04-2004 13:12
Preseason project AdamT General Forum 4 09-09-2002 00:52
project box archiver 2000 2 23-06-2002 23:01
physics project SharkBite General Forum 10 03-03-2002 22:06
MS Project Build Schedule joe_balint Technical Discussion 1 07-01-2002 03:25


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

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