fix merge conflict
This commit is contained in:
+2
-4
@@ -1,7 +1,7 @@
|
|||||||
#include "TrackedAircraft.h"
|
|
||||||
#include "LEDMatrix.cpp"
|
#include "LEDMatrix.cpp"
|
||||||
#include "Network.cpp"
|
#include "Network.cpp"
|
||||||
#include "SBS1Decoder.cpp"
|
#include "SBS1Decoder.cpp"
|
||||||
|
#include "TrackedAircraft.h"
|
||||||
#include <arpa/inet.h>
|
#include <arpa/inet.h>
|
||||||
#include <climits>
|
#include <climits>
|
||||||
#include <cmath>
|
#include <cmath>
|
||||||
@@ -22,14 +22,13 @@ struct FlightWallOpts {
|
|||||||
|
|
||||||
class FlightWall {
|
class FlightWall {
|
||||||
private:
|
private:
|
||||||
FlightWallOpts opts_;
|
|
||||||
|
|
||||||
// hex ident, all other info
|
// hex ident, all other info
|
||||||
std::unordered_map<std::string, TrackedAircraft> tracked;
|
std::unordered_map<std::string, TrackedAircraft> tracked;
|
||||||
double min_distance = INT_MAX;
|
double min_distance = INT_MAX;
|
||||||
std::string min_aircraft_icao;
|
std::string min_aircraft_icao;
|
||||||
TrackedAircraft min_distance_aircraft;
|
TrackedAircraft min_distance_aircraft;
|
||||||
|
|
||||||
|
FlightWallOpts opts_;
|
||||||
LEDMatrix matrix_;
|
LEDMatrix matrix_;
|
||||||
|
|
||||||
static constexpr double EARTH_RADIUS_M = 6371000.0;
|
static constexpr double EARTH_RADIUS_M = 6371000.0;
|
||||||
@@ -95,7 +94,6 @@ public:
|
|||||||
char buffer[1024];
|
char buffer[1024];
|
||||||
std::string line;
|
std::string line;
|
||||||
|
|
||||||
|
|
||||||
while (true) {
|
while (true) {
|
||||||
ssize_t bytes_rec = recv(n.get_sock(), buffer, sizeof(buffer) - 1, 0);
|
ssize_t bytes_rec = recv(n.get_sock(), buffer, sizeof(buffer) - 1, 0);
|
||||||
if (bytes_rec < 0) {
|
if (bytes_rec < 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user