Fixes, improvements to lpy plugin
This merge request does several things:
Bug fixes:
- Sample rate was being called using the old convention for
ChannelBuf
, rather than usingbuffer.sample_rate
, causing the plugin to crash. - Fixed a bug with plots not zeroed at the time of the refined gps (or unrefined if it can't resolve)
Improvements:
- Instead of using the refine window to create the plot, calls config.PLOT_WINDOWS and uses both the ZOOM and WIDE windows to make plots.
- Refactored the code a bit to make clear what a magic number meant in
gen_ylim
, use zip instead in looping through the different subplots in length, pitch, yaw.
Example:
- Before:
- After:
- Wide plot:
- Zoomed plot: