|
Motion Master 6.0.0-alpha.86
Next-generation motion control software
|
#include "node/cia402_drive.h"#include <chrono>#include <format>#include <nlohmann/json.hpp>#include <optional>#include <string>#include <string_view>#include <thread>Namespaces | |
| namespace | mm |
| namespace | mm::node |
Functions | |
| void | mm::node::to_json (nlohmann::json &j, const Cia402Status &s) |
Serialises a Cia402Status. Emits state/modeName as human-readable strings alongside the numeric statusword, controlword, and modeOfOperation. | |
| std::optional< Cia402Command > | mm::node::parseCia402Command (std::string_view token) |
| Parses a command token ("enable" / "disable" / "quickStop" / "faultReset"). | |
| std::optional< Cia402TargetKind > | mm::node::parseCia402TargetKind (std::string_view token) |
| Parses a target-kind token ("position" / "velocity" / "torque"). | |
| std::expected< Cia402Drive, std::string > | mm::node::createCia402Drive (Device &device) |
Validates that device implements the CiA402 profile, then binds a view to it. | |