One or more non-transitory machine-readable media embodying program instructions that, when executed by one or more machines, cause the one or more machines to implement a method, comprising:
- determining a plurality of uncalibrated reference-level pressure estimates associated with an unstable pressure sensor, each uncalibrated reference-level pressure estimate corresponding to a respective time period of a plurality of time periods, wherein the unstable pressure sensor is an atmospheric sensor which produces measurements of pressure that drift over time;
- determining if the plurality of uncalibrated reference-level pressure estimates include an uncalibrated reference-level pressure estimate that should not be used when calibrating the unstable pressure sensor based on a determined difference between two reference pressure estimates for each time period of the plurality of time periods;
- identifying the uncalibrated reference-level pressure estimate of the plurality of uncalibrated reference-level pressure estimates that should not be used when calibrating the unstable pressure sensor;
- and
- determining a calibration value for the unstable pressure sensor using the plurality of uncalibrated reference-level pressure estimates except for the identified uncalibrated reference-level pressure estimate that should not be used when calibrating the unstable pressure sensor.