Results 1 to 6 of 6
  1. #1
    10+ Posting Member
    Join Date
    Aug 2010
    Location
    Qatar
    Posts
    22
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    fs2phidgets and bitmaps

    Hi all,

    How can I assign bits more than 15 in fs2phidgets. e.g. one of the offests in Lekseecon is 8BE0 and its bits goes up to 21, I managed to assign the function till bit no.15 but after that if I increase the number of Bytes to 4 I can get bits up to 31. When I assign the bits above 15 it is not read by fs2phidgets, any suggestions ?

  2. #2
    builder
    Join Date
    Jan 2007
    Location
    Texas
    Posts
    587
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: fs2phidgets and bitmaps

    Offsets are byte-sized. Bytes contain 16 bits. Bit 16 is, therefore, in the next offset i.e. 8BE1 bit 0.
    Regards,
    Alan

  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: fs2phidgets and bitmaps

    Quote Originally Posted by CocnutAir View Post
    Bytes contain 16 bits.
    no, a byte is 8 bits...
    Nico

  4. #4
    builder
    Join Date
    Jan 2007
    Location
    Texas
    Posts
    587
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: fs2phidgets and bitmaps

    Yup. Always 8 bits. Thanks, Nico.
    FSUIPC bitmaps are generally 2 bytes i.e. 16 bits, although some may be longer.
    FS2Phidget will allow for as many bits as the length of the FsVariable is configured.
    To work with 32 bits the FsVariable length must be set to 4.
    Regards,
    Alan

  5. #5
    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: fs2phidgets and bitmaps

    Quote Originally Posted by CocnutAir
    FSUIPC bitmaps are generally 2 bytes i.e. 16 bits, although some may be longer.
    Note that the FSUIPC offsets of lekseecon are either 1 byte (8 bits) or 4 bytes (32 bits).
    Nico
    Last edited by kiek; 10-19-2012 at 05:55 PM.

  6. #6
    10+ Posting Member
    Join Date
    Aug 2010
    Location
    Qatar
    Posts
    22
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: fs2phidgets and bitmaps

    Thanks for the reply, I used offset + 2 Bytes and it worked