Hello,
yes, but didnt you pass the steppers to MultiStepper::addStepper? Surely you
know how many there are and what their pointers are?
Cheers.
On Monday, 5 June 2017 5:53:37 PM AEST Donovan Buck wrote:
> Follow up question...
>
> Could I interest you in a multiStepper.getSteppers method?
>
> Here's my use case... I am working on a new version of the stepper motor
> library for configurableFirmata (we are going to be using accelStepper in
> that). Since firmata
> <
https://github.com/firmata/arduino/blob/master/readme.md> is just a
> communications protocol I don't want to include any state management there.
> We could certainly put the burden of tracking which steppers are members of
> a multiStepper group onto the host server but then anytime we wanted to do
> something with each member (i.e. get positions) we would be generating a
> lot of messages between the host server and the arduino.
>
> A getSteppers method would allow me to easily call accelStepper methods on
> every member of a multiStepper group (i.e. enableOutputs,
> getCurrentPosition, zero, etc.)
>
> Thanks again for your time and for making accelStepper.
>
> Donovan
>
> On Monday, June 5, 2017 at 8:09:35 AM UTC-5, Donovan Buck wrote:
> > Okay, that makes sense.
> >
> > Thanks