__EXPORTintmap_projection_global_init(doublelat_0,doublelon_0,uint64_ttimestamp)//lat_0, lon_0 are expected to be in correct format: -> 47.1234567 and not 471234567
__EXPORTintmap_projection_init_timestamped(structmap_projection_reference_s*ref,doublelat_0,doublelon_0,uint64_ttimestamp)//lat_0, lon_0 are expected to be in correct format: -> 47.1234567 and not 471234567
uint64_ttimestamp)//lat_0, lon_0 are expected to be in correct format: -> 47.1234567 and not 471234567
{
ref->lat_rad=lat_0*M_DEG_TO_RAD;
@ -106,7 +109,8 @@ __EXPORT int map_projection_init_timestamped(struct map_projection_reference_s *
@@ -106,7 +109,8 @@ __EXPORT int map_projection_init_timestamped(struct map_projection_reference_s *
return0;
}
__EXPORTintmap_projection_init(structmap_projection_reference_s*ref,doublelat_0,doublelon_0)//lat_0, lon_0 are expected to be in correct format: -> 47.1234567 and not 471234567
// This function returns the distance to the nearest point on the track line. Distance is positive if current
// position is right of the track and negative if left of the track as seen from a point on the track line
@ -397,7 +412,8 @@ __EXPORT int get_distance_to_line(struct crosstrack_error_s *crosstrack_error, d
@@ -397,7 +412,8 @@ __EXPORT int get_distance_to_line(struct crosstrack_error_s *crosstrack_error, d
// This function returns the distance to the nearest point on the track arc. Distance is positive if current
@ -436,10 +452,12 @@ __EXPORT int get_distance_to_arc(struct crosstrack_error_s *crosstrack_error, do
@@ -436,10 +452,12 @@ __EXPORT int get_distance_to_arc(struct crosstrack_error_s *crosstrack_error, do
// If in the sector then calculate distance and bearing to closest point
if(in_sector){
@ -479,6 +497,7 @@ __EXPORT int get_distance_to_arc(struct crosstrack_error_s *crosstrack_error, do
@@ -479,6 +497,7 @@ __EXPORT int get_distance_to_arc(struct crosstrack_error_s *crosstrack_error, do