Skip to content

Commit

Permalink
Update guided_target.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
snktshrma authored Sep 9, 2022
1 parent 7c3fcb5 commit a52635a
Showing 1 changed file with 17 additions and 7 deletions.
24 changes: 17 additions & 7 deletions mavros_extras/src/plugins/guided_target.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/**
* @brief Guided traget plugin
* @file guided_target.cpp
* @author Randy Mackay <[email protected]> , Sanket Sharma <[email protected]>
*
* @addtogroup plugin
* @{
*/
/*
* Copyright 2022 Sanket Sharma, Randy Mackay.
*
* This file is part of the mavros package and subject to the license terms
* in the top-level LICENSE file of the mavros repository.
* https:/mavlink/mavros/tree/master/LICENSE.md
*/

#include <mavros/mavros_plugin.h>
#include <mavros/setpoint_mixin.h>
#include <eigen_conversions/eigen_msg.h>
Expand Down Expand Up @@ -50,17 +66,11 @@ class GuidedTargetPlugin : public plugin::PluginBase,


// Subscriber for global origin (aka map origin).
gp_origin_sub = spg_nh.subscribe("global_position/gp_origin", 10, &GuidedTargetPlugin::gp_origin_cb, this);




gp_origin_sub = spg_nh.subscribe("global_position/gp_origin", 10, &GuidedTargetPlugin::gp_origin_cb, this);
}

Subscriptions get_subscriptions() override
{
//return { /* Rx disabled */ };

return {
make_handler(&GuidedTargetPlugin::handle_position_target_global_int)
};
Expand Down

0 comments on commit a52635a

Please sign in to comment.