Skip to content

Commit

Permalink
Merge branch 'bugfix/tools_jiter_app' into 'main'
Browse files Browse the repository at this point in the history
fix jitter and hz app in tools for all ports

See merge request syntron/support/csr/ifm3d/ifm3d!326
  • Loading branch information
inbangsa committed Aug 28, 2023
2 parents c183682 + 31a043b commit 40f29c1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions modules/tools/src/libifm3d_tools/fg/hz_app.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ ifm3d::HzApp::Run()

std::vector<double> stats;

this->fg_->Start({ifm3d::buffer_id::CONFIDENCE_IMAGE});
this->fg_->Start({});
for (int i = 0; i < nruns; i++)
{
auto start = std::chrono::steady_clock::now();
Expand All @@ -94,7 +94,7 @@ ifm3d::HzApp::Run()
std::cerr << "Timeout waiting for camera!" << std::endl;
return -1;
}
future.get()->GetBuffer(ifm3d::buffer_id::CONFIDENCE_IMAGE);
future.get()->TimeStamps();
}
auto stop = std::chrono::steady_clock::now();
auto diff = stop - start;
Expand Down
4 changes: 2 additions & 2 deletions modules/tools/src/libifm3d_tools/fg/jitter_app.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ capture_frames(ifm3d::FrameGrabber::Ptr fg, std::vector<float>& results)
std::cerr << "Timeout waiting for image acquisition!" << std::endl;
return;
}
future.get()->GetBuffer(ifm3d::buffer_id::CONFIDENCE_IMAGE);
future.get()->TimeStamps();
auto t2 = Clock_t::now();

std::chrono::duration<float, std::milli> fp_ms = t2 - t1;
Expand Down Expand Up @@ -191,7 +191,7 @@ ifm3d::JitterApp::Run()
std::vector<float> bb_results(nframes, 0.);
std::cout << "Capturing frame data..." << std::endl;

this->fg_->Start({ifm3d::buffer_id::CONFIDENCE_IMAGE});
this->fg_->Start({});
capture_frames(this->fg_, bb_results);
float bb_median = median(bb_results);
float bb_mean, bb_stdev;
Expand Down

0 comments on commit 40f29c1

Please sign in to comment.