- Messages
- 417
- Country

Hi, I recently added the fantastic freeware Avro Tutor by Nigel Richards to P3D v4.5 and it looks and flies like a champion. I am however having some issues with the pop-up P8 compass behaving incorrectly in terms of set direction versus actual direction.
I have added code for an autopilot from another aircraft (AP, Direction Indicators, Radios and Electrical sections) and I am using the pop-up AP panel from the Maul M7. The problem lies with the compass ring and/or needle on the P8 pop-up (and also reflected in the VC model too). The compass ring, needle and lubber lines on the glass are only correct on the 'cardinal' compass headings of N and S, while E and W are opposites. Any selected heading other than those four gives an incorrect true heading when read from the 'Shift+Z' info line! The table below shows you the results of my tests and the correct and incorrect values:
This is the code for the P8 compass:
The AP follows the incorrect heading when in heading hold mode (i.e. if you select NE on the compass the aircraft turns to the NW
)
Can anyone see where the error might be and offer a solution?
Thanks.
I have added code for an autopilot from another aircraft (AP, Direction Indicators, Radios and Electrical sections) and I am using the pop-up AP panel from the Maul M7. The problem lies with the compass ring and/or needle on the P8 pop-up (and also reflected in the VC model too). The compass ring, needle and lubber lines on the glass are only correct on the 'cardinal' compass headings of N and S, while E and W are opposites. Any selected heading other than those four gives an incorrect true heading when read from the 'Shift+Z' info line! The table below shows you the results of my tests and the correct and incorrect values:
Compass Setting | Actual Heading | <SHIFT + Z> Value |
North | North | 360° |
North-East | North-West | 315° |
East | West | 270° |
South-East | South-West | 225° |
South | South | 180° |
South-West | South-East | 135° |
West | East | 090° |
North-West | North-East | 045° |
This is the code for the P8 compass:
XML:
<Gauge Name="compass_popup" Version="1.0">
<Image Name="AVRO__compass.bmp"/>
<Element>
<Position X="150" Y="150"/>
<Image Name="compass_popup_needle.bmp" PointsTo="South">
<Axis X="85" Y="86"/>
</Image>
<Rotate>
<Value>(A:Wiskey compass indication degrees,degrees) - </Value>
<Nonlinearity>
<Item Value="0" Degrees="-90"/>
<Item Value="180" Degrees="90"/>
<Item Value="360" Degrees="-90"/>
</Nonlinearity>
</Rotate>
</Element>
<Element>
<Position X="150" Y="150"/>
<Image Name="P8_Grid_Ring_mod.bmp" PointsTo="North">
<Axis X="143" Y="143"/>
</Image>
<Rotate>
<Value>(A:AUTOPILOT HEADING LOCK DIR, degrees)</Value>
<Nonlinearity>
<Item Value="0" Degrees="-90"/>
<Item Value="180" Degrees="90"/>
<Item Value="360" Degrees="-90"/>
</Nonlinearity>
</Rotate>
</Element>
<Mouse>
<Area Name="AVRO HEADING REFERENCE DOWN" Left="0" Top="0" Width="150" Height="300">
<Tooltip ID="">AVRO Compass (Heading %((A:Wiskey compass indication degrees,degrees))%!d!°) - R. Click to toggle 2D compass.</Tooltip>
<Cursor Type="DownArrow"/>
<Click Repeat="Yes" Kind="LeftSingle+RightSingle">
(M:Event) 'RightSingle' scmp 0 == if{ 75 (>K:PANEL_ID_TOGGLE) } els{ (>K:HEADING_BUG_DEC) }
</Click>
</Area>
<Area Name="AVRO HEADING REFERENCE UP" Left="150" Top="0" Width="150" Height="300">
<Tooltip ID="">AVRO Compass (Heading %((A:Wiskey compass indication degrees,degrees))%!d!°) - R. Click to toggle 2D compass.</Tooltip>
<Cursor Type="UpArrow"/>
<Click Repeat="Yes" Kind="LeftSingle+RightSingle">
(M:Event) 'RightSingle' scmp 0 == if{ 75 (>K:PANEL_ID_TOGGLE) } els{ (>K:HEADING_BUG_INC) }
</Click>
</Area>
</Mouse>
</Gauge>
The AP follows the incorrect heading when in heading hold mode (i.e. if you select NE on the compass the aircraft turns to the NW
Can anyone see where the error might be and offer a solution?
Thanks.

