Skip to content

Commit

Permalink
make the HZ and tool_data_path can be used in both simulation and lab…
Browse files Browse the repository at this point in the history
…el window
  • Loading branch information
Mes0903 committed Nov 6, 2023
1 parent 386c12d commit ab5edbc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 1 addition & 3 deletions GUITool/include/WindowsHandler/Controller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ void AnimationController::transform_frame()
is_xydata = !rtheta_data;

max_frame /= HZ;
--max_frame;
--max_frame; // 0 ~ max_frame-1

_raw_bin_file.open(_raw_bin_path, std::ios::in | std::ios::binary);
if (_raw_bin_file.fail()) {
Expand Down Expand Up @@ -137,7 +137,6 @@ void AnimationController::check_auto_play()
AnimationController::AnimationController()
{
fps = 60;
HZ = 360;
frame = 0, max_frame = 0;
window_size = 750;

Expand All @@ -147,7 +146,6 @@ AnimationController::AnimationController()
auto_play = false;
replay = false;

xy_data = Eigen::MatrixXd::Zero(HZ, 2);
_raw_bin_open = false;
is_xydata = false;
}
1 change: 1 addition & 0 deletions GUITool/include/WindowsHandler/Controller.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ class AnimationController {
bool is_xydata;

std::chrono::system_clock::time_point _current_time;
std::string _tool_data_path;
std::string _raw_bin_path;
std::ifstream _raw_bin_file;
bool _raw_bin_open;
Expand Down

0 comments on commit ab5edbc

Please sign in to comment.