n4gix
Resource contributor
- Messages
- 11,674
- Country

This simple directional gyro is driving me nuts. I had it working fine, but suddenly it doesn't want to allow adjusting any longer.
The entry in the aircraft.cfg file is correct for a heading gyro device:
The "compass card" is animated 360º and is driven by the correct variable. It works just fine, and allows the "D" key to autocorrect for gyro drift:
There is also an adjustment knob, which likewise is using the correct K:events:
As I said, it was working just fine for the first few export/compile/test cycles, but now the mouse events have no effect at all.
FSUIPC "Logging" confirms that the two events are being triggered by the mouse wheel, so I'm at a complete loss.
The entry in the aircraft.cfg file is correct for a heading gyro device:
Code:
[direction_indicators]
direction_indicator.0=3,1
The "compass card" is animated 360º and is driven by the correct variable. It works just fine, and allows the "D" key to autocorrect for gyro drift:
Code:
<PartInfo>
<Name>FIP_Heading_Gyro</Name>
<AnimLength>360</AnimLength>
<Animation>
<Parameter>
<Code>(A:PLANE HEADING DEGREES GYRO, degrees)</Code>
</Parameter>
</Animation>
</PartInfo>
Code:
<PartInfo>
<Name>FIP_CompassCal</Name>
<MouseRect>
<Cursor>Hand</Cursor>
<MouseFlags>WheelUp+WheelDown</MouseFlags>
<CallbackCode>
(M:Event) 'WheelUp' scmi 0 == if{ (>K:GYRO_DRIFT_DEC) quit }
(M:Event) 'WheelDown' scmi 0 == if{ (>K:GYRO_DRIFT_INC) quit }
</CallbackCode>
</MouseRect>
</PartInfo>
FSUIPC "Logging" confirms that the two events are being triggered by the mouse wheel, so I'm at a complete loss.






