Go to Post Continue? You mean we can quit? Why didn't someone say so! - tsaksa [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Spotlight this post!  
Unread 11-04-2016, 22:46
virtuald's Avatar
virtuald virtuald is offline
RobotPy Guy
AKA: Dustin Spicuzza
FRC #1418 (), FRC #1973, FRC #4796, FRC #6367 ()
Team Role: Mentor
 
Join Date: Dec 2008
Rookie Year: 2003
Location: Boston, MA
Posts: 1,086
virtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant future
Re: Writing user data to DS log file

Quote:
Originally Posted by cpapplefamily View Post
As a first year FRC member I have learned heaps these past few months. My latest discovery was the log files in the driver station. What a wonderful resource of data about what may have just happened in a match or drive test. The team I have joined has been at it for some time and has quite a collection of parts from years past. One of these parts are batteries. They have not always been very responsible at marking how old these batteries are or how often or rotation of these batteries. During one practice match we had terrible brown outs. With my discovery of the log files I see this battery may look ok at rest 12.5vdc but 30 seconds of use and things go south fast. I thought it maybe a great idea if the smartdashboard could get a user input like a battery number and maybe in the ####Init() method write a line in the log to the value of this input. So back home, at the hotel, or in the pits we could have a chance to id what battery may had been used. If we see a pattern to remove that battery from service.
Actually, if you print something out to stdout (eg, System.out.println in java), then I've found that the DS log will capture it (though, if you send a *lot* of output, then it will drop a bunch).

But yes, the DS log is definitely one of the most useful and unknown features that have been added in recent years.
__________________
Maintainer of RobotPy - Python for FRC
Creator of pyfrc (Robot Simulator + utilities for Python) and pynetworktables/pynetworktables2js (NetworkTables for Python & Javascript)

2017 Season: Teams #1973, #4796, #6369
Team #1418 (remote mentor): Newton Quarterfinalists, 2016 Chesapeake District Champion, 2x Innovation in Control award, 2x district event winner
Team #1418: 2015 DC Regional Innovation In Control Award, #2 seed; 2014 VA Industrial Design Award; 2014 Finalists in DC & VA
Team #2423: 2012 & 2013 Boston Regional Innovation in Control Award


Resources: FIRSTWiki (relaunched!) | My Software Stuff
Reply With Quote
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 20:56.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi