Skip to content

Commit 3627e56

Browse files
committed
fix rate issue in external trigger
1 parent 27eb42d commit 3627e56

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/capture.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1121,9 +1121,7 @@ void acquisition::Capture::run_soft_trig() {
11211121

11221122
achieved_time_=ros::Time::now().toSec();
11231123

1124-
//if (!EXTERNAL_TRIGGER_ && SOFT_FRAME_RATE_CTRL_) {ros_rate.sleep();}
1125-
if (SOFT_FRAME_RATE_CTRL_) {ros_rate.sleep();}
1126-
1124+
if (!EXTERNAL_TRIGGER_ && SOFT_FRAME_RATE_CTRL_) {ros_rate.sleep();}
11271125
}
11281126
}
11291127
catch(const std::exception &e){

0 commit comments

Comments
 (0)