Motion Master 6.0.0-alpha.86
Next-generation motion control software
Loading...
Searching...
No Matches
example_cyclic_task.h
Go to the documentation of this file.
1#pragma once
2
3#include <cstdint>
4
5#include "core/cyclic_task.h"
9
10namespace mm::example {
11
56 public:
89
92 ExampleCyclicTask(mm::node::DeviceManager& deviceManager, Config config);
93
95 void execute(const mm::core::CycleContext& ctx) noexcept override;
96
97 private:
98 mm::node::DeviceManager& deviceManager_;
99 Config config_;
100};
101
102} // namespace mm::example
Interface for work executed once per game loop cycle.
Definition cyclic_task.h:44
Copy-me starter for a Tier 3 extension: your own code inside the real-time loop.
Definition example_cyclic_task.h:55
void execute(const mm::core::CycleContext &ctx) noexcept override
Runs one cycle. Non-blocking, non-allocating, lock-free.
Definition example_cyclic_task.cc:69
Owns the fieldbus driver and node collection, and drives PDO exchange.
Definition device_manager.h:287
Example application namespace — the starting point for a C++ HTTP-endpoint plug-in.
Definition example_cyclic_task.cc:9
constexpr ObjectAddress< int32_t > kDriveTemperatureMeasuredTemperature
Drive temperature / Measured temperature — ro, m°C.
Definition somanet_drive_objects.h:472
Per-cycle timing context passed to every CyclicTask::execute().
Definition cyclic_task.h:30
Everything the task needs to know, so nothing is hard-coded in execute.
Definition example_cyclic_task.h:58
int32_t temperatureLimit
Definition example_cyclic_task.h:82
int32_t velocity
Definition example_cyclic_task.h:87
uint16_t slavePosition
Definition example_cyclic_task.h:61
mm::node::ObjectAddress< int32_t > temperature
Definition example_cyclic_task.h:73
The address of one object-dictionary entry, carrying the type that entry holds.
Definition device_parameter.h:63