[hamradio-commits] [dump1090] 100/373: Bug fix in vertical sign

Matthew Ernisse mernisse-guest at moszumanska.debian.org
Thu Oct 23 14:58:09 UTC 2014


This is an automated email from the git hooks/post-receive script.

mernisse-guest pushed a commit to branch backport
in repository dump1090.

commit e98728108c784b0d1e47f252eeef83364ccfb746
Author: Malcolm Robb <Support at ATTAvionics.com>
Date:   Fri Apr 19 09:32:34 2013 +0100

    Bug fix in vertical sign
    
    Incorrect shift amount when detecting vertical rate sign.  Thanks
    John-vk1et.
---
 dump1090.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dump1090.c b/dump1090.c
index bb31714..5506e77 100644
--- a/dump1090.c
+++ b/dump1090.c
@@ -56,7 +56,7 @@
 // MinorVer changes when additional features are added, but not for bug fixes (range 00-99)
 // DayDate & Year changes for all changes, including for bug fixes. It represent the release date of the update
 //
-#define MODES_DUMP1090_VERSION     "1.01.1704.13"
+#define MODES_DUMP1090_VERSION     "1.01.1904.13"
 
 #define MODES_DEFAULT_RATE         2000000
 #define MODES_DEFAULT_FREQ         1090000000
@@ -1208,7 +1208,7 @@ void decodeModesMessage(struct modesMessage *mm, unsigned char *msg) {
                 mm->ns_dir = (msg[7]&0x80) >> 7;
                 mm->ns_velocity = ((msg[7]&0x7f) << 3) | ((msg[8]&0xe0) >> 5);
                 mm->vert_rate_source = (msg[8]&0x10) >> 4;
-                mm->vert_rate_sign = (msg[8]&0x8) >> 5;
+                mm->vert_rate_sign = (msg[8]&0x8) >> 3;
                 mm->vert_rate = ((msg[8]&7) << 6) | ((msg[9]&0xfc) >> 2);
                 /* Compute velocity and angle from the two speed
                  * components. */

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-hamradio/dump1090.git



More information about the pkg-hamradio-commits mailing list