rusEFI
The most advanced open source ECU
|
#include <stepper.h>
Public Member Functions | |
StepperMotor () | |
void | initialize (StepperHw *hardware, int totalSteps) |
void | ThreadTask () override |
![]() | |
void | doIteration () |
void | setTargetPosition (float targetPositionSteps) |
float | getTargetPosition () const |
bool | isBusy () const |
Additional Inherited Members | |
![]() | |
int | m_currentPosition = 0 |
int | m_totalSteps = 0 |
![]() | |
void | setInitialPosition (void) |
void | saveStepperPos (int pos) |
int | loadStepperPos () |
void | changeCurrentPosition (bool positive) |
void | postCurrentPosition (void) |
![]() | |
StepperHw * | m_hw = nullptr |
float | m_targetPosition = 0 |
bool | initialPositionSet = false |
bool | m_isBusy = false |
![]() | |
ThreadController (const char *name, tprio_t priority) | |
void | start () |
Start the thread. | |
void | stop () |
Request thread termination and waits for termination. | |
void | main () override |
![]() | |
const char *const | m_name |
|
inline |
Definition at line 99 of file stepper.h.
|
virtual |
Reimplemented from StepperMotorBase.
Definition at line 211 of file stepper.cpp.
|
inlineoverridevirtual |
Implements ThreadController< UTILITY_THREAD_STACK_SIZE >.
Definition at line 103 of file stepper.h.