multiposition-reset

ivanmason/accelstepper/multiposition-reset

No description
multiposition-reset
@/multiposition-reset
MPOSI@/multiposition
RTSpulse
multiposition-reset
OUT
MPOSI
RTS
OUT@/multiposition
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_RTS>(ctx))
        return;

    auto _positions = getValue<input_MPOSI>(ctx);
    _positions.idx = 0;

    emitValue<output_OUT>(ctx, _positions);
}