View Single Post
  #4   Spotlight this post!  
Unread 04-04-2013, 23:59
nightpool's Avatar
nightpool nightpool is offline
robotRectifier
AKA: Evan
no team (formerly of CORE 2062)
Team Role: Alumni
 
Join Date: Oct 2011
Rookie Year: 2011
Location: Waukesha, WI
Posts: 81
nightpool is on a distinguished road
Re: VT100 escape sequences or up a line on NetConsole

I'm going to (without testing) give you a pretty solid "no dice". The NetConsole is pretty limited in what it supports. There are a few replacements out there, but if you're looking to update things frequently (what I inferred from your question) you're probably better off in the long run learning and using the smart dashboard.

Smart Dashboard calls are pretty easy to drop in, here are some common conversions:

For numbers, replace
Code:
 cout <<  "Value: " << number_val << endl; // Substitute printf's to taste
with
Code:
 SmartDashboard::PutNumber('Value', number_val);
For booleans:
Code:
 cout << is_running ? "Motor is running" : "No motor running" << endl;
with
Code:
 SmartDashboard::PutBoolean("motor running", is_running);
Of course, don't take my word for it, always check the docs, for example the copy hosted here: http://www.virtualroadside.com/WPILi...dashboard.html or the one that came with your WPILib installation (at C:\WindRiver\docs\extensions\frc\WPILib C++ Reference.chm).
__________________
Proud alum of CORE 2062.
www.core2062.com
Reply With Quote