geo: purge globallocal_converter

This commit is contained in:
Daniel Agar 2021-03-15 16:16:19 -04:00 committed by GitHub
parent ae67c53b1e
commit 0eac534b80
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

@ -1 +1 @@
Subproject commit b3c1bd6d40952a9d467497162f91f28400ae0a3d
Subproject commit 4df005487379436dcdde10402d3cea7b78d76c19

View File

@ -79,7 +79,9 @@ bool FlightTaskOrbit::applyCommandParameters(const vehicle_command_s &command)
// commanded center coordinates
if (map_projection_initialized(&_global_local_proj_ref)) {
if (PX4_ISFINITE(command.param5) && PX4_ISFINITE(command.param6)) {
map_projection_global_project(command.param5, command.param6, &_center(0), &_center(1));
map_projection_project(&_global_local_proj_ref,
command.param5, command.param6,
&_center(0), &_center(1));
}
// commanded altitude