Go to Post "I'm not going to tell you all that you all are winners. At this point you are smart enough to know whether you are or you aren't." -Woodie Flowers - Barry Bonzack [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

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #6   Spotlight this post!  
Unread 10-02-2003, 22:19
rbayer's Avatar Unsung FIRST Hero
rbayer rbayer is offline
Blood, Sweat, and Code
no team (Teamless Orphan)
 
Join Date: Mar 2002
Rookie Year: 2001
Location: Minnetonka, MN
Posts: 1,087
rbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of light
Send a message via AIM to rbayer
There's a few little tricks to stay within 26-bytes. Here's a quick list:

1. Use the smallest size possible. Words give 0-65535, Bytes are 0-255, Nibs are 0-15, and bits are 0-1.
2. Reuse variables whenever possible. For example, you said you needed two counter loops--one during auto mode, the other regular. Is there any reason why you can't use the same variable for both?
3. Strip down your SERIN. Only import the stuff you actually use, making sure to update the constants accordingly. For example, the default code imports the X and Y axis for all the joysticks. If you don't use them, get rid of them. Also, just removing them from SERIN doesn't undeclare them. You need to find that section of the code.
4. As a last resort, use scratchpad. It can get to be very messy, very fast but it can also save you a lot of variable space if done correctly.


To answer a few of your specific questions:
Make sure delta_t is in the SERIN statement in the proper place
You cannot ever "undeclare" a variable. VAR, CON, and DATA are all compile-time directives that can be placed ANYWHERE in your source code and have the same effect.
__________________
New C-based RoboEmu2 (code simulator) available at: http://www.robbayer.com/software.php

Last edited by rbayer : 10-02-2003 at 22:21.
 


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
variable? manodrum Programming 11 01-04-2003 17:20
$3500 limit - Who does not have questions Raul Rules/Strategy 5 12-01-2003 11:31
Pneumatic Actuator limit? Moshingkow Rules/Strategy 4 08-01-2003 02:16
$3500 spending limit Lisa General Forum 5 07-01-2003 10:06
what teams have a variable transmissions? Greg Perkins Technical Discussion 4 06-03-2002 06:10


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

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