paparazzi-devel
[Top][All Lists]
Advanced

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

Re: [Paparazzi-devel] Tracking antenna


From: Todd Sandercock
Subject: Re: [Paparazzi-devel] Tracking antenna
Date: Wed, 28 Oct 2009 15:59:41 -0700 (PDT)

Oh wow that is dumb!!! 
well i have 1 day of uni left and i will get onto fixing up that code then. I hope you are right cause then everything should work properly for once!!!!
so are you saying that if i want to send 0x01 i have to send it as -127 as well???

Todd


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@hidden
http://lists.nongnu.org/mailman/listinfo/paparazzi-devel


Get more done like never before with Yahoo!7 Mail. Learn more.
reply via email to

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