void xlMotor::wheelMove(char direction,int speed) { if (direction=='F') { Dxl.goalSpeed(myID, speed); } else if(direction=='R') { Dxl.goalSpeed(myID, speed| 0x400); } }
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); } }