[hamradio-commits] [dump1090] 212/389: Include Vertical rate in aircraft structure
Matthew Ernisse
mernisse-guest at moszumanska.debian.org
Wed Nov 5 00:19:56 UTC 2014
This is an automated email from the git hooks/post-receive script.
mernisse-guest pushed a commit to branch master
in repository dump1090.
commit 77bd1f40dce0fd8b6dd0934201215c2becbabb71
Author: Malcolm Robb <Support at ATTAvionics.com>
Date: Fri May 24 11:07:49 2013 +0100
Include Vertical rate in aircraft structure
---
dump1090.c | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/dump1090.c b/dump1090.c
index 8b191ae..243c21f 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.06.2205.13"
+#define MODES_DUMP1090_VERSION "1.06.2305.13"
#define MODES_USER_LATITUDE_DFLT (0.0)
#define MODES_USER_LONGITUDE_DFLT (0.0)
@@ -168,6 +168,7 @@ struct aircraft {
int altitude; // Altitude
int speed; // Velocity
int track; // Angle of flight
+ int vert_rate; // Vertical rate.
time_t seen; // Time at which the last packet was received
time_t seenLatLon; // Time at which the last lat long was calculated
uint64_t timestamp; // Timestamp at which the last packet was received
@@ -3110,6 +3111,11 @@ struct aircraft *interactiveReceiveData(struct modesMessage *mm) {
a->speed = mm->velocity;
}
+ // If a (new) Vertical Descent rate has been received, copy it to the aircraft structure
+ if (mm->bFlags & MODES_ACFLAGS_VERTRATE_VALID) {
+ a->vert_rate = mm->vert_rate;
+ }
+
// if the Aircraft has landed or taken off since the last message, clear the even/odd CPR flags
if ((mm->bFlags & MODES_ACFLAGS_AOG_VALID) && ((a->bFlags ^ mm->bFlags) & MODES_ACFLAGS_AOG)) {
a->bFlags &= ~(MODES_ACFLAGS_LLBOTH_VALID | MODES_ACFLAGS_AOG);
--
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