From 02de07cb45cdba6c182f3858cd8d45ab270408d0 Mon Sep 17 00:00:00 2001 From: Naoki-Hiraoka Date: Sun, 20 Jun 2021 21:13:05 +0900 Subject: [PATCH] [server/ModelLoader/projectGenerator.cpp] write peridoic.rate to conf file --- server/ModelLoader/projectGenerator.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/server/ModelLoader/projectGenerator.cpp b/server/ModelLoader/projectGenerator.cpp index 91bdeda9f..5c59a65a3 100644 --- a/server/ModelLoader/projectGenerator.cpp +++ b/server/ModelLoader/projectGenerator.cpp @@ -630,6 +630,7 @@ int main (int argc, char** argv) std::fstream s(conf_file.c_str(), std::ios::out); s << "model: file://" << filenames[0] << std::endl; + s << "exec_cxt.periodic.rate: " << static_cast(1/atof(dt.c_str())+0.5) << std::endl; // rounding to specify integer rate value s << "dt: " << dt << std::endl; s << conf_file_option << std::endl; std::cerr << "Writing conf files to ....... " << conf_file << std::endl;