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
Reensel
From: Berlin - EDDB, Germany
Posts: 26
Hi all.

I am new into Mobiflight and his really great functions. I am really surprised a bit (compared to SIOC headaches) that this works quite easy and flawless. Thanks for that.

I read a lot before I opened this topic here.

I built my own WetCompass and interfaced it with an Arduino Clone Mega 2560 R3 and a 28BYJ-48 Steppermotor + ULN2003A Driver board. So far so good - everything works - so therefore no question - this was easy :) BUT I had the compass working also with SIOC and the OCStepper Card. This uses a better resolution (4096 Steps in "H"alf Step mode) - so its smoother instead of Mobiflight and Arduino - here it works "just" with the FULL Step mode meaning 2048 steps. This is a bit rough - that means when I fly a curve slowly - the stepper motor is a bit choppy instead of smooth.

here are my settings:


So my question is - is there a way to use or have a better resolution like the Halfstep mode? If yes - how does it work? If not - would it be an option for developing it?

I hope my question is understandable :)

Thanks in advance for any help from u. Really appreciate it.

Best from EDDB
2018-10-30 21:34
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
Hi

As i know Mobiflight work with Full Steps.... So your compas have basicly just 2048 Steps (Instead of 4096 with halfsteps)

BUT

I think your Problem is the value itself

Mobiflight see just a full number.... so a Vlue of for example 100,00001 is the same like a value of 100,99999 BOTH is shown for Mobiflight as "100"
So techical your motor work with just 360 steps (whatever it got 2048) cause mobifligh just executa a comand if value is increase to enxt full number.

Please try the follow....
Simply Multiply your Value after all calculaion by "10" .... So your Comaps will have a full circle no with 360 it work now with 3600 !
Also change the "Display Tab" settings.... Sim Value must increased from 360 ot 3600 !!!
So a Course of for example 120,5 ° is not shown like 120 .... now it is shown like 1205 ....
Finaly your Compas should run much more smoother.cause it have 3-4 more steps !



Note: I Note try out if this work with "compass mode enabled" ..... Please try out and report experience,
Good Luck !
2018-10-31 00:50
Avatar
Reensel
From: Berlin - EDDB, Germany
Posts: 26
Hi and thanks for your response. As I searched for this I also read something about value multiplying and so on but it doesnt work.

Anyways - your way with "Transforming" $*10 and changing the SIM-Steps from 360 to 3600 works great :) (The Compass Mode has to be ON otherwise they wont turn 360 and further. I tried it with unchecked this mode but then it returns to Zero and start again.

Now - it works very smooth. Best interfacing method!!!

Many thanks - I hope someone will also ake these insights for their build.

Best and have a great day
2018-10-31 09:13
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
Nice it solves your problem !

About the Compas Mode.... Here you missunderstand me ( or better i explaned it not clearly enough)

The Compas Mode MUST be Enabled here ! Cause without this feature the Motor can´t turn "over" the 359-000 Border ( It will turn reverse by 359° Whatever you cross this border from 000-359 or backwards from 359-000 )

My question was just if the "Compas Mode" will also work fine if you multiply the value by 10.... If this script is hardcoded to 360 then it will not understand that value now is 3600 !
BUT
Your reply just confirm that my fear was not needed.... Mobiflight will also work fine with this workaround !

Thanks for testing !
Good Luck !
2018-10-31 14:07
icon