Skip to content

Commit

Permalink
fix a warning
Browse files Browse the repository at this point in the history
  • Loading branch information
shaozu committed Jan 23, 2018
1 parent 50f6f05 commit 649c0ba
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions vins_estimator/src/estimator_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,17 @@ Eigen::Vector3d tmp_Bg;
Eigen::Vector3d acc_0;
Eigen::Vector3d gyr_0;
bool init_feature = 0;
bool init_imu = 1;

void predict(const sensor_msgs::ImuConstPtr &imu_msg)
{
double t = imu_msg->header.stamp.toSec();
if (init_imu)
{
latest_time = t;
init_imu = 0;
return;
}
double dt = t - latest_time;
latest_time = t;

Expand Down

0 comments on commit 649c0ba

Please sign in to comment.