Motion Master 6.0.0-alpha.86
Next-generation motion control software
Loading...
Searching...
No Matches
cia402_drive.cc File Reference
#include "node/cia402_drive.h"
#include <chrono>
#include <format>
#include <nlohmann/json.hpp>
#include <optional>
#include <string>
#include <string_view>
#include <thread>
Include dependency graph for cia402_drive.cc:

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< Cia402Commandmm::node::parseCia402Command (std::string_view token)
 Parses a command token ("enable" / "disable" / "quickStop" / "faultReset").
 
std::optional< Cia402TargetKindmm::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.