Exemple #1
0
void xlMotor::wheelMove(char direction,int speed)
{
    if (direction=='F') {
        Dxl.goalSpeed(myID, speed);
    }
    else if(direction=='R')
    {
        Dxl.goalSpeed(myID, speed| 0x400);
    }
   
    
}
Exemple #2
0
void xlMotor::wheelMove(char direction)
{
    Dxl.wheelMode(myID);
    if (direction=='F')
	{
        Dxl.goalSpeed(myID, 512);
    }
    else if(direction=='R')
	{
        Dxl.goalSpeed(myID, 512| 0x400);
    }
    else if(direction=='S')
    {
        Dxl.goalSpeed(myID, 0);
    }
    
}