Welcome to the forum for MobiFlight! Feel free to reach out to the community in case you have questions, issues or just want to share great ideas or details about your latest home cockpit project.
You like MobiFlight? Donate via PayPal and support the MobiFlight development. Thanks!
05/03/2024 - This forum is read-only
The community support for MobiFlight has moved exclusively over to our Discord server. Register for free and enjoy more interactive functions like image and video upload, voice chat. More than 7,000 registered users around the world make it a great experience!
A HUGE Thank You to everyone who participated in the forum, especially obviously to Pizman and Stephan who did an outstanding job over so many years providing an incredible service to the MobiFlight community.
The forum is still providing a lot of good content, hence we keep this information accessible.
Caros amigos, em meu primeiro projeto estou tendo um problema com a informação do valor do HDG a ser mostrado em meu LCD. Na página de configuração para esta finalidade do Mobiflight, usando FSUIPC offset foi marcado Autopilot- AP Heading Value (Preset use) , em Base Settings, Offset - 0x07CC ,Value Type- int , Size in byte - 2 , Mask Value - 0xFFFF , More Options (marcado) , Transform -- ($*360) / 65536 ,fórmula esta, que já veio pronta ao abrir a página de configwizard. Dei OK e testar o Programa. Simulador ligado , placa configurada, LCD aceso e com as informações colocadas em seus devidos lugares, os nomes das funções ( HDG, ISA, ALT, V/S) e todas as informações numéricas em zero (0, 000, 00000 ) . Ao comandar o valor de HDG para 1, 2, 10 ......, até 179 e voltar, OK, só que não passa de 179, para e não vai em frente para 180, 181,.... .Ao comandar de 0 para 359 , 358, passa a indicar -1, - 2, -3, até 180 e stop. Mais um pequeno detalhe, as informações do LCD estão por vez, diferentes das do Painel do Simulador. Ex: Sim= 145 e LCD= 144. O restante das funções estão funcionando. Espero ter sido claro nas palavras e agradeceria se alguém pudesse ajudar a resolver esta situação na qual está matando todo o projeto. Parabéns ao trabalho de todos do Mobiflight e meu muito obrigado pela atenção
Dear friends, in my first project I am having a problem with the HDG value information to be shown on my LCD. On the configuration page for this purpose of Mobiflight, using FSUIPC offset was marked Autopilot-AP Heading Value (Preset use) , in Base Settings, Offset - 0x07CC , Value Type - int , Size in byte - 2 , Mask Value - 0xFFFF , More Options (checked) , Transform -- ($*360) / 65536 , this formula came ready when opening the configwizard page. I gave OK and test the Program. Simulator on, board configured, LCD on and with information placed in their proper place, function names (HDG, ISA, ALT, V/S) and all numerical information set to zero (0, 000, 00000). When commanding the HDG value to 1, 2, 10 ......, up to 179 and back, OK, but it doesn't go beyond 179, it stops and doesn't go forward to 180, 181,.... . command from 0 to 359, 358, now indicates -1, -2, -3, up to 180 and stop. One more small detail, the information on the LCD is different from the ones on the Simulator Panel. Ex: Yes = 145 and LCD = 144. The rest of the functions are working. I hope I have been clear in words and would appreciate it if anyone could help resolve this situation which is killing the entire project. Congratulations to the work of everyone at Mobiflight and thank you very much for your attention.
Hi
At First please write in ENGLISH or GERMAN .... If not possible please also use translator so we can work with you !
Your Problem:
In FSUIPC ( Older Sims like FSX/P3D) the Heading Value have the reported issues..... But we have a way to fix this..... Hopefully in a future release we also can include this directly in the Preset! ( For FS2020 the new "Simconnect Outputs" work more perfect and all this formulas are no longer needed !
Solution:
1. Wrong Numbers ..... This is a "Rounding" Problem !
Please no longer use transform ($*360) / 65536 ....
Use instead Round(($*360)/65536,0)
(Copy paste it..... Or get sure Round is written same way with a capital R !!
This will "Round" the numbers to the correct value you see on the virtual Display.
***
2. Wrong Value above 180 .... this is a Signed/Unsigned Problem in FSUIPC raw Data. ( A Value can be 0-360 or -180 to +179 ) MF use the inverted system as FSUIPC expect !
To solve....
Activate COMPARE checkmark
And say in the IF Value field <0 ( less then zero)
In the THEN field you say $+360
in the ELSE field you can let it empty or you enter $ there.
This now say If value is negative ( 180-359 Degrees will currently show -180 to -1 ) THEN Add 360 to it and the result is the correct number. ELSE ( Value is between 0 and 179) the current number is showed directly.
Have fun my friend!
Oi
Primeiramente, escreva em INGLÊS ou ALEMÃO ... Se não for possível, use também um tradutor para que possamos trabalhar com você!
Seu problema:
No FSUIPC (Sims mais antigos como FSX / P3D), o Heading Value tem os problemas relatados ... Mas temos uma maneira de corrigir isso ... Esperamos que em uma versão futura também possamos incluir isso diretamente no Preset! (Para FS2020 as novas "Saídas Simconnect" funcionam mais perfeitamente e todas essas fórmulas não são mais necessárias!
Solução:
1. Números errados ... Este é um problema de "arredondamento"!
Não use mais transform ($ * 360) / 65536 ....
Em vez disso, use Round (($ * 360) / 65536,0)
(Copie e cole ..... Ou certifique-se de que Round está escrito da mesma forma com um R maiúsculo !!
Isso "arredondará" os números para o valor correto que você vê no visor virtual.
***
2. Valor incorreto acima de 180 .... este é um problema assinado / não assinado em dados brutos FSUIPC. (Um valor pode ser 0-360 ou -180 a +179) MF usa o sistema invertido como o FSUIPC espera!
Resolver.... Ativar marca de seleção COMPARE
E diga no campo IF Value <0 (menos que zero)
No campo ENTÃO, você diz $+360
no campo ELSE, você pode deixá-lo vazio ou inserir $ lá.
Isso agora diz se o valor for negativo (180-359 graus mostrarão atualmente -180 a -1) ENTÃO Adicione 360 a ele e o resultado é o número correto. ELSE (o valor está entre 0 e 179) o número atual é mostrado diretamente.