Skip to content

Commit

Permalink
add clarifying comment - it appears we ship padding bits for GPS!
Browse files Browse the repository at this point in the history
  • Loading branch information
berthubert committed Sep 18, 2022
1 parent 1850783 commit dc088a2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gps.cc
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ std::basic_string<uint8_t> getCondensedGPSMessage(std::basic_string_view<uint8_t
{
uint8_t buffer[10*24/8];

// ingests 32 bit words, per word ignores first 2 bits, and then takes 24
for(int w = 0 ; w < 10; ++w) {
setbitu(buffer, 24*w, 24, getbitu(&payload[0], 2 + w*32, 24));
}
Expand Down

0 comments on commit dc088a2

Please sign in to comment.