Go to Post I believe you have the right to develope your own opinion. I would suggest it be based on actual experience and facts. - Mike Copioli [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
  #3   Spotlight this post!  
Unread 31-05-2006, 10:01
tacman1123 tacman1123 is offline
Registered User
AKA: Tac Tacelosky
FRC #1900
Team Role: Mentor
 
Join Date: May 2006
Rookie Year: 2006
Location: Washington, DC
Posts: 17
tacman1123 is an unknown quantity at this point
Send a message via AIM to tacman1123
Re: Using printf() as UserCode in EasyC 2.0

Thanks, that helps. I'd still like to know more about how to integrate low-level calls, but your solution solved my immediate problem, which was a simple script to monitor the radio transmitter values (since the Online mode doesn't display those). For those that are interested, here it is.

Code:
#include "Main.h"

void main ( void )
{
      int time = 0; 
      int rx = 0; 
      int channel = 1; 
      int rx_value = 1; 
      int i = 0; 

      StartTimer ( 1 ) ;
      while ( 1 )
      {
            time = GetTimer ( 1 ) ;
            for ( rx=1 ; rx<=2 ; rx++ ) // loop through rx
            {
                  for ( channel=1 ; channel<=6 ; channel++ )
                  {
                        rx_value = GetRxInput ( rx , channel ) ;
                        PrintToScreen("%3d ", (int)rx_value);
                  }
            }
            PrintToScreen ( "at %d\n" , (int)time ) ;
      }
}
Now what would be nice is if the terminal window could be widened and the font could be changed to a fixed-width font, so that the results came out tabular instead of in a series of numbers.
 


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
Printf BillyJ Programming 9 21-01-2006 14:03
Kickoff easyC workshop integrated into EasyC help file Dan Larochelle Programming 0 11-01-2006 06:12
Why printf? Mike Programming 5 20-03-2005 15:54
printf isn't printf-ing. Help! Meandmyself Programming 14 15-02-2004 16:27


All times are GMT -5. The time now is 03:37.

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