handleDriveMotorCommand: process direction command