MCPcopy Create free account
hub / github.com/facebook/time / lockTimeMsToExt

Function lockTimeMsToExt

rtcm/msm_encode.go:368–393  ·  view source on GitHub ↗

lockTimeMsToExt converts lock time in ms to the 10-bit extended indicator.

(ms uint16)

Source from the content-addressed store, hash-verified

366 } else {
367 w.WriteBits(0, 1)
368 }
369 }
370
371 // Satellite data: rough range integer ms (8 bits per sat)
372 for i := range numSat {
373 if satData[i].roughUnits == invalidRoughUnits {
374 voidedRoughRanges.Add(1)
375 }
376 w.WriteBits(satData[i].roughUnits>>10, 8)
377 }
378
379 // Satellite data: extended info (4 bits per sat)
380 for range numSat {
381 w.WriteBits(0, 4)
382 }
383
384 // Satellite data: rough range modulo (10 bits per sat)
385 for i := range numSat {
386 w.WriteBits(satData[i].roughUnits&1023, 10)
387 }
388
389 // Satellite data: rough phase range rate (14 bits signed per sat, m/s)
390 for i := range numSat {
391 if !satData[i].roughRateValid {
392 voidedRoughRates.Add(1)
393 w.WriteSignedBits(invalidRoughRate, 14)
394 continue
395 }
396 w.WriteSignedBits(int32(satData[i].roughRateMps), 14)

Callers 1

EncodeMSM7Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…