View unanswered posts | View active topics It is currently Tue Oct 21, 2014 3:20 am






Reply to topic  [ 3 posts ] 
Printing feedback from Robot? 
Author Message
Rookie

Joined: Wed Oct 19, 2011 4:35 pm
Posts: 5
Post Printing feedback from Robot?
I am using robot C v 3.0, and I am trying to get input and print it on the console, printf(); doesn't work, any ideas?


Wed Oct 19, 2011 4:37 pm
Profile
Rookie

Joined: Tue Nov 01, 2011 10:17 pm
Posts: 8
Post Re: Printing feedback from Robot?
nxtDisplayTextLine(2, "%2.2f", variable);
try that.


Wed Nov 02, 2011 8:36 pm
Profile
Guru
User avatar

Joined: Sun Nov 15, 2009 5:46 am
Posts: 1347
Post Re: Printing feedback from Robot?
Depends on where you want to print the output.
nxtDisplayTextLine() will print the output to the NXT LCD screen. If you want to print the output to the debug console then use either writeDebugStream or writeDebugStreamLine. The syntax is exactly like printf.


Wed Nov 02, 2011 9:05 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 3 posts ] 

Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  



Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.