void CCommandSetInputsPositionMarker_VCS_Drive2::InitCommands() { DeleteCommands(); //Init SetPositionMarkerParameter m_pCommand_SetPositionMarkerParameter = new CCommand_VCS_Drive2(); m_pCommand_SetPositionMarkerParameter->InitCommand(DRIVE2_SET_POSITION_MARKER_PARAMETER); //Init GetPositionMarkerParameter m_pCommand_GetPositionMarkerParameter = new CCommand_VCS_Drive2(); m_pCommand_GetPositionMarkerParameter->InitCommand(DRIVE2_GET_POSITION_MARKER_PARAMETER); //Init ActivatePositionMarker m_pCommand_ActivatePositionMarker = new CCommand_VCS_Drive2(); m_pCommand_ActivatePositionMarker->InitCommand(DRIVE2_ACTIVATE_POSITION_MARKER); //Init DeactivatePositionMarker m_pCommand_DeactivatePositionMarker = new CCommand_VCS_Drive2(); m_pCommand_DeactivatePositionMarker->InitCommand(DRIVE2_DEACTIVATE_POSITION_MARKER); //Init ReadPositionMarkerCount m_pCommand_ReadPositionMarkerCounter = new CCommand_VCS_Drive2(); m_pCommand_ReadPositionMarkerCounter->InitCommand(DRIVE2_READ_POSITION_MARKER_COUNTER); //Init ReadPositionMarkerCapturedPosition m_pCommand_ReadPositionMarkerCapturedPosition = new CCommand_VCS_Drive2(); m_pCommand_ReadPositionMarkerCapturedPosition->InitCommand(DRIVE2_READ_POSITION_MARKER_CAPTURED_POSITION); //Init ResetPositionMarkerCount m_pCommand_ResetPositionMarkerCounter = new CCommand_VCS_Drive2(); m_pCommand_ResetPositionMarkerCounter->InitCommand(DRIVE2_RESET_POSITION_MARKER_COUNTER); }
void CCommandSetNetworkManagement_DCS_Epos::InitCommands() { DeleteCommands(); //Init Command SendNMTService m_pCommand_SendNMTService = new CCommand_DCS_Epos(); m_pCommand_SendNMTService->InitCommand(EPOS_SEND_NMT_SERVICE); }
void CCommandSetLayerSettingServices_DCS_Esam::InitCommands() { DeleteCommands(); //Init Command SendLSSFrame m_pCommand_SendLSSFrame = new CCommand_DCS_Esam(); m_pCommand_SendLSSFrame->InitCommand(ESAM_SEND_LSS_FRAME); //Init Command ReadLSSFrame m_pCommand_ReadLSSFrame = new CCommand_DCS_Esam(); m_pCommand_ReadLSSFrame->InitCommand(ESAM_SEND_LSS_FRAME); }
void CGatewayMaxonSerialV2ToRS232::InitCommands() { DeleteCommands(); //Init Command WriteData m_pCommand_WriteData = new CCommand_I_RS232(); m_pCommand_WriteData->InitCommand(RS232_WRITE_DATA); //Init Command ReadData m_pCommand_ReadData = new CCommand_I_RS232(); m_pCommand_ReadData->InitCommand(RS232_READ_DATA); }
void CCommandSetGeneralGateway_DCS_Epos2::InitCommands() { DeleteCommands(); //Init Command Request m_pCommand_RequestCANFrame = new CCommand_DCS_Epos2(); m_pCommand_RequestCANFrame->InitCommand(EPOS2_REQUEST_CAN_FRAME); //Init Command Send m_pCommand_SendCANFrame = new CCommand_DCS_Epos2(); m_pCommand_SendCANFrame->InitCommand(EPOS2_SEND_CAN_FRAME); //Init Command Read m_pCommand_ReadCANFrame = new CCommand_DCS_Epos2(); m_pCommand_ReadCANFrame->InitCommand(EPOS2_READ_CAN_FRAME); }
void CScratchPad3D::Clear() { FileHandle_t fp; while( ( fp = m_pFileSystem->Open(m_pFilename, "wb") ) == NULL ) { #ifdef _WIN32 Sleep( 5 ); #elif _LINUX usleep( 5 ); #endif } m_pFileSystem->Close( fp ); DeleteCommands(); }
void CProtocolStack_MaxonSerialV1::InitCommands() { DeleteCommands(); //Process Protocol m_pCommand_ProcessProtocol = new CCommand_PS_MaxonSerialV1(); m_pCommand_ProcessProtocol->InitCommand(MAXON_SERIAL_V1_PROCESS_PROTOCOL); //SendFrame m_pCommand_SendFrame = new CCommand_PS_MaxonSerialV1(); m_pCommand_SendFrame->InitCommand(MAXON_SERIAL_V1_SEND_FRAME); //Abort Protocol m_pCommand_AbortProtocol = new CCommand_PS_MaxonSerialV1(); m_pCommand_AbortProtocol->InitCommand(MAXON_SERIAL_V1_ABORT_PROTOCOL); }
void CGatewayCANopenToEpos::InitCommands() { DeleteCommands(); //WriteObject m_pCommand_WriteObject = new CCommand_DCS_Epos(); m_pCommand_WriteObject->InitCommand(EPOS_WRITE_OBJECT); //ReadObject m_pCommand_ReadObject = new CCommand_DCS_Epos(); m_pCommand_ReadObject->InitCommand(EPOS_READ_OBJECT); //InitiateSegmentedWrite m_pCommand_InitiateSegmentedWrite = new CCommand_DCS_Epos(); m_pCommand_InitiateSegmentedWrite->InitCommand(EPOS_INITIATE_SEGMENT_WRITE); //InitiateSegmentedRead m_pCommand_InitiateSegmentedRead = new CCommand_DCS_Epos(); m_pCommand_InitiateSegmentedRead->InitCommand(EPOS_INITIATE_SEGMENT_READ); //SegmentedWrite m_pCommand_SegmentedWrite = new CCommand_DCS_Epos(); m_pCommand_SegmentedWrite->InitCommand(EPOS_SEGMENT_WRITE); //SegmentedRead m_pCommand_SegmentedRead = new CCommand_DCS_Epos(); m_pCommand_SegmentedRead->InitCommand(EPOS_SEGMENT_READ); //AbortSegmentedTransfer m_pCommand_AbortSegmentedTransfer = new CCommand_DCS_Epos(); m_pCommand_AbortSegmentedTransfer->InitCommand(EPOS_ABORT_SEGMENT_TRANSFER); //Init Command SendNMTService m_pCommand_SendNMTService = new CCommand_DCS_Epos(); m_pCommand_SendNMTService->InitCommand(EPOS_SEND_NMT_SERVICE); //Init Command Request m_pCommand_RequestCANFrame = new CCommand_DCS_Epos(); m_pCommand_RequestCANFrame->InitCommand(EPOS_REQUEST_CAN_FRAME); //Init Command Send m_pCommand_SendCANFrame = new CCommand_DCS_Epos(); m_pCommand_SendCANFrame->InitCommand(EPOS_SEND_CAN_FRAME); }
void CGatewayEpos2ToMaxonSerialV1::InitCommands() { DeleteCommands(); //Process Protocol m_pCommand_ProcessProtocol = new CCommand_PS_MaxonSerialV1(); m_pCommand_ProcessProtocol->InitCommand(MAXON_SERIAL_V1_PROCESS_PROTOCOL); //SendFrame m_pCommand_SendFrame = new CCommand_PS_MaxonSerialV1(); m_pCommand_SendFrame->InitCommand(MAXON_SERIAL_V1_SEND_FRAME); //Abort Protocol m_pCommand_AbortProtocol = new CCommand_PS_MaxonSerialV1(); m_pCommand_AbortProtocol->InitCommand(MAXON_SERIAL_V1_ABORT_PROTOCOL); m_pCommand_AbortProtocol->EnableTransactionEvent(FALSE); }
bool CScratchPad3D::LoadCommandsFromFile( ) { DeleteCommands(); FileHandle_t fp = m_pFileSystem->Open( m_pFilename, "rb" ); if( !fp ) return false; long fileEndPos = m_pFileSystem->Size( fp ); CFileRead fileRead( m_pFileSystem, fp ); while( fileRead.m_Pos != fileEndPos ) { unsigned char iCommand; fileRead.Read( &iCommand, sizeof(iCommand) ); CBaseCommand *pCmd = NULL; if( iCommand == COMMAND_POINT ) pCmd = new CCommand_Point; else if( iCommand == COMMAND_LINE ) pCmd = new CCommand_Line; else if( iCommand == COMMAND_POLYGON ) pCmd = new CCommand_Polygon; else if( iCommand == COMMAND_MATRIX ) pCmd = new CCommand_Matrix; else if( iCommand == COMMAND_RENDERSTATE ) pCmd = new CCommand_RenderState; else if ( iCommand == COMMAND_TEXT ) pCmd = new CCommand_Text; if( !pCmd ) { Assert( !"LoadCommandsFromFile: invalid file" ); m_pFileSystem->Close( fp ); return false; } pCmd->Read( &fileRead ); m_Commands.AddToTail( pCmd ); } m_pFileSystem->Close( fp ); return true; }
void CScratchPad3D::Flush() { FileHandle_t fp; while( ( fp = m_pFileSystem->Open(m_pFilename, "ab+") ) == NULL ) { #ifdef _WIN32 Sleep( 5 ); #elif _LINUX usleep( 5 ); #endif } // Append the new commands to the file. for( int i=0; i < m_Commands.Size(); i++ ) { m_pFileSystem->Write( &m_Commands[i]->m_iCommand, sizeof(m_Commands[i]->m_iCommand), fp ); m_Commands[i]->Write( m_pFileSystem, fp ); } m_pFileSystem->Close( fp ); DeleteCommands(); }
void CProtocolStack_InfoteamSerial::InitCommands() { DeleteCommands(); //Process Protocol m_pCommand_ProcessProtocol = new CCommand_PS_InfoteamSerial(); m_pCommand_ProcessProtocol->InitCommand(INFOTEAM_SERIAL_PROCESS_PROTOCOL); //Process ProtocolMaxon m_pCommand_ProcessProtocolMaxon = new CCommand_PS_InfoteamSerial(); m_pCommand_ProcessProtocolMaxon->InitCommand(INFOTEAM_SERIAL_PROCESS_PROTOCOL_MAXON); //Abort ProtocolMaxon m_pCommand_AbortProtocolMaxon = new CCommand_PS_InfoteamSerial(); m_pCommand_AbortProtocolMaxon->InitCommand(INFOTEAM_SERIAL_ABORT_PROTOCOL_MAXON); //SendChunk m_pCommand_SendChunk = new CCommand_PS_InfoteamSerial(); m_pCommand_SendChunk->InitCommand(INFOTEAM_SERIAL_SEND_CHUNK); //ReceiveData m_pCommand_ReceiveData = new CCommand_PS_InfoteamSerial(); m_pCommand_ReceiveData->InitCommand(INFOTEAM_SERIAL_RECEIVE_DATA); }
CCommandSetGeneralGateway_DCS_Epos2::~CCommandSetGeneralGateway_DCS_Epos2() { DeleteCommands(); }
CGatewayEpos2ToMaxonSerialV1::~CGatewayEpos2ToMaxonSerialV1() { DeleteCommands(); }
CCommandSetNetworkManagement_DCS_Epos::~CCommandSetNetworkManagement_DCS_Epos() { DeleteCommands(); }
CCommandSetConfiguration_VCS_Drive2::~CCommandSetConfiguration_VCS_Drive2() { DeleteCommands(); DeleteSetList(); }
CGatewayInfoteamSerialToRS232::~CGatewayInfoteamSerialToRS232() { DeleteCommands(); }
CCommandSetLayerSettingServices_DCS_Esam::~CCommandSetLayerSettingServices_DCS_Esam() { DeleteCommands(); }
void CCommandSetConfiguration_VCS_Drive2::InitCommands() { DeleteCommands(); //Init GetCurrentRegulatorGain m_pCommand_GetCurrentRegulatorGain = new CCommand_VCS_Drive2(); m_pCommand_GetCurrentRegulatorGain->InitCommand(DRIVE2_GET_CURRENT_REGULATOR_GAIN); //Init GetPositionRegulatorGain m_pCommand_GetPositionRegulatorGain = new CCommand_VCS_Drive2(); m_pCommand_GetPositionRegulatorGain->InitCommand(DRIVE2_GET_POSITION_REGULATOR_GAIN); //Init GetPositionRegulatorFeedForward m_pCommand_GetPositionRegulatorFeedForward = new CCommand_VCS_Drive2(); m_pCommand_GetPositionRegulatorFeedForward->InitCommand(DRIVE2_GET_POSITION_REGULATOR_FEED_FORWARD); //Init GetVelocityRegulatorGain m_pCommand_GetVelocityRegulatorGain = new CCommand_VCS_Drive2(); m_pCommand_GetVelocityRegulatorGain->InitCommand(DRIVE2_GET_VELOCITY_REGULATOR_GAIN); //Init GetVelocityRegulatorFeedForward m_pCommand_GetVelocityRegulatorFeedForward = new CCommand_VCS_Drive2(); m_pCommand_GetVelocityRegulatorFeedForward->InitCommand(DRIVE2_GET_VELOCITY_REGULATOR_FEED_FORWARD); //Init GetMaxFollowingError m_pCommand_GetMaxFollowingError = new CCommand_VCS_Drive2(); m_pCommand_GetMaxFollowingError->InitCommand(DRIVE2_GET_MAX_FOLLOWING_ERROR); //Init GetMaxProfileVelocity m_pCommand_GetMaxProfileVelocity = new CCommand_VCS_Drive2(); m_pCommand_GetMaxProfileVelocity->InitCommand(DRIVE2_GET_MAX_PROFILE_VELOCITY); //Init GetMaxAcceleration m_pCommand_GetMaxAcceleration = new CCommand_VCS_Drive2(); m_pCommand_GetMaxAcceleration->InitCommand(DRIVE2_GET_MAX_ACCELERATION); //Init GetVelocityUnits m_pCommand_GetVelocityUnits = new CCommand_VCS_Drive2(); m_pCommand_GetVelocityUnits->InitCommand(DRIVE2_GET_VELOCITY_UNITS); //Init SetCurrentRegulatorGain m_pCommand_SetCurrentRegulatorGain = new CCommand_VCS_Drive2(); m_pCommand_SetCurrentRegulatorGain->InitCommand(DRIVE2_SET_CURRENT_REGULATOR_GAIN); //Init SetPositionRegulatorGain m_pCommand_SetPositionRegulatorGain = new CCommand_VCS_Drive2(); m_pCommand_SetPositionRegulatorGain->InitCommand(DRIVE2_SET_POSITION_REGULATOR_GAIN); //Init SetPositionRegulatorFeedForward m_pCommand_SetPositionRegulatorFeedForward = new CCommand_VCS_Drive2(); m_pCommand_SetPositionRegulatorFeedForward->InitCommand(DRIVE2_SET_POSITION_REGULATOR_FEED_FORWARD); //Init SetVelocityRegulatorGain m_pCommand_SetVelocityRegulatorGain = new CCommand_VCS_Drive2(); m_pCommand_SetVelocityRegulatorGain->InitCommand(DRIVE2_SET_VELOCITY_REGULATOR_GAIN); //Init SetVelocityRegulatorFeedForward m_pCommand_SetVelocityRegulatorFeedForward = new CCommand_VCS_Drive2(); m_pCommand_SetVelocityRegulatorFeedForward->InitCommand(DRIVE2_SET_VELOCITY_REGULATOR_FEED_FORWARD); //Init SetMaxFollowingError m_pCommand_SetMaxFollowingError = new CCommand_VCS_Drive2(); m_pCommand_SetMaxFollowingError->InitCommand(DRIVE2_SET_MAX_FOLLOWING_ERROR); //Init SetMaxProfileVelocity m_pCommand_SetMaxProfileVelocity = new CCommand_VCS_Drive2(); m_pCommand_SetMaxProfileVelocity->InitCommand(DRIVE2_SET_MAX_PROFILE_VELOCITY); //Init SetMaxAcceleration m_pCommand_SetMaxAcceleration = new CCommand_VCS_Drive2(); m_pCommand_SetMaxAcceleration->InitCommand(DRIVE2_SET_MAX_ACCELERATION); //Init SetVelocityUnits m_pCommand_SetVelocityUnits = new CCommand_VCS_Drive2(); m_pCommand_SetVelocityUnits->InitCommand(DRIVE2_SET_VELOCITY_UNITS); }
CGatewayMaxonSerialV2ToRS232::~CGatewayMaxonSerialV2ToRS232() { DeleteCommands(); }
CCommandSetInputsPositionMarker_VCS_Drive2::~CCommandSetInputsPositionMarker_VCS_Drive2() { DeleteCommands(); }
CGatewayCANopenToEpos::~CGatewayCANopenToEpos() { ResetBufferedData(); DeleteCommands(); }
CProtocolStack_InfoteamSerial::~CProtocolStack_InfoteamSerial() { DeleteCommands(); }
CProtocolStack_MaxonSerialV1::~CProtocolStack_MaxonSerialV1() { DeleteCommands(); }