Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FormerLurker/ArcWelderLib.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFormerLurker <hochgebe@gmail.com>2020-05-17 01:17:15 +0300
committerFormerLurker <hochgebe@gmail.com>2020-05-17 01:17:15 +0300
commitd201085f565ed498d218ece1783a5c76bcfdb25d (patch)
treeaaa7304ecb0c89c0fdb5e4930e7db7a5897d907e /GcodeProcessorLib
parentf98db3c33c4199eb966c45c9ab2e914b3a689ae1 (diff)
Add max_radius_mm and switch to polar coordinates for arc generation.
Diffstat (limited to 'GcodeProcessorLib')
-rw-r--r--GcodeProcessorLib/array_list.h2
-rw-r--r--GcodeProcessorLib/logger.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/GcodeProcessorLib/array_list.h b/GcodeProcessorLib/array_list.h
index a5ce323..94862f3 100644
--- a/GcodeProcessorLib/array_list.h
+++ b/GcodeProcessorLib/array_list.h
@@ -125,7 +125,7 @@ public:
return items_[(front_index_ + index + max_size_) % max_size_];
}
- int count()
+ int count() const
{
return count_;
diff --git a/GcodeProcessorLib/logger.cpp b/GcodeProcessorLib/logger.cpp
index 4af28d6..0118e52 100644
--- a/GcodeProcessorLib/logger.cpp
+++ b/GcodeProcessorLib/logger.cpp
@@ -24,7 +24,7 @@
logger::logger(std::vector<std::string> names, std::vector<int> levels) {
// set to true by default, but can be changed by inheritance to support mandatory innitialization (for python or other integrations)
loggers_created_ = true;
- num_loggers_ = names.size();
+ num_loggers_ = static_cast<int>(names.size());
logger_names_ = new std::string[static_cast<int>(num_loggers_)];
logger_levels_ = new int[static_cast<int>(num_loggers_)];
// this is slow due to the vectors, but it is trivial. Could switch to an iterator