src/libYARP_dev/esdcan/linux/yarp/YARPEsdCanDeviceDriver.cpp
/// cmd is a SingleAxis poitner with 1 double arg
cmd is a SingleAxis poitner with 1 double arg
cmd is a SingleAxis poitner with 1 double arg
int YARPEsdCanDeviceDriver::definePosition (void *cmd)
{
	SingleAxisParameters *tmp = (SingleAxisParameters *) cmd;
	const int axis = tmp->axis;
	ACE_ASSERT (axis >= 0 && axis <= (ESD_MAX_CARDS-1)*2);
	return _writeDWord (CAN_SET_ENCODER_POSITION, axis, S_32(*((double *)tmp->parameters)));
}
int YARPEsdCanDeviceDriver :: definePosition ( void * cmd ) { SingleAxisParameters * tmp = ( SingleAxisParameters * ) cmd ; const int axis = tmp -> axis ; ACE_ASSERT ( axis >= 0 && axis <= ( ESD_MAX_CARDS - 1 ) * 2 ) ; return _writeDWord ( CAN_SET_ENCODER_POSITION , axis , S_32 ( * ( ( double * ) tmp -> parameters ) ) ) ; }
cmd is a SingleAxis poitner with 1 double arg
cmd is a SingleAxis poitner with 1 double arg
/// prepare can message.