2017-07-14 10:02:21 +01:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2015 Jared Boone, ShareBrained Technology, Inc.
|
|
|
|
* Copyright (C) 2017 Furrtek
|
|
|
|
*
|
|
|
|
* This file is part of PortaPack.
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2, or (at your option)
|
|
|
|
* any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; see the file COPYING. If not, write to
|
|
|
|
* the Free Software Foundation, Inc., 51 Franklin Street,
|
|
|
|
* Boston, MA 02110-1301, USA.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "ui.hpp"
|
2018-03-27 12:52:07 +01:00
|
|
|
|
2017-08-16 10:02:57 +01:00
|
|
|
#include "ui_receiver.hpp"
|
2017-08-27 22:06:11 +01:00
|
|
|
#include "ui_geomap.hpp"
|
2017-07-14 10:02:21 +01:00
|
|
|
#include "ui_font_fixed_8x16.hpp"
|
2023-02-28 19:17:57 +00:00
|
|
|
#include "string_format.hpp"
|
2018-03-27 12:52:07 +01:00
|
|
|
|
|
|
|
#include "file.hpp"
|
2022-01-19 11:01:38 -05:00
|
|
|
#include "database.hpp"
|
2017-07-23 12:20:32 +01:00
|
|
|
#include "recent_entries.hpp"
|
2017-11-08 12:23:06 -08:00
|
|
|
#include "log_file.hpp"
|
2017-08-17 12:56:47 +01:00
|
|
|
#include "adsb.hpp"
|
2017-07-14 10:02:21 +01:00
|
|
|
#include "message.hpp"
|
2022-04-15 08:43:44 -04:00
|
|
|
#include "app_settings.hpp"
|
2021-10-11 10:14:16 +01:00
|
|
|
#include "crc.hpp"
|
|
|
|
|
2017-08-17 12:56:47 +01:00
|
|
|
using namespace adsb;
|
|
|
|
|
2017-07-14 10:02:21 +01:00
|
|
|
namespace ui {
|
|
|
|
|
2023-02-28 19:17:57 +00:00
|
|
|
#define ADSB_CURRENT 10 // Seconds
|
|
|
|
#define ADSB_RECENT 30 // Seconds
|
|
|
|
#define ADSB_REMOVE 300 // Used for removing old entries
|
2021-06-19 23:41:06 +01:00
|
|
|
|
|
|
|
#define AIRCRAFT_ID_L 1 // aircraft ID message type (lowest type id)
|
|
|
|
#define AIRCRAFT_ID_H 4 // aircraft ID message type (highest type id)
|
|
|
|
|
|
|
|
#define SURFACE_POS_L 5 // surface position (lowest type id)
|
|
|
|
#define SURFACE_POS_H 8 // surface position (highest type id)
|
|
|
|
|
|
|
|
#define AIRBORNE_POS_BARO_L 9 // airborne position (lowest type id)
|
|
|
|
#define AIRBORNE_POS_BARO_H 18 // airborne position (highest type id)
|
|
|
|
|
|
|
|
#define AIRBORNE_VEL 19 // airborne velocities
|
|
|
|
|
|
|
|
#define AIRBORNE_POS_GPS_L 20 // airborne position (lowest type id)
|
|
|
|
#define AIRBORNE_POS_GPS_H 22 // airborne position (highest type id)
|
|
|
|
|
|
|
|
#define RESERVED_L 23 // reserved for other uses
|
|
|
|
#define RESERVED_H 31 // reserved for other uses
|
|
|
|
|
|
|
|
#define VEL_GND_SUBSONIC 1
|
|
|
|
#define VEL_GND_SUPERSONIC 2
|
|
|
|
#define VEL_AIR_SUBSONIC 3
|
|
|
|
#define VEL_AIR_SUPERSONIC 4
|
|
|
|
|
|
|
|
#define O_E_FRAME_TIMEOUT 20 // timeout between odd and even frames
|
2018-03-27 12:52:07 +01:00
|
|
|
|
2017-08-17 12:56:47 +01:00
|
|
|
struct AircraftRecentEntry {
|
2017-07-23 12:20:32 +01:00
|
|
|
using Key = uint32_t;
|
|
|
|
|
|
|
|
static constexpr Key invalid_key = 0xffffffff;
|
|
|
|
|
2017-08-16 10:02:57 +01:00
|
|
|
uint32_t ICAO_address { };
|
|
|
|
uint16_t hits { 0 };
|
2021-10-15 18:40:02 +01:00
|
|
|
|
2021-10-29 16:59:52 +01:00
|
|
|
uint16_t age_state { 1 };
|
2017-08-27 21:03:17 +01:00
|
|
|
uint32_t age { 0 };
|
2021-11-06 12:35:37 +00:00
|
|
|
uint32_t amp { 0 };
|
2017-08-17 12:56:47 +01:00
|
|
|
adsb_pos pos { false, 0, 0, 0 };
|
2021-05-11 21:47:55 +02:00
|
|
|
adsb_vel velo { false, 0, 999, 0 };
|
2017-08-17 12:56:47 +01:00
|
|
|
ADSBFrame frame_pos_even { };
|
|
|
|
ADSBFrame frame_pos_odd { };
|
|
|
|
|
2023-02-28 19:17:57 +00:00
|
|
|
std::string icaoStr {" "};
|
2017-08-16 10:02:57 +01:00
|
|
|
std::string callsign { " " };
|
2017-08-27 21:03:17 +01:00
|
|
|
std::string info_string { "" };
|
2017-07-23 12:20:32 +01:00
|
|
|
|
2017-08-17 12:56:47 +01:00
|
|
|
AircraftRecentEntry(
|
2017-07-23 12:20:32 +01:00
|
|
|
const uint32_t ICAO_address
|
|
|
|
) : ICAO_address { ICAO_address }
|
|
|
|
{
|
2023-02-28 19:17:57 +00:00
|
|
|
this->icaoStr = to_string_hex(ICAO_address, 6);
|
2017-07-23 12:20:32 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
Key key() const {
|
|
|
|
return ICAO_address;
|
|
|
|
}
|
|
|
|
|
2017-08-16 10:02:57 +01:00
|
|
|
void set_callsign(std::string& new_callsign) {
|
|
|
|
callsign = new_callsign;
|
|
|
|
}
|
|
|
|
|
|
|
|
void inc_hit() {
|
|
|
|
hits++;
|
|
|
|
}
|
|
|
|
|
2017-08-17 12:56:47 +01:00
|
|
|
void set_frame_pos(ADSBFrame& frame, uint32_t parity) {
|
|
|
|
if (!parity)
|
|
|
|
frame_pos_even = frame;
|
|
|
|
else
|
|
|
|
frame_pos_odd = frame;
|
|
|
|
|
|
|
|
if (!frame_pos_even.empty() && !frame_pos_odd.empty()) {
|
2021-06-19 23:41:06 +01:00
|
|
|
if (abs(frame_pos_even.get_rx_timestamp() - frame_pos_odd.get_rx_timestamp()) < O_E_FRAME_TIMEOUT)
|
2017-08-17 12:56:47 +01:00
|
|
|
pos = decode_frame_pos(frame_pos_even, frame_pos_odd);
|
|
|
|
}
|
2017-08-16 10:02:57 +01:00
|
|
|
}
|
2020-07-24 16:09:21 -05:00
|
|
|
|
|
|
|
void set_frame_velo(ADSBFrame& frame){
|
|
|
|
velo = decode_frame_velo(frame);
|
|
|
|
}
|
2017-08-16 10:02:57 +01:00
|
|
|
|
2017-08-27 21:03:17 +01:00
|
|
|
void set_info_string(std::string& new_info_string) {
|
|
|
|
info_string = new_info_string;
|
2017-07-23 12:20:32 +01:00
|
|
|
}
|
|
|
|
|
2017-08-27 21:03:17 +01:00
|
|
|
void reset_age() {
|
|
|
|
age = 0;
|
|
|
|
}
|
|
|
|
|
2023-02-28 19:17:57 +00:00
|
|
|
void inc_age(int delta) {
|
|
|
|
age+=delta;
|
|
|
|
if (age < ADSB_CURRENT){
|
2021-10-29 16:59:52 +01:00
|
|
|
age_state = pos.valid ? 0 : 1;
|
2023-02-28 19:17:57 +00:00
|
|
|
} else if(age < ADSB_RECENT){
|
|
|
|
age_state = 2;
|
|
|
|
} else if(age < ADSB_REMOVE){
|
|
|
|
age_state = 3;
|
|
|
|
} else{
|
|
|
|
age_state = 4;
|
2021-10-29 16:59:52 +01:00
|
|
|
}
|
2017-08-27 21:03:17 +01:00
|
|
|
}
|
2017-07-23 12:20:32 +01:00
|
|
|
};
|
|
|
|
|
2017-08-17 12:56:47 +01:00
|
|
|
using AircraftRecentEntries = RecentEntries<AircraftRecentEntry>;
|
2017-07-23 12:20:32 +01:00
|
|
|
|
2017-11-08 12:23:06 -08:00
|
|
|
class ADSBLogger {
|
|
|
|
public:
|
|
|
|
Optional<File::Error> append(const std::filesystem::path& filename) {
|
|
|
|
return log_file.append(filename);
|
|
|
|
}
|
|
|
|
void log_str(std::string& logline);
|
|
|
|
|
|
|
|
private:
|
|
|
|
LogFile log_file { };
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2021-12-01 17:23:40 -05:00
|
|
|
class ADSBRxAircraftDetailsView : public View {
|
|
|
|
public:
|
|
|
|
ADSBRxAircraftDetailsView(NavigationView&, const AircraftRecentEntry& entry, const std::function<void(void)> on_close);
|
|
|
|
~ADSBRxAircraftDetailsView();
|
|
|
|
|
|
|
|
ADSBRxAircraftDetailsView(const ADSBRxAircraftDetailsView&) = delete;
|
|
|
|
ADSBRxAircraftDetailsView(ADSBRxAircraftDetailsView&&) = delete;
|
|
|
|
ADSBRxAircraftDetailsView& operator=(const ADSBRxAircraftDetailsView&) = delete;
|
|
|
|
ADSBRxAircraftDetailsView& operator=(ADSBRxAircraftDetailsView&&) = delete;
|
|
|
|
|
|
|
|
void focus() override;
|
|
|
|
|
|
|
|
void update(const AircraftRecentEntry& entry);
|
|
|
|
|
|
|
|
std::string title() const override { return "AC Details"; };
|
|
|
|
|
|
|
|
AircraftRecentEntry get_current_entry() { return entry_copy; }
|
2022-01-19 11:01:38 -05:00
|
|
|
|
|
|
|
std::database::AircraftDBRecord aircraft_record = {};
|
2021-12-01 17:23:40 -05:00
|
|
|
|
|
|
|
private:
|
2022-01-19 11:01:38 -05:00
|
|
|
AircraftRecentEntry entry_copy { 0 };
|
|
|
|
std::function<void(void)> on_close_ { };
|
|
|
|
bool send_updates { false };
|
2022-04-21 23:12:37 +02:00
|
|
|
std::database db = { };
|
2022-01-19 11:01:38 -05:00
|
|
|
std::string icao_code = "";
|
|
|
|
int return_code = 0;
|
|
|
|
|
2021-12-01 17:23:40 -05:00
|
|
|
Labels labels {
|
|
|
|
{ { 0 * 8, 1 * 16 }, "ICAO:", Color::light_grey() },
|
|
|
|
{ { 0 * 8, 2 * 16 }, "Registration:", Color::light_grey() },
|
|
|
|
{ { 0 * 8, 3 * 16 }, "Manufacturer:", Color::light_grey() },
|
|
|
|
{ { 0 * 8, 5 * 16 }, "Model:", Color::light_grey() },
|
|
|
|
{ { 0 * 8, 7 * 16 }, "Type:", Color::light_grey() },
|
|
|
|
{ { 0 * 8, 8 * 16 }, "Number of engines:", Color::light_grey() },
|
|
|
|
{ { 0 * 8, 9 * 16 }, "Engine type:", Color::light_grey() },
|
2021-12-17 14:27:00 -05:00
|
|
|
{ { 0 * 8, 11 * 16 }, "Owner:", Color::light_grey() },
|
|
|
|
{ { 0 * 8, 13 * 16 }, "Operator:", Color::light_grey() }
|
2021-12-01 17:23:40 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
Text text_icao_address {
|
|
|
|
{ 5 * 8, 1 * 16, 6 * 8, 16},
|
|
|
|
"-"
|
|
|
|
};
|
|
|
|
|
|
|
|
Text text_registration {
|
|
|
|
{ 13 * 8, 2 * 16, 8 * 8, 16 },
|
|
|
|
"-"
|
|
|
|
};
|
|
|
|
|
|
|
|
Text text_manufacturer {
|
|
|
|
{ 0 * 8, 4 * 16, 19 * 8, 16 },
|
|
|
|
"-"
|
|
|
|
};
|
|
|
|
|
|
|
|
Text text_model {
|
|
|
|
{ 0 * 8, 6 * 16, 30 * 8, 16 },
|
|
|
|
"-"
|
|
|
|
};
|
|
|
|
|
|
|
|
Text text_type {
|
|
|
|
{ 5 * 8, 7 * 16, 22 * 8, 16 },
|
|
|
|
"-"
|
|
|
|
};
|
|
|
|
|
|
|
|
Text text_number_of_engines {
|
|
|
|
{ 18 * 8, 8 * 16, 30 * 8, 16 },
|
|
|
|
"-"
|
|
|
|
};
|
|
|
|
|
|
|
|
Text text_engine_type {
|
2021-12-17 14:27:00 -05:00
|
|
|
{ 0 * 8, 10 * 16, 30 * 8, 16},
|
2021-12-01 17:23:40 -05:00
|
|
|
"-"
|
|
|
|
};
|
|
|
|
|
|
|
|
Text text_owner {
|
2021-12-17 14:27:00 -05:00
|
|
|
{ 0 * 8, 12 * 16, 30 * 8, 16 },
|
|
|
|
"-"
|
|
|
|
};
|
|
|
|
|
|
|
|
Text text_operator {
|
|
|
|
{ 0 * 8, 14 * 16, 30 * 8, 16 },
|
2021-12-01 17:23:40 -05:00
|
|
|
"-"
|
|
|
|
};
|
|
|
|
|
|
|
|
Button button_close {
|
|
|
|
{ 9 * 8, 16 * 16, 12 * 8, 3 * 16 },
|
|
|
|
"Back"
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2017-08-28 07:05:31 +01:00
|
|
|
class ADSBRxDetailsView : public View {
|
|
|
|
public:
|
|
|
|
ADSBRxDetailsView(NavigationView&, const AircraftRecentEntry& entry, const std::function<void(void)> on_close);
|
|
|
|
~ADSBRxDetailsView();
|
|
|
|
|
|
|
|
ADSBRxDetailsView(const ADSBRxDetailsView&) = delete;
|
|
|
|
ADSBRxDetailsView(ADSBRxDetailsView&&) = delete;
|
|
|
|
ADSBRxDetailsView& operator=(const ADSBRxDetailsView&) = delete;
|
|
|
|
ADSBRxDetailsView& operator=(ADSBRxDetailsView&&) = delete;
|
|
|
|
|
|
|
|
void focus() override;
|
|
|
|
|
|
|
|
void update(const AircraftRecentEntry& entry);
|
|
|
|
|
2020-06-28 21:42:19 +02:00
|
|
|
std::string title() const override { return "Details"; };
|
2021-10-15 14:26:33 +01:00
|
|
|
|
|
|
|
AircraftRecentEntry get_current_entry() { return entry_copy; }
|
2022-01-19 11:01:38 -05:00
|
|
|
|
|
|
|
|
|
|
|
std::database::AirlinesDBRecord airline_record = {};
|
2017-08-28 07:05:31 +01:00
|
|
|
|
2023-02-28 23:00:51 +00:00
|
|
|
GeoMapView* geomap_view { nullptr };
|
2017-08-28 07:05:31 +01:00
|
|
|
private:
|
2022-01-19 11:01:38 -05:00
|
|
|
AircraftRecentEntry entry_copy { 0 };
|
|
|
|
std::function<void(void)> on_close_ { };
|
|
|
|
ADSBRxAircraftDetailsView* aircraft_details_view { nullptr };
|
|
|
|
bool send_updates { false };
|
2022-04-21 23:12:37 +02:00
|
|
|
std::database db = { };
|
2022-01-19 11:01:38 -05:00
|
|
|
std::string airline_code = "";
|
|
|
|
int return_code = 0;
|
2017-08-28 07:05:31 +01:00
|
|
|
|
|
|
|
Labels labels {
|
2021-12-01 17:23:40 -05:00
|
|
|
{ { 0 * 8, 1 * 16 }, "ICAO:", Color::light_grey() },
|
|
|
|
{ { 13 * 8, 1 * 16 }, "Callsign:", Color::light_grey() },
|
2017-08-28 07:05:31 +01:00
|
|
|
{ { 0 * 8, 2 * 16 }, "Last seen:", Color::light_grey() },
|
|
|
|
{ { 0 * 8, 3 * 16 }, "Airline:", Color::light_grey() },
|
|
|
|
{ { 0 * 8, 5 * 16 }, "Country:", Color::light_grey() },
|
2020-08-11 11:26:54 -05:00
|
|
|
{ { 0 * 8, 13 * 16 }, "Even position frame:", Color::light_grey() },
|
|
|
|
{ { 0 * 8, 15 * 16 }, "Odd position frame:", Color::light_grey() }
|
2017-08-28 07:05:31 +01:00
|
|
|
};
|
|
|
|
|
2021-12-01 17:23:40 -05:00
|
|
|
Text text_icao_address {
|
|
|
|
{ 5 * 8, 1 * 16, 6 * 8, 16},
|
|
|
|
"-"
|
|
|
|
};
|
|
|
|
|
2017-08-28 07:05:31 +01:00
|
|
|
Text text_callsign {
|
2021-12-01 17:23:40 -05:00
|
|
|
{ 22 * 8, 1 * 16, 8 * 8, 16 },
|
2017-08-28 07:05:31 +01:00
|
|
|
"-"
|
|
|
|
};
|
|
|
|
|
|
|
|
Text text_last_seen {
|
|
|
|
{ 11 * 8, 2 * 16, 19 * 8, 16 },
|
|
|
|
"-"
|
|
|
|
};
|
|
|
|
|
|
|
|
Text text_airline {
|
|
|
|
{ 0 * 8, 4 * 16, 30 * 8, 16 },
|
|
|
|
"-"
|
|
|
|
};
|
|
|
|
|
|
|
|
Text text_country {
|
|
|
|
{ 8 * 8, 5 * 16, 22 * 8, 16 },
|
|
|
|
"-"
|
|
|
|
};
|
|
|
|
|
|
|
|
Text text_infos {
|
|
|
|
{ 0 * 8, 6 * 16, 30 * 8, 16 },
|
|
|
|
"-"
|
|
|
|
};
|
2020-07-24 18:56:09 -05:00
|
|
|
|
|
|
|
Text text_info2 {
|
|
|
|
{0*8, 7*16, 30*8, 16},
|
|
|
|
"-"
|
|
|
|
};
|
|
|
|
|
2017-08-28 07:05:31 +01:00
|
|
|
Text text_frame_pos_even {
|
2020-08-11 11:26:54 -05:00
|
|
|
{ 0 * 8, 14 * 16, 30 * 8, 16 },
|
2017-08-28 07:05:31 +01:00
|
|
|
"-"
|
|
|
|
};
|
|
|
|
Text text_frame_pos_odd {
|
2020-08-11 11:26:54 -05:00
|
|
|
{ 0 * 8, 16 * 16, 30 * 8, 16 },
|
2017-08-28 07:05:31 +01:00
|
|
|
"-"
|
|
|
|
};
|
|
|
|
|
2021-12-01 17:23:40 -05:00
|
|
|
Button button_aircraft_details {
|
|
|
|
{ 2 * 8, 9 * 16, 12 * 8, 3 * 16 },
|
|
|
|
"A/C details"
|
|
|
|
};
|
|
|
|
|
2017-08-28 07:05:31 +01:00
|
|
|
Button button_see_map {
|
2021-12-01 17:23:40 -05:00
|
|
|
{ 16 * 8, 9 * 16, 12 * 8, 3 * 16 },
|
2017-08-28 07:05:31 +01:00
|
|
|
"See on map"
|
|
|
|
};
|
|
|
|
};
|
2021-12-01 17:23:40 -05:00
|
|
|
|
2017-08-28 07:05:31 +01:00
|
|
|
|
2017-07-14 10:02:21 +01:00
|
|
|
class ADSBRxView : public View {
|
|
|
|
public:
|
2017-08-28 07:05:31 +01:00
|
|
|
ADSBRxView(NavigationView& nav);
|
2017-07-14 10:02:21 +01:00
|
|
|
~ADSBRxView();
|
|
|
|
|
2017-08-27 22:06:11 +01:00
|
|
|
ADSBRxView(const ADSBRxView&) = delete;
|
|
|
|
ADSBRxView(ADSBRxView&&) = delete;
|
|
|
|
ADSBRxView& operator=(const ADSBRxView&) = delete;
|
|
|
|
ADSBRxView& operator=(ADSBRxView&&) = delete;
|
|
|
|
|
2017-07-14 10:02:21 +01:00
|
|
|
void focus() override;
|
|
|
|
|
2022-04-26 23:09:24 +02:00
|
|
|
std::string title() const override { return "ADS-B RX"; };
|
2017-07-14 10:02:21 +01:00
|
|
|
|
2021-10-11 10:14:16 +01:00
|
|
|
void replace_entry(AircraftRecentEntry & entry);
|
2023-02-28 19:17:57 +00:00
|
|
|
void remove_old_entries();
|
2021-10-11 10:14:16 +01:00
|
|
|
AircraftRecentEntry find_or_create_entry(uint32_t ICAO_address);
|
|
|
|
void sort_entries_by_state();
|
|
|
|
|
2017-07-14 10:02:21 +01:00
|
|
|
private:
|
2022-04-21 23:12:37 +02:00
|
|
|
rf::Frequency prevFreq = { 0 };
|
2017-11-08 12:23:06 -08:00
|
|
|
std::unique_ptr<ADSBLogger> logger { };
|
2017-07-23 12:20:32 +01:00
|
|
|
void on_frame(const ADSBFrameMessage * message);
|
2017-08-27 21:03:17 +01:00
|
|
|
void on_tick_second();
|
2023-02-28 19:17:57 +00:00
|
|
|
int updateState = { 0 };
|
|
|
|
void updateRecentEntries();
|
|
|
|
void updateDetailsAndMap(int ageStep);
|
|
|
|
|
|
|
|
#define MARKER_UPDATE_SECONDS (5)
|
|
|
|
int ticksSinceMarkerRefresh { MARKER_UPDATE_SECONDS-1 };
|
2022-04-15 08:43:44 -04:00
|
|
|
// app save settings
|
|
|
|
std::app_settings settings { };
|
|
|
|
std::app_settings::AppSettings app_settings { };
|
2017-07-14 10:02:21 +01:00
|
|
|
|
2017-07-23 12:20:32 +01:00
|
|
|
const RecentEntriesColumns columns { {
|
2021-10-17 10:03:28 +01:00
|
|
|
{ "ICAO/Call", 9 },
|
2021-11-01 22:51:06 +00:00
|
|
|
{ "Lvl", 3 },
|
|
|
|
{ "Spd", 3 },
|
|
|
|
{ "Amp", 3 },
|
|
|
|
{ "Hit", 3 },
|
2022-01-12 10:31:59 -05:00
|
|
|
{ "Age", 4 }
|
2017-07-23 12:20:32 +01:00
|
|
|
} };
|
2017-08-17 12:56:47 +01:00
|
|
|
AircraftRecentEntries recent { };
|
|
|
|
RecentEntriesView<RecentEntries<AircraftRecentEntry>> recent_entries_view { columns, recent };
|
2017-07-14 10:02:21 +01:00
|
|
|
|
2017-08-27 21:03:17 +01:00
|
|
|
SignalToken signal_token_tick_second { };
|
2017-08-28 07:05:31 +01:00
|
|
|
ADSBRxDetailsView* details_view { nullptr };
|
|
|
|
uint32_t detailed_entry_key { 0 };
|
|
|
|
bool send_updates { false };
|
|
|
|
|
|
|
|
Labels labels {
|
2017-12-08 21:46:16 +00:00
|
|
|
{ { 0 * 8, 0 * 8 }, "LNA: VGA: AMP:", Color::light_grey() }
|
2017-08-16 10:02:57 +01:00
|
|
|
};
|
2017-07-14 10:02:21 +01:00
|
|
|
|
2017-08-16 10:02:57 +01:00
|
|
|
LNAGainField field_lna {
|
|
|
|
{ 4 * 8, 0 * 16 }
|
|
|
|
};
|
|
|
|
|
|
|
|
VGAGainField field_vga {
|
|
|
|
{ 11 * 8, 0 * 16 }
|
|
|
|
};
|
|
|
|
|
2017-12-08 21:46:16 +00:00
|
|
|
RFAmpField field_rf_amp {
|
|
|
|
{ 18 * 8, 0 * 16 }
|
|
|
|
};
|
|
|
|
|
|
|
|
RSSI rssi {
|
|
|
|
{ 20 * 8, 4, 10 * 8, 8 },
|
|
|
|
};
|
|
|
|
|
2017-07-23 12:20:32 +01:00
|
|
|
MessageHandlerRegistration message_handler_frame {
|
|
|
|
Message::ID::ADSBFrame,
|
|
|
|
[this](Message* const p) {
|
|
|
|
const auto message = static_cast<const ADSBFrameMessage*>(p);
|
|
|
|
this->on_frame(message);
|
2017-07-14 10:02:21 +01:00
|
|
|
}
|
2017-07-23 12:20:32 +01:00
|
|
|
};
|
2017-07-14 10:02:21 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
} /* namespace ui */
|