We are working on a task to log the motor’s max values for temp and current and looking at this piece of code
However there is concerns about opening & closing files during competition. I am only writing to the file every, say, 10 seconds.
Open file on startup , write as needed - close?? uses less I/O but more memory - have to save file upon completion which IDK how/when to do.
Open / write / close when needed - easy to do but may affect performance?