1 #ifndef ROBOBO_MOTOR_INCLUDED 2 #define ROBOBO_MOTOR_INCLUDED 6 #include "ActiveObject.h" 7 #include "ControlStrategy.h" 44 uint8_t encoderAPrevVal;
45 uint8_t encoderBPrevVal;
46 int32_t encoderPosition;
47 int32_t requestedPosition;
56 void setPosition(int32_t);
57 int32_t getPosition();
59 void enableReports(TickType_t period);
62 void reportMethod(
void);
63 void updateControl(
void);
72 void calculatePID(
void);
73 void setDirectionRight(
void);
74 void setDirectionLeft(
void);
75 void setVoltage(uint8_t val);
78 TimerHandle_t triggerTimer;
79 TimerHandle_t reportTimer;
81 friend int main(
void);
void setPinModes()
Definition: DCMotor.cpp:52
Definition: ControlStrategy.h:4
void reset()
Definition: DCMotor.cpp:61
friend int main(void)
Application entry point.
Definition: arm_class_marks_example_f32.c:139
Definition: ActiveObject.h:9
void encoderInterrupt(void)
Definition: DCMotor.cpp:84