Raw data (for angles) in Orbiter is always expressed in RAD (Radians), and everything related to orientation and relative positions will very probably involve vectors and rotation matrixes at some point. Be sure to read and understand the doc, there's a lot of stuff explained in Orbiter.pdf and the SDK doc.
(updated) For those beginning with Lua, here's a very basic example. It will get some parameters and output them on the screen. Go to scenarios\Cruising above Florida.scn and add "Script lua_test" to Environment. The Lua example needs your vessels to be named like on that scenario...
Check my comments there. Probably you want to convert radians to degrees.