PDA

View Full Version : fs2phidgets and bitmaps



mofamofamofa
10-14-2012, 09:05 AM
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 ?

CocnutAir
10-19-2012, 11:45 AM
Offsets are byte-sized. Bytes contain 16 bits. Bit 16 is, therefore, in the next offset i.e. 8BE1 bit 0.
Regards,
Alan

kiek
10-19-2012, 03:10 PM
Bytes contain 16 bits.

no, a byte is 8 bits...
Nico

CocnutAir
10-19-2012, 03:27 PM
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

kiek
10-19-2012, 04:53 PM
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

mofamofamofa
10-21-2012, 03:08 PM
Thanks for the reply, I used offset + 2 Bytes and it worked