Go to Post *be there or be triangle, circle, square - PVCpirate [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
  #1   Spotlight this post!  
Unread 07-04-2004, 22:40
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
Tweaking constants: any good way?

This year I was told that we would need some code to ramp up the speed, so if the driver jams the sticks forward or backward, the robot wont flip (as we are really top heavy). The actual code was easy, but what made it take forever was the tweaking.
Every time I would want to make a change, I would have to first change the #define statement, compile the code, then download the code.
Am I just ignorant, and there is an easy way to tweak constants in the code without having to compile/download it each time? (I know you cant change values of #define statements with out re-compiling... but you know what I mean).
The best thing I could think of was change the #define statements to variables, then assigning a button to increase/decrease them, but I never got around to coding it.
__________________
Help Microsoft stop piracy. Use Linux!

I have three gmail invitations, message me if you want one
 


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
Why letting FIRST know your opinions is a good idea archiver 2001 5 24-06-2002 04:13
A good way to meet new teams? archiver 2001 5 24-06-2002 02:52
ChiefDelphi on Good Morning America archiver 2001 1 24-06-2002 02:36
IT to be revealed on Good Morning America Joe Ross Dean Kamen's Inventions 50 13-12-2001 09:53
New site looks good Dave... CD Forum Support 8 07-08-2001 16:35


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

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