16-bit value in 3 bytes?
- From: Andre-John Mas <andrejohn.mas@xxxxxxxxx>
- Date: Fri, 25 Jul 2008 12:12:22 -0700 (PDT)
Hi,
I recently got myself a 'Spaceball 5000' and since there is no driver
for my platform, I am trying to reverse engineer the protocol. The
place where I am stuck is that a given value for a rotation is
represented as a 16-bit signed integer, using four bytes. From what I
can tell the first byte represents the sign and the remaining 3 bytes
are used to encode the value using the characters ".023569:<?
ABCDEGHKLMNPSenors", so no more than 7 bits are used in each 8 bit
value. Additionally the first of the four bytes either has a value H
or G, which I believe might represent the sign.
Can anyone help me working out how the 16-bit value is being encoded?
Is there a better place to ask this question?
Andre
.
- Follow-Ups:
- Re: 16-bit value in 3 bytes?
- From: Thad Smith
- Re: 16-bit value in 3 bytes?
- From: Harold Aptroot
- Re: 16-bit value in 3 bytes?
- Prev by Date: Re: core features and functions required in modern programming languages
- Next by Date: Re: 16-bit value in 3 bytes?
- Previous by thread: core features and functions required in modern programming languages
- Next by thread: Re: 16-bit value in 3 bytes?
- Index(es):
Relevant Pages
|