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
Aurelien
Posts: 6
Hi every body,

actually, I'm trying to drive a stepper mortor with mobiflight to build a HDG gauge for cessna.

As I feared,... when my value arrive at 359, after the value is 0, but my stepper return to 0 position in the opposite direction. It's logic, but do you know if it's possible to change this so that my stepper, arrived at 359, that continues from 1° to go back 0 or am I obliged to use a 0 sensor?

Thank you for your help;

Aurelien
2019-02-13 22:17
Avatar
StephanHo
From: EDDG, Germany
Posts: 1867
Supporter
Hi Aurelien,

look to this thread: https://www.mobiflight.com/forum/message/9693.html

You can also try the compare tab in Mobiflight. There you have to fill in if($<0,$+360,$) - No spaces!
If (value is smaller than zero, then $+360, otherwise value)
Grüße,
Stephan (Time: UTC+2)
2019-02-14 00:24
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
Hi Guys. I think this is just a logical issue.... Solution is "Compass Mode"

Go to the DISPLAY Tab of your Stepper Config.... And activate the Checkbox "COMPASS MODE" .
Now Mobiflight see the 359-->000 and also the 000---> 359 Swap and calculate a value for the stepper !

************


Just to explane the facts if you like to know...

The Compare from Stephan sounds nice for other situations.... But here its not work !
A Heading can have a value from 0 to 359 .

So Stephans Condition would be always "ELSE" ... if($<0,$+360,$)
In case value can be technical only 0-359 then the situation $<0 (Value less then zero) can NEVER occure... So the ELSE "$" is executed always !

*******

Also your ideas are correct. A Stepper have a point for every value (endless) . If its at 359 Position then the next position upwards would be 360 !. As explaned above the System now give a value "0" instead of 360 when (we turn steerboard) ... For the Stepper the "0" Point is now a full circle to the other direction ... NOT 1 step upwards.
It can never turn more then this one circle cause value can not be less then zero or higher then 359.

What you need here is a logic that say "IF Swappoint (359-0 or 0-359 ) is reached then +359 OR -359 whatever side you come.
Thats not possible by a IF Function in Mobiflight !

BUT ... Sebastian did this INTERNAL and we can activate the "Compass Mode"... This tool will do exactly what we talk about above.
Good Luck !
2019-02-14 08:39
Avatar
Aurelien
Posts: 6
Thank you so much guys!

It works perfectly with the compass mode! :w00t:

Very nice!
2019-02-16 19:30
Avatar
herbiem
Posts: 71
Supporter
Hi Aurelien
Can you tell me what offset or user preset you used
i am just building my on now and have used User preset "Pos/Attitude-Heading" but it does not seem to work correctly
Ian
2020-10-07 10:23
icon