亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? taskintf.cc

?? Source code for an Numeric Cmputer
?? CC
?? 第 1 頁 / 共 3 頁
字號:
    return 0;}int emcTrajInit(){    int retval = 0;    // init emcmot interface    if (!AxisOrTrajInited()) {	usrmotIniLoad(EMC_INIFILE);	if (0 != usrmotInit("emc2_task")) {	    return -1;	}    }    emcmotTrajInited = 1;    // initialize parameters from ini file    if (0 != iniTraj(EMC_INIFILE)) {	retval = -1;    }    return retval;}int emcTrajHalt(){    emcmotTrajInited = 0;    if (!AxisOrTrajInited()) {	usrmotExit();		// ours is final exit    }    return 0;}int emcTrajEnable(){    emcmotCommand.command = EMCMOT_ENABLE;    return usrmotWriteEmcmotCommand(&emcmotCommand);}int emcTrajDisable(){    emcmotCommand.command = EMCMOT_DISABLE;    return usrmotWriteEmcmotCommand(&emcmotCommand);}int emcTrajAbort(){    emcmotCommand.command = EMCMOT_ABORT;    return usrmotWriteEmcmotCommand(&emcmotCommand);}int emcTrajPause(){    emcmotCommand.command = EMCMOT_PAUSE;    return usrmotWriteEmcmotCommand(&emcmotCommand);}int emcTrajStep(){    emcmotCommand.command = EMCMOT_STEP;    return usrmotWriteEmcmotCommand(&emcmotCommand);}int emcTrajResume(){    emcmotCommand.command = EMCMOT_RESUME;    return usrmotWriteEmcmotCommand(&emcmotCommand);}int emcTrajDelay(double delay){    /* nothing need be done here - it's done in task controller */    return 0;}int emcTrajSetSpindleSync(double sync) {    emcmotCommand.command = EMCMOT_SET_SPINDLESYNC;    emcmotCommand.spindlesync = sync;    return usrmotWriteEmcmotCommand(&emcmotCommand);}int emcTrajSetTermCond(int cond, double tolerance){    emcmotCommand.command = EMCMOT_SET_TERM_COND;    emcmotCommand.termCond =	(cond ==	 EMC_TRAJ_TERM_COND_STOP ? EMCMOT_TERM_COND_STOP :	 EMCMOT_TERM_COND_BLEND);    emcmotCommand.tolerance = tolerance;    return usrmotWriteEmcmotCommand(&emcmotCommand);}int emcTrajLinearMove(EmcPose end, int type){    emcmotCommand.command = EMCMOT_SET_LINE;    emcmotCommand.pos = end;    emcmotCommand.id = localEmcTrajMotionId;    emcmotCommand.motion_type = type;#ifdef ISNAN_TRAP    if (isnan(emcmotCommand.pos.tran.x) ||	isnan(emcmotCommand.pos.tran.y)	|| isnan(emcmotCommand.pos.tran.z)) {	printf("isnan error in emcTrajLinearMove\n");	return 0;		// ignore it for now, just don't send it    }#endif    return usrmotWriteEmcmotCommand(&emcmotCommand);}int emcTrajCircularMove(EmcPose end, PM_CARTESIAN center,			PM_CARTESIAN normal, int turn, int type){    emcmotCommand.command = EMCMOT_SET_CIRCLE;    emcmotCommand.pos = end;    emcmotCommand.motion_type = type;    emcmotCommand.center.x = center.x;    emcmotCommand.center.y = center.y;    emcmotCommand.center.z = center.z;    emcmotCommand.normal.x = normal.x;    emcmotCommand.normal.y = normal.y;    emcmotCommand.normal.z = normal.z;    emcmotCommand.turn = turn;    emcmotCommand.id = localEmcTrajMotionId;#ifdef ISNAN_TRAP    if (isnan(emcmotCommand.pos.tran.x) ||	isnan(emcmotCommand.pos.tran.y) ||	isnan(emcmotCommand.pos.tran.z) ||	isnan(emcmotCommand.pos.a) ||	isnan(emcmotCommand.pos.b) ||	isnan(emcmotCommand.pos.c) ||	isnan(emcmotCommand.center.x) ||	isnan(emcmotCommand.center.y) ||	isnan(emcmotCommand.center.z) ||	isnan(emcmotCommand.normal.x) ||	isnan(emcmotCommand.normal.y) || isnan(emcmotCommand.normal.z)) {	printf("isnan error in emcTrajCircularMove\n");	return 0;		// ignore it for now, just don't send it    }#endif    return usrmotWriteEmcmotCommand(&emcmotCommand);}/*! \todo Another #if 0 */#if 0int emcTrajSetProbeIndex(int index){    emcmotCommand.command = EMCMOT_SET_PROBE_INDEX;    emcmotCommand.probeIndex = index;    return usrmotWriteEmcmotCommand(&emcmotCommand);}int emcTrajSetProbePolarity(int polarity){    emcmotCommand.command = EMCMOT_SET_PROBE_POLARITY;    emcmotCommand.level = polarity;    return usrmotWriteEmcmotCommand(&emcmotCommand);}#endif				/* #if 0 */int emcTrajClearProbeTrippedFlag(){    emcmotCommand.command = EMCMOT_CLEAR_PROBE_FLAGS;    return usrmotWriteEmcmotCommand(&emcmotCommand);}int emcTrajProbe(EmcPose pos){    emcmotCommand.command = EMCMOT_PROBE;    emcmotCommand.pos.tran.x = pos.tran.x;    emcmotCommand.pos.tran.y = pos.tran.y;    emcmotCommand.pos.tran.z = pos.tran.z;    emcmotCommand.id = localEmcTrajMotionId;    return usrmotWriteEmcmotCommand(&emcmotCommand);}static int last_id = 0;static int last_id_printed = 0;static int last_status = 0;static double last_id_time;int emcTrajUpdate(EMC_TRAJ_STAT * stat){    int axis;    stat->axes = localEmcTrajAxes;    stat->linearUnits = localEmcTrajLinearUnits;    stat->angularUnits = localEmcTrajAngularUnits;    stat->mode =	emcmotStatus.	motionFlag & EMCMOT_MOTION_TELEOP_BIT ? EMC_TRAJ_MODE_TELEOP	: (emcmotStatus.	   motionFlag & EMCMOT_MOTION_COORD_BIT ? EMC_TRAJ_MODE_COORD :	   EMC_TRAJ_MODE_FREE);    /* enabled if motion enabled and all axes enabled */    stat->enabled = 0;		/* start at disabled */    if (emcmotStatus.motionFlag & EMCMOT_MOTION_ENABLE_BIT) {	for (axis = 0; axis < localEmcTrajAxes; axis++) {/*! \todo Another #if 0 */#if 0				/*! \todo FIXME - the axis flag has been moved to the joint struct */	    if (!emcmotStatus.axisFlag[axis] & EMCMOT_AXIS_ENABLE_BIT) {		break;	    }#endif	    /* got here, then all are enabled */	    stat->enabled = 1;	}    }    stat->inpos =	emcmotStatus.motionFlag & EMCMOT_MOTION_INPOS_BIT ? 1 : 0;    stat->queue = emcmotStatus.depth;    stat->activeQueue = emcmotStatus.activeDepth;    stat->queueFull = emcmotStatus.queueFull;    stat->id = emcmotStatus.id;    stat->motion_type = emcmotStatus.motionType;    if (EMC_DEBUG_MOTION_TIME & EMC_DEBUG) {	if (stat->id != last_id) {	    if (last_id != last_id_printed) {		rcs_print("Motion id %d took %f seconds.\n", last_id,			  etime() - last_id_time);		last_id_printed = last_id;	    }	    last_id = stat->id;	    last_id_time = etime();	}    }    stat->paused = emcmotStatus.paused;    stat->scale = emcmotStatus.qVscale;    stat->position = emcmotStatus.carte_pos_cmd;    stat->actualPosition = emcmotStatus.carte_pos_fb;    stat->velocity = emcmotStatus.vel;    stat->acceleration = emcmotStatus.acc;    stat->maxAcceleration = localEmcMaxAcceleration;    if (emcmotStatus.motionFlag & EMCMOT_MOTION_ERROR_BIT) {	stat->status = RCS_ERROR;    } else if (stat->inpos && (stat->queue == 0)) {	stat->status = RCS_DONE;    } else {	stat->status = RCS_EXEC;    }    if (EMC_DEBUG_MOTION_TIME & EMC_DEBUG) {	if (stat->status == RCS_DONE && last_status != RCS_DONE	    && stat->id != last_id_printed) {	    rcs_print("Motion id %d took %f seconds.\n", last_id,		      etime() - last_id_time);	    last_id_printed = last_id = stat->id;	    last_id_time = etime();	}    }    stat->probedPosition.tran.x = emcmotStatus.probedPos.tran.x;    stat->probedPosition.tran.y = emcmotStatus.probedPos.tran.y;    stat->probedPosition.tran.z = emcmotStatus.probedPos.tran.z;    stat->probeval = emcmotStatus.probeVal;    stat->probe_tripped = emcmotStatus.probeTripped;    if (new_config) {	stat->cycleTime = emcmotConfig.trajCycleTime;/*! \todo Another #if 0 */#if 0	stat->probe_index = emcmotConfig.probeIndex;	stat->probe_polarity = emcmotConfig.probePolarity;#endif	stat->kinematics_type = emcmotConfig.kinematics_type;	stat->maxVelocity = emcmotConfig.limitVel;    }    return 0;}// EMC_MOTION functionsint emcMotionInit(){    int r1;    int r2;    int axis;    r1 = -1;    for (axis = 0; axis < EMCMOT_MAX_AXIS; axis++) {	if (0 == emcAxisInit(axis)) {	    r1 = 0;		// at least one is okay	}    }    r2 = emcTrajInit();    if (r1 == 0 && r2 == 0) {	emcmotion_initialized = 1;    }    return (r1 == 0 && r2 == 0) ? 0 : -1;}int emcMotionHalt(){    int r1, r2, r3;    int t;    r1 = -1;    for (t = 0; t < EMCMOT_MAX_AXIS; t++) {	if (0 == emcAxisHalt(t)) {	    r1 = 0;		// at least one is okay	}    }    r2 = emcTrajDisable();    r3 = emcTrajHalt();    emcmotion_initialized = 0;    return (r1 == 0 && r2 == 0 && r3 == 0) ? 0 : -1;}int emcMotionAbort(){    int r1;    int r2;    int t;    r1 = -1;    for (t = 0; t < EMCMOT_MAX_AXIS; t++) {	if (0 == emcAxisAbort(t)) {	    r1 = 0;		// at least one is okay	}    }    r2 = emcTrajAbort();    // reset optimization flag which suppresses duplicate speed requests    lastVel = -1.0;    return (r1 == 0 && r2 == 0) ? 0 : -1;}int emcMotionSetDebug(int debug){    emcmotCommand.command = EMCMOT_SET_DEBUG;    emcmotCommand.debug = debug;    return usrmotWriteEmcmotCommand(&emcmotCommand);}/*! \function emcMotionSetAout()        This function sends a EMCMOT_SET_AOUT message to the motion controller.    That one plans a AOUT command when motion starts or right now.    @parameter	index	which output gets modified    @parameter	now	wheather change is imediate or synched with motion    @parameter	start	value set at start of motion    @parameter	end	value set at end of motion*/int emcMotionSetAout(unsigned char index, double start, double end, unsigned char now){    emcmotCommand.command = EMCMOT_SET_AOUT;    emcmotCommand.now = now;    emcmotCommand.out = index;  /*! \todo FIXME-- if this works, set up some dedicated cmd fields instead of     borrowing these */    emcmotCommand.minLimit = start;    emcmotCommand.maxLimit = end;    return usrmotWriteEmcmotCommand(&emcmotCommand);}/*! \function emcMotionSetDout()        This function sends a EMCMOT_SET_DOUT message to the motion controller.    That one plans a DOUT command when motion starts or right now.    @parameter	index	which output gets modified    @parameter	now	wheather change is imediate or synched with motion    @parameter	start	value set at start of motion    @parameter	end	value set at end of motion*/int emcMotionSetDout(unsigned char index, unsigned char start,		     unsigned char end, unsigned char now){    emcmotCommand.command = EMCMOT_SET_DOUT;    emcmotCommand.now = now;    emcmotCommand.out = index;    emcmotCommand.start = start;    emcmotCommand.end = end;    return usrmotWriteEmcmotCommand(&emcmotCommand);}int emcMotionUpdate(EMC_MOTION_STAT * stat){    int r1;    int r2;    int axis;    int error;    int exec;    // read the emcmot status    if (0 != usrmotReadEmcmotStatus(&emcmotStatus)) {	return -1;    }    new_config = 0;    if (emcmotStatus.config_num != emcmotConfig.config_num) {	if (0 != usrmotReadEmcmotConfig(&emcmotConfig)) {	    return -1;	}	new_config = 1;    }    if (get_emcmot_debug_info) {	if (0 != usrmotReadEmcmotDebug(&emcmotDebug)) {	    return -1;	}    }    // read the emcmot error    if (0 != usrmotReadEmcmotError(errorString)) {	// no error, so ignore    } else {	// an error to report	emcOperatorError(0, errorString);    }    // save the heartbeat and command number locally,    // for use with emcMotionUpdate    localMotionHeartbeat = emcmotStatus.heartbeat;    localMotionCommandType = emcmotStatus.commandEcho;	/*! \todo FIXME-- not NML one! */    localMotionEchoSerialNumber = emcmotStatus.commandNumEcho;    r1 = emcAxisUpdate(&stat->axis[0], EMCMOT_MAX_AXIS);    r2 = emcTrajUpdate(&stat->traj);    stat->heartbeat = localMotionHeartbeat;    stat->command_type = localMotionCommandType;    stat->echo_serial_number = localMotionEchoSerialNumber;    stat->debug = emcmotConfig.debug;    // set the status flag    error = 0;    exec = 0;    for (axis = 0; axis < stat->traj.axes; axis++) {	if (stat->axis[axis].status == RCS_ERROR) {	    error = 1;	    break;	}	if (stat->axis[axis].status == RCS_EXEC) {	    exec = 1;	    break;	}    }    if (stat->traj.status == RCS_ERROR) {	error = 1;    } else if (stat->traj.status == RCS_EXEC) {	exec = 1;    }    if (error) {	stat->status = RCS_ERROR;    } else if (exec) {	stat->status = RCS_EXEC;    } else {	stat->status = RCS_DONE;    }    return (r1 == 0 && r2 == 0) ? 0 : -1;}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久久精品tv| 国产成人无遮挡在线视频| 久久99精品国产麻豆不卡| 成人爱爱电影网址| 日韩美女在线视频| 亚洲成人黄色影院| 成人app下载| 久久综合九色综合97_久久久| 亚洲高清免费视频| 91网站最新地址| 欧美国产日产图区| 六月婷婷色综合| 欧美日韩日日摸| 亚洲视频精选在线| 国产高清亚洲一区| 日韩一区二区不卡| 午夜视频在线观看一区| 色哟哟精品一区| 国产欧美精品一区aⅴ影院 | 色婷婷综合久久久| 精品少妇一区二区三区视频免付费| 亚洲精选一二三| 成人黄色综合网站| 久久久精品综合| 精品一区二区国语对白| 欧美一二三四在线| 日韩二区三区在线观看| 欧美日韩精品三区| 亚洲第一搞黄网站| 欧美怡红院视频| 亚洲国产视频在线| 日本精品一区二区三区高清| 亚洲欧洲www| a亚洲天堂av| 中文字幕中文字幕在线一区| 高清国产午夜精品久久久久久| 久久久久久久电影| 国产精品一级片在线观看| 久久久午夜精品理论片中文字幕| 国产永久精品大片wwwapp| 精品粉嫩超白一线天av| 国产 欧美在线| 亚洲欧洲一区二区三区| 色噜噜狠狠色综合中国| 一区二区三区四区激情| 7777精品伊人久久久大香线蕉最新版| 亚洲成人动漫精品| 日韩免费在线观看| 国产成人啪午夜精品网站男同| 国产精品国产三级国产普通话三级| 成人精品国产一区二区4080| 亚洲欧美日韩电影| 欧美一卡二卡在线| 国产精品资源网| 依依成人综合视频| 欧美另类变人与禽xxxxx| 美女视频一区二区三区| 久久久不卡网国产精品二区 | 欧美成人激情免费网| 激情综合色综合久久综合| 久久久精品影视| 91福利视频久久久久| 奇米综合一区二区三区精品视频| 久久青草国产手机看片福利盒子 | 精品制服美女丁香| 国产精品毛片久久久久久| 欧美羞羞免费网站| 国产一区二区在线电影| 自拍视频在线观看一区二区| 欧美日韩久久一区二区| 国产成人精品免费看| 亚洲午夜国产一区99re久久| 精品国产区一区| 色偷偷久久一区二区三区| 卡一卡二国产精品| 国产精品伦一区| 日韩一区二区三区免费看| 99riav一区二区三区| 日本欧美一区二区| 亚洲免费在线视频| www一区二区| 欧美日韩成人一区二区| 国产成人亚洲精品狼色在线| 亚洲韩国精品一区| 久久综合一区二区| 欧美日韩国产综合视频在线观看 | 精品99一区二区三区| 色香蕉久久蜜桃| 国产精品1024| 麻豆精品蜜桃视频网站| 亚洲一区自拍偷拍| 中文字幕一区二区在线播放| 欧美大片在线观看一区二区| 日本高清不卡aⅴ免费网站| 国产成人精品www牛牛影视| 午夜久久久影院| 依依成人精品视频| 国产精品福利一区| 国产日韩v精品一区二区| 日韩欧美精品三级| 欧美一区国产二区| 在线观看一区二区精品视频| 91网址在线看| 成人免费视频免费观看| 精品夜夜嗨av一区二区三区| 亚洲网友自拍偷拍| 亚洲午夜久久久久| 亚洲综合在线视频| 亚洲欧美经典视频| 亚洲欧美偷拍三级| 亚洲激情五月婷婷| 亚洲激情成人在线| 亚洲人xxxx| 亚洲激情五月婷婷| 一区二区三区91| 亚洲第一久久影院| 亚洲二区在线视频| 天堂av在线一区| 亚洲3atv精品一区二区三区| 亚洲国产精品自拍| 亚洲成人av资源| 天堂在线一区二区| 日本欧美大码aⅴ在线播放| 日本亚洲天堂网| 精品一区二区三区影院在线午夜| 捆绑调教一区二区三区| 精品在线一区二区| 国产很黄免费观看久久| 国产成+人+日韩+欧美+亚洲| 成人黄页毛片网站| 欧美在线观看一区二区| 欧美电影一区二区| 精品久久久三级丝袜| 久久蜜桃香蕉精品一区二区三区| 久久久久久电影| 国产精品久久久久婷婷二区次| 国产精品久久久久影院| 亚洲一区视频在线| 日本网站在线观看一区二区三区| 美女任你摸久久| 国产精品1区2区3区| 91免费在线播放| 欧美一区二区三区不卡| 久久网站最新地址| 亚洲欧洲日本在线| 亚洲成a天堂v人片| 国产毛片精品视频| 色婷婷激情久久| 日韩免费看的电影| 国产精品系列在线| 亚洲大片免费看| 国产精品1区2区| 欧美影视一区在线| 久久久不卡网国产精品二区| 一区二区视频在线| 免费亚洲电影在线| 91免费在线播放| 精品国内片67194| 亚洲人成精品久久久久久| 麻豆极品一区二区三区| 99久久精品国产一区二区三区| 91精品蜜臀在线一区尤物| 国产区在线观看成人精品| 亚洲韩国一区二区三区| 国产寡妇亲子伦一区二区| 欧美老女人第四色| 国产精品美女久久久久久久久 | 国产成人在线视频网址| 欧美日本不卡视频| 国产精品人妖ts系列视频| 老司机午夜精品99久久| 91在线免费播放| 久久精品在线免费观看| 偷拍一区二区三区四区| 91色在线porny| 国产亚洲一区二区三区在线观看 | 亚洲最色的网站| 成人av网在线| 久久久久久久电影| 人人超碰91尤物精品国产| 色久优优欧美色久优优| 国产精品久久久久久久久动漫 | 狠狠色狠狠色综合系列| 91麻豆精品国产无毒不卡在线观看 | 久久99热狠狠色一区二区| 欧美天堂亚洲电影院在线播放| 亚洲欧洲性图库| av中文字幕在线不卡| 久久精品视频网| 国内不卡的二区三区中文字幕 | 国产精品一区二区三区乱码| 精品国产乱码久久久久久久久| 日韩电影在线观看一区| 欧美手机在线视频| 亚洲一区二区三区小说| 欧美亚洲尤物久久| 亚洲国产欧美一区二区三区丁香婷| 91在线码无精品| 一区二区三区不卡在线观看| 91黄色免费观看|