Skip to content

Commit 427d697

Browse files
schashnivooon
authored andcommitted
Initialize last_pos_time with RCL_ROS_TIME
1 parent aa534f1 commit 427d697

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mavros_extras/src/plugins/gps_input.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ class GpsInputPlugin : public plugin::Plugin
6565
rclcpp::Subscription<mavros_msgs::msg::GPSINPUT>::SharedPtr gps_input_sub;
6666

6767
std::chrono::nanoseconds rate_period;
68-
rclcpp::Time last_pos_time;
68+
rclcpp::Time last_pos_time{0, 0, RCL_ROS_TIME};
6969

7070
/* -*- callbacks -*- */
7171

0 commit comments

Comments
 (0)