paparazzi-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Paparazzi-devel] Tracking antenna


From: marcus.wolschon
Subject: Re: [Paparazzi-devel] Tracking antenna
Date: Wed, 28 Oct 2009 14:54:43 +0100
User-agent: RoundCube Webmail/0.1b

On Wed, 28 Oct 2009 04:08:40 -0700 (PDT), Todd Sandercock
<address@hidden> wrote:
> Hi marcus
> 
> I am not a programmer at all but my knowledge of signed stuff was that
0x00
> is 0 and 0x80 was -128.

That is correct in C but will get you in trouble in Java.
I have no clue whey they made their byte-datatype signed
instead of unsigned like everbody else.
It confuses the hell out of everyone doing bitbanging.

> also the function i was using to write was more like
> "outputStream.write(int)"

You need to use outputStream.write(Byte.MIN_VALUE) instead of
outputStream.write(0x00)
to write e 0-byte.


Marucs




reply via email to

[Prev in Thread] Current Thread [Next in Thread]