MobiFlight Community Support

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!

See you on our MobiFlight Community Discord server.

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.

icon
Avatar
jose1982
Posts: 11
Hello, im trying to make an attitude indicator using 2 servos sg90, for the bank iam using the offset 057C and for the pitch the offset 0578, in the Tranform tab (Bank) i have placed *360/(65536*65536) in the size in bite tab=4, in the display tab i set min value=0 and max value=180, i test it and servo work fine but when i click in run i only have the fsuipc value and the output value always keep the same, it doesnt change (-922337203685478E+18). Could someone help me please, i am new to this and I do not know too much, any advice will be much appreciated.
:)
Thanks.
2019-06-30 21:06
Avatar
StephanHo
From: EDDG, Germany
Posts: 1867
Supporter
Hi Jose,

the calculation (65536 * 65536) causes an overflow at MF and therefore can not be calculated.
But the calculation $*360/(65536*65536) can be calculated beforehand and then written to the transform line.
Try Transform: $*8.381903171539307e-8
or
$*0.00000000838190317153907
So MF only needs to calculate this two numbers.
Grüße,
Stephan (Time: UTC+2)
2019-06-30 21:46
Avatar
jose1982
Posts: 11
Thank you stephan for your quick response, i tried what you say and now the output value change but servo does not move, for example when i turn to the left i get in the fsuipc value 1073239417 and in the output value i get 8, i thing i am missing something else. Would have to make an interpolation? :confused:
2019-06-30 22:21
Avatar
StephanHo
From: EDDG, Germany
Posts: 1867
Supporter
Does the servo work with the test-option?
If so, the wiring seems to be ok, if not you have to check the wiring to the servo.
When MF is running the FSUIPC work does not interest so you have to look to the output-value. This is the value who will be sent to the servo in degrees.

I myself does not use servos so you should check if you servo setting is ok. Compare withe the tutorial above. You can also use the forum search function and use the keywords "rmi servo"
Grüße,
Stephan (Time: UTC+2)
2019-06-30 22:53
Avatar
jose1982
Posts: 11
yes, the servo work with the test option, now i have clear what the output value means. So the fsuipc value ,doesnt matter, thanks stephan for your help i will keep searching in the forum. I really appreciate your help. :thumbup:
2019-06-30 23:04
Avatar
jose1982
Posts: 11
I could be able to make the attitude indicator work (bank) B) , now i have one more question please:blush: , how could i make my attitude indicator turn in the same direction than the indicator in the flight simulator, in the sim it turn to the left and my physical indicator it turn to the right. :confused:

Edit: I solved the problem, thanks.
2019-07-01 02:11
Avatar
StephanHo
From: EDDG, Germany
Posts: 1867
Supporter
Hi jose,

fine that you solved your problem :)
Grüße,
Stephan (Time: UTC+2)
2019-07-01 11:52
icon