| |
|
|
Andre Rohland | Hello Friends,
I back the Umsetzung one Java-Quelltextes momentarily a little bit "auf the Schlauch".
in the Grunde have I of course already a couple ideas: - the "normale" Shifting in Java ( >> ) means, the z.B. at move to right for a bit left always the worth the vormals on the left place stehenden Bits inserted becomes. - the "unsigned" Shifting ( >>> ) means, that not the worth the vormals on the left place stehenden Bits, separate always a "0" inserted becomes.
the whole would well with Help the Zeichenkettenfunktionen (if something umständlich ) To solve, mächtiges Kopfzerbrechen bereitet me but the following row:
boolean i = (dab & 0x01) == 0;
Perhaps knows of/ one of you Yes Java a little bit and can me there help...
The reason, why I the urgently manage must is, I the Sekundarradar the airplanes empfange, but the into ADSB-Telegrammen übermittelte altitude reading the airplanes a on one atmospheric pressure of 1013.2 mBar based barometrische Höhennangabe is, The the Codesnippet allegedly in plausible Höhenangaben in foot (ft) with of/ one dissolution of 100 ft converting can should... .
here time the originale View source:
|
|
|
| |
|
|
|
| Hi!
I have your Sourcecode time in code-Tags gepackt.
the ought to one already do if one Source in Posts posting.
... mächtiges Kopfzerbrechen bereitet me but the following row:
boolean i = (dab & 0x01) == 0;
Diesen Operator uses one for binären UND-comparison,
quasi becomes from:
00010001 & 00000001 = 00000001
and if with the obigen row there zero rauskommt (==0) then is i = true, otherwise
false. |
|
|
| |
|
|
|
Andre Rohland | Hello iF,
first sorry, having on The code-Tags none More virtual, otherwise cordial Thanks for your hint, now becomes it Perhaps "funktionuckeln".... |
|
|
| |
|
|