Go to Post Just remember that you can get just as much inspiration from making a simple system's details work really well as you can from just making a complex system work... - Rob [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
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
  #11   Spotlight this post!  
Unread 24-01-2010, 21:48
TheDominis TheDominis is offline
Registered User
FRC #2152
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Port Orange, Florida
Posts: 88
TheDominis has a spectacular aura aboutTheDominis has a spectacular aura about
Re: Printing Float to Dashboard

Quote:
Originally Posted by Abrakadabra View Post
Or sometimes us old-time C programmers know what is efficient and what is not. Remember, although the cRio is lightyears ahead of the old IFI controller, we are still programming on an embedded system, not a desktop PC. Using the C++ iostream library requires your program to bring in a whole bunch of extra code, most of which will never be used in our implementations. The extra processing required to do all the buffer manipulation that gives you that smooth I/O redirection interface is not really noticed in a program running on a desktop PC, but for a finely-tuned embedded program, it can be the difference between smooth operation of your control loops and erratic, unexpected behaviors.

Especially for a function like writing to the Driver Station, you want to keep things as simple and fast as possible, so as not to slow down or impede communications with the robot.

So sometimes the old ways are better not because they are "familiar", but instead are "just better" for the particular task at hand.

Now you kids get off my lawn with that crazy "<<" stuff!
Strange, "WPILib.h" imports iostream...

Last edited by TheDominis : 24-01-2010 at 21:52. Reason: Slightly erroneous statement
Reply With Quote
 


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
problem with printing float windell747 Programming 3 12-02-2008 10:23
printing FLOAT data type on the terminal window razer Programming 14 05-02-2007 08:55
Robots that float boy_scout72688 Rules/Strategy 31 15-01-2007 22:18
Float Design i like dirt Technical Discussion 3 13-09-2006 00:21
Float in MPLAB capenga Programming 1 18-02-2005 06:44


All times are GMT -5. The time now is 12:14.

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