runspeed

ivanmason/accelstepper/runspeed

Poll the motor and step it if a step is due, implementing a constant speed as set by the most recent call to setSpeed(). You must call this as frequently as possible, but at least once per step interval,
runspeed
@/runspeed
Poll the motor and step it if a step is due, implementing a constant speed as set by the most recent call to setSpeed(). You must call this as frequently as possible, but at least once per step interval,
DEV@/accelstepper-device
UPDpulse
runspeed
RUNING
DONE
DEV
UPD
DONEpulse
RUNINGboolean
true if the motor was stepped.
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);
    bool runing = stepper->runSpeed();

    emitValue<output_RUNING>(ctx, runing ? 1 : 0);
    
    emitValue<output_DONE>(ctx, 1);
}