Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not returning Transponder codes using reflection... #21

Open
jonbeckett opened this issue Apr 12, 2022 · 1 comment
Open

Not returning Transponder codes using reflection... #21

jonbeckett opened this issue Apr 12, 2022 · 1 comment

Comments

@jonbeckett
Copy link

Hi, I've been playing with FsConnect, and cannot get it to return transponder codes. I think I'm doing it right - just wanted to check.

When setting up the response I have this:

[SimVar(NameId = FsSimVar.TransponderCode, UnitId = FsUnit.Bco16)]
public uint TransponderCode;

And then use it like this:

uint transponder_code = Bcd.Bcd2Dec(r.TransponderCode);

It always returns 0... Any thoughts ?

@TimianHeber
Copy link
Contributor

Hi, I'm away from my rig until the weekend but will look into the issue then ASAP. It's been awhile, and I do seem to remember that there were some issues here, but I'll take a look and see if I can make it work and let you know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants