
Former-commit-id: 63229bbc5bf3fb105b945f7b3e3025e624324193 Former-commit-id: f37adedb0101d03a37bfe83f09165dc83adf12cd
47 lines
1.5 KiB
C++
47 lines
1.5 KiB
C++
#include <stdint.h>
|
|
#include "dump1090.h"
|
|
#include <ctime>
|
|
#include <list>
|
|
|
|
class Aircraft {
|
|
public:
|
|
uint32_t addr; // ICAO address
|
|
char flight[16]; // Flight number
|
|
unsigned char signalLevel[8]; // Last 8 Signal Amplitudes
|
|
double messageRate;
|
|
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 packet was received
|
|
time_t prev_seen;
|
|
double lat, lon; // Coordinated obtained from CPR encoded data
|
|
|
|
//history
|
|
|
|
std::list <float> lonHistory, latHistory, headingHistory, timestampHistory;
|
|
|
|
// float oldLon[TRAIL_LENGTH];
|
|
// float oldLat[TRAIL_LENGTH];
|
|
// float oldHeading[TRAIL_LENGTH];
|
|
// time_t oldSeen[TRAIL_LENGTH];
|
|
// uint8_t oldIdx;
|
|
uint64_t created;
|
|
uint64_t msSeen;
|
|
uint64_t msSeenLatLon;
|
|
int live;
|
|
|
|
struct Aircraft *next; // Next aircraft in our linked list
|
|
|
|
//// label stuff -> should go to aircraft icon class
|
|
|
|
int x, y, cx, cy, w, h;
|
|
float ox, oy, dox, doy, ddox, ddoy;
|
|
float pressure;
|
|
|
|
/// methods
|
|
|
|
Aircraft(struct aircraft *a);
|
|
~Aircraft();
|
|
}; |