fn run_gnss(rng: Rng<'static>) -> SpawnToken<impl Sized>
Expand description

Exercise: Parse GNSS data from NMEA 0183 sentences

This task parses NMEA sentences simulated from a GNSS data log file The task picks random sentences from a log file and looks out for GNS and GSV messages

Print the ID’s of satellites used for fix in GSA sentence and the satellites in view from the GSV sentence

nmea crate docs: https://docs.rs/nmea

  1. Add the nmea crate to the Cargo.toml of the onboard-computer
  1. Use the nmea crate to parse the sentences
  2. Print the parsing result (for debugging purposes) using esp_println::println!()
  3. Use a match on the result and handle the cases:
  • GSA - print “The IDs of satellites used for fix: {x:?}” field
  • GSV - print “Satellites in View: {x}” field
  1. Repeat this processes every 2 seconds.