Adjusting the P8 for learning and own purposes.
Hi All,
I was hoping that someone could help me as I am just trying to figure out how to program gauges in XML.
(I run FSX on Win10 with Saitek controls and instrumentation and Spad.Next)
What I want to do is to adjust a P8 Compass gauge for my own purposes so I can navigate using the P8, stop watch and whizz wheel.
What I am aiming to do is transplant this gauge to some freeware aircraft eg DG Designs DH89 Dragon Rapid where theP8 isn't so visible in the virtual cockpit.
I want to undock and enlarge the P8 onto another screen, rotate the bezel as per and also maybe do a Saitek FIP version for me.
Keith has been very helpful (thank you so much) but now I can post in the forum I can throw it out there to spread the load.
I am able to undock this gauge now when the original Mouse section is removed (as it uses right click stopping the undock menu). I can set a hardware knob on my Saitek controls to control A:AUTOPILOT HEADING LOCK DIR
I can enlarge the gauge but at the size I'd like (600x600) the graphics tear terribly and the centre sometimes jumps when rotated. Is a different XML command needed to rotate. I have already tried to enlarge the bitmaps to produce a "native" 600x600 gauge but it still tears and jumps. Suggestions please!
The b ezel does rotate with A:AUTOPILOT HEADING LOCK DIR but it seems to rotate the wrong way. The bezel does not read the same value as the variable. When A:AUTOPILOT HEADING LOCK DIR=10 the bezel reads 350. This is important so when you move the gauge o other aircraft it lines up with the onboard compass. Please could someone help me with the rotate to read correctly?
I have manage to transplant this gauge to a Saitek FIP by resizing the BMPs and changing position and axis. Still have the bezel not reading sameas A:AUTOPILOT HEADING LOCK DIR above. But what I would like to know is how to program the gauge to take input from the FIP buttons directly and adjust varies. Hw can I program the P8 FIP version to adjust A:AUTOPILOT HEADING LOCK DIR using one of FIP knobs. Can someone advise or point to a tutorial for FIPs?
Lots here. Sorry. Steep learning curve and got as far as I can fiddling. Time to ask.
Many thanks in advance.
Rob.
Code:
<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>