2024-06-25 21:04:22 +01:00
|
|
|
#ifndef MOTOR_H
|
|
|
|
#define MOTOR_H
|
|
|
|
|
|
|
|
#include <AccelStepper.h>
|
|
|
|
#include "config.h"
|
|
|
|
|
2024-06-25 21:34:47 +01:00
|
|
|
struct MotorTaskParams
|
|
|
|
{
|
2024-06-25 21:04:22 +01:00
|
|
|
float cwRotations;
|
|
|
|
float ccwRotations;
|
|
|
|
unsigned long int processEndTime;
|
|
|
|
};
|
|
|
|
|
2024-06-25 21:34:47 +01:00
|
|
|
void runMotorTask(void *parameter);
|
2024-06-25 21:04:22 +01:00
|
|
|
|
|
|
|
#endif
|