I have a balancing robot running, but it needs tweaking. I can print values to the Terminal faster than I can read. So, after a program run, how do I get the text to a file to see what happened?
Currently, I am using Copy(Ctrl-C). And that works fine for a little data. But, it does not scale up.
Usually, “Select All” is Ctrl-A. But in PlatformIO Terminal, Ctrl-A closes the window. If I scroll down, the cursor reference is lost. So, Shift-Click does not work. Page-Down has no effect. End has no effect.
Loop, Angle Now, Angle Desired, Angle Error, Angle tIntegral, dif, Angle Output, Left power, Right power, (nchuk.joyY(), (nchuk.joyY()-127), Speed Desired, Filtered, Speed Now, Speed Error, Speed tIntegral, Costrained Intergral, Speed Output, Constrained Output
691, 2.59, 0.00, 2.59, 2.59, -38.76, 46.53, 46.53, -46.53, 127, 0, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00
693, 1.79, 0.00, 1.79, 4.38, -37.24, 32.82, 32.82, -32.82, 127, 0, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00
695, 1.07, 0.00, 1.07, 5.44, -31.59, 20.43, 20.43, -20.43, 127, 0, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00
696, 0.62, 0.00, 0.62, 6.07, -31.63, 12.19, 12.19, -12.19, 127, 0, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00
698, 0.03, 0.00, 0.03, 6.09, -25.79, 1.44, 1.44, -1.44, 127, 0, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00
699, -0.31, 0.00, -0.31, 5.79, -24.41, -5.24, -5.24, 5.24, 127, 0, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00
Once the data is in a file, I can plot it in Excel or a better graphing package to try to understand the sequence of events.
Does anyone have an idea of how I can do this?
PS: Copy is Ctrl-C. But, In PlatformIO Terminal, Ctrl-C is also used to stop execution.