Guest
Asked

Hi,

I am unclear as to how to index into the sim/flightmodel2/wing/aileron1_deg Dataref. It is a float array of 32 elements. The description for the wing category says "The wings are indexed as: wing 1 left, wing 1 right .. wing 4 left, wing 4 right, left hstab, right hstab, rudders 1 and 2, then the 20 misc wings, for 32 indices".
The description for aileron1_deg says it is the "Deflection of the aileron from set #1 on this wing". What do these indices and set #'s correspond to the control surfaces on a simple airplane like Cessna 172?

Thanks.

1 Answer

Know a better answer?

Add what worked for you. Every answer helps the next simmer who searches for this.

Ask Fly Away · AI assistant

Still stuck on this question?

Ask Fly Away, our AI flight sim & aviation assistant, for an instant answer to this exact question — or ask the community below.