mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2026-09-12 17:49:31 +00:00
AIS Packet refactor, consolidating duplicate packet length code.
This commit is contained in:
@@ -95,10 +95,17 @@ public:
|
||||
Latitude latitude(const size_t start_bit) const;
|
||||
Longitude longitude(const size_t start_bit) const;
|
||||
|
||||
bool crc_ok() const;
|
||||
|
||||
private:
|
||||
const ::Packet packet_;
|
||||
const rtc::RTC received_at_;
|
||||
const FieldReader field_;
|
||||
|
||||
const size_t fcs_length = 16;
|
||||
|
||||
size_t data_and_fcs_length() const;
|
||||
size_t data_length() const;
|
||||
};
|
||||
|
||||
} /* namespace ais */
|
||||
|
||||
Reference in New Issue
Block a user