#include <CanDriveItf.h>
Public Types | |
enum | MotionType { MOTIONTYPE_VELCTRL, MOTIONTYPE_TORQUECTRL, MOTIONTYPE_POSCTRL } |
Public Member Functions | |
virtual bool | disableBrake (bool bDisabled)=0 |
virtual bool | evalReceivedMsg (CanMsg &msg)=0 |
virtual bool | evalReceivedMsg ()=0 |
virtual bool | execHoming ()=0 |
virtual unsigned int | getError ()=0 |
virtual void | getGearDeltaPosVelRadS (double *pdDeltaAngleGearRad, double *pdVelGearRadS)=0 |
virtual void | getGearPosRad (double *pdPosGearRad)=0 |
virtual void | getGearPosVelRadS (double *pdAngleGearRad, double *pdVelGearRadS)=0 |
virtual void | getMotorTorque (double *dTorqueNm)=0 |
virtual void | getStatus (int *piStatus, int *piTempCel)=0 |
virtual bool | getStatusLimitSwitch ()=0 |
virtual double | getTimeToLastMsg ()=0 |
virtual bool | init ()=0 |
virtual bool | initHoming ()=0 |
virtual void | IntprtSetInt (int iDataLen, char cCmdChar1, char cCmdChar2, int iIndex, int iData)=0 |
virtual bool | isError ()=0 |
virtual bool | isInitialized ()=0 |
virtual void | requestMotorTorque ()=0 |
virtual void | requestPosVel ()=0 |
virtual void | requestStatus ()=0 |
virtual bool | reset ()=0 |
virtual bool | resetEMStop ()=0 |
virtual void | setCanItf (CanItf *pCanItf)=0 |
virtual void | setDriveParam (DriveParam driveParam)=0 |
virtual bool | setEMStop ()=0 |
virtual void | setGearPosVelRadS (double dPosRad, double dVelRadS)=0 |
virtual void | setGearVelRadS (double dVelRadS)=0 |
virtual void | setMotorTorque (double dTorqueNm)=0 |
virtual int | setRecorder (int iFlag, int iParam=0, std::string sParam="/home/MyLog")=0 |
virtual bool | setTypeMotion (int iType)=0 |
virtual bool | shutdown ()=0 |
virtual bool | start ()=0 |
virtual bool | startWatchdog (bool bStarted)=0 |
virtual bool | stop ()=0 |
Interface for a drive.
Definition at line 31 of file CanDriveItf.h.
Motion type of the controller.
Enumerator | |
---|---|
MOTIONTYPE_VELCTRL | |
MOTIONTYPE_TORQUECTRL | |
MOTIONTYPE_POSCTRL |
Definition at line 37 of file CanDriveItf.h.
|
pure virtual |
Disables the brake. This function is not implemented for Harmonica, because brakes are released upon power on and shut only at emergency stop.
Implemented in CanDriveHarmonica.
|
pure virtual |
Evals a received message. Only messages with fitting identifiers are evaluated.
msg | message to be evaluated. |
Implemented in CanDriveHarmonica.
|
pure virtual |
Evals received messages in OBJECT mode. The CAN drives have to implement which identifiers they are interested in.
Implemented in CanDriveHarmonica.
|
pure virtual |
Performs homing procedure. Used only in position mode.
Implemented in CanDriveHarmonica.
|
pure virtual |
Return a bitfield containing information about the pending errors.
Implemented in CanDriveHarmonica.
|
pure virtual |
Returns the change of the position and the velocity. The given delta position is given since the last call of this function.
Implemented in CanDriveHarmonica.
|
pure virtual |
Returns the current position.
Implemented in CanDriveHarmonica.
|
pure virtual |
Returns the position and the velocity of the drive.
Implemented in CanDriveHarmonica.
|
pure virtual |
Returns member variable m_MotorCurrent To update this value call requestMotorCurrent before and evaluate CAN buffer, or wait one cycle
Implemented in CanDriveHarmonica.
|
pure virtual |
Returns the measured temperature.
Implemented in CanDriveHarmonica.
|
pure virtual |
Returns the status of the limit switch needed for homing. true = limit switch is reached; false = not reached
Implemented in CanDriveHarmonica.
|
pure virtual |
Returns the elapsed time since the last received message.
Implemented in CanDriveHarmonica.
|
pure virtual |
Initializes the driver. Call this function once after construction.
Implemented in CanDriveHarmonica.
|
pure virtual |
Inits homing procedure. Used only in position mode.
Implemented in CanDriveHarmonica.
|
pure virtual |
Sends an integer value to the Harmonica using the built in interpreter. cpc-kischa
Implemented in CanDriveHarmonica.
|
pure virtual |
Returns true if an error has been detected.
Implemented in CanDriveHarmonica.
|
pure virtual |
Check if the driver is already initialized. This is necessary if a drive gets switched off during runtime.
Implemented in CanDriveHarmonica.
|
pure virtual |
Sends Requests for "active current" to motor via CAN
Implemented in CanDriveHarmonica.
|
pure virtual |
Requests position and velocity.
Implemented in CanDriveHarmonica.
|
pure virtual |
Requests status.
Implemented in CanDriveHarmonica.
|
pure virtual |
Resets the drive. The drive changes into the state after initializaton.
Implemented in CanDriveHarmonica.
|
pure virtual |
Disable the emergency stop.
Implemented in CanDriveHarmonica.
|
pure virtual |
Sets the CAN interface.
Implemented in CanDriveHarmonica.
|
pure virtual |
Sets the drive parameter.
Implemented in CanDriveHarmonica.
|
pure virtual |
Enable the emergency stop.
Implemented in CanDriveHarmonica.
|
pure virtual |
Sets required position and veolocity. Use this function only in position mode. By calling the function the status is requested, too.
Implemented in CanDriveHarmonica.
|
pure virtual |
Sets the velocity. By calling the function the status is requested, too.
Implemented in CanDriveHarmonica.
|
pure virtual |
Sends command for motor Torque (in Nm)
Implemented in CanDriveHarmonica.
|
pure virtual |
Provides several functions for drive information recording purposes. By now, only implemented for the Elmo-recorder. cpc-pk
Implemented in CanDriveHarmonica.
|
pure virtual |
Sets the motion type drive. The function is not implemented for Harmonica. The harmonica drive is configured just for velocity mode.
Implemented in CanDriveHarmonica.
|
pure virtual |
Shutdowns the motor.
Implemented in CanDriveHarmonica.
|
pure virtual |
Enables the motor. After calling the drive accepts velocity and position commands.
Implemented in CanDriveHarmonica.
|
pure virtual |
Starts the watchdog. The Harmonica provides watchdog functionality which means the drive stops if the watchdog becomes active. To keep the watchdog inactive a heartbeat message has to be sent periodically. The update rate is set to 1s. The update is is done in function setGearVelRadS().
Implemented in CanDriveHarmonica.
|
pure virtual |
Disables the motor. After calling the drive won't accepts velocity and position commands.
Implemented in CanDriveHarmonica.