makerplane / pyEfis

Electronic Flight Information System in Python
GNU General Public License v2.0
58 stars 31 forks source link

Attitude Indicator displays incorrect when switching displays #119

Closed e100 closed 6 months ago

e100 commented 10 months ago

I setup Fix gateway demo plugin, ensuring it handled ALAT, TAS, PITCH and ROLL Then I launched pyefis and cycled through all the screens to ensure each was loaded. Set PITCH to some other value using FIX Gateway Client. Move to next screen with Attitude Indicator and see that pitch on that screen remains unchanged.

This was an issue for PITCH, ROLL, ALAT and TAS.

Seems the cause of the problem is that AI does not update its internal values when it is not visible. Makes sense to not redraw when hidden, but ignoring signals and discarding data does not.

I will send a pull request to fix this but maybe we should keep this ticket open until we verified similar issues do not exist in other instruments. self.isVisible() shows up in hsi, vsi, NumericalDisplay, airspeed and virtualvfr

e100 commented 6 months ago

I am not aware of any places where this is still an issue so closing this.