Habeas corpus is the right of a person detained by the government, to require the government to show why under the law, the person should be detained, be it by warrant or writ. No law in the United States allows the president to hand over the functions of government from himself to any component of the armed forces. All officers of the Army, Air Force, and Navy have to obey legislation regardless of the orders given to them by those appointed over them. Even if Obama could declare "Martial Law" he would no longer be president on January 20, 2017 at 1200 EST.