Page 1 of 3 123 LastLast
Results 1 to 10 of 21
  1. #1
    25+ Posting Member
    Join Date
    Apr 2009
    Location
    Canada
    Posts
    74
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    LCD DISPLAY FSUIPC OFFSET CALCULATIONS

    Hi Nico,

    I am trying to understand the FuelLcd. scirpt but am having trouble understanding how the figures were computed.
    1. Where can I find what these names (MOD, DIV, &, etc) stand for, and how you get the numbers such as (45467, 22734, etc)?

    I have read the stuff on your website, but these calculations and scripts are way more advanced. I did not find any Sioc script that is easy to understand.

    2. I have bought 3 LCD display units for FUEL, Pressurization and Air Condition display. Do I need to attach the potentiometers for the brightness/contrast, or can they function without them?

    Thanks,

    Taufeeq

    Var 2923 name FI_FuelL Link FSUIPC_IN Offset $0B7C Length 4
    {
    &FuelL = DIV &FI_FuelL 45467
    }

    Var 2924 name FI_FuelC Link FSUIPC_IN Offset $0B74 Length 4
    {
    &FuelC = DIV &FI_FuelC 22734
    }

    Var 2925 name FI_FuelR Link FSUIPC_IN Offset $0B94 Length 4
    {
    &FuelR = DIV &FI_FuelR 45467
    }

    Var 2926 name FuelL Value 0
    {
    CALL &OutFuelL
    CALL &CalcTotal
    }

    Var 2927 name FuelC Value 0
    {
    CALL &OutFuelC
    CALL &CalcTotal
    }

    Var 2928 name FuelR Value 0
    {
    CALL &OutFuelR
    CALL &CalcTotal
    }

    Var 2930 name FuelTotal
    {
    CALL &OutFuelTotal
    }

    Var 2931 name CalcTotal Link SUBRUTINE
    {
    L0 = &FI_FuelL
    L1 = L0 + &FI_FuelR
    L2 = DIV L1 45467
    L1 = DIV &FI_FuelC 22734
    &FuelTotal = L1 + L2
    }

    Var 2932 name OutFuelL Link SUBRUTINE
    {
    &FuelLLLCD = MOD &FuelL 10
    &FuelLHLCD = DIV &FuelL 10
    }

    Var 2940 name OutFuelC Link SUBRUTINE
    {
    &FuelCLLCD = MOD &FuelC 10
    &FuelCHLCD = DIV &FuelC 10
    }

    Var 2941 name OutFuelR Link SUBRUTINE
    {
    &FuelRLLCD = MOD &FuelR 10
    &FuelRHLCD = DIV &FuelR 10
    }

    Var 2942 name OutFuelTotal Link SUBRUTINE
    {
    &FuelTLLCD = MOD &FuelTotal 10
    &FuelTHLCD = DIV &FuelTotal 10
    }

  2. #2
    25+ Posting Member
    Join Date
    Apr 2009
    Location
    Canada
    Posts
    74
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: LCD DISPLAY FSUIPC OFFSET CALCULATIONS

    Hi again Nico,

    I have doing some search on the net, and there seems to be a programme called FSLCD that some have used, and you have given some examples as well on another site.

    I cannot find this programme.

    1. What is this FSLCD programme called?
    2. Is it available for download?

    I will give that a try as well.

    Thanks,

    Taufeeq

  3. #3
    2000+ Poster - Never Leaves the Sim kiek's Avatar
    Join Date
    Jan 2007
    Location
    Netherlands
    Posts
    2,202
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: LCD DISPLAY FSUIPC OFFSET CALCULATIONS

    Hi,
    Quote Originally Posted by shoumi View Post
    1. Where can I find what these names (MOD, DIV, &, etc) stand for, and how you get the numbers such as (45467, 22734, etc)?
    }
    What do you think of having a look in the SIOC socumentation of Opencockpits? These are Operators, MOD stands for modulo and DIV for divide....
    These 'numbers' represent the max amount of fuel in a tank. They depend on the type of tank, the type of aircraft and kg vs lbs...

    Quote Originally Posted by shoumi View Post
    I have read the stuff on your website, but these calculations and scripts are way more advanced. I did not find any Sioc script that is easy to understand.
    }
    You are saying that you do not even understand these one liners: Set Nose Landing lights (of te Level-d 767)??? If so, you better stop, I'm sorry.

    Quote Originally Posted by shoumi View Post
    2. I have bought 3 LCD display units for FUEL, Pressurization and Air Condition display. Do I need to attach the potentiometers for the brightness/contrast, or can they function without them?
    }
    I'm sorry, but this is no lekseecon related question. Please post these kind of questions in the appropriate Forums of MyCockpit.org, or what have you...

    regards,
    Nico
    Last edited by kiek; 02-13-2011 at 03:59 AM.

  4. #4
    2000+ Poster - Never Leaves the Sim kiek's Avatar
    Join Date
    Jan 2007
    Location
    Netherlands
    Posts
    2,202
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: LCD DISPLAY FSUIPC OFFSET CALCULATIONS

    Quote Originally Posted by shoumi View Post
    1. What is this FSLCD programme called?
    FSLCD.

    Quote Originally Posted by shoumi View Post
    2. Is it available for download?
    Don't know. It is a very old program developed by a Scandinavian guy. Don't think he supports it any longer. I used it until better tools like the ones from Opencockpits arrived.
    Last edited by kiek; 02-13-2011 at 04:00 AM.

  5. #5
    25+ Posting Member
    Join Date
    Apr 2009
    Location
    Canada
    Posts
    74
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: LCD DISPLAY FSUIPC OFFSET CALCULATIONS

    Hi Nico,

    You are saying that you do not even understand these one liners: Set Nose Landing lights (of te Level-d 767)??? If so, you better stop, I'm sorry

    I understand the simple 1 liners, and have incorporated most of them to the pit. What I cannot understand is the FSUIPC offset calculations and how to create the formula to calculate. I am only stuck at the FUEL, Pressurization and the Cabin Temp indicators since I would like to use the USB LCD display.

    In the Offset guide for fuel flow this is what is indicated.
    0B7C
    4
    Fuel: left main tank level, % * 128 * 65536
    Ok-SimC
    Ok-SimC


    Your script on the USBLCD states for the same offset.
    Var 2923 name FI_FuelL Link FSUIPC_IN Offset $0B7C Length 4
    {
    &FuelL = DIV &FI_FuelL 45467
    }


    0B74
    Fuel: centre tank level, % * 128 * 65536

    Var 2924 name FI_FuelC Link FSUIPC_IN Offset $0B74 Length 4
    {
    &FuelC = DIV &FI_FuelC 22734


    Offset states the same calculation, but you have 22734.



    1. I am trying to understand where the 45467 and 22734 comes from. If I multiply 128 x 65536 it gives me 8388608, not 45467.
    2. This is quite a bit advanced than the simple 1 liners, I would think.

    Please forgive me Nico, but I thought the forums were for asking questions and getting help (albeit that I posted in the wrong place and the questions are dumb to you) and many of us look to guys like you to give us a lending hand when you can ( out of your own free time-when you could be doing something else or better)
    Yes, sometimes the questions may seem very stupid (because you are a computer person), but for many of us who have started out even something simple as soldering two wires was a tough thing. We are just happy that we have slowly evolved, which we could not have done without guys like Ian, Pete and you.
    I regret that sometimes our questions may seem dumb to you, but then again once we have understood it, it will look simple to us as well. All we ask for is a bit more involved answer when we cannot decipher whatever little explanation that are out there.

    Thanks for your help, and my apology in wasting your valuable time.

    Taufeeq

  6. #6
    2000+ Poster - Never Leaves the Sim kiek's Avatar
    Join Date
    Jan 2007
    Location
    Netherlands
    Posts
    2,202
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: LCD DISPLAY FSUIPC OFFSET CALCULATIONS

    Hi Taufeeq,
    Quote Originally Posted by shoumi View Post
    1. I am trying to understand where the 45467 and 22734 comes from. If I multiply 128 x 65536 it gives me 8388608, not 45467.
    First note that the FSUIPC offset value is a -sort of- percentage, not the fuel contents in the tank.
    Second, you have to take the capacity of your aircraft tanks into account.
    For me it is the Level-D 767. That aircraft has wing tanks with a capacity of 40.700 pounds or 18.450 kg (because we in Europe, like to see the figures in kgs..)

    So to calibrate the FSUIPC offset values for my 767, I do this. For a full tank the following equation holds:

    ((100 * 128 * 65.536 ) / x) = 18.450 (whereby x is the scaling factor)
    or
    ((100 * 128 * 65.536 ) = x * 18.450
    or
    x = ((100 * 128 * 65.536 ) / 18.450
    or
    x = 45467

    So if I divide the FSUIPC offset by 45467 I get the actual fuel value in kgs.

    The center tank is twice as big, that's why the x for the center tank is just half of the value for the wing tanks.
    Quote Originally Posted by shoumi View Post
    2. This is quite a bit advanced than the simple 1 liners, I would think.
    Yes but that has nothing to do with SIOC, nor with lekseecon... It is the FSUIPC offset specification that you did not understand.


    best regards,
    Nico
    Last edited by kiek; 02-14-2011 at 08:17 AM.

  7. #7
    2000+ Poster - Never Leaves the Sim kiek's Avatar
    Join Date
    Jan 2007
    Location
    Netherlands
    Posts
    2,202
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: LCD DISPLAY FSUIPC OFFSET CALCULATIONS

    Quote Originally Posted by shoumi View Post
    Please forgive me Nico, but I thought the forums were for asking questions and getting help (albeit that I posted in the wrong place and the questions are dumb to you)
    There are no dumb questions... It is just that I have to protect myself from becoming a help desk for the cockpit building community. This forum is for lekseecon issues. Those issues I will always immediately tackle.

    In other forums I may be of help for other issues, but that's no guarantee.

    I have a full time job and a wife...

    regards,
    Nico

  8. #8
    75+ Posting Member
    Join Date
    Dec 2006
    Location
    Israel
    Posts
    136
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: LCD DISPLAY FSUIPC OFFSET CALCULATIONS

    Hi Taufeeq

    here you may still find the Fslcd soft--both versions:
    http://www.mikkila.org/fsbus/lcd/index_e.php

    I have somewhere the extended FSuipc offsets ini file , inlc fuel, for this soft
    Dont think that aircondition and pressurization offsets available there

    Let me know if you need this file
    Regards
    Joseph

  9. #9
    25+ Posting Member
    Join Date
    Apr 2009
    Location
    Canada
    Posts
    74
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Thumbs up Re: LCD DISPLAY FSUIPC OFFSET CALCULATIONS

    Hi Nico & Yoss,

    Thanks for the clarification.
    That is what I was looking for. My apology for the long and winded email.
    This at least helps me understand how it is calculated.
    My best to you and your family, and thanks so much for taking the time out of your life to help fellow simmers!

    Yoss, I will check the site for the FSLCD, and see if I can put that to work as well.

    Thanks again guys

    Taufeeq

  10. #10
    25+ Posting Member
    Join Date
    Apr 2009
    Location
    Canada
    Posts
    74
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: LCD DISPLAY FSUIPC OFFSET CALCULATIONS

    Hi Yoss,

    If you have the file and can forward it, that would be greatly helpful. I can tinker with it.

    Thanks Taufeeq

Page 1 of 3 123 LastLast

Similar Threads

  1. Fsuipc offset problem??
    By spitfire9 in forum Phidgets Interface & Alan Dyers' FS2Phidget
    Replies: 1
    Last Post: 02-23-2011, 02:44 PM
  2. Help with and FSUIPC offset please
    By TasKiNG in forum General Builder Questions All Aircraft Types
    Replies: 5
    Last Post: 08-31-2008, 12:29 PM
  3. Fsuipc offset
    By Oter3 in forum OpenCockpits General Discussion
    Replies: 1
    Last Post: 07-24-2008, 08:29 AM
  4. FSUIPC offset use in pmSystems
    By luisgordo in forum PMSystems
    Replies: 3
    Last Post: 05-06-2008, 04:10 PM
  5. Re: PFD/ND display offset using FS2phidgets
    By Enrico Schiratti in forum PM General Q & A
    Replies: 0
    Last Post: 04-13-2006, 12:10 PM