OCCRA
Go to Post I want to understand the physics. - Molten [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Events   CD-Media   CD-Spy   FRC-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 02-18-2002, 03:08 PM
jnossen jnossen is offline
Registered User
#0613
 
Join Date: Feb 2002
Location: New Jersey
Posts: 6
jnossen is an unknown quantity at this point
What do these variables mean?

delta_t
packet_num
res01

What are they for, and are they necessary?

Also, to save room can I take out all of the default code that I'm not using or does first have some weird thing about keeping it in?
  #2   Spotlight this post!  
Unread 02-18-2002, 08:03 PM
Lloyd Burns Lloyd Burns is offline
Registered User
FRC #1246 (Agincourt Robotics)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Toronto
Posts: 292
Lloyd Burns is an unknown quantity at this point
Already answered elsewhere; I paraphrase:

packet_num = serial number put on this packet by the OI.

delta_t = number of packets not received correctly before this one (essentially current packet number minus that of the last correct packet, minus one).

res01 = reserved variable to do with version number of system; not usually used in competition.
  #3   Spotlight this post!  
Unread 02-19-2002, 12:50 PM
JHBurch JHBurch is offline
Registered User
#0045 (TechnoKats)
 
Join Date: Nov 2001
Location: Kokomo, IN
Posts: 10
JHBurch is an unknown quantity at this point
You do not need to use any of these three variables. If you decide not to use them, comment out (or delete) the declaration for them in the '===declared variables=== section. Also, you need to change their Initialization constants to zero. For example, change "c_delta_t CON 1" to "c_delta_t CON 0". This will keep the master controller from sending this to you in the serin command. Finally, you need to remove these variables from the serin command. Be VERY careful about getting the variables in the serin command in the correct order! Read the comments in the default code!

You can also delete almost any of the default code you want. In fact if you're not using it you probably should delete it just to keep things clean. Obviously you must run your light, and I would keep the code for the feedback LED's (modify it if you like though). I would not delete the comments, they don't take up anything but screen space and they can be very helpful.
__________________
Jeff Burch
TechnoKats #45
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
Run command... frightening archiver 2001 1 06-24-2002 02:37 AM
Ahh! Program trick confusing! archiver 2001 9 06-24-2002 01:26 AM
Out of RAM Space on Custom Program archiver 2000 4 06-23-2002 10:07 PM
Pbasic I/O with the OI BinaryBob0001 Programming 3 02-16-2002 11:19 PM
VB Program to monitor robot variables DanL Programming 7 02-15-2002 09:35 PM


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

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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