18 #ifndef BEAGLEBONE_MOTOR_MOTORS_H
19 #define BEAGLEBONE_MOTOR_MOTORS_H
21 #include "../pwmDevice.h"
150 void setStatus( status _status );
157 void increaseSpeed(
unsigned short _SpeedMod = 250 );
164 void decreaseSpeed(
unsigned short _SpeedMod = 250 );
171 static void* maintainTargetSpeed(
void* );
173 pthread_t threadHandle;
188 #endif //BEAGLEBONE_MOTOR_MOTORS_H
void setMinSpeed(long _minSpeed)
Definition: motors.cpp:121
void reversePolarity()
Definition: motors.cpp:56
void setSpeedStep(int _speedStep)
Definition: motors.cpp:131
pinBlocks
Definition: overlayBase.h:43
long getMinSpeed()
Definition: motors.cpp:111
long getMaxSpeed()
Definition: motors.cpp:106
int currentRun
Storage for the current Run value.
Definition: motors.h:75
void setTargetSpeed(long _targetSpeed)
Definition: motors.cpp:31
motors()
Definition: motors.h:37
long currentDuty
Storage for the current Duty value.
Definition: motors.h:73
int getSpeedStep()
Definition: motors.cpp:116
Definition: pwmDevice.h:38
Definition: aeronautics.h:23
void start()
Definition: motors.cpp:81
long currentPeriod
Storage for the current Period value.
Definition: motors.h:74
void setMaxSpeed(long _maxSpeed)
Definition: motors.cpp:126
PWMPins
PinNum refers to a exposed PWM Pin on your BBB, this enum can be expanded to include more if required...
Definition: overlayBase.h:51
int currentPolarity
Storage for the current Polarity value.
Definition: motors.h:76
void stop()
Definition: motors.cpp:98