| CPC G01C 17/38 (2013.01) [G01C 5/06 (2013.01); G01C 21/10 (2013.01); G01C 21/165 (2013.01); G01C 25/00 (2013.01); G01C 25/005 (2013.01); G01S 19/14 (2013.01); G01S 5/012 (2020.05); G01S 5/017 (2020.05); G01S 5/02 (2013.01); G01S 19/40 (2013.01)] | 14 Claims |

|
1. A method, comprising:
determining a first estimated altitude of a mobile device without using any measurement from a pressure sensor of the mobile device;
generating a second estimated altitude of the mobile device using a first measurement from the pressure sensor;
estimating a pressure sensor error of the pressure sensor using the first estimated altitude and the second estimated altitude; and
determining a calibration value for adjusting one or more second measurements from the pressure sensor using the pressure sensor error;
wherein the first estimated altitude is determined by:
estimating a non-vertical velocity of the mobile device;
determining whether the estimated velocity exceeds a threshold amount of velocity;
upon determining that the estimated velocity exceeds the threshold amount of velocity, determining that the mobile device is outdoors; and
after determining that the mobile device is outdoors, determining a ground-level altitude, wherein the first estimated altitude is determined using the ground-level altitude or the ground-level altitude adjusted by a predefined value.
|