Radiosonde RX now understands Meteomodem's M10 correctly

Updated binary
This commit is contained in:
furrtek
2017-10-27 18:54:50 +02:00
parent 6e7b2c751f
commit d47f292d3a
11 changed files with 157 additions and 47 deletions
+38 -7
View File
@@ -27,6 +27,7 @@
#include "ui_receiver.hpp"
#include "ui_rssi.hpp"
#include "ui_channel.hpp"
#include "ui_geomap.hpp"
#include "event_m0.hpp"
@@ -67,7 +68,16 @@ public:
private:
//std::unique_ptr<SondeLogger> logger { };
uint32_t target_frequency_ { };
uint32_t target_frequency_ { 402000000 };
int32_t altitude { 0 };
float latitude { 0 };
float longitude { 0 };
Labels labels {
{ { 3 * 8, 5 * 16 }, "Signature:", Color::light_grey() },
{ { 0 * 8, 6 * 16 }, "Visible sats:", Color::light_grey() },
//{ { 4 * 8, 7 * 16 }, "Altitude:", Color::light_grey() },
};
FrequencyField field_frequency {
{ 0 * 8, 0 * 8 },
@@ -88,23 +98,44 @@ private:
{ 21 * 8, 0, 6 * 8, 4 },
};
Text text_debug {
{ 0, 32, 240, 16 },
Text text_debug_a {
{ 0, 2 * 16, 240, 16 },
"Waiting for frame..."
};
Text text_debug_b {
{ 0, 3 * 16, 240, 16 },
"Waiting for frame..."
};
Text text_signature {
{ 13 * 8, 5 * 16, 240, 16 },
"..."
};
Text text_sats {
{ 13 * 8, 6 * 16, 240, 16 },
"..."
};
GeoPos geopos {
{ 0, 8 * 16 }
};
Button button_see_map {
{ 8 * 8, 12 * 16, 14 * 8, 3 * 16 },
"See on map"
};
MessageHandlerRegistration message_handler_packet {
Message::ID::SondePacket,
[this](Message* const p) {
const auto message = static_cast<const SondePacketMessage*>(p);
//const sonde::Packet packet { message->type, message->packet };
//this->on_packet(packet);
this->on_packet(message->packet);
const sonde::Packet packet { message->packet, message->type };
this->on_packet(packet);
}
};
//void on_packet(const sonde::Packet& packet);
void on_packet(const baseband::Packet& packet);
void on_packet(const sonde::Packet& packet);
void set_target_frequency(const uint32_t new_value);
uint32_t tuning_frequency() const;
};