Jump to content
The simFlight Network Forums

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

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • 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.