vehicle_local_position: use double for ref_lat and ref_lon instead of int32, fix related apps

This commit is contained in:
Anton Babushkin
2014-03-17 23:58:00 +04:00
parent 2f7303f2dd
commit c266124099
6 changed files with 12 additions and 12 deletions
@@ -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;