mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-05-06 08:45:01 -04:00
Remove irrelevant comments.
This commit is contained in:
parent
cb5f563b92
commit
8fd8815e95
2 changed files with 0 additions and 5 deletions
|
@ -185,7 +185,6 @@ void AISRecentEntry::update(const ais::Packet& packet) {
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 4:
|
case 4:
|
||||||
// packet.datetime(38)
|
|
||||||
last_position.timestamp = packet.received_at();
|
last_position.timestamp = packet.received_at();
|
||||||
last_position.latitude = packet.latitude(107);
|
last_position.latitude = packet.latitude(107);
|
||||||
last_position.longitude = packet.longitude(79);
|
last_position.longitude = packet.longitude(79);
|
||||||
|
|
|
@ -176,14 +176,10 @@ DateTime Packet::datetime(const size_t start_bit) const {
|
||||||
}
|
}
|
||||||
|
|
||||||
Latitude Packet::latitude(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);
|
return field_.read(start_bit, 27);
|
||||||
}
|
}
|
||||||
|
|
||||||
Longitude Packet::longitude(const size_t start_bit) const {
|
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);
|
return field_.read(start_bit, 28);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue