Erdogan and entire Turkish leadership has been shortsighted. You should have seen this coming your way.
There is however no question that Obama is a certified idiot:
https://defence.pk/threads/clinton-blames-islamic-militants-rise-on-obama-policies.328490/
https://defence.pk/threads/why-obam...dis-but-did-nothing-for-syrian-sunnis.328624/
Once ISIS has risen, the US led West started looking for ways to neutralize ISIS without involving western ground troops (except for special forces which are acceptable by the public in these countries). The only reliable ground forces found in Iraq are Peshmerga and Shia militias, so alliance with Kurds and Iran became necessary. In Syria only YPG were found as reliable ground forces, so again an alliance with Kurds became necessary there.
Turkey looked the other way and did not want to get involved as the view was that this mess was created by the US starting with 2003 invasion of Iraq, which Turkey opposed. Turkish view was that let the US then clean up this mess they have created themselves. Problem is when you don't help your ally, they will get help from others who are your enemies and it will and inevitably have affected your national interest. I have predicted this:
https://defence.pk/threads/the-figh...ates-discussions.311209/page-162#post-7759208
https://defence.pk/threads/turkey-sends-a-message-to-ypg.405603/page-6#post-7826775
https://defence.pk/threads/turkey-sends-a-message-to-ypg.405603/page-6#post-7830284
The recent coup fiasco can be thought of as an attempt at getting rid of this foolish Turkish leadership and get someone who will be more accommodating of US/Western interest. Not that I am trying to justify Obama the idiot's actions, but saying that this could have been his thinking, if Gulen and his Hizmet were indeed CIA assets like many people claim.
But can Turkey turn away from the West? Please do not be emotional. I do not believe Turkey has a choice to leave the Western camp, at this point in time in history. Learn from your mistakes and make sure you do not repeat them again.
Obama is going to be out of the picture in a few months. Once Clinton is in place, you will have a better leadership at the steering wheel in the US. So be patient for a few months, do not do anything too rash which you will regret later.
Long term, you need to neutralize the Kurdish threat. How do you do it? I mentioned it before in one of the posts above, with demographic change in Southeast Turkey, make them minority there by settling people who you trust (Central Asians, Azeri's, Muslim Russians etc.). Same thing must happen in Northern Iraq and Northern Syria, make them minority in their own region. For these to take place, integrity of these two states is a must. Both Iraq and Syria must stay whole and must not get divided, only then majority population of Arabs can reassert control in these regions over time (federal status for KRG or Rojava must be rejected) and make the demographic change possible over time. There are 450 million Arabs in the world with high fertility rate. It should not be hard to do once both countries are stabilized and any proposal for autonomous federal status for Kurdish regions turned down and eliminated with time.
Short term, the current good relations with Iran and Russia is a good move by Erdogan, to remove objection for the entry of Turkey in Syrian anti-ISIS fight. The biggest reason for rise of AQ, ISIS and other assorted groups of jihadi's is that no one is protecting Sunni Arabs in either Syria or Iraq, so jihadi's are touting themselves as the only group who can protect them. Turkey can back FSA, like its doing now and show itself as the best alternative for addressing Sunni Arab grievance. Turkey must build on this pilot model of FSA cooperation and expand quickly to increase the size and scope of this operation, but must make sure to exclude die hard Wahabi/Salafi's from this effort and of course work with Assad-Iran-Russia while doing this. When Turkey-FSA team attempts to eliminate ISIS and other jihadi's and take over the Sunni majority regions and cities in Syria, the mood of Assad and his Russian and Iranian backers will change as they might feel threatened by Turkish takeover. I think at that point a negotiated settlement can be reached where Turkey-FSA remains in Sunni majority regions as peace keeping force while Assad-Hezbollah backed by Russia and Iran remains in control of the rest of the area. Once peace is achieved some kind of political compromise has to be reached as it happened after the civil war in Lebanon, in an effort to keep the country together, but functionally there will be separate military control so that no majority or minority groups will be able to abuse another less powerful group.
If Turkey can successfully accomplish this in Syria then Iran and US/West may allow Turkish coordinated peace keeping forces to cooperate with Shia militia's in eliminating ISIS in Iraq. The US may support this Turkish move in Iraq, as there is concern about ethnic cleansing and rights violations of Sunni Arabs by Iran supported Shia militia's and Kurdish Peshmeraga. By participating in both Syria and Iraq and taking full active role in eliminating ISIS and jihadi's from these two theaters and thus stabilizing these two countries, I believe Turkey will gain trust of the West, Iran and Russia and it will then set the scene for the long term goal of demographic change I mentioned above, which will then result in crushing Kurdish dreams of a Kurdistan. The West needs their interest protected in this region, specially eliminating safe haven of Wahabi/Salafi jihadi's. If Turkey does its best to do its job and show results, then there is no reason for the West to depend on Turkey's enemy such as the Kurds.
But the Kurdish-US relations are a reality now (35,000 reliable SDF/YPG ground troops), an unwelcome situation that could easily have been avoided, if Erdogan and Turkish leadership was smart enough and had more foresight earlier. So my personal opinion, Turkey should not aggravate the situation further by attacking and killing this SDF/YPG force, at least not at this point in time. You have the option to make them irrelevant by eliminating ISIS and other jihadi's as mentioned above. If they attack you however, then they can be removed without any repercussions. because that is in self defense.
So lets see if someone can take this message to Erdogan and Turkish leadership from here in pdf.