From 8fd8815e95cb1c518d2d0593e592cda4f1595b37 Mon Sep 17 00:00:00 2001 From: Jared Boone Date: Fri, 15 Jan 2016 16:00:21 -0800 Subject: [PATCH] Remove irrelevant comments. --- firmware/application/ais_app.cpp | 1 - firmware/common/ais_packet.cpp | 4 ---- 2 files changed, 5 deletions(-) diff --git a/firmware/application/ais_app.cpp b/firmware/application/ais_app.cpp index 2c5d817d..cf2669dd 100644 --- a/firmware/application/ais_app.cpp +++ b/firmware/application/ais_app.cpp @@ -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); diff --git a/firmware/common/ais_packet.cpp b/firmware/common/ais_packet.cpp index dcd7cddd..53159ff2 100644 --- a/firmware/common/ais_packet.cpp +++ b/firmware/common/ais_packet.cpp @@ -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); }