src/experiments/k4/K4GUI/src/commands.cc
int
zero_encoder( PtWidget_t *widget, ApInfo_t *apinfo, PtCallbackInfo_t *cbinfo )

	{

	/* eliminate 'unreferenced' warnings */
	widget = widget, apinfo = apinfo, cbinfo = cbinfo;
	  if (axis_selected == 1){
	    
	    //CreateMessage(ZERO_ENCODER);
	    newcommand.CreateZeroEncoderMsg(current_axis);
	    SendMessage(newcommand);
	     printf("Sending request to zero encoder for axis %d\n",current_axis);
	    
	  }

	return( Pt_CONTINUE );

	}
/* this function is called when users press the zero encoder button.
if an axis has been selected, this command means user would like to zero 
encoder value for the selected axis.
if not, this command is ignored */
this function is called when users press the zero encoder button.
if an axis has been selected, this command means user would like to zero
encoder value for the selected axis.
if not, this command is ignored
this function is called when users press the zero encoder button . if an axis has been selected this command means user would like to zero encoder value for the selected axis . if not this command is ignored
int
zero_encoder( PtWidget_t *widget, ApInfo_t *apinfo, PtCallbackInfo_t *cbinfo )
	{
	widget = widget, apinfo = apinfo, cbinfo = cbinfo;
	  if (axis_selected == 1){
	    newcommand.CreateZeroEncoderMsg(current_axis);
	    SendMessage(newcommand);
	     printf("Sending request to zero encoder for axis %d\n",current_axis);
	  }
	return( Pt_CONTINUE );
	}
int zero_encoder ( PtWidget_t * widget , ApInfo_t * apinfo , PtCallbackInfo_t * cbinfo ) { widget = widget , apinfo = apinfo , cbinfo = cbinfo ; if ( axis_selected == 1 ) { newcommand . CreateZeroEncoderMsg ( current_axis ) ; SendMessage ( newcommand ) ; printf ( " \n " , current_axis ) ; } return ( Pt_CONTINUE ) ; }
this function is called when users press the zero encoder button.
this function is called when users press the zero encoder button .
/* eliminate 'unreferenced' warnings */ //CreateMessage(ZERO_ENCODER);