Closed TechAUmNu closed 8 years ago
This has been changed to a sensor can be in several states of validity. Which allows for a way to show uncertainty that data is correct. It also allows the values to be directly displayed on the diagnostics leds straight from the database.
There needs to be a table which with boolean values for if a sensor is giving valid data or not.
Each sensor process will check its data to make sure it is valid over a certain time period. If not then it sets its corresponding valid boolean to false.
This is especially needed for the gps in the case that it goes indoors or under a bridge and stops receiving data. If a navigation algorithm was running it needs to know that the gps is no longer giving it information so needs to use other sensors.