Skip to content

Commit d2e9a83

Browse files
committed
don't publish from gps callback
1 parent 25d3df7 commit d2e9a83

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

glider/config/glider-params.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ imu:
1010
gps:
1111
covariance: 2.0
1212
dgpsfm:
13-
enable: false
13+
enable: true
1414
integration_threshold: 1.0
1515
covariance: 0.03
1616
constants:

glider/ros/glider_node.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -126,10 +126,6 @@ void GliderNode::gpsCallback(const sensor_msgs::msg::NavSatFix::ConstSharedPtr m
126126
glider_->addGps(timestamp, gps);
127127

128128
current_state_ = glider_->optimize(timestamp);
129-
if (current_state_.isInitialized())
130-
{
131-
(publish_nsf_) ? publishNavSatFix(current_state_) : publishOdometry(current_state_);
132-
}
133129
}
134130

135131
void GliderNode::odomCallback(const nav_msgs::msg::Odometry::ConstSharedPtr msg)

0 commit comments

Comments
 (0)