ADF insterment

Post any technical issues here. This forum gets priority from our staff.
new reply
herbiem
Airman
Posts: 14
Joined: 12 Dec 2019, 03:27
Location: New Zealand

ADF insterment

Post by herbiem »

Hi guys
Not sure if is the correct place for this post or not. Hope so :shock:
I have successfully made a ADF interment to add to my cockpit using 2 Stepper motors, but I am having trouble programming the needle to follow the NDB that I am turned into. It will follow it one way but not the other.
I am using Mobieflight but cannot for the life of me get it to work correctly, The Dial works fine and adjusts with an encoder.
These are the settings I have
User preset- Radios - ADF Relative Bearing
Offset - 0x0C6A 2 Byte with a transform of (360-#)+($*360)/65536
Comparison is <0 then set to $+360 else $
Display Sim/stepper 360, 2048 Test value of 180
May be some on can point me in the right direction.
Ian

alioth
Senior Airman
Posts: 161
Joined: 01 Feb 2017, 17:05

Re: ADF insterment

Post by alioth »

I don't use Mobieflight, but I have been reading a bit and you have to set two values:
1.-The value for simulator, likely 360 (which means from 0 to 360)
2.-The value of stepper steps for full rotation.

The problem probably is you are not getting 0 to 360 from simulator. Double check this.
Can you log the (360-#)+($*360)/65536 expression in fsuipc, or linda and confirm that you are getting really from 0 to 360 in the adf?

I don't know which "#" or "$" means in MB so I can't say.
But I have a RMI built for my home cockpit through lua scripts and you have to take care if you are calling the offset as a Signed Word or Unsigned Word, for example.

TIP: you don't have to use 0 to 360 in point(1). Yo can change the expression to input 0 to 1000 or 0 to (steps per revolution in the stepper) and you will get much more smooth movement.

Arturo.

herbiem
Airman
Posts: 14
Joined: 12 Dec 2019, 03:27
Location: New Zealand

Re: ADF insterment

Post by herbiem »

Thanks for your reply
I have been away but will check again and see how I get on
Ian

herbiem
Airman
Posts: 14
Joined: 12 Dec 2019, 03:27
Location: New Zealand

Re: ADF insterment

Post by herbiem »

Well still no luck
I have simplified the Transform which now reads now $*360/65536
not sure how I got the last one.?? :?: :?:
As the ADF needle points to a NDB I do not get a read out when logging in FSUIPC that I can see
If I bank the plane to the Right the needle follows( turns and stays pointing to) the NDB that it is tuned to, as it should but when I bank to the Left the needle does not move
My display settings again are Sim 360. Stepper 2040. Test value 1000
I have no comparison or Interpolations set.
I no you said you do not use Mobieflight but some one else reading this post might be able to help
Or maybe I can get it to work using a LUA script
any more thoughts out there
Ian

new reply

Return to “C172 Trainer Tech Support”

Who is online

Users browsing this forum: No registered users and 7 guests