ROBOTC.net forums
http://robotc.net/forums/

Passing variables through debug stream
http://robotc.net/forums/viewtopic.php?f=11&t=11515
Page 1 of 1

Author:  Asim Poptani [ Sat Jun 13, 2015 3:48 am ]
Post subject:  Passing variables through debug stream

Passing variables through debug stream

So i am attempting to pass values from the controller to the debug stream:
This code is all in a loop and so it repeats every 10 seconds.
Code:
writeDebugStream("Channel 2 value: %d",vexRT[Ch2]);
writeDebugStream("Button 5D value: %d",vexRT[Btn5D]);


but every time i do this i get
Quote:
Channel 2 value: 0
and
Quote:
Button 5D value:0
Every time even when i press 5D or move Channel 2.

Any help would be appreciated.

Page 1 of 1 All times are UTC - 5 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/