Exemplo n.º 1
0
__EXPORT int map_projection_global_init(double lat_0, double lon_0, uint64_t timestamp) //lat_0, lon_0 are expected to be in correct format: -> 47.1234567 and not 471234567
{
	if (strcmp("commander", getprogname()) == 0) {
		return map_projection_init_timestamped(&mp_ref, lat_0, lon_0, timestamp);
	} else {
		return -1;
	}
}
Exemplo n.º 2
0
__EXPORT int map_projection_init(struct map_projection_reference_s *ref, double lat_0,
				 double lon_0) //lat_0, lon_0 are expected to be in correct format: -> 47.1234567 and not 471234567
{
	return map_projection_init_timestamped(ref, lat_0, lon_0, hrt_absolute_time());
}
Exemplo n.º 3
0
__EXPORT int map_projection_global_init(double lat_0, double lon_0,
					uint64_t timestamp) //lat_0, lon_0 are expected to be in correct format: -> 47.1234567 and not 471234567
{
	return map_projection_init_timestamped(&mp_ref, lat_0, lon_0, timestamp);
}