From: "address@hidden" <address@hidden>
To: address@hidden
Sent: Thu, 29 October, 2009 12:24:43 AM
Subject: Re: [Paparazzi-devel] Tracking antenna
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
_______________________________________________
Paparazzi-devel mailing list
address@hiddenhttp://lists.nongnu.org/mailman/listinfo/paparazzi-devel