|
Motion Master 6.0.0-alpha.86
Next-generation motion control software
|
Startup and shutdown of the auto-tuning child process. More...
#include <filesystem>#include <optional>#include "auto_tuning/client.h"#include "auto_tuning/process.h"#include "auto_tuning/status.h"#include "config.h"Go to the source code of this file.
Classes | |
| struct | mm::AutoTuningStartup |
| The startup outcome, as the HTTP layer needs it. More... | |
Namespaces | |
| namespace | mm |
Functions | |
| auto_tuning::ProcessOptions | mm::buildAutoTuningOptions (const AutoTuningConfig &config, const std::filesystem::path &logFile) |
| Resolves what to start, and where its output goes. | |
| AutoTuningStartup | mm::startAutoTuning (auto_tuning::Process &process, bool enabled) |
| Starts the child unless the configuration or the filesystem says otherwise, and logs it. | |
| void | mm::stopAutoTuning (auto_tuning::Process &process) |
| Stops the child and logs how it ended. | |
Startup and shutdown of the auto-tuning child process.
The process itself stays a local of main — it is neither copyable nor movable, and its lifetime is the process lifetime. These functions carry the policy around it: where the executable is, what a failed start means, and what a stop is worth logging.
Not having auto-tuning is a supported state, so nothing here is fatal.