BitsAndDroids / Bits-and-Droids-flight-connector

Repository for the mfs2020 flight connector by Bits and Droids
https://www.bitsanddroids.com
GNU Affero General Public License v3.0
20 stars 8 forks source link

WASM MANUAL #86

Open victru06 opened 6 months ago

victru06 commented 6 months ago

Good morning. Is there a manual on how to encode the In hg or Mb type outputs in the wasm? Thank you so much

BitsAndDroids commented 6 months ago

I'm not 100% sure if this is the way but I believe you should be able to apply transformations on the outputs. Let's say inhg to hpa is x 33.863. so you would get something like event 33.863. I'd have to check later this week what the correct syntax is. I am rewriting this part at the moment, so I will have to spend some extra attention on this part, including the docs.

victru06 commented 6 months ago

Good night.

I have found the following instruction in FSUIPC, which I understand would be necessary for the encoder to increase one hPA with each click, but I don't know how to modify it so that it is understood by your connector.

AUTOPILOT_BARO_DEC#(L:XMLVAR_Baro1_Mode) 2 != (L:XMLVAR_Baro1_Mode) 3 != and if{ (L:XMLVAR_Baro_Selector_HPA_1) if{ 1 (A:KOHLSMAN SETTING MB:1, mbars) -- 16 * (>K:2: KOHLSMAN_SET) } els{ 1 (>K:KOHLSMAN_DEC) } }

I beg you can help me.

Thank you so much.

P.S

I only need that instruction so that the EFIS of the A320 fbw works 100%.

If you are

interested I can give you my Arduino sketch.

Missatge de Dave @.***> del dia dl., 8 de gen. 2024 a les 21:03:

I'm not 100% sure if this is the way but I believe you should be able to apply transformations on the outputs. Let's say inhg to hpa is x 33.863. so you would get something like event 33.863. I'd have to check later this week what the correct syntax is. I am rewriting this part at the moment, so I will have to spend some extra attention on this part, including the docs.

— Reply to this email directly, view it on GitHub https://github.com/BitsAndDroids/Bits-and-Droids-flight-connector/issues/86#issuecomment-1881740565, or unsubscribe https://github.com/notifications/unsubscribe-auth/AW6HMOOAD466ST4AHXOPWMDYNRGIRAVCNFSM6AAAAABBM2JASOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOBRG42DANJWGU . You are receiving this because you authored the thread.Message ID: <BitsAndDroids/Bits-and-Droids-flight-connector/issues/86/1881740565@ github.com>