Home
last modified time | relevance | path

Searched refs:g_geocentricLatitude (Results 1 - 1 of 1) sorted by relevance

/base/sensors/sensor/frameworks/native/src/
H A Dgeomagnetic_field.cpp104 float g_geocentricLatitude; member
122 InitLegendreTable(GAUSSIAN_COEFFICIENT_DIMENSION - 1, static_cast<float>(M_PI / 2.0 - g_geocentricLatitude)); in GeomagneticField()
124 double latDiffRad = ToRadians(gcLatitude) - g_geocentricLatitude; in GeomagneticField()
149 float inverseCosLatitude = IsEqual(static_cast<float>(cos(g_geocentricLatitude)), 0.0f) ? in CalculateGeomagneticComponent()
150 std::numeric_limits<float>::max() : DERIVATIVE_FACTOR / static_cast<float>(cos(g_geocentricLatitude)); in CalculateGeomagneticComponent()
216 g_geocentricLatitude = static_cast<float>(atan(tlat * (latRad * altitudeKm + b2) in CalibrateGeocentricCoordinates()

Completed in 2 milliseconds