LSTS / neptus

Neptus, Command and Control Infrastructure
http://www.lsts.pt/toolchain/neptus/
Other
80 stars 69 forks source link

Feature suggestion: Store realtimeplot scripts #93

Closed krisklau closed 5 years ago

krisklau commented 6 years ago

Would be nice to be able to select beetween previously stored (named!) realtimeplot scripts with a dropdown menu. The different scripts could be saved with the console.

E.g., I might have two "things" I want to plot:

  1. HeadingDebug: CurrentHeading, DesiredHeading
  2. AltitudeDebug: CurrentAltitude, DesiredAltitude

Instead of comment in/out these parts in the script (can't plot both as they have very different ranges), I could then save them and select them with a drop-down menu.

zepinto commented 6 years ago

Would it be ok to have a folder in (under conf/) where these different scripts would be loaded from? In this case there would be a HeadingDebug.plot and AltitudeDebug.plot files that could be selected to replace the contents of the real-time plot code editor.

krisgry commented 6 years ago

My opinion is that @zepinto's solution is fine, as long as the user can change scripts in runtime.

paulosousadias commented 5 years ago

Changes done on branch feature/realtimeplot-groovy

kmolima commented 5 years ago

The changes on the real-time plot in Neptus are available on the branch: feature/realtimeplot-groovy Commit: 4da4c5ff2309355df58cd031f885de02483901da Now the plot can have different and configurable XY series, including the previously used timeseries. There is also a tutorial video of the usage of the plugin: link to drive The rate parameter disappeared in this version and it is fixed on 1000 miliseconds. If you find it is necessary we can work on that. The MRA plots are also being migrated to groovy

krisgry commented 5 years ago

For tuning controllers/estimators, which is a major part of what we spend time on in the field, it is necessary with a higher update rate than 1000 ms. In the old realtime plot, I usually set this to 100 ms.