Add a stepper to the set of managed steppers There is an upper limit of MULTISTEPPER_MAX_STEPPERS = 10 to the number of steppers that can be managed
multistepper-addstepper
@/multistepper-addstepper
Add a stepper to the set of managed steppers There is an upper limit of MULTISTEPPER_MAX_STEPPERS = 10 to the number of steppers that can be managed
UPDpulse
MDEV@/multistepper-device
DEV@/accelstepper-device (variadic)
Reference to a stepper to add to the managed list
MDEV'@/multistepper-device
DONEpulse
To use the node in your project you should have the ivanmason/accelstepper library installed. Use the “File → Add Library” menu item in XOD IDE if you don’t have it yet. See Using libraries for more info.
C++ implementation
struct State {
};
{{ GENERATED_CODE }}
void evaluate(Context ctx) {
if (!isInputDirty<input_UPD>(ctx))
return;
auto stepper = getValue<input_DEV>(ctx);
auto multistepper = getValue<input_MDEV>(ctx);
multistepper->addStepper( *stepper );
emitValue<output_MDEVU0027>(ctx, multistepper);
emitValue<output_DONE>(ctx, 1);
}