Go to Post Remember, just because you saw it on ChiefDelphi, doesn't make it true. - Karthik [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 16-02-2002, 23:17
Manoel's Avatar
Manoel Manoel is offline
Registered User
FRC #0383 (Brazilian Machine)
Team Role: Mentor
 
Join Date: Jun 2001
Rookie Year: 2000
Location: Porto Alegre, RS, Brazil
Posts: 608
Manoel has a reputation beyond reputeManoel has a reputation beyond reputeManoel has a reputation beyond reputeManoel has a reputation beyond reputeManoel has a reputation beyond reputeManoel has a reputation beyond reputeManoel has a reputation beyond reputeManoel has a reputation beyond reputeManoel has a reputation beyond reputeManoel has a reputation beyond reputeManoel has a reputation beyond repute
Send a message via ICQ to Manoel Send a message via MSN to Manoel
Logical statements or math formulas

As of now, we arranged our robot's code so it only contains one if... then statement, and that one came with the Default program to initialize the communication.
The rest is pure math, looks nicer to me.
But...
Which one is better? Formulas are usually shorter and take less RAM space, but what about the speed? What takes longer to process?
Anyone's thoughts?
__________________
Manoel Flores da Cunha
Mentor
Brazilian Machine
Team # 383
  #2   Spotlight this post!  
Unread 16-02-2002, 23:29
GhettoTech GhettoTech is offline
Registered User
#0300 (Ghetto Techs)
 
Join Date: Feb 2002
Location: Philadelphia
Posts: 21
GhettoTech is an unknown quantity at this point
Send a message via AIM to GhettoTech
I was the lead programmer for my team last year, and at one point, I ran out of space for new variables. So, I took the default code and stripped it down to the bare minimum cod that we intended to use. I believe that it did process faster because it simply had fewer lines of code, but other than making it much easier to look at, I don't believe it made much (if any) performance difference because I could not increase the radio communication speed, nor could I make a motor running at full speed run any faster by telling it to run at full speed more times in one second

I haven't done any voltage measurements to find out if the robot ran more efficiently or not, but any change would be negligible.
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
What formulas can you use? Tton General Forum 7 04-11-2003 00:33


All times are GMT -5. The time now is 01:17.

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