Describe the solution you'd like
As-is, we overwrite fields in the GPS_DATA struct every time we receive a new message that contains that field. However, some NMEA messages have status fields that tell us whether or not the data from that module should be factored in.
Depending on these status fields, we should discard the data certain messages that come in, and then save just the status flag in the GPS_DATA struct. This ensures that we're never broadcasting an invalid coordinate after our first fix--we'll always just have the most recent valid coordinate (if applicable) in the SENSOR_DATA struct.
Points of Contact
FC Rev 2 Project Lead: @NArmistead
GPS SME: @ETSells
Describe the solution you'd like
As-is, we overwrite fields in the GPS_DATA struct every time we receive a new message that contains that field. However, some NMEA messages have status fields that tell us whether or not the data from that module should be factored in.
Depending on these status fields, we should discard the data certain messages that come in, and then save just the status flag in the GPS_DATA struct. This ensures that we're never broadcasting an invalid coordinate after our first fix--we'll always just have the most recent valid coordinate (if applicable) in the SENSOR_DATA struct.
Points of Contact
FC Rev 2 Project Lead: @NArmistead
GPS SME: @ETSells