TinyRobotics
Loading...
Searching...
No Matches
Motors.h
1#pragma once
2/**
3 * @defgroup motors Motors
4 * @ingroup main
5 * @brief Motor drivers and abstractions (DC, stepper, servo)
6 */
7
8#include "IMotor.h"
9#include "GenericMotor.h"
10#include "BrushedMotor.h"
12#include "BrushlessMotor.h"
13#include "ServoMotor.h"
14#else
15namespace tinyrobotics {
16
17template <typename T = float>
18using BrushlessMotor = GenericMotor<T>;
19
20template <typename T = float>
21using ServoMotor = GenericMotor<T>;
22
23}
24#endif
26#include "StepperMotor.h"
27#else
28namespace tinyrobotics {
29template <typename T = float>
30using StepperMotor = GenericMotor<T>;
31}
32#endif
#define USE_SERVO_LIBRARY
Definition: Config.h:47
#define USE_FASTACCEL_STEPPER
Definition: Config.h:52
Motor abstraction for integrating external/custom motor drivers using callbacks.
Definition: GenericMotor.h:45