18 #ifndef CANDRIVEHARMONICA_INCLUDEDEF_H 19 #define CANDRIVEHARMONICA_INCLUDEDEF_H 233 void getStatus(
int* piStatus,
int* piTempCel) { *piStatus = 0; *piTempCel = 0; }
250 void getData(
double* pdPosGearRad,
double* pdVelGearRadS,
251 int* piTorqueCtrl,
int* piStatusCtrl);
261 void setCanOpenParam(
int iTxPDO1,
int iTxPDO2,
int iRxPDO2,
int iTxSDO,
int iRxSDO);
266 void IntprtSetInt(
int iDataLen,
char cCmdChar1,
char cCmdChar2,
int iIndex,
int iData);
275 std::cout <<
"The function setEMStop() is not implemented!!!" << std::endl;
280 std::cout <<
"The function resetEMStop() is not implemented!!!" << std::endl;
316 int setRecorder(
int iFlag,
int iParam = 0, std::string sParam =
"/home/MyLog_");
325 void IntprtSetFloat(
int iDataLen,
char cCmdChar1,
char cCmdChar2,
int iIndex,
float fData);
335 void sendSDOAbort(
int iObjIndex,
int iObjSubIndex,
unsigned int iErrorCode);
419 if( (iVal & (1 << iNrBit)) == 0)
std::string m_sErrorMessage
void setDriveParam(DriveParam driveParam)
void requestMotorTorque()
void receivedSDOTransferAbort(unsigned int iErrorCode)
bool evalStatusRegister(int iStatus)
void evalSDO(CanMsg &CMsg, int *pIndex, int *pSubindex)
void getMotorTorque(double *dTorqueNm)
bool m_bLimitSwitchEnabled
double estimVel(double dPos)
bool isBitSet(int iVal, int iNrBit)
double getTimeToLastMsg()
void evalMotorFailure(int iFailure)
int setRecorder(int iFlag, int iParam=0, std::string sParam="/home/MyLog_")
void getStatus(int *piStatus, int *piTempCel)
bool disableBrake(bool bDisabled)
void sendSDODownload(int iObjIndex, int iObjSub, int iData)
void setGearVelRadS(double dVelEncRadS)
void setCanOpenParam(int iTxPDO1, int iTxPDO2, int iRxPDO2, int iTxSDO, int iRxSDO)
void getGearPosVelRadS(double *pdAngleGearRad, double *pdVelGearRadS)
void finishedSDOSegmentedTransfer()
double m_dAngleGearRadMem
void setGearPosVelRadS(double dPosRad, double dVelRadS)
void getGearDeltaPosVelRadS(double *pdDeltaAngleGearRad, double *pdVelGearRadS)
void IntprtSetFloat(int iDataLen, char cCmdChar1, char cCmdChar2, int iIndex, float fData)
ParamCanOpenType m_ParamCanOpen
bool getStatusLimitSwitch()
int receivedSDODataSegment(CanMsg &msg)
void sendSDOUploadSegmentConfirmation(bool toggleBit)
void IntprtSetInt(int iDataLen, char cCmdChar1, char cCmdChar2, int iIndex, int iData)
int receivedSDOSegmentedInitiation(CanMsg &msg)
int m_iDistSteerAxisToDriveWheelMM
void sendSDOUpload(int iObjIndex, int iObjSub)
void sendSDOAbort(int iObjIndex, int iObjSubIndex, unsigned int iErrorCode)
void getData(double *pdPosGearRad, double *pdVelGearRadS, int *piTorqueCtrl, int *piStatusCtrl)
int getSDODataInt32(CanMsg &CMsg)
void getGearPosRad(double *pdPosGearRad)
TimeStamp m_FailureStartTime
void setCanItf(CanItf *pCanItf)
bool setTypeMotion(int iType)
bool startWatchdog(bool bStarted)
double m_dVelGearMeasRadS
void setMotorTorque(double dTorqueNm)