Remove irrelevant comments.

This commit is contained in:
Jared Boone 2016-01-15 16:00:21 -08:00
parent cb5f563b92
commit 8fd8815e95
2 changed files with 0 additions and 5 deletions

View File

@ -185,7 +185,6 @@ void AISRecentEntry::update(const ais::Packet& packet) {
break;
case 4:
// packet.datetime(38)
last_position.timestamp = packet.received_at();
last_position.latitude = packet.latitude(107);
last_position.longitude = packet.longitude(79);

View File

@ -176,14 +176,10 @@ DateTime Packet::datetime(const size_t start_bit) const {
}
Latitude Packet::latitude(const size_t start_bit) const {
// Shifting and dividing is to sign-extend the source field.
// TODO: There's probably a more elegant way to do it.
return field_.read(start_bit, 27);
}
Longitude Packet::longitude(const size_t start_bit) const {
// Shifting and dividing is to sign-extend the source field.
// TODO: There's probably a more elegant way to do it.
return field_.read(start_bit, 28);
}