|
Fang-Robotics-MCB
Fang Robotics Team Codebase
|
#include <double_dji_motor.hpp>


Public Member Functions | |
| DoubleDjiMotor (Drivers *drivers, MotorId desMotorIdentifierOne, MotorId desMotorIdentifierTwo, tap::can::CanBus motorCanBusOne, tap::can::CanBus motorCanBusTwo, bool isInvertedOne, bool isInvertedTwo, const char *nameOne, const char *nameTwo, bool currentControl=false, float gearRatio=1, uint32_t encoderHomePositionOne=0, tap::encoder::EncoderInterface *externalEncoder=nullptr) | |
| void | initialize () override |
| tap::encoder::EncoderInterface * | getEncoder () const override |
| void | setDesiredOutput (int32_t desiredOutput) override |
| bool | isMotorOnline () const override |
| int16_t | getOutputDesired () const override |
| int8_t | getTemperature () const override |
| int16_t | getTorque () const override |
Public Member Functions inherited from tap::motor::MotorInterface | |
| virtual void | resetEncoderValue () |
| virtual float | getPositionUnwrapped () const |
| virtual float | getPositionWrapped () const |
| virtual int16_t | getShaftRPM () const |
Protected Attributes | |
| DjiMotor | motorOne |
| DjiMotor | motorTwo |
| tap::encoder::MultiEncoder< 3 > | encoder |
Wraps two motors assumed to be connected to a rigid drive shaft. Assumes that the two motors are identical with the same gear ratio and are dji motors with the same communication and control interface (for example, two M3508's, two 6020's, etc.).
| tap::motor::DoubleDjiMotor::DoubleDjiMotor | ( | Drivers * | drivers, |
| MotorId | desMotorIdentifierOne, | ||
| MotorId | desMotorIdentifierTwo, | ||
| tap::can::CanBus | motorCanBusOne, | ||
| tap::can::CanBus | motorCanBusTwo, | ||
| bool | isInvertedOne, | ||
| bool | isInvertedTwo, | ||
| const char * | nameOne, | ||
| const char * | nameTwo, | ||
| bool | currentControl = false, |
||
| float | gearRatio = 1, |
||
| uint32_t | encoderHomePositionOne = 0, |
||
| tap::encoder::EncoderInterface * | externalEncoder = nullptr |
||
| ) |
|
inlineoverridevirtual |
Implements tap::motor::MotorInterface.
|
overridevirtual |
Implements tap::motor::MotorInterface.
|
overridevirtual |
Implements tap::motor::MotorInterface.
|
overridevirtual |
Implements tap::motor::MotorInterface.
|
overridevirtual |
Implements tap::motor::MotorInterface.
|
overridevirtual |
Implements tap::motor::MotorInterface.
|
overridevirtual |
Implements tap::motor::MotorInterface.
|
protected |
|
protected |
|
protected |