View Single Post
  #1   Spotlight this post!  
Unread 21-01-2013, 04:46
mikets's Avatar
mikets mikets is offline
Software Engineer
FRC #0492 (Titan Robotics)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Bellevue, WA
Posts: 667
mikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of light
NetConole replacement

I have written a net console replacement. This is a Windows console app (i.e. run in a CMD window) called netterm (attached here). One of the advantages of this program is the support for ANSI font color.
http://en.wikipedia.org/wiki/ANSI_escape_code

Our robot code has macros printing "Info", "Warning" or "Error" messages. Info lines are green, Warning lines are yellow and Error lines are red. When debugging the robot code, we found that debug spews are sometimes too chatty especially when using the CANJaguar class. Sometimes, our debug messages got drowned in the ocean of messages. Having different colors help us to spot important messages our code printed out. Another useful option is the ability to save the debug session into a log file.

For syntax on how to use this tool, type "netterm /help". The first time you run this tool, you need to provide your team number. For example,
netterm /team=492

The program will save this info into the registry so the next time you run it, you just simply type:
netterm

Don't worry about the other options. For FRC application, all options should have the correct default values. The options are for communicating with other applications.

Since the app monitors UDP port 6666, when running the first time, Windows Firewall will prompt you for permission to monitor network ports.
Attached Files
File Type: zip NetTermTool.zip (12.5 KB, 27 views)
__________________

Last edited by mikets : 21-01-2013 at 04:54.
Reply With Quote