Skip to content

Commit

Permalink
DRAFT: add plane_follow.lua applet
Browse files Browse the repository at this point in the history
  • Loading branch information
timtuxworth committed Jun 30, 2024
1 parent 250f2bb commit a157494
Show file tree
Hide file tree
Showing 4 changed files with 447 additions and 7 deletions.
3 changes: 2 additions & 1 deletion ArduPlane/GCS_Mavlink.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -845,7 +845,8 @@ MAV_RESULT GCS_MAVLINK_Plane::handle_command_int_do_reposition(const mavlink_com
if (((int32_t)packet.param2 & MAV_DO_REPOSITION_FLAGS_CHANGE_MODE) ||
(plane.control_mode == &plane.mode_guided)) {
plane.set_mode(plane.mode_guided, ModeReason::GCS_COMMAND);

plane.guided_state.target_heading_type = GUIDED_HEADING_NONE;

// add home alt if needed
if (requested_position.relative_alt) {
requested_position.alt += plane.home.alt;
Expand Down
Loading

0 comments on commit a157494

Please sign in to comment.