68/71
User’s Manual
v1.07
wCK series
GetByte(TIME_OUT2);
if(GetByte(TIME_OUT2)==NewBaud) return NewBaud;
return 0xff;
}
/*********************************************************************/
/* Function that sends Gain Set Command to wCK module */
/* Input : ServoID, *NewPgain, *NewDgain
*/
/* Return : 1 if succeed, 0 if fail
*/
/********************************************************************/
char GainSet(char ServoID, char *NewPgain, char *NewDgain)
{
char Data1,Data2;
SendSetCommand((7<<5)|ServoID, 0x09, *NewPgain, *NewDgain);
Data1 = GetByte(TIME_OUT2);
Data2 = GetByte(TIME_OUT2);
if((Data1==*NewPgain) && (Data2==*NewDgain)) return 1;
return 0;
}
/************************************************************/
/* Function that sends ID Set Command to wCK module
*/
/* Input : ServoID, NewId
*/
/* Return : New ID if succeed, 0xff if fail
*/
/***********************************************************/
char IdSet(char ServoID, char NewId)
{
SendSetCommand((7<<5)|ServoID, 0x0a, NewId, NewId);
GetByte(TIME_OUT2);
if(GetByte(TIME_OUT2)==NewId) return NewId;
return 0xff;
}
/******************************************************************/
/* Function that sends Gain Read Command to wCK module */
/* Input : ServoID, *NewPgain, *NewDgain
*/
/* Return : 1 if succeed, 0 if fail
*/
/*****************************************************************/
char GainRead(char ServoID, char *Pgain, char *Dgain)
{
SendSetCommand((7<<5)|ServoID, 0x0c, 0, 0);
*Pgain = GetByte(TIME_OUT1);
Содержание wCK series
Страница 1: ...wCK series User s Manual Intelligent Modular Robot Ver 1 07 ...
Страница 9: ...9 71 User s Manual v1 07 wCK series Figure1 6a Application VariousArticulatedRobots ...
Страница 12: ...12 71 User s Manual v1 07 wCK series Figure1 8c BlowUpPicture Figure1 8b Dimension ...
Страница 16: ...16 71 User s Manual v1 07 wCK series Figure2 1d JointTypeforConnectionStyles JOINT 1 JOINT 2 JOINT 3 ...
Страница 17: ...17 71 User s Manual v1 07 wCK series JOINT 4 JOINT 5 JOINT 6 ...
Страница 18: ...18 71 User s Manual v1 07 wCK series JOINT 7 JOINT 8 JOINT 9 ...
Страница 19: ...19 71 User s Manual v1 07 wCK series JOINT 10 JOINT 12 JOINT 11 ...
Страница 26: ...26 71 User s Manual v1 07 wCK series Figure2 4a wCKProgrammerScreenLayout Figure2 4b Setting ProgrammingArea ...
Страница 29: ...29 71 User s Manual v1 07 wCK series PDgainControl PIDgainControl ...