Classes | Macros | Functions | Variables
dump1090.h File Reference
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <pthread.h>
#include <stdint.h>
#include <errno.h>
#include <unistd.h>
#include <math.h>
#include <sys/time.h>
#include <sys/timeb.h>
#include <signal.h>
#include <fcntl.h>
#include <ctype.h>
#include <sys/stat.h>
#include "rtl-sdr.h"
#include "anet.h"

Go to the source code of this file.

Classes

struct  aircraft
 
struct  client
 
struct  modesMessage
 

Macros

#define HTMLPATH   "./public_html"
 
#define MODEAC_MSG_BYTES   2
 
#define MODEAC_MSG_FLAG   (1<<0)
 
#define MODEAC_MSG_MODEA_HIT   (1<<2)
 
#define MODEAC_MSG_MODEA_ONLY   (1<<4)
 
#define MODEAC_MSG_MODEC_HIT   (1<<3)
 
#define MODEAC_MSG_MODEC_OLD   (1<<5)
 
#define MODEAC_MSG_MODES_HIT   (1<<1)
 
#define MODEAC_MSG_SAMPLES   (25 * 2)
 
#define MODEAC_MSG_SQUELCH_LEVEL   0x07FF
 
#define MODES_ACFLAGS_ALTITUDE_VALID   (1<<1)
 
#define MODES_ACFLAGS_AOG   (1<<9)
 
#define MODES_ACFLAGS_AOG_GROUND   (MODES_ACFLAGS_AOG_VALID | MODES_ACFLAGS_AOG)
 
#define MODES_ACFLAGS_AOG_VALID   (1<<12)
 
#define MODES_ACFLAGS_CALLSIGN_VALID   (1<<6)
 
#define MODES_ACFLAGS_EWSPEED_VALID   (1<<7)
 
#define MODES_ACFLAGS_FS_VALID   (1<<13)
 
#define MODES_ACFLAGS_HEADING_VALID   (1<<2)
 
#define MODES_ACFLAGS_LATLON_REL_OK   (1<<15)
 
#define MODES_ACFLAGS_LATLON_VALID   (1<<0)
 
#define MODES_ACFLAGS_LLBOTH_VALID   (MODES_ACFLAGS_LLEVEN_VALID | MODES_ACFLAGS_LLODD_VALID)
 
#define MODES_ACFLAGS_LLEITHER_VALID   (MODES_ACFLAGS_LLEVEN_VALID | MODES_ACFLAGS_LLODD_VALID)
 
#define MODES_ACFLAGS_LLEVEN_VALID   (1<<10)
 
#define MODES_ACFLAGS_LLODD_VALID   (1<<11)
 
#define MODES_ACFLAGS_NSEWSPD_VALID   (1<<14)
 
#define MODES_ACFLAGS_NSSPEED_VALID   (1<<8)
 
#define MODES_ACFLAGS_SPEED_VALID   (1<<3)
 
#define MODES_ACFLAGS_SQUAWK_VALID   (1<<5)
 
#define MODES_ACFLAGS_VERTRATE_VALID   (1<<4)
 
#define MODES_ASYNC_BUF_NUMBER   12
 
#define MODES_ASYNC_BUF_SAMPLES   (MODES_ASYNC_BUF_SIZE / 2)
 
#define MODES_ASYNC_BUF_SIZE   (16*16384)
 
#define MODES_AUTO_GAIN   -100
 
#define MODES_CLIENT_BUF_SIZE   1024
 
#define MODES_DEBUG_BADCRC   (1<<2)
 
#define MODES_DEBUG_DEMOD   (1<<0)
 
#define MODES_DEBUG_DEMODERR   (1<<1)
 
#define MODES_DEBUG_GOODCRC   (1<<3)
 
#define MODES_DEBUG_JS   (1<<6)
 
#define MODES_DEBUG_NET   (1<<5)
 
#define MODES_DEBUG_NOPREAMBLE   (1<<4)
 
#define MODES_DEBUG_NOPREAMBLE_LEVEL   25
 
#define MODES_DEFAULT_FREQ   1090000000
 
#define MODES_DEFAULT_HEIGHT   700
 
#define MODES_DEFAULT_RATE   2000000
 
#define MODES_DEFAULT_WIDTH   1000
 
#define MODES_DUMP1090_VERSION   "1.07.0710.13"
 
#define MODES_ICAO_CACHE_LEN   1024
 
#define MODES_ICAO_CACHE_TTL   60
 
#define MODES_INTERACTIVE_DELETE_TTL   300
 
#define MODES_INTERACTIVE_DISPLAY_TTL   60
 
#define MODES_INTERACTIVE_REFRESH_TIME   250
 
#define MODES_INTERACTIVE_ROWS   22
 
#define MODES_LONG_MSG_BITS   (MODES_LONG_MSG_BYTES * 8)
 
#define MODES_LONG_MSG_BYTES   14
 
#define MODES_LONG_MSG_SAMPLES   (MODES_LONG_MSG_BITS * 2)
 
#define MODES_LONG_MSG_SIZE   (MODES_LONG_MSG_SAMPLES * sizeof(uint16_t))
 
#define MODES_MAX_BITERRORS   2
 
#define MODES_MAX_GAIN   999999
 
#define MODES_MSG_ENCODER_ERRS   3
 
#define MODES_MSG_SQUELCH_LEVEL   0x02FF
 
#define MODES_NET_HTTP_PORT   8080
 
#define MODES_NET_INPUT_BEAST_PORT   30004
 
#define MODES_NET_INPUT_RAW_PORT   30001
 
#define MODES_NET_MAX_FD   1024
 
#define MODES_NET_OUTPUT_BEAST_PORT   30005
 
#define MODES_NET_OUTPUT_RAW_PORT   30002
 
#define MODES_NET_OUTPUT_SBS_PORT   30003
 
#define MODES_NET_SNDBUF_SIZE   (1024*64)
 
#define MODES_NOTUSED(V)   ((void) V)
 
#define MODES_PREAMBLE_SAMPLES   (MODES_PREAMBLE_US * 2)
 
#define MODES_PREAMBLE_SIZE   (MODES_PREAMBLE_SAMPLES * sizeof(uint16_t))
 
#define MODES_PREAMBLE_US   8
 
#define MODES_RAWOUT_BUF_FLUSH   (MODES_RAWOUT_BUF_SIZE - 200)
 
#define MODES_RAWOUT_BUF_RATE   (1000)
 
#define MODES_RAWOUT_BUF_SIZE   (1500)
 
#define MODES_SHORT_MSG_BITS   (MODES_SHORT_MSG_BYTES * 8)
 
#define MODES_SHORT_MSG_BYTES   7
 
#define MODES_SHORT_MSG_SAMPLES   (MODES_SHORT_MSG_BITS * 2)
 
#define MODES_SHORT_MSG_SIZE   (MODES_SHORT_MSG_SAMPLES * sizeof(uint16_t))
 
#define MODES_UNIT_FEET   0
 
#define MODES_UNIT_METERS   1
 
#define MODES_USER_LATITUDE_DFLT   (-35.108405932)
 
#define MODES_USER_LATLON_VALID   (1<<0)
 
#define MODES_USER_LONGITUDE_DFLT   (-69.533337772)
 

Functions

void computeMagnitudeVector ()
 
int decodeBinMessage (struct client *c, char *p)
 
void decodeCPR (struct aircraft *a, int fflag, int surface)
 
int decodeCPRrelative (struct aircraft *a, int fflag, int surface)
 
void decodeModeAMessage (struct modesMessage *mm, int ModeA)
 
void decodeModesMessage (struct modesMessage *mm, unsigned char *msg)
 
int detectModeA (uint16_t *m, struct modesMessage *mm)
 
void detectModeS (uint16_t *m, uint32_t mlen)
 
void displayModesMessage (struct modesMessage *mm)
 
struct aircraftinteractiveReceiveData (struct modesMessage *mm)
 
void interactiveRemoveStaleAircrafts (void)
 
void interactiveShowData (void)
 
int ModeAToModeC (unsigned int ModeA)
 
void modesInitErrorInfo ()
 
void modesInitNet (void)
 
void modesQueueOutput (struct modesMessage *mm)
 
void modesReadFromClient (struct client *c, char *sep, int(*handler)(struct client *, char *))
 
void modesReadFromClients (void)
 
void modesSendAllClients (int service, void *msg, int len)
 
void useModesMessage (struct modesMessage *mm)
 

Variables

struct {
   int   aera
 
   char *   aera_net
 
   struct aircraft *   aircrafts
 
   char   aneterr [256]
 
   int   beast
 
   char *   beastOut
 
   int   beastOutUsed
 
   int   bis
 
   int   bos
 
   int   bUserFlags
 
   int   check_crc
 
   struct client *   clients [1024]
 
   uint16_t *   data
 
   pthread_cond_t   data_cond
 
   pthread_mutex_t   data_mutex
 
   int   data_ready
 
   int   debug
 
   rtlsdr_dev_t *   dev
 
   int   dev_index
 
   int   enable_agc
 
   int   exit
 
   int   fd
 
   char *   filename
 
   int   freq
 
   double   fUserLat
 
   double   fUserLon
 
   int   gain
 
   int   https
 
   uint32_t *   icao_cache
 
   int   interactive
 
   int   interactive_delete_ttl
 
   int   interactive_display_ttl
 
   uint64_t   interactive_last_update
 
   int   interactive_rows
 
   int   interactive_rtl1090
 
   uint16_t *   maglut
 
   uint16_t *   magnitude
 
   int   maxfd
 
   int   metric
 
   int   mlat
 
   int   mode_ac
 
   int   net
 
   int   net_http_port
 
   int   net_input_beast_port
 
   int   net_input_raw_port
 
   int   net_only
 
   int   net_output_beast_port
 
   int   net_output_raw_port
 
   int   net_output_raw_rate
 
   int   net_output_raw_rate_count
 
   int   net_output_raw_size
 
   int   net_output_sbs_port
 
   int   nfix_crc
 
   int   onlyaddr
 
   int   phase_enhance
 
   int   ppm_error
 
   int   print_timestamp
 
   int   quiet
 
   int   raw
 
   char *   rawOut
 
   int   rawOutUsed
 
   pthread_t   reader_thread
 
   int   ris
 
   int   ros
 
   int   sbsos
 
   unsigned int   stat_badcrc
 
   unsigned int   stat_beast_connections
 
   unsigned int   stat_bit_fix [2]
 
   unsigned int   stat_demodulated0
 
   unsigned int   stat_demodulated1
 
   unsigned int   stat_demodulated2
 
   unsigned int   stat_demodulated3
 
   unsigned int   stat_DF_Len_Corrected
 
   unsigned int   stat_DF_Type_Corrected
 
   unsigned int   stat_fixed
 
   unsigned int   stat_goodcrc
 
   unsigned int   stat_http_requests
 
   unsigned int   stat_ModeAC
 
   unsigned int   stat_out_of_phase
 
   unsigned int   stat_ph_badcrc
 
   unsigned int   stat_ph_bit_fix [2]
 
   unsigned int   stat_ph_demodulated0
 
   unsigned int   stat_ph_demodulated1
 
   unsigned int   stat_ph_demodulated2
 
   unsigned int   stat_ph_demodulated3
 
   unsigned int   stat_ph_fixed
 
   unsigned int   stat_ph_goodcrc
 
   unsigned int   stat_raw_connections
 
   unsigned int   stat_sbs_connections
 
   unsigned int   stat_valid_preamble
 
   int   stats
 
   struct timeb   stSystemTimeBlk
 
   struct timeb   stSystemTimeRTL
 
   uint64_t   timestampBlk
 
Modes
 

Macro Definition Documentation

#define HTMLPATH   "./public_html"

Definition at line 176 of file dump1090.h.

Referenced by handleHTTPRequest().

#define MODEAC_MSG_BYTES   2
#define MODEAC_MSG_FLAG   (1<<0)
#define MODEAC_MSG_MODEA_HIT   (1<<2)
#define MODEAC_MSG_MODEA_ONLY   (1<<4)
#define MODEAC_MSG_MODEC_HIT   (1<<3)
#define MODEAC_MSG_MODEC_OLD   (1<<5)
#define MODEAC_MSG_MODES_HIT   (1<<1)
#define MODEAC_MSG_SAMPLES   (25 * 2)

Definition at line 94 of file dump1090.h.

Referenced by detectModeS().

#define MODEAC_MSG_SQUELCH_LEVEL   0x07FF

Definition at line 96 of file dump1090.h.

Referenced by detectModeA().

#define MODES_ACFLAGS_ALTITUDE_VALID   (1<<1)
#define MODES_ACFLAGS_AOG   (1<<9)
#define MODES_ACFLAGS_AOG_GROUND   (MODES_ACFLAGS_AOG_VALID | MODES_ACFLAGS_AOG)

Definition at line 146 of file dump1090.h.

Referenced by modesSendSBSOutput().

#define MODES_ACFLAGS_AOG_VALID   (1<<12)

Definition at line 139 of file dump1090.h.

Referenced by decodeModesMessage(), interactiveReceiveData(), and modesSendSBSOutput().

#define MODES_ACFLAGS_CALLSIGN_VALID   (1<<6)

Definition at line 133 of file dump1090.h.

Referenced by decodeModesMessage(), interactiveReceiveData(), and modesSendSBSOutput().

#define MODES_ACFLAGS_EWSPEED_VALID   (1<<7)

Definition at line 134 of file dump1090.h.

Referenced by decodeModesMessage(), and displayModesMessage().

#define MODES_ACFLAGS_FS_VALID   (1<<13)

Definition at line 140 of file dump1090.h.

Referenced by decodeModesMessage(), and modesSendSBSOutput().

#define MODES_ACFLAGS_HEADING_VALID   (1<<2)
#define MODES_ACFLAGS_LATLON_REL_OK   (1<<15)

Definition at line 142 of file dump1090.h.

Referenced by decodeCPR(), and decodeCPRrelative().

#define MODES_ACFLAGS_LATLON_VALID   (1<<0)
#define MODES_ACFLAGS_LLBOTH_VALID   (MODES_ACFLAGS_LLEVEN_VALID | MODES_ACFLAGS_LLODD_VALID)

Definition at line 145 of file dump1090.h.

Referenced by interactiveReceiveData().

#define MODES_ACFLAGS_LLEITHER_VALID   (MODES_ACFLAGS_LLEVEN_VALID | MODES_ACFLAGS_LLODD_VALID)

Definition at line 144 of file dump1090.h.

Referenced by interactiveReceiveData().

#define MODES_ACFLAGS_LLEVEN_VALID   (1<<10)

Definition at line 137 of file dump1090.h.

Referenced by decodeModesMessage().

#define MODES_ACFLAGS_LLODD_VALID   (1<<11)

Definition at line 138 of file dump1090.h.

Referenced by decodeModesMessage(), and interactiveReceiveData().

#define MODES_ACFLAGS_NSEWSPD_VALID   (1<<14)

Definition at line 141 of file dump1090.h.

Referenced by decodeModesMessage(), and modesSendSBSOutput().

#define MODES_ACFLAGS_NSSPEED_VALID   (1<<8)

Definition at line 135 of file dump1090.h.

Referenced by decodeModesMessage(), and displayModesMessage().

#define MODES_ACFLAGS_SPEED_VALID   (1<<3)
#define MODES_ACFLAGS_SQUAWK_VALID   (1<<5)
#define MODES_ACFLAGS_VERTRATE_VALID   (1<<4)
#define MODES_ASYNC_BUF_NUMBER   12

Definition at line 83 of file dump1090.h.

Referenced by readerThreadEntryPoint().

#define MODES_ASYNC_BUF_SAMPLES   (MODES_ASYNC_BUF_SIZE / 2)

Definition at line 85 of file dump1090.h.

Referenced by computeMagnitudeVector(), and main().

#define MODES_ASYNC_BUF_SIZE   (16*16384)

Definition at line 84 of file dump1090.h.

Referenced by modesInit(), readDataFromFile(), readerThreadEntryPoint(), and rtlsdrCallback().

#define MODES_AUTO_GAIN   -100

Definition at line 86 of file dump1090.h.

Referenced by modesInitRTLSDR().

#define MODES_CLIENT_BUF_SIZE   1024

Definition at line 172 of file dump1090.h.

Referenced by modesReadFromClient().

#define MODES_DEBUG_BADCRC   (1<<2)

Definition at line 150 of file dump1090.h.

Referenced by detectModeS(), and main().

#define MODES_DEBUG_DEMOD   (1<<0)

Definition at line 148 of file dump1090.h.

Referenced by detectModeS(), and main().

#define MODES_DEBUG_DEMODERR   (1<<1)

Definition at line 149 of file dump1090.h.

Referenced by detectModeS(), and main().

#define MODES_DEBUG_GOODCRC   (1<<3)

Definition at line 151 of file dump1090.h.

Referenced by detectModeS(), and main().

#define MODES_DEBUG_JS   (1<<6)

Definition at line 154 of file dump1090.h.

Referenced by dumpRawMessage(), and main().

#define MODES_DEBUG_NET   (1<<5)

Definition at line 153 of file dump1090.h.

Referenced by handleHTTPRequest(), main(), modesAcceptClients(), and modesFreeClient().

#define MODES_DEBUG_NOPREAMBLE   (1<<4)

Definition at line 152 of file dump1090.h.

Referenced by detectModeS(), and main().

#define MODES_DEBUG_NOPREAMBLE_LEVEL   25

Definition at line 158 of file dump1090.h.

Referenced by detectModeS().

#define MODES_DEFAULT_FREQ   1090000000

Definition at line 80 of file dump1090.h.

Referenced by modesInitConfig().

#define MODES_DEFAULT_HEIGHT   700

Definition at line 82 of file dump1090.h.

#define MODES_DEFAULT_RATE   2000000

Definition at line 79 of file dump1090.h.

Referenced by modesInitRTLSDR().

#define MODES_DEFAULT_WIDTH   1000

Definition at line 81 of file dump1090.h.

#define MODES_DUMP1090_VERSION   "1.07.0710.13"

Definition at line 40 of file dump1090.h.

Referenced by ppup1090Init(), and showHelp().

#define MODES_ICAO_CACHE_LEN   1024

Definition at line 120 of file dump1090.h.

Referenced by ICAOCacheHashAddress(), modesInit(), ppup1090Init(), and view1090Init().

#define MODES_ICAO_CACHE_TTL   60

Definition at line 121 of file dump1090.h.

Referenced by ICAOAddressWasRecentlySeen().

#define MODES_INTERACTIVE_DELETE_TTL   300

Definition at line 162 of file dump1090.h.

Referenced by modesInitConfig(), ppup1090InitConfig(), and view1090InitConfig().

#define MODES_INTERACTIVE_DISPLAY_TTL   60

Definition at line 163 of file dump1090.h.

Referenced by modesInitConfig(), ppup1090InitConfig(), and view1090InitConfig().

#define MODES_INTERACTIVE_REFRESH_TIME   250

Definition at line 160 of file dump1090.h.

Referenced by interactiveShowData().

#define MODES_INTERACTIVE_ROWS   22

Definition at line 161 of file dump1090.h.

Referenced by modesInitConfig(), and view1090InitConfig().

#define MODES_LONG_MSG_BITS   (MODES_LONG_MSG_BYTES * 8)
#define MODES_LONG_MSG_BYTES   14
#define MODES_LONG_MSG_SAMPLES   (MODES_LONG_MSG_BITS * 2)
#define MODES_LONG_MSG_SIZE   (MODES_LONG_MSG_SAMPLES * sizeof(uint16_t))

Definition at line 113 of file dump1090.h.

Referenced by computeMagnitudeVector(), and modesInit().

#define MODES_MAX_BITERRORS   2

Definition at line 92 of file dump1090.h.

Referenced by detectModeS(), dumpRawMessage(), and main().

#define MODES_MAX_GAIN   999999

Definition at line 87 of file dump1090.h.

Referenced by modesInitConfig(), and modesInitRTLSDR().

#define MODES_MSG_ENCODER_ERRS   3

Definition at line 89 of file dump1090.h.

Referenced by detectModeS().

#define MODES_MSG_SQUELCH_LEVEL   0x02FF

Definition at line 88 of file dump1090.h.

Referenced by detectModeS().

#define MODES_NET_HTTP_PORT   8080

Definition at line 171 of file dump1090.h.

Referenced by modesInitConfig().

#define MODES_NET_INPUT_BEAST_PORT   30004

Definition at line 169 of file dump1090.h.

Referenced by modesInitConfig().

#define MODES_NET_INPUT_RAW_PORT   30001

Definition at line 166 of file dump1090.h.

Referenced by modesInitConfig().

#define MODES_NET_MAX_FD   1024

Definition at line 165 of file dump1090.h.

Referenced by main(), modesAcceptClients(), and modesFreeClient().

#define MODES_NET_OUTPUT_BEAST_PORT   30005

Definition at line 170 of file dump1090.h.

Referenced by modesInitConfig(), ppup1090InitConfig(), and view1090InitConfig().

#define MODES_NET_OUTPUT_RAW_PORT   30002

Definition at line 167 of file dump1090.h.

Referenced by modesInitConfig().

#define MODES_NET_OUTPUT_SBS_PORT   30003

Definition at line 168 of file dump1090.h.

Referenced by modesInitConfig().

#define MODES_NET_SNDBUF_SIZE   (1024*64)

Definition at line 173 of file dump1090.h.

Referenced by modesAcceptClients().

#define MODES_NOTUSED (   V)    ((void) V)
#define MODES_PREAMBLE_SAMPLES   (MODES_PREAMBLE_US * 2)
#define MODES_PREAMBLE_SIZE   (MODES_PREAMBLE_SAMPLES * sizeof(uint16_t))

Definition at line 106 of file dump1090.h.

Referenced by computeMagnitudeVector(), modesInit(), and snipMode().

#define MODES_PREAMBLE_US   8

Definition at line 104 of file dump1090.h.

Referenced by detectModeS().

#define MODES_RAWOUT_BUF_FLUSH   (MODES_RAWOUT_BUF_SIZE - 200)

Definition at line 117 of file dump1090.h.

Referenced by modesInit().

#define MODES_RAWOUT_BUF_RATE   (1000)

Definition at line 118 of file dump1090.h.

Referenced by modesInit().

#define MODES_RAWOUT_BUF_SIZE   (1500)

Definition at line 116 of file dump1090.h.

Referenced by modesInit().

#define MODES_SHORT_MSG_BITS   (MODES_SHORT_MSG_BYTES * 8)

Definition at line 110 of file dump1090.h.

Referenced by detectModeS(), and modesMessageLenByType().

#define MODES_SHORT_MSG_BYTES   7
#define MODES_SHORT_MSG_SAMPLES   (MODES_SHORT_MSG_BITS * 2)

Definition at line 112 of file dump1090.h.

Referenced by dumpMagnitudeVector().

#define MODES_SHORT_MSG_SIZE   (MODES_SHORT_MSG_SAMPLES * sizeof(uint16_t))

Definition at line 114 of file dump1090.h.

#define MODES_UNIT_FEET   0

Definition at line 122 of file dump1090.h.

Referenced by decodeAC12Field(), and decodeAC13Field().

#define MODES_UNIT_METERS   1

Definition at line 123 of file dump1090.h.

Referenced by decodeAC13Field(), and displayModesMessage().

#define MODES_USER_LATITUDE_DFLT   (-35.108405932)

Definition at line 75 of file dump1090.h.

Referenced by modesInitConfig(), ppup1090Init(), ppup1090InitConfig(), and view1090InitConfig().

#define MODES_USER_LATLON_VALID   (1<<0)

Definition at line 125 of file dump1090.h.

Referenced by decodeCPR(), decodeCPRrelative(), modesInit(), ppup1090Init(), and view1090Init().

#define MODES_USER_LONGITUDE_DFLT   (-69.533337772)

Definition at line 76 of file dump1090.h.

Referenced by modesInitConfig(), ppup1090Init(), ppup1090InitConfig(), and view1090InitConfig().

Function Documentation

void computeMagnitudeVector ( )
int decodeBinMessage ( struct client c,
char *  p 
)
void decodeCPR ( struct aircraft a,
int  fflag,
int  surface 
)
int decodeCPRrelative ( struct aircraft a,
int  fflag,
int  surface 
)
void decodeModeAMessage ( struct modesMessage mm,
int  ModeA 
)
void decodeModesMessage ( struct modesMessage mm,
unsigned char *  msg 
)
int detectModeA ( uint16_t *  m,
struct modesMessage mm 
)
void detectModeS ( uint16_t *  m,
uint32_t  mlen 
)
void displayModesMessage ( struct modesMessage mm)
struct aircraft* interactiveReceiveData ( struct modesMessage mm)

Definition at line 178 of file interactive.c.

References RdGeoCeLDFFitter::a, utl::abs(), modesMessage::addr, aircraft::altitude, modesMessage::altitude, aircraft::bFlags, modesMessage::bFlags, modesMessage::correctedbits, modesMessage::crcok, decodeCPR(), decodeCPRrelative(), aircraft::even_cprlat, aircraft::even_cprlon, aircraft::even_cprtime, modesMessage::fLat, aircraft::flight, modesMessage::flight, modesMessage::fLon, modesMessage::heading, interactiveCreateAircraft(), interactiveFindAircraft(), aircraft::lat, aircraft::lon, aircraft::messages, aircraft::modeA, modesMessage::modeA, MODEAC_MSG_MODEA_HIT, MODEAC_MSG_MODEC_HIT, MODEAC_MSG_MODEC_OLD, aircraft::modeACflags, aircraft::modeAcount, aircraft::modeC, aircraft::modeCcount, Modes, MODES_ACFLAGS_ALTITUDE_VALID, MODES_ACFLAGS_AOG, MODES_ACFLAGS_AOG_VALID, MODES_ACFLAGS_CALLSIGN_VALID, MODES_ACFLAGS_HEADING_VALID, MODES_ACFLAGS_LATLON_VALID, MODES_ACFLAGS_LLBOTH_VALID, MODES_ACFLAGS_LLEITHER_VALID, MODES_ACFLAGS_LLODD_VALID, MODES_ACFLAGS_SPEED_VALID, MODES_ACFLAGS_SQUAWK_VALID, MODES_ACFLAGS_VERTRATE_VALID, modesMessage::msgtype, mstime(), aircraft::next, aircraft::odd_cprlat, aircraft::odd_cprlon, aircraft::odd_cprtime, modesMessage::raw_latitude, modesMessage::raw_longitude, aircraft::seen, aircraft::signalLevel, modesMessage::signalLevel, aircraft::speed, aircraft::timestamp, modesMessage::timestampMsg, aircraft::track, modesMessage::velocity, aircraft::vert_rate, and modesMessage::vert_rate.

Referenced by useModesMessage().

void interactiveRemoveStaleAircrafts ( void  )

Definition at line 446 of file interactive.c.

References RdGeoCeLDFFitter::a, Modes, SdAreaSelectorWG::next(), aircraft::next, and aircraft::seen.

Referenced by backgroundTasks(), and main().

void interactiveShowData ( void  )
int ModeAToModeC ( unsigned int  ModeA)

Definition at line 319 of file mode_ac.c.

Referenced by decodeAC12Field(), decodeAC13Field(), and interactiveCreateAircraft().

void modesInitErrorInfo ( )
void modesInitNet ( void  )

Definition at line 49 of file net_io.c.

References anetNonBlock(), anetTcpServer(), exit, Modes, and utl::s.

Referenced by main().

void modesQueueOutput ( struct modesMessage mm)

Definition at line 407 of file net_io.c.

References Modes, modesSendBeastOutput(), modesSendRawOutput(), and modesSendSBSOutput().

Referenced by useModesMessage().

void modesReadFromClient ( struct client c,
char *  sep,
int(*)(struct client *, char *)  handler 
)
void modesReadFromClients ( void  )
void modesSendAllClients ( int  service,
void *  msg,
int  len 
)
void useModesMessage ( struct modesMessage mm)

Variable Documentation

int aera

Definition at line 272 of file dump1090.h.

Referenced by displayModesMessage().

char* aera_net

Definition at line 273 of file dump1090.h.

struct aircraft* aircrafts

Definition at line 305 of file dump1090.h.

char aneterr[256]

Definition at line 248 of file dump1090.h.

int beast

Definition at line 274 of file dump1090.h.

char* beastOut

Definition at line 259 of file dump1090.h.

int beastOutUsed

Definition at line 260 of file dump1090.h.

int bis

Definition at line 255 of file dump1090.h.

int bos

Definition at line 254 of file dump1090.h.

int bUserFlags

Definition at line 302 of file dump1090.h.

int check_crc

Definition at line 269 of file dump1090.h.

struct client* clients[1024]

Definition at line 249 of file dump1090.h.

uint16_t* data
pthread_cond_t data_cond

Definition at line 227 of file dump1090.h.

pthread_mutex_t data_mutex

Definition at line 226 of file dump1090.h.

int data_ready

Definition at line 234 of file dump1090.h.

int debug
rtlsdr_dev_t* dev
int dev_index

Definition at line 240 of file dump1090.h.

int enable_agc

Definition at line 242 of file dump1090.h.

int exit

Definition at line 237 of file dump1090.h.

Referenced by G4TankSimulatorASCII::G4TankPMT::AddPhoton(), G4XTankSimulatorAG::G4XTankPMT::AddPhoton(), TabulatedTankSimulatorNS::TabulatedTankSimulator::AddPhoton(), G4TankSimulatorOG::G4TankSimulator::AddPhoton(), G4StationSimulatorOG::G4StationSimulator::AddPhoton(), AtmCorrNS::AtmCorr::AtmCorr(), CalibrateTelescope(), corsika_fopen(), TelescopeSimulatorKG2::RTFunctions::Cubic(), TabulatedTankSimulatorNS::DetectorResponse::DetectorResponse(), DisplayUsage(), dumpRawMessageJS(), otoa::FD2ADST::FillRecPixel(), G4TankSimulatorASCII::G4TankPMTAction::G4TankPMTAction(), G4TankSimulatorOG::G4TankPMTAction::G4TankPMTAction(), G4StationSimulatorOG::G4TankPMTAction::G4TankPMTAction(), G4XTankSimulatorAG::G4XTankPMTAction::G4XTankPMTAction(), GeomAsymNS::GeomAsym::GeomAsym(), GeomAsymNS::GeomAsym::GetARad(), io::OfflineROOTFile::GetConfig(), utl::Branch::GetData(), UnivRecNS::UnivRec::GetLikelihood(), AtmCorrNS::AtmCorr::GetParCorrTypeIII(), MdGeometryFitterAG::GeometryFitter::GetPlaneFrontDelay(), GeomAsymNS::GeomAsym::GetPzMeanPar(), MdGeometryFitterAG::GeometryFitter::GetTimeError(), MdGeometryFitterAG::GeometryFitter::GetTimeResidual(), GeomAsymNS::GeomAsym::GetTmodAmod_Par_i(), fwk::RunController::Init(), RdChannelLinearPredictorRFISuppressor::LinearPredictor::LinearPredictor(), main(), otoa::MD2ADST::MakeCounter(), modesInit(), modesInitNet(), modesInitRTLSDR(), fftwpp::fftw::noplan(), rdet::AntennaType::NotFoundAndExit(), utl::Reader::Parse(), ParseIds(), ppup1090Init(), ppup1090InitConfig(), RdChannelLinearPredictorRFISuppressor::LinearPredictor::predict(), preselect(), processOptions(), SdSimulationCalibratorOG::SdSimulationCalibrator::ProcessStation(), TelescopeSimulatorKG2::RTFunctions::Quartic(), ReadRunInfo(), ReadAerosolHLNS::ReadAerosolHL::Run(), G4XTankSimulatorAG::G4XTankPMT::SetComponent(), AtmosphereNS::Atmosphere::SetCurrentAtmosphere(), fftwpp::fftw::Setout(), fftwpp::fftw::Shift(), RdChannelLinearPredictorRFISuppressor::LinearPredictor::train(), fftwpp::Transpose::Transpose(), fftwpp::Transpose::transpose(), UnivCalibConstantsNS::UnivCalibConstants::UnivCalibConstants(), UnivParamNS::UnivParam::UnivParam(), UnivParamTimeNS::UnivParamTime::UnivParamTime(), view1090Init(), DataWriter::WriteInfo(), UniversalityFitter::UniversalityFitter::WriteRecParameters(), and writeSteeringCard().

int fd
char* filename

Definition at line 266 of file dump1090.h.

Referenced by RdREASSimPreparator::RdREASSimPreparator::CorsikaInpFileWriter(), RdEVASimPreparator::RdEVASimPreparator::EVAFileWriter(), SpotPhotonGeneratorOG::SpotPhotonGenerator::FinishTelescope(), RdChannelNoiseImporter_AERA::RdChannelNoiseImporter_AERA::GetNoiseFileNameAtTime(), RdVirtualStationNoiseImporter::RdVirtualStationNoiseImporter::GetNoiseFileNameAtTime(), AnalyzerNS::Analyzer::Init(), SdGainRatioCorrectorKG::SdGainRatioCorrector::Init(), RdScintSignalReconstructor::RdScintSignalReconstructor::Init(), RdEventMerger::RdEventMerger::Init(), ParticleInjectorNEU::ParticleInjector::Init(), GroundPropagatorAG::GroundPropagator::Init(), CachedDirectInjectorOG::CachedDirectInjector::Init(), RdREASSimPreparator::RdREASSimPreparator::LaunchConexSim(), RdREASSimPreparator::RdREASSimPreparator::LaunchCorsikaSim(), main(), io::RadioFileAERA::Open(), io::RadioFileAERAroot::Open(), io::FDasEventFile::Open(), io::VROOTFile::Open(), utl::zfstream_source::open(), io::AiresShowerFile::Read(), RdREASSimPreparator::RdREASSimPreparator::REASFileWriter(), RdCOREASSimulationCreator::RdCOREASSimulationCreator::Run(), RdLDFFitter::RdLDFFitter::Run(), fwk::RunData::SetCurrentFilename(), sdet::T2Life::T2Life(), TabularTankResponseNS::TankResponse::TankResponse(), RdChannelDebugWriter::RdChannelDebugWriter::writeAsciiSpectrum(), RdChannelDebugWriter::RdChannelDebugWriter::writeAsciiTrace(), and RdREASSimPreparator::RdREASSimPreparator::WriteDetectorFile().

int freq
double fUserLat

Definition at line 300 of file dump1090.h.

double fUserLon

Definition at line 301 of file dump1090.h.

int gain

Definition at line 241 of file dump1090.h.

Referenced by otoa::SD2ADST::AddStations(), CentralTriggerEventBuilderNS::CentralTriggerEventBuilder::BuildEvent(), DrumPhotonGeneratorOG::DrumPhotonGenerator::CalibrateTelescope(), sevt::PMT::FADCTracesBegin(), sevt::PMTSimData::FADCTracesBegin(), sevt::PMT::FADCTracesDBegin(), sevt::PMTSimData::FADCTracesDBegin(), sevt::PMT::FADCTracesDEnd(), sevt::PMTSimData::FADCTracesDEnd(), sevt::PMT::FADCTracesEnd(), sevt::PMTSimData::FADCTracesEnd(), SdFilterFADCSimulatorASCII::SdFilterFADCSimulator::FillFADCTraces(), sevt::PMTCalibData::GetBaseline(), sevt::PMTRecData::GetBaselineFlatPieces(), sevt::PMTCalibData::GetBaselineRMS(), sevt::PMTRecData::GetFADCBaseline(), sevt::PMTRecData::GetFADCBaselineError(), sevt::PMTRecData::GetFADCBaselineWindow(), sevt::PMTRecData::GetFADCSaturatedBins(), sevt::PMT::GetFADCTrace(), sevt::PMTSimData::GetFADCTrace(), sevt::PMT::GetFADCTraceD(), sevt::PMTSimData::GetFADCTraceD(), sevt::PMT::GetMultiFADCTrace(), sevt::PMT::GetMultiFADCTraceD(), sevt::PMTSimData::GetMultiTrace(), sevt::PMTSimData::GetMultiTraceD(), sevt::PMTRecData::HasFADCBaseline(), ThresholdCalculatorKG::ThresholdCalculator::Init(), sevt::PMTRecData::MakeFADCBaseline(), sevt::PMTSimData::MakeFADCTrace(), io::PMT_ROOT::operator>>(), SdBaselineSimulatorOG::SdBaselineSimulator::Run(), SdSimulationCalibrationFillerOG::SdSimulationCalibrationFiller::Run(), sevt::PMTCalibData::SetBaseline(), sevt::PMTRecData::SetFADCBaselineError(), sevt::PMTRecData::SetFADCBaselineWindow(), sevt::PMTRecData::SetFADCSaturatedBins(), and sevt::PMTRecData::SetGainUsed().

int https

Definition at line 256 of file dump1090.h.

uint32_t* icao_cache

Definition at line 235 of file dump1090.h.

int interactive

Definition at line 289 of file dump1090.h.

int interactive_delete_ttl

Definition at line 292 of file dump1090.h.

int interactive_display_ttl

Definition at line 291 of file dump1090.h.

uint64_t interactive_last_update

Definition at line 306 of file dump1090.h.

int interactive_rows

Definition at line 290 of file dump1090.h.

int interactive_rtl1090

Definition at line 297 of file dump1090.h.

uint16_t* maglut

Definition at line 236 of file dump1090.h.

uint16_t* magnitude

Definition at line 229 of file dump1090.h.

int maxfd

Definition at line 250 of file dump1090.h.

int metric

Definition at line 295 of file dump1090.h.

int mlat

Definition at line 296 of file dump1090.h.

int mode_ac

Definition at line 275 of file dump1090.h.

struct { ... } Modes
int net

Definition at line 277 of file dump1090.h.

int net_http_port

Definition at line 287 of file dump1090.h.

int net_input_beast_port

Definition at line 286 of file dump1090.h.

int net_input_raw_port

Definition at line 284 of file dump1090.h.

int net_only

Definition at line 278 of file dump1090.h.

int net_output_beast_port

Definition at line 285 of file dump1090.h.

int net_output_raw_port

Definition at line 283 of file dump1090.h.

int net_output_raw_rate

Definition at line 281 of file dump1090.h.

int net_output_raw_rate_count

Definition at line 282 of file dump1090.h.

int net_output_raw_size

Definition at line 280 of file dump1090.h.

int net_output_sbs_port

Definition at line 279 of file dump1090.h.

int nfix_crc

Definition at line 268 of file dump1090.h.

int onlyaddr

Definition at line 294 of file dump1090.h.

int phase_enhance

Definition at line 267 of file dump1090.h.

int ppm_error

Definition at line 245 of file dump1090.h.

int print_timestamp

Definition at line 271 of file dump1090.h.

int quiet

Definition at line 288 of file dump1090.h.

int raw
char* rawOut

Definition at line 257 of file dump1090.h.

int rawOutUsed

Definition at line 258 of file dump1090.h.

pthread_t reader_thread

Definition at line 225 of file dump1090.h.

int ris

Definition at line 253 of file dump1090.h.

int ros

Definition at line 252 of file dump1090.h.

int sbsos

Definition at line 251 of file dump1090.h.

unsigned int stat_badcrc

Definition at line 315 of file dump1090.h.

unsigned int stat_beast_connections

Definition at line 325 of file dump1090.h.

unsigned int stat_bit_fix[2]

Definition at line 320 of file dump1090.h.

unsigned int stat_demodulated0

Definition at line 310 of file dump1090.h.

unsigned int stat_demodulated1

Definition at line 311 of file dump1090.h.

unsigned int stat_demodulated2

Definition at line 312 of file dump1090.h.

unsigned int stat_demodulated3

Definition at line 313 of file dump1090.h.

unsigned int stat_DF_Len_Corrected

Definition at line 338 of file dump1090.h.

unsigned int stat_DF_Type_Corrected

Definition at line 339 of file dump1090.h.

unsigned int stat_fixed

Definition at line 316 of file dump1090.h.

unsigned int stat_goodcrc

Definition at line 314 of file dump1090.h.

unsigned int stat_http_requests

Definition at line 322 of file dump1090.h.

unsigned int stat_ModeAC

Definition at line 340 of file dump1090.h.

unsigned int stat_out_of_phase

Definition at line 326 of file dump1090.h.

unsigned int stat_ph_badcrc

Definition at line 332 of file dump1090.h.

unsigned int stat_ph_bit_fix[2]

Definition at line 336 of file dump1090.h.

unsigned int stat_ph_demodulated0

Definition at line 327 of file dump1090.h.

unsigned int stat_ph_demodulated1

Definition at line 328 of file dump1090.h.

unsigned int stat_ph_demodulated2

Definition at line 329 of file dump1090.h.

unsigned int stat_ph_demodulated3

Definition at line 330 of file dump1090.h.

unsigned int stat_ph_fixed

Definition at line 333 of file dump1090.h.

unsigned int stat_ph_goodcrc

Definition at line 331 of file dump1090.h.

unsigned int stat_raw_connections

Definition at line 324 of file dump1090.h.

unsigned int stat_sbs_connections

Definition at line 323 of file dump1090.h.

unsigned int stat_valid_preamble

Definition at line 309 of file dump1090.h.

int stats
struct timeb stSystemTimeBlk

Definition at line 232 of file dump1090.h.

struct timeb stSystemTimeRTL

Definition at line 230 of file dump1090.h.

uint64_t timestampBlk

Definition at line 231 of file dump1090.h.


, generated on Tue Sep 26 2023.