bydamien
-
Posts
18 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Gallery
Downloads
Posts posted by bydamien
-
-
Dear Pete and all
i have a problem i want to share maybe somebody will sign me true way, i want to load fuel on my program and im following this
for read..
capCenter = ((Int32)getCCenter.Value); for capacty reading
LevCenter = ((double)getLevCenter.Value * 100 / (128 * 65536)); for level reading
GalCenter = capCenter * LevCenter / 100; for gallon result
gallonresult * 2.72 = kg result
i thing this read mentallity is correct is here have any problem please tell me.. so now i know this is my kg result if i want to set fuel that tank im using this..
before i must to convert kg to gallon
400 kg / 2.72 = 147 gallon after i must to convert this result to fs language im using this function.
capcenter capacity is 2130 gallon
public double FuelConvert(double dGalon, Int32 iCap)
{
double iBur = dGalon / 100 * (128 * 65536);
double ioff = iBur * 100 / (128 * 65536) / iCap * 100;
return Math.Round(ioff / 100 * (128 * 65536));
}
so after this function i have one result is this 578932 and im writting this result on getLevCenter.Value after when i turn to plane and check on fuel 440 kg :(
i dont understand where is my wrong point please help me..
thank you
-
yes i saw this topic but i don understand stations he is used this variable in for but what is that i dont know :(
-
hello
i need some expreiance :( i dont know how to write payload im using c# if anyone explain to me or giving sample code i will be happy please help me.. i using client dll for .net
thank for all helps
-
hello im using this dll everythink okey but i have little problem
Offset getLat = new Offset(0x0560); Offset getLon = new Offset(0x0568);
double lat = (double)getLat.Value * 90d / (10001750d * 65536d * 65536d); this.textEdit25.Text = lat.ToString("#,##0.000000"); this.textEdit25.ToolTip = "Lat Formatted"; double lon = (double)getLon.Value * 360d / (65536d * 65536d * 65536d * 65536d); this.textEdit26.Text = lon.ToString("#,##0.000000"); this.textEdit26.ToolTip = "Lon Formatted";
i put airplane LTBA 36R normally runway lat and lon is this
40,969453 lat
28,809467 lon i look in BGL file
my data is :
40,969926 lat
28,809453 lon
i cant understand where is my problem thank you for all helps
burak.
-
thank you pete,
i think i must to use simconnect for this..
-
hi all
is it possible fsx menu items disable with FSUIPC4 ?
thank you
-
thank you very much pete works well
-
dear pete and all developers
i want to read bank angle offset with delphi i read someting but i need some format for this value
my code is this
function TFSUIPC.GetBankAngle: Real; var deger : Integer; rDeger : Real; begin FSUIPC_Open(SIM_Any,dwResult); FSUIPC_Read($057C, 4, @deger, dwResult); if FSUIPC_Process(dwResult) then begin rDeger := deger * 360 / (65536.0 * 65536.0); Result := rDeger; end else begin Result := 5; end; end;
and return value is this
0,114295572042465im not good numeric value formating with delphi i want to this result someting like this
20 degrees 10 degrees etc.
thank you for all helps
-
hi you must to check ivap configuration window if read/write cockpit offsets (ivapsdk) uncheck you must to check that after test again ..
success
-
thank you pete,
-
dear pete
if i want to disable flight, world and aircraft menu which hex will using ?
thank you
-
hi pete i explaining for you.
my plain on KFJK fs-interrograte2 give to 19389166912339968 this for latitude and give to -3780828464629678080 for longtitude
our program is give 40,6224209853394 this for latitude and give 0,378391984002775 for longtitude
this is longtitude function
function GetLon: Int64;
var
deger : Int64;
begin
FSUIPC_Open(SIM_Any,dwResult);
FSUIPC_Read($0560, 8, @deger, dwResult);
if FSUIPC_Process(dwResult) then
begin
Result := deger * 360 / (65536.0 * 65536.0 * 65536.0 * 65536.0);
end else
begin
Result := -100;
end;
end;
and
this is
function GetLat: Int64;
var
deger : Int64;
begin
FSUIPC_Open(SIM_Any,dwResult);
FSUIPC_Read($0560, 8, @deger, dwResult);
if FSUIPC_Process(dwResult) then
begin
Result := deger * 90 / (10001750.0 * 65536.0 * 65536.0);
end else
begin
Result := -100;
end;
end;
FS Interrogate2 say for latitude
Variable type Int64 and expression #*90/(10001750*65536*65536)
FS Interrogate2 say for longtitude
variable type Int64 and expression #*360/(65536*65536*65536*65536))
where is my problem ?
thank you for your helps
Regards
Burak ÖĞÜTKEN
-
i have a same problem, are you fixed ?
regards
Burak M.
-
hi pete and all
how to read a/c status , taxiing, landing, at the gate etc.
thank you for all supports
-
Hi All
im not reading bstate in tcas data how to using tcas data in delphi
if there is anybody who has an example or sample
thanks for helps.
-
Dear Pete, And All
before im using fscuip.dll 3.30 and developing software, 3.30 dll give correct fuel but 3.47 (ivap) give fuel 1 please helpme how fix this problem
Best Regards
Burak M. OGUTKEN
-
Dear Pete and all,
Before sorry for my english now my name is burak from turkiye my question im writting the program, language is Delphi, so offset is ok. but why reading airport id, reading sample documents but not understand please help me send offests or delphi sample
thanks for your helps
burak
FSUIPC Client DLL for .NET - Version 2.0
in FSUIPC Client DLL for .NET
Posted
how can i read correctly pmdg lights :( please some one share light codes ?
thank you for helps