In StepTicker.cpp, it appears that the movements of the motors are performed with motor[ ]->step() and motor[ ]->unstep(). In an attempt to find where this array is defined, I have searched for "motor[" and "step(" in all of the .h and .cpp files in the smoothie code. As far as I can tell, both of those strings are only used in StepTicker.cpp.
This single search is part of a greater project. I would really like to find out:
- It looks like motor[ ] is an array of pointers to instances of an unknown class. If this is true, where is this class defined? What is it named?
- Where are the instances of this class created, and corresponding pointers assigned to motor[ ]?