Skip to content

Commit

Permalink
prepare release
Browse files Browse the repository at this point in the history
  • Loading branch information
facontidavide committed Feb 20, 2024
1 parent 336a4e4 commit 1b0d1aa
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 18 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,17 @@
Changelog for package plotjuggler
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Forthcoming
-----------
* embed zstd 1.5.5
* updated lz4 1.9.4
* PlotJuggler with Fast-CDR-2.x.x (`#932 <https://github.com/facontidavide/PlotJuggler/issues/932>`_)
* fix ROS2 parser bug
* fix `#935 <https://github.com/facontidavide/PlotJuggler/issues/935>`_ and `#934 <https://github.com/facontidavide/PlotJuggler/issues/934>`_
* Add Sample Count to transforms
* fix compilation in Windows
* Contributors: Davide Faconti, Manuel Valch

3.9.0 (2024-02-04)
------------------
* new status bar with messages from the internet
Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cmake_minimum_required(VERSION 3.10.2)

PROJECT(plotjuggler LANGUAGES C CXX VERSION 3.9.0)
PROJECT(plotjuggler LANGUAGES C CXX VERSION 3.9.1)

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
Expand Down
22 changes: 5 additions & 17 deletions plotjuggler_app/transforms/samples_count.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,22 +51,10 @@ std::optional<PJ::PlotData::Point> SamplesCountFilter::calculateNextPoint(size_t
if(dataSource()->size() == 0) {
return std::nullopt;
}
const double delta = 0.001 * double(ui->spinBoxMilliseconds->value());
const auto& point = dataSource()->at(index);
if(index == 0) {
interval_end_ = point.x + delta;
count_ = 0;
}
count_++;

if(point.x > interval_end_ || index == (dataSource()->size() - 1))
{
auto out = PJ::PlotData::Point{ interval_end_, double(count_) };
while(point.x > interval_end_) {
interval_end_ += delta;
}
count_ = 0;
return out;
}
return std::nullopt;
const auto& point = dataSource()->at(index);
const double delta = 0.001 * double(ui->spinBoxMilliseconds->value());
const double min_time = point.x - delta;
auto min_index = dataSource()->getIndexFromX(min_time);
return PJ::PlotData::Point{ point.x, double(index - min_index) };
}

0 comments on commit 1b0d1aa

Please sign in to comment.