he knew the president had to enforce his authority , but part of what had sometimes gotten admiral atgard into trouble with superior officers was that he did not feel his duty was to them , but to himself ; not to the president of the confederation , but to its peoplehe felt that he had a moral obligation to do what was just , whether he followed orders in the process or not .