Skip to content

Commit a129d49

Browse files
committed
extras: fix lint errors
1 parent 80584d7 commit a129d49

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

mavros_extras/src/plugins/odom.cpp

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,12 @@ class OdometryPlugin : public plugin::Plugin
9999
rclcpp::Publisher<nav_msgs::msg::Odometry>::SharedPtr odom_pub;
100100
rclcpp::Subscription<nav_msgs::msg::Odometry>::SharedPtr odom_sub;
101101

102-
std::string fcu_odom_parent_id_des; //!< desired orientation of the fcu odometry message's parent frame
103-
std::string fcu_odom_child_id_des; //!< desired orientation of the fcu odometry message's child frame
104-
std::string fcu_map_id_des; //!< desired orientation of the fcu map frame
102+
//!< desired orientation of the fcu odometry message's parent frame
103+
std::string fcu_odom_parent_id_des;
104+
//!< desired orientation of the fcu odometry message's child frame
105+
std::string fcu_odom_child_id_des;
106+
//!< desired orientation of the fcu map frame
107+
std::string fcu_map_id_des;
105108

106109
/**
107110
* @brief Lookup static transform with error handling

mavros_extras/src/plugins/open_drone_id.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,15 +170,16 @@ class OpenDroneIDPlugin : public plugin::Plugin
170170
return 0;
171171
}
172172

173-
//! A variant of mavlink::set_string_z, but for uint8_t, because of broken convention on ODID messages
173+
/** A variant of mavlink::set_string_z, but for uint8_t,
174+
* because of broken convention on ODID messages
175+
*/
174176
template<size_t _N>
175177
void set_string_z(std::array<uint8_t, _N> & a, const std::string & s)
176178
{
177179
uint8_t * datap = a.data();
178180
strncpy(static_cast<char *>(static_cast<void *>(datap)), s.c_str(), a.size() - 1);
179181
a[a.size() - 1] = '\0';
180182
}
181-
182183
};
183184
} // namespace extra_plugins
184185
} // namespace mavros

0 commit comments

Comments
 (0)