AIS Packet refactor, consolidating duplicate packet length code.

This commit is contained in:
Jared Boone
2015-12-08 11:14:00 -08:00
parent 7cded79b59
commit af74daf092
2 changed files with 31 additions and 30 deletions
+7
View File
@@ -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 */