mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-31 10:26:52 +08:00
geo: purge globallocal_converter
This commit is contained in:
+1
-1
Submodule src/lib/ecl updated: b3c1bd6d40...4df0054873
@@ -79,7 +79,9 @@ bool FlightTaskOrbit::applyCommandParameters(const vehicle_command_s &command)
|
|||||||
// commanded center coordinates
|
// commanded center coordinates
|
||||||
if (map_projection_initialized(&_global_local_proj_ref)) {
|
if (map_projection_initialized(&_global_local_proj_ref)) {
|
||||||
if (PX4_ISFINITE(command.param5) && PX4_ISFINITE(command.param6)) {
|
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
|
// commanded altitude
|
||||||
|
|||||||
Reference in New Issue
Block a user