These are chat archives for jacobsenmd/opengcs

29th
Oct 2015
Tim
@qfather
Oct 29 2015 00:59
@jacobsenmd how come we don't use layouts for the GUI? I'm seeing lots of examples where widgets are added to layouts, but I can't seem to find it in the code
and apologies for the silence on my part in the last couple of days, had a bit of family drama
Mark Jacobsen
@jacobsenmd
Oct 29 2015 01:01
Which part of the GUI? The HUD doesn't currently have a layout because it was quick-and-dirty and I wanted widgets placed in specific locations, but the network and parameter widgets use layouts
Hope all is ok with the family
Tim
@qfather
Oct 29 2015 01:03
I did some work on the HUD this evening. I was trying to align the displayes values instead of hard-coding their positions
displayed*
Mark Jacobsen
@jacobsenmd
Oct 29 2015 01:08
I don't have a preference how you make it work. You could use widgets or even do manual drawing within the canvas, which might end up being easier given the complexity of the display. Or a combination, like a manually drawn background for the horizon line with widgets overlaid for text and icons. I would like the HUD widget to be resizable, which means doing some dynamic positioning. We may also want to think about grouping data by "clutter levels", so everything is present at a large size but only the most critical information is shown at small sizes.
Tim
@qfather
Oct 29 2015 01:09
yep, I'm also bearing in mind that we may want to position widgets dynamically
My goal is to have self-contained HUD that, by default, sits in the top left corner. It should be able to be resized or dragged to a different location.
If I can figure that out we can apply the basics to other widgets.
Mark Jacobsen
@jacobsenmd
Oct 29 2015 01:12
The underlying framework already takes care of all thst
The HUD widget should inherit all those behaviors from GCSWidgrt and the main form (although not all those features are working cleanly yet)
Tim
@qfather
Oct 29 2015 01:13
OK
Mark Jacobsen
@jacobsenmd
Oct 29 2015 01:14
All GCS widgets are QDockWidgets, which main window tracks. I will put together a doc soon explaining how that all works
Tim
@qfather
Oct 29 2015 01:14
Can't put a widget back that was closed in the UI currently. Are you aware of this?
Mark Jacobsen
@jacobsenmd
Oct 29 2015 01:18
Yes, I haven't written the code to add widgets yet
It currently just loads widgets from the default perspective xml file
Tim
@qfather
Oct 29 2015 01:22
Aye, no big deal for now
Tim
@qfather
Oct 29 2015 22:06
@jacobsenmd are you there?
Mark Jacobsen
@jacobsenmd
Oct 29 2015 22:20
Here
Tim
@qfather
Oct 29 2015 22:22
do you happen to know why the HUD calls refresh() and resizeEvent() several times when you switch to screen 2?
I'd expect them to be called once
Mark Jacobsen
@jacobsenmd
Oct 29 2015 22:24
I'm still cleaning up that logic. Not sure. I will add it to my todo list
Tim
@qfather
Oct 29 2015 22:24
ok
@jacobsenmd Did I understand you correctly with this layout?
Mark Jacobsen
@jacobsenmd
Oct 29 2015 23:43
Yes, looks great!
Tim
@qfather
Oct 29 2015 23:43
which info would you like underneath the horizon image?
you said "like mission planner" is that still the case?
Mark Jacobsen
@jacobsenmd
Oct 29 2015 23:50
Yes. I'm not sure how well you know mission planner but there is some other data in the HUD like active waypoint, signal strength, GPS status, etc. those will be the next steps
Tim
@qfather
Oct 29 2015 23:51
I've got it in front of me
If you want a carbon copy of the MP HUD I'll need to make some changes
for example, Alt is not on the horizon but below in the Quick tab
Mark Jacobsen
@jacobsenmd
Oct 29 2015 23:55
I would prefer to keep it as close as possible so it's an easy transition for users. Also, at least for airspeed and altitude, the MP positions at the center are the standard for real aircraft
Also, I don't care about fancy graphics but a pitch ladder and roll carets will be important
Tim
@qfather
Oct 29 2015 23:58
yep, I'll get onto those next. I wanted to confirm the layout first. I don't fully understand everything that's shown in MP to be frank
for example the two scales left and right of the hud, or the one in the top left