No, I understand the Constitution. You epically fail.
Again, you are talking about a military coup. If somebody in the military has evidence of high crimes and misdemeanors committed by Obama, then they have an obligation to bring that evidence to a Representative who can prepare Articles of Impeachment. The military cannot take matters into their own hands and remove the President, even temporarily, from his position. That is a coup!
Where in the NDAA does it say that the POTUS can’t be detained?
Give me a quote.