Modules-old/youbot/lua_youbot.cpp
/* Sets the microstepping resolution
 * full step: 0, half step: 1, 256 microsteps: 8
 * For now, we keep the bars symmetric (bar1=bar2 for all params)
 */
Sets the microstepping resolution
full step: 0, half step: 1, 256 microsteps: 8
For now, we keep the bars symmetric (bar1=bar2 for all params)
Sets the microstepping resolution full step : 0 half step : 1 256 microsteps : 8 For now we keep the bars symmetric ( bar1 = bar2 for all params )
static int lua_set_gripper_microsteps(lua_State *L) {
	static MicrostepResolution usteps;
	unsigned int res = (unsigned int)lua_tointeger(L, 1);
	usteps.setParameter(res);
	ybArm->getArmGripper().getGripperBar1().setConfigurationParameter(usteps);
	ybArm->getArmGripper().getGripperBar2().setConfigurationParameter(usteps);
	return 0;
}
static int lua_set_gripper_microsteps ( lua_State * L ) { static MicrostepResolution usteps ; unsigned int res = ( unsigned int ) lua_tointeger ( L , 1 ) ; usteps . setParameter ( res ) ; ybArm -> getArmGripper ( ) . getGripperBar1 ( ) . setConfigurationParameter ( usteps ) ; ybArm -> getArmGripper ( ) . getGripperBar2 ( ) . setConfigurationParameter ( usteps ) ; return 0 ; }
Sets the microstepping resolution
 full step: 0, half step: 1, 256 microsteps: 8
 For now, we keep the bars symmetric (bar1=bar2 for all params)
Sets the microstepping resolution full step : 0 half step : 1 256 microsteps : 8 For now we keep the bars symmetric ( bar1 = bar2 for all params )