nguyenquyhy / Flight-Tracker-StreamDeck

A Stream Deck plugin to interact with Microsoft Flight Simulation
https://flightsim.to/file/3178/flight-tracker-streamdeck-plugin
GNU General Public License v3.0
373 stars 68 forks source link

Difference between onscreen instrument and simconnect variable #187

Closed tmctiger1 closed 3 years ago

tmctiger1 commented 3 years ago

I’d like to show my engine rpm in my stream deck. Stream deck connects via simconnet to the simulator - so far so good. But when I’d like to display the engine rpms using simconnect variable GENERAL_ENG_RPM__1 i have a missmatch between the instroment in the cockpit shown on the screen and the value read out via simconnect by the stream deck.

For example when my engine is idle the rpm counter in the cockpit says 880 but the value in GENERAL_ENG_RPM1 is 1483. Same when I apply full throttle: 2300 rpm in cockpit view but 3889 rpm in GENERAL_ENG_RPM1. See attached iamges.

So the questions: am I doing something wrong? Is the stream deck profile/plugin doing something wrong, or is the value provided by the simulator in GENERAL_ENG_RPM__1 wrong? I am a little puzzeld here honestly :man_shrugging:

Here you see the Missmatch: Idle RPM: RPMmissmatch_1 Full throttle: RPMmissmatch_2

BTW: this is the Diamond DA40 TDI, no plugins for this aircraft installed.

rmroc451 commented 3 years ago

If you remove the values, and then change focus to a different textbook on the attributes, does it update to work?

We currently only update the streamdeck client with your updates on blur (leaving the textboxes).

Let me know if that works.

nguyenquyhy commented 3 years ago

I just checked the DA gauge. They actually use PROP RPM:1 instead of engine RPM for that number. There are also some rounding involved Round(value / 20) * 20.

Right now we don't have support for PROP RPM:index yet. I'll add that in next update.

tmctiger1 commented 3 years ago

If you remove the values, and then change focus to a different textbook on the attributes, does it update to work?

We currently only update the streamdeck client with your updates on blur (leaving the textboxes).

Let me know if that works.

Hi, yes the issue persists also with empty fields.

tmctiger1 commented 3 years ago

I just checked the DA gauge. They actually use PROP RPM:1 instead of engine RPM for that number. There are also some rounding involved Round(value / 20) * 20.

Right now we don't have support for PROP RPM:index yet. I'll add that in next update.

Ah thanks for the heads up about this issue. That makes aktually total sense since the DA40 has a automatic variable pitch propeller and the rpm is given for the prop and also stays more or less the same since only the pitch of the propeller is adjusted...

tmctiger1 commented 3 years ago

Hi @nguyenquyhy I have currently checked version 0.29 and now it works like a charm! :) Thanks for adding the value to your Plugin!

I am now using PROP_RPM__1 and receive the correct values.

Just a question regarding PROP_THRUST__1: what does this represent. I thought this should be someting between 0 and 100 percent but actually it is between 67 (idle) and 530 (fullthrottle)

Thanks and BR!

nguyenquyhy commented 3 years ago

PROP THRUST:index is thrust measure in pound 😀.

tmctiger1 commented 3 years ago

PROP THRUST:index is thrust measure in pound 😀.

Ah I understand - Thanks!