FS2004 Hydraulic Pressure gauge

#1
Hi guys, boy am I ever learning alot about creating a model from scratch! I'm on the final stages of my Fairey Firefly which is the gauge construction/layout. Things are going great! I realize there are two ways to do gauges, copy from the default, or create from scratch. I've hired Steve Thomas to build me a few gauges and I'm working on pop ups.

I've come to the hydraulic pressure gauge and it doesn't seem to be working.
(Bill) Would you mind taking a look at my XML sheet to see if there are any problems? Can you give me with some advice?

The problem is that the needle isn't moving and therefore not sure if it's reading the pressure according to the air file/ cfg correctly.
--------------------------------------------------------------------------
<Gauge Name="HW_Hydraulic Pressue" Version="1.0">
<Image Name="Hyd Press.bmp" Luminous="Yes"/>
<Element>
<Position X="150" Y="150"/>
<Image Name="Hyd_needle.bmp" PointsTo="Northt" Luminous="Yes">
<Axis X="8" Y="116"/>
</Image>
<Rotate>
<Value Minimum="0" Maximum="3000">(A:ENG HYDRAULIC PRESSURE,PSI)</Value>
<Failures>
<SYSTEM_ENGINE Action="0"/>
</Failures>
<Nonlinearity>
<Item Value="0" X="47" Y="254"/>
<Item Value="1000" X="45" Y="45"/>
<Item Value="2000" X="252" Y="48"/>
<Item Value="3000" X="253" Y="254"/>
</Nonlinearity>
<Delay DegreesPerSecond="55"/>
</Rotate>
</Element>

<Mouse>
<Help ID="HELPID_GAUGE_HYDRAULIC_PRESSURE"/>
</Mouse>
</Gauge>
-------------------------------------------------------


One other thing, if I want to change the size of a background bmp from say 77x77 to something which will give me better looking results like 256x256, is that advisable? In FSpanel Studio, I can't seem to activate the dual res option.

Thanks

Doug
 
#2
Hi,
one thing i noticed is that the PointsTo says Northt, should be North.
Not sure wether this is the problem though.

Could also be that you need an engine index for the hydraulic pressure simvar, like: (A:Eng hydraulic pressure:1,psi).

Also note that you can use the code functionality of the posting system.
Just use the # button in the toolbar in top of your message screen.

--------------------------------------------------------------------------
<Gauge Name="HW_Hydraulic Pressue" Version="1.0">
<Image Name="Hyd Press.bmp" Luminous="Yes"/>
<Element>
<Position X="150" Y="150"/>
<Image Name="Hyd_needle.bmp" PointsTo="Northt" Luminous="Yes">
<Axis X="8" Y="116"/>
</Image>
<Rotate>
<Value Minimum="0" Maximum="3000">(A:ENG HYDRAULIC PRESSURE,PSI)</Value>
<Failures>
<SYSTEM_ENGINE Action="0"/>
</Failures>
<Nonlinearity>
<Item Value="0" X="47" Y="254"/>
<Item Value="1000" X="45" Y="45"/>
<Item Value="2000" X="252" Y="48"/>
<Item Value="3000" X="253" Y="254"/>
</Nonlinearity>
<Delay DegreesPerSecond="55"/>
</Rotate>
</Element>

<Mouse>
<Help ID="HELPID_GAUGE_HYDRAULIC_PRESSURE"/>
</Mouse>
</Gauge>
-------------------------------------------------------

Doug
Hope this helps!

grt
Willem.
 
#3
let me know if you would like to hire me to build gauges. I can give you a good deal!

Since the value is Hydraulic, it's looking for this on your aircraft.cfg
So the aircraft must have this system available or no needle movement.
Just click cntrl F on the cfg and type hydraulic in the search box and you will find these lines you need or you won't find them. So mix this info into yours.

please use code button for adding info for users.......

Code:
[contact_points]
point.0=1,  43.00,   0.00,  -9.70, 1600, 0, 1.442, 55.92, 0.6, 2.5, 0.9, 4.0, 4.0, 0, 220.0, 250.0
point.1=1, -11.20, -12.45, -10.30, 1600, 1, 1.442,  0.00, 1.0, 2.5, 0.9, 6.9, 6.9, 2, 220.0, 250.0
point.2=1, -11.20,  12.45, -10.30, 1600, 2, 1.442,  0.00, 1.0, 2.5, 0.9, 7.1, 7.1, 3, 220.0, 250.0
point.3=2, -19.00, -55.00,  4.00,  1000, 0, 0.000,  0.00, 0.0, 0.0, 0.0, 0.0, 0.0, 5, 0.0, 0.0
point.4=2, -19.00,  55.00,  4.00,  1000, 0, 0.000,  0.00, 0.0, 0.0, 0.0, 0.0, 0.0, 6, 0.0, 0.0
point.5=2, -51.00,   0.00, -2.00,  1000, 0, 0.000,  0.00, 0.0, 0.0, 0.0, 0.0, 0.0, 9, 0.0, 0.0
point.6=2,  54.00,   0.00, -2.00,  1000, 0, 0.000,  0.00, 0.0, 0.0, 0.0, 0.0, 0.0, 4, 0.0, 0.0
point.7=2, -75.00,   0.00, 31.00,  1000, 0, 0.000,  0.00, 0.0, 0.0, 0.0, 0.0, 0.0, 9, 0.0, 0.0

max_number_of_points = 21

static_pitch=0.3        //degrees, pitch when at rest on the ground (+=Up, -=Dn)
static_cg_height=9.2    //feet, altitude of CG when at rest on the ground
[COLOR="Red"]gear_system_type=1      //Hydraulic[/COLOR]
Code:
[brakes]
parking_brake = 1         //Parking brake available
toe_brakes_scale = 0.885  //Brake scalar
auto_brakes = 3
[COLOR="Red"]hydraulic_system_scalar = 1  //On brakes dependant on the hydraulic system, ratio hyd system to max brake hyd pressure[/COLOR]
Code:
[COLOR="Red"][hydraulic_system]
normal_pressure = 3000.0    //PSI
electric_pumps  = 1         //no electric pumps
engine_map      = 1,1,0,0   //pumps on Eng1,2[/COLOR]
Code:
[flaps.0]       //Trailing Edge Flaps
type             = 1                                    // 1 - tail, 2 - lead
span-outboard    = 0.8                                  // 0.0 .. 1.0
extending-time   = 20                                   // seconds
flaps-position.0 = 0                                    // degrees
flaps-position.1 = 10                                   // degrees
flaps-position.2 = 15                                   // degrees
flaps-position.3 = 20                                   // degrees
flaps-position.4 = 40                                   // degrees
damaging-speed   = 250                                  // KIAS
blowout-speed    = 300                                  // KIAS
lift_scalar = 0.7
drag_scalar = 0.2
pitch_scalar= 1.0
[COLOR="Red"]system_type = 1                                         //Hydraulic[/COLOR]
There is usually more flaps to check than just 1

DG;)
 
Last edited:
#5
Thank you kind sirs. Yes Willem, last night I cross referenced another Hydraulic gauge and yes, you were right on, index was missing. And a spelling error! Good eye, thank you. Works now.

Regarding the needle's non-linear movement, for x,y is it assumed that the pivot point for the needle is always dead center of the bitmap? ex. - 300x300=@150?

@ Deliveryguy, thanks for the offer, I have Scott Thomas just finishing up the gauge work, but there may be future opportunities for us to collaborate, this is fun stuff, and only my first project.
 

n4gix

Resource contributor
#6
The x,y values in the non-linearity table are where the "tip" of the needle will point at that specific value of the variable used.

The axis of the needle is the pivon point.
The position is the centerpoint of the background image to which the pivot point will be locked.
 
Last edited:
#7
Aah guys!
This is a good day for me! :D
Glad to be of help, that makes me feel very fine.

You know the devil is in the detail, a minor misspelling or a missing 1 can drive you crazy. Trust me, i 've been there!
(come to think of it, haven't we all? :banghead:)

grt
Willem
 
Top