Firmware/src/gps_std.c
static float nmea_latof(uint8_t *str)
{
	if (str[0] == 0)
	{
		return 0.0f;
	}
	float degrees = ((str[0] - '0') * 10.0f) + (str[1] - '0') * 1.0f;
	float minutes = nmea_atof(str + 2);
	return nmea_deg_min_to_rad(degrees, minutes);
}
// Convert latitude string (DD.MMMM) into radians.
Convert latitude string (DD.MMMM) into radians.
Convert latitude string ( DD . MMMM ) into radians .
static float nmea_latof(uint8_t *str)
{
	if (str[0] == 0)
	{
		return 0.0f;
	}
	float degrees = ((str[0] - '0') * 10.0f) + (str[1] - '0') * 1.0f;
	float minutes = nmea_atof(str + 2);
	return nmea_deg_min_to_rad(degrees, minutes);
}
static float nmea_latof ( uint8_t * str ) { if ( str [ 0 ] == 0 ) { return 0.0f ; } float degrees = ( ( str [ 0 ] - ' ' ) * 10.0f ) + ( str [ 1 ] - ' ' ) * 1.0f ; float minutes = nmea_atof ( str + 2 ) ; return nmea_deg_min_to_rad ( degrees , minutes ) ; }
Convert latitude string (DD.MMMM) into radians.
Convert latitude string ( DD . MMMM ) into radians .