Sim/glass gui state

hi everybody,

we get a lot of use out of the simgui and glass, and we like the minimalism and the time-series plots, but we’re struggling with one aspect that maybe someone here knows about?

when we arrange widgets in the view, and then restart the tool, it seems like sometimes some of the configuration is saved and other parts are not – for example, the simgui remembers which SendableChooser widgets were in use, but doesn’t remember where, so they appear all on top of each other. sometimes it remembers a widget but not its size, it appears as a little square. sometimes it forgets about the joystick configuration, and sometimes it doesn’t.

is there a “proper way” to maintain a library of glass analysis views for different purposes? i would think that the “save” and “open” feature would do that, but it doesn’t seem to; it remembers some things and not others.

In general, if things aren’t remembered, that’s a bug (the exception is things like plot axis settings, where there’s a separate “live” setting and “saved” setting). Please open an issue on allwpilib so we can track it. Everything is saved as JSON so you can always inspect the files to see what’s actually being saved (and see if it’s a save problem or a load problem).

Save and open (as you might expect) use the same underlying code that auto-saves/loads, so no difference there is expected.

ok, thanks, i added a bug.

looking more closely it seems like the json state is being written correctly, but when it is supposed to be read, it is overwritten instead, with the default state. this occurs in both glass and simgui.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.