Skip to content

Commit

Permalink
udp port for each model instance from options file
Browse files Browse the repository at this point in the history
  • Loading branch information
korotkoves authored and TSC21 committed May 30, 2018
1 parent 376258d commit 371e7c3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/gazebo_mavlink_interface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,7 @@ void GazeboMavlinkInterface::Load(physics::ModelPtr _model, sdf::ElementPtr _sdf
if (_sdf->HasElement("mavlink_udp_port")) {
mavlink_udp_port_ = _sdf->GetElement("mavlink_udp_port")->Get<int>();
}
model_param(world_->GetName(), model_->GetName(), "mavlink_udp_port", mavlink_udp_port_);

qgc_addr_ = htonl(INADDR_ANY);
if (_sdf->HasElement("qgc_addr")) {
Expand Down

0 comments on commit 371e7c3

Please sign in to comment.