A moral compass was one's ability to make moral decisions.
According to DeSeve, the Romulans had "a strict moral compass which provides them with a clarity of purpose." (TNG: "Face Of The Enemy")
Kathryn Janeway relied on Tuvok's wise counsel, describing him as "the one I turn to when I need my moral compass checked." (VOY: "Prime Factors")