Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    25+ Posting Member
    Join Date
    Jan 2005
    Location
    Oliver, BC Canada
    Posts
    28
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    FS2Phidget rounding??

    Alan,
    I'm using offset 2840 (Main Bus Voltage) to control a light.
    I want light to come on when Main Bus Voltage bleeds off to a value <=22.
    Light is coming on earlier than light on FS2004 panel so I ran FSInterrogate (comes with FSUIPC SDK) in loop mode and find the FS2Phidget reports value as 22 when actual value of offset is < 22.5 and >=21.5. Due to roundoff I guess. Can this be fixed?
    Cam

  2. #2
    alandyer
    Guest
    Cam,

    Have you tried a different format for output ?

    Regards,
    Alan.

  3. #3
    alandyer
    Guest
    Cam,

    I am very familiar with FSInterrogate in the FSUIPC SDK.

    Read the acknowledgments section in FSUIPC SDK documentation and see who's name comes up for the Borland C++ example.

    Regards,
    Alan.

  4. #4
    25+ Posting Member
    Join Date
    Jan 2005
    Location
    Oliver, BC Canada
    Posts
    28
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Alan,
    Tried formatting to "##.0000"
    Assumed I would get four decimal places. Fs Value for offset 2840 on Interface kit tab still shows value as integer. Should I not see a four decimal place value on that display.
    Also in the "Edit FS Variables" window the Raw FS Value is an integer.
    I'm probably doing something wrong but could use some help.
    Cam

  5. #5
    alandyer
    Guest
    Cam,

    Have a look at FSintergate->Maintenance->Variables...

    What is the comment under USAGE column ?

    Regards,
    Alan.

  6. #6
    25+ Posting Member
    Join Date
    Jan 2005
    Location
    Oliver, BC Canada
    Posts
    28
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Alan,
    There is no comment under Usage column. ie. field is blank.
    Cam

  7. #7
    alandyer
    Guest
    Cam,

    I just downloaded latest SDK.
    Version I looked at 2 seconds ago reads:
    NOT FSUIPC SUPPORTED

    under Usage column
    ?????????

    Regards,
    Alan.

  8. #8
    25+ Posting Member
    Join Date
    Jan 2005
    Location
    Oliver, BC Canada
    Posts
    28
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Alan,
    I finally found the comment "NOT FSUIPC SUPPORTED".
    I opened the supplied project FSUIPC.fsi and there it is. I had previously been opening a new project.

    Well now I'm more confused than ever and here's why.

    1. The FSUIPC documentation "FSUIPC for Programmers (and Adventure Writers)" clearly states that offset 2840 is supported.

    The section of the document entitled "Table of additional PANELS variables for FS2000" states that "These variables can be read or written via FSUIPC since version 1.94 or through WideFS from version 3.96, but none of them are guaranteed, and they may not be carried over into future versions of FS or FSUPIC"

    2 FSinterrogate reads and correctly displays values for offset 2840 eg. 28.00000
    With FS running the default flight ie. sitting at the end of the runway in a cessna with engine running FSinterrogate displays a value of 28.00000.
    Now if you shut the engine down FSinterrogate displays values like 23.92345, 23.8xxxx, 23.7xxxx. over time. ie voltage is bleeding off. Remember to un-pause FS.

    3. FS2Phidget also reads and displays values for offset 2840, however it diplays the value as an integer. There inlies the problem.

    If you run FS as above and FSinterrogate (in continuous mode and looking only at offset 2840 to make the loop time less) and FS2Phidget in parrallel you will find that as voltage bleeds off the values look like this"

    FSinterrogate FS2Phidget
    24.00000 24
    23.9xxxx 24
    23.8xxxx 24
    23.5xxxx 24
    23.49999 23
    23.3xxxx 23
    22.5xxxx 23
    22.49999 22
    21.5xxxx 22
    etc.

    I want the light on the panel to turn on when the voltage is equal to or less than 22
    FS2Phidget is reporting the value equal to 22 when it is actually anywhere between 21.5 and 22.49999.

    Sorry this is so long winded but Its difficult to provide detail any other way.
    Cam

  9. #9
    500+ This must be a daytime job JBaymore's Avatar
    Join Date
    Mar 2005
    Location
    Wilton, New Hampshire USA
    Posts
    601
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    CAm,

    Is this setup you are creating for use in the simulator for FUN flying? Or are you creating some sort of "deadly serious" real flight training simulator operation?

    best,

    ....................john

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

    John,
    I am building a DHC-2 Beaver Simulator, a hobby more than anything. Just thought I would try for accuracy!!
    Cam

Page 1 of 2 12 LastLast

Similar Threads

  1. FS2Phidget 4.2.9
    By CocnutAir in forum FS2Phidget Releases
    Replies: 45
    Last Post: 01-03-2011, 04:14 PM
  2. Where to put FS2PHIDGET....
    By Flightsim Phil in forum FS2Phidget Users
    Replies: 1
    Last Post: 03-14-2008, 01:28 PM
  3. Can you use FS2Phidget for FSX??
    By pilotchipmunk in forum FS2Phidget Releases
    Replies: 6
    Last Post: 07-09-2007, 10:33 PM
  4. FS2Phidget 4.2.3
    By alandyer in forum FS2Phidget Releases
    Replies: 0
    Last Post: 01-20-2007, 02:04 AM
  5. Fs2Phidget 3.1
    By alandyer in forum Phidgets & Cockpit Simulator Builder
    Replies: 0
    Last Post: 07-13-2005, 07:39 AM