I want to write a CSV (comma separated values) text file that can quickly be used to graph data after running an autonomous opmode.
I assumed that the file system could be written to, because I have an example OpenCV opmode that takes a webcam snapshot and writes it to the control hub file system under the "FIRST/data" directory.
Yet when I try to use FileWriter to create a text file, I get an exception: "Read-only file system".
Is there a way around this? Or is there another way to log data that can quickly be graphed? I know I can log ADB data to the giant log file, and I could filter out my lines of interest and do post-processing to get a nice CSV file, but I'd prefer something cleaner than that.
Thanks!
Ed (mentor for Browncoats in Huntsville AL)
I assumed that the file system could be written to, because I have an example OpenCV opmode that takes a webcam snapshot and writes it to the control hub file system under the "FIRST/data" directory.
Yet when I try to use FileWriter to create a text file, I get an exception: "Read-only file system".
Is there a way around this? Or is there another way to log data that can quickly be graphed? I know I can log ADB data to the giant log file, and I could filter out my lines of interest and do post-processing to get a nice CSV file, but I'd prefer something cleaner than that.
Thanks!
Ed (mentor for Browncoats in Huntsville AL)
Comment