|
Page 1 of 1
|
[ 3 posts ] |
|
Printing feedback from Robot?
| Author |
Message |
|
jameswatson
Rookie
Joined: Wed Oct 19, 2011 4:35 pm Posts: 5
|
 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 |
|
 |
|
eWilde
Rookie
Joined: Tue Nov 01, 2011 10:17 pm Posts: 8
|
 Re: Printing feedback from Robot?
nxtDisplayTextLine(2, "%2.2f", variable); try that.
|
| Wed Nov 02, 2011 8:36 pm |
|
 |
|
MHTS
Guru
Joined: Sun Nov 15, 2009 5:46 am Posts: 1023
|
 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 |
|
|
|
Page 1 of 1
|
[ 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
|
|