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 11:14:36 +0100
User-agent: RoundCube Webmail/0.1b

On Tue, 27 Oct 2009 16:41:23 -0700 (PDT), Todd Sandercock
> The big issue with the java api was trying to send the "0x00". you think
> its sent it properly but nothing worked with the servo controller. so i
> plugged 2 ftdi cables into each other and worked out that every time that
i
> sent a "0x00" it turned everything after it to garbage. If you have a fix
> that would be great!

You DO know that 0x00 is a signed integer?
Byte.MIN_VALUE in Java is -128 . That would be your unsigned 0x00 .

> The other thing with java is that there is no such unsigned variables. so
> when you are trying to send anything higher than 127 you have to use an
> int. DUMB!

Actually you do something like send((byte)((value + Byte.MIN_VALUE) &
0xFF))

Marcus




reply via email to

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