You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
my display native resolution is 1024x600. The G5DualStacked does not really fill the whole display, only about 80-90% of the size, with unused space at the top and right. I discovered in pyG5View.py the lines 35ff:
I already dug deeper into the source. The thing is, that there are different aspect ratios for raspi- screens. Of course I could (and already did) change values like g5Width and g5Height but other people might need other values then me.
So maybe it would be even better to put these values in some kind of configuration file, so that the main part of the source code itself is independent of those values ? What do you think ?
There are couple of things to consider... First this is designed based on the original Garmin G5 which I have been using during flight training. So the aspect ratio has to be the same. Then about resizing, I suspect this is not going to work too well as a lot of the aspect is coded in pixel.
You have probably figured this is all designed using Qt, what would work is scaling the output widget in a bigger widget. Look at the QPainter methods.
The pyG5SecondaryWidget is for the second window. it does not show up in the second display but you can move it there. The application also remembers where you put the windows and the state. So if you have one full screen on a display and the other into another display this is going to be restored at the next start.
try: python -m pyG5.pyG5Main -m full
This displays all the instrument and information not available in the rest of my sim panel. That's a good place to start.
The way I designed my panel is to have the G5s on the RPI display, I use the G1000 MFD for engine instrument and map. Missing bits are on the pyG5SecondWindow. Maybe you don't need to design if you use the MFD display. if you want to write another window with tachometer, contributions are welcome.
Some questions:
are these intended to change the size of the G5 ?
about the "pyG5SecondaryWidget": will this show up on the secondary display if there is a second one connected to the raspi ?
I would like to add a tachometer for the engine RPM on the secondary display. Any hints where in the source code to start with ?
The text was updated successfully, but these errors were encountered: