mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-17 04:03:33 +08:00
vehicle_local_position: use double for ref_lat and ref_lon instead of int32, fix related apps
This commit is contained in:
@@ -576,13 +576,13 @@ MulticopterPositionControl::task_main()
|
||||
|
||||
was_armed = _control_mode.flag_armed;
|
||||
|
||||
update_ref();
|
||||
|
||||
if (_control_mode.flag_control_altitude_enabled ||
|
||||
_control_mode.flag_control_position_enabled ||
|
||||
_control_mode.flag_control_climb_rate_enabled ||
|
||||
_control_mode.flag_control_velocity_enabled) {
|
||||
|
||||
update_ref();
|
||||
|
||||
_pos(0) = _local_pos.x;
|
||||
_pos(1) = _local_pos.y;
|
||||
_pos(2) = _local_pos.z;
|
||||
|
||||
Reference in New Issue
Block a user