Results 1 to 6 of 6
Thread: fs2phidgets and bitmaps
-
10-14-2012, 09:05 AM #1
- Join Date
- Aug 2010
- Location
- Qatar
- Posts
- 17
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 ?
-
10-19-2012, 11:45 AM #2
- Join Date
- Jan 2007
- Location
- Texas
- Posts
- 582
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
-
10-19-2012, 03:10 PM #3
-
10-19-2012, 03:27 PM #4
- Join Date
- Jan 2007
- Location
- Texas
- Posts
- 582
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
-
10-19-2012, 04:53 PM #5
Re: fs2phidgets and bitmaps
Originally Posted by CocnutAir
NicoLast edited by kiek; 10-19-2012 at 04:55 PM.
-
10-21-2012, 03:08 PM #6
- Join Date
- Aug 2010
- Location
- Qatar
- Posts
- 17
Re: fs2phidgets and bitmaps
Thanks for the reply, I used offset + 2 Bytes and it worked