#include <RiCMotor.h>
Public Member Functions | |
virtual void | buildDevice () |
JointInfo_t * | getJointInfo () |
OpenLoopMotor (byte id, TransportLayer *transportLayer, byte motorAddress, byte eSwitchPin, byte eSwitchType, float maxSetPointSpeed, float minSetPointSpeed, byte encoderA, byte encoderB, int8_t motorDirection, int8_t encoderDirection, uint16_t LPFHzSpeed, uint16_t LPFHzInput, float LPFAlphaInput, float LPFAlphaSpeed, uint16_t PPR) | |
virtual void | update (const DeviceMessage *deviceMessage) |
virtual void | write () |
Private Attributes | |
int8_t | _encoderDirection |
byte | _encoderPinA |
byte | _encoderPinB |
JointInfo_t | _jointInfo |
float | _LPFAlphaInput |
float | _LPFAlphaSpeed |
uint16_t | _LPFHzInput |
uint16_t | _LPFHzSpeed |
float | _maxSetPointSpeed |
float | _minSetPointSpeed |
int8_t | _motorDirection |
uint16_t | _PPR |
Definition at line 45 of file RiCMotor.h.
robotican_hardware::OpenLoopMotor::OpenLoopMotor | ( | byte | id, |
TransportLayer * | transportLayer, | ||
byte | motorAddress, | ||
byte | eSwitchPin, | ||
byte | eSwitchType, | ||
float | maxSetPointSpeed, | ||
float | minSetPointSpeed, | ||
byte | encoderA, | ||
byte | encoderB, | ||
int8_t | motorDirection, | ||
int8_t | encoderDirection, | ||
uint16_t | LPFHzSpeed, | ||
uint16_t | LPFHzInput, | ||
float | LPFAlphaInput, | ||
float | LPFAlphaSpeed, | ||
uint16_t | PPR | ||
) |
Definition at line 95 of file RiCMotor.cpp.
void robotican_hardware::OpenLoopMotor::buildDevice | ( | ) | [virtual] |
Implements robotican_hardware::RiCMotor.
Definition at line 138 of file RiCMotor.cpp.
Definition at line 164 of file RiCMotor.cpp.
void robotican_hardware::OpenLoopMotor::update | ( | const DeviceMessage * | deviceMessage | ) | [virtual] |
Implements robotican_hardware::RiCMotor.
Definition at line 114 of file RiCMotor.cpp.
void robotican_hardware::OpenLoopMotor::write | ( | ) | [virtual] |
Implements robotican_hardware::RiCMotor.
Definition at line 122 of file RiCMotor.cpp.
int8_t robotican_hardware::OpenLoopMotor::_encoderDirection [private] |
Definition at line 51 of file RiCMotor.h.
byte robotican_hardware::OpenLoopMotor::_encoderPinA [private] |
Definition at line 48 of file RiCMotor.h.
byte robotican_hardware::OpenLoopMotor::_encoderPinB [private] |
Definition at line 49 of file RiCMotor.h.
Definition at line 47 of file RiCMotor.h.
float robotican_hardware::OpenLoopMotor::_LPFAlphaInput [private] |
Definition at line 58 of file RiCMotor.h.
float robotican_hardware::OpenLoopMotor::_LPFAlphaSpeed [private] |
Definition at line 57 of file RiCMotor.h.
uint16_t robotican_hardware::OpenLoopMotor::_LPFHzInput [private] |
Definition at line 53 of file RiCMotor.h.
uint16_t robotican_hardware::OpenLoopMotor::_LPFHzSpeed [private] |
Definition at line 52 of file RiCMotor.h.
float robotican_hardware::OpenLoopMotor::_maxSetPointSpeed [private] |
Definition at line 55 of file RiCMotor.h.
float robotican_hardware::OpenLoopMotor::_minSetPointSpeed [private] |
Definition at line 56 of file RiCMotor.h.
int8_t robotican_hardware::OpenLoopMotor::_motorDirection [private] |
Definition at line 50 of file RiCMotor.h.
uint16_t robotican_hardware::OpenLoopMotor::_PPR [private] |
Definition at line 54 of file RiCMotor.h.