Jump to content
The simFlight Network Forums
tassotasso

Attitude Indicator adjustment knob offset

Recommended Posts

Hi Tasso,

knob's usually send controls. In this case, its the 'Attitude Pitch Trim' which *should* (I guess) send controls for 'Attitude Bars Move Down' and 'Attitude Bars Move Up'. However, whether and how these work or not is completely dependent upon the aircraft implementation.

For example, in A2A's Cherokee, you can get/set this value (i.e. the trim value itself) using the Lvar 'AttitudePlane', e.g from https://www.avsim.com/forums/topic/443151-a2a-piper-pa-28-cherokee-180-module-version-11/ , here's a couple of lua function that controls this knob for this aircraft:

function A2A_Pitch_Att_inc ()

    local PAtt = ipc.readLvar('AttitudePlane')

    PAtt = PAtt + 1
    if PAtt > 7 then PAtt = 7 end

    ipc.writeLvar('AttitudePlane', PAtt)

end


function A2A_Pitch_Att_dec ()

    local PAtt = ipc.readLvar('AttitudePlane')

    PAtt = PAtt - 1
    if PAtt < -7 then PAtt = -7 end

    ipc.writeLvar('AttitudePlane', PAtt)

end

Depending upon which aircraft you are using, something similar may be available.

There is no offset for actual attitude pitch trim value itself, and there is no simulator variable for this. The offsets for the Attitude Indicator are:

        2F70= Attitude indicator pitch value ( in degrees)

        2F78=Attitude indicator bank value ( in degrees )

There is another read-only simvar for 'Attitude Bars Position', however this is not currently stored in an offset.

Hope this helps,

John

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.