[hamradio-commits] [dump1090] 91/373: Don't attempt to error correct DF-11

Matthew Ernisse mernisse-guest at moszumanska.debian.org
Thu Oct 23 14:58:08 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 bdf985a79257f0bf11593487a24a3b5492256d2c
Author: Malcolm Robb <Support at ATTAvionics.com>
Date:   Mon Apr 15 21:55:46 2013 +0100

    Don't attempt to error correct DF-11
    
    Don't attempt to error correct DF-11, because we can't be sure that the
    checksum/crc is supposed to be 0.
    
    Also a few typo's corrected
---
 dump1090.c | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)

diff --git a/dump1090.c b/dump1090.c
index e3c5470..35bb9d9 100644
--- a/dump1090.c
+++ b/dump1090.c
@@ -52,11 +52,11 @@
 // File Version number 
 // ====================
 // Format is : MajorVer.MinorVer.DayMonth.Year"
-// MajorVer chances only with significant changes
+// MajorVer changes only with significant changes
 // 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.00.1404.13"
+#define MODES_DUMP1090_VERSION     "1.00.1504.13"
 
 #define MODES_DEFAULT_RATE         2000000
 #define MODES_DEFAULT_FREQ         1090000000
@@ -389,7 +389,7 @@ void modesInit(void) {
     // The most this could be is if I&Q are both 128 (or 127 or 127.5), so you could end up with a magnitude 
     // of 181.019 (or 179.605, or 180.312)
     //
-    // However, in reality the magnitude of the signal should never exceed the range -1 to +1, becaure the 
+    // However, in reality the magnitude of the signal should never exceed the range -1 to +1, because the 
     // values are I = rCos(w) and Q = rSin(w). Therefore the integer computed magnitude should (can?) never 
     // exceed 128 (or 127, or 127.5 or whatever)
     //
@@ -1052,13 +1052,12 @@ void decodeModesMessage(struct modesMessage *mm, unsigned char *msg) {
     else
         {mm->crcok = (mm->iid == 0);}
 
-    if (!mm->crcok && Modes.fix_errors &&
-        (mm->msgtype == 11 || mm->msgtype == 17))
+    if (!mm->crcok && Modes.fix_errors && (mm->msgtype == 17))
     {
         if ((mm->errorbit = fixSingleBitErrors(msg,mm->msgbits)) != -1) {
             mm->crc = modesChecksum(msg,mm->msgbits);
             mm->crcok = 1;
-        } else if (Modes.aggressive && mm->msgtype == 17 &&
+        } else if (Modes.aggressive &&
                    (mm->errorbit = fixTwoBitsErrors(msg,mm->msgbits)) != -1)
         {
             mm->crc = modesChecksum(msg,mm->msgbits);

-- 
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