rice-eclipse / rice-eclipse-mk1-1

The official repository for mark 1.1 code and pcb schematics for the Rice Eclipse Rocketry Club at Rice University.
GNU General Public License v3.0
1 stars 0 forks source link

Fix real-time graphing. #54

Open rjcrjc opened 6 years ago

rjcrjc commented 6 years ago

The graphs on the GUI do not discard old data and they also display the data with all data-points. Furthermore, they do not look good with noisy data.

The graphs should have the following two properties:

ty19 commented 6 years ago

I added a basic way to change time ranges. I guess time would just be total_samples / samples_per_time if we put the sample rate of each sensor somewhere in the code. I can add buttons and stuff so we can change the time ranges during tests. Not sure on how to downsample other than by throwing out every nth data point in the data we're plotting.

gui

Is there any reason denoised plots would not be the default option?

rjcrjc commented 6 years ago

Nice work on this stuff! I can help with proper denoising and downsampling later since it's not really in the realm of CS knowledge, but for now just throwing out points is good enough for the real-time plots.

I haven't taken a look at testing the real-time plotting, is there a way to test it without hooking this up to a running instance of the program?