Version 2 telemetry frames from the new radio modems

C++ · C++ · intermediate · modification

The new radio modems pad every datagram to a multiple of 16 bytes, so for their frames the payload no longer runs to the end of the datagram. Their firmware sends version 2 frames, whose header carries the payload length. `packet.hpp` documents the version 2 layout next to version 1. `packet.cpp` switches on the version byte to pick the header size and the payload length (version 1 keeps using the rest of the datagram, version 2 reads its length field and checks the padding) and then fills the `Packet` as before. `tests/packet_test.cpp` adds version 2 cases next to the existing version 1 ones.

Ground-station receiver for a drone fleet in C++20, standard library only, built with CMake (build files unchanged) by Apple clang 17 locally and GCC 13 in CI with `-Wall -Wextra -Wconversion` treated as errors. Single-threaded: one receive thread runs `Receiver::poll` (unchanged, not in the diff), which calls `recv` on the UDP socket into a member `std::array<std::byte, 512>` buffer reused for every datagram and passes `std::span(buffer.data(), n)` for the `n` bytes received; the modems' MTU is 256 bytes, so no datagram is truncated. An accepted `Packet` goes to the dispatcher, which relays telemetry payloads (`Packet::bytes()`) to the operators' dashboard and the flight log. Tests use the repo's existing helper `tests/check.hpp` (unchanged): `TEST(name)` registers a test, `CHECK(expr)` and `CHECK_EQ(a, b)` record a failure without stopping, and `tests/check_main.cpp` runs every registered test and exits non-zero on any failure.

Requirements

Files touched

Review this PR

C++ practice