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