Skip to content

Commit

Permalink
add yaw to CMD_DO_SET_HOME
Browse files Browse the repository at this point in the history
  • Loading branch information
dayjaby authored and vooon committed May 4, 2020
1 parent cf4c6ed commit 87bf485
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion mavros/src/plugins/command.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ class CommandPlugin : public plugin::PluginBase {
return send_command_long_and_wait(false,
enum_value(MAV_CMD::DO_SET_HOME), 1,
(req.current_gps) ? 1.0 : 0.0,
0, 0, 0, req.latitude, req.longitude, req.altitude,
0, 0, req.yaw, req.latitude, req.longitude, req.altitude,
res.success, res.result);
}

Expand Down
1 change: 1 addition & 0 deletions mavros_msgs/srv/CommandHome.srv
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# request set new home position

bool current_gps
float32 yaw
float32 latitude
float32 longitude
float32 altitude
Expand Down

0 comments on commit 87bf485

Please sign in to comment.