diff options
author | Anton Babushkin <anton.babushkin@me.com> | 2013-12-30 08:55:46 +0400 |
---|---|---|
committer | Anton Babushkin <anton.babushkin@me.com> | 2013-12-30 08:55:46 +0400 |
commit | 174fd21c6f57f5e12d17d6165777555931c4d562 (patch) | |
tree | 6de83d0da93744d9b3f8998e1f652c2a2ecfb104 /src/modules | |
parent | a71b04775c435f53489e8a62c421131280ca093b (diff) | |
download | px4-firmware-174fd21c6f57f5e12d17d6165777555931c4d562.tar.gz px4-firmware-174fd21c6f57f5e12d17d6165777555931c4d562.tar.bz2 px4-firmware-174fd21c6f57f5e12d17d6165777555931c4d562.zip |
Merge fix
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/fw_pos_control_l1/fw_pos_control_l1_main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/fw_pos_control_l1/fw_pos_control_l1_main.cpp b/src/modules/fw_pos_control_l1/fw_pos_control_l1_main.cpp index 5699fa1bb..944ffe619 100644 --- a/src/modules/fw_pos_control_l1/fw_pos_control_l1_main.cpp +++ b/src/modules/fw_pos_control_l1/fw_pos_control_l1_main.cpp @@ -833,7 +833,7 @@ FixedwingPositionControl::control_position(const math::Vector<2> ¤t_positi if (!land_noreturn_horizontal) {//set target_bearing in first occurrence if (mission_item_triplet.previous_valid) { - target_bearing = get_bearing_to_next_waypoint(prev_wp.getX(), prev_wp.getY(), curr_wp.getX(), curr_wp.getY()); + target_bearing = get_bearing_to_next_waypoint(prev_wp(0), prev_wp(1), curr_wp(0), curr_wp(1)); } else { target_bearing = _att.yaw; } |