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?
See if this clears it up.
Flight Sim Questions that are closely related to this...