|
Robobo
|
#include <DCMotor.h>
Inherits ActiveObject, and MotorI.
Public Member Functions | |
| void | setPinModes () |
| void | reset () |
| DCMotor (uint8_t encoderAPinV, uint8_t encoderBPinV, uint8_t hBridgeAPinV, uint8_t hBridgeBPinV, uint8_t voltagePinV, ControlStrategy *strategy) | |
| void | setPosition (int32_t) |
| int32_t | getPosition () |
| void | stop (void) |
| void | enableReports (TickType_t period) |
| void | reportMethod (void) |
| void | updateControl (void) |
| void | encoderInterrupt (void) |
Public Member Functions inherited from ActiveObject | |
| TimerHandle_t | createTimer (MethodRequestBase *mr, const TickType_t xTimerPeriod, const UBaseType_t uxAutoReload) |
| uint8_t | executeMethod (MethodRequestBase *mr) |
Friends | |
| int | main (void) |
| Application entry point. More... | |
Motor class is to represent all data associated with DC Motor.
Motor class captures two wires from DC motor encoder. Stores previous and current value of encoder signal.
|
virtual |
This method is called on interrupt associated with encoder
Implements MotorI.
|
virtual |
Nulls out private areas of class
Implements MotorI.
| void DCMotor::setPinModes | ( | void | ) |
This function is responsible for seting correct pin modes in Arduino
|
friend |
Application entry point.