Hi Joebar,
You can create a Plugin and get the attitutde with XPLMGetDataF (exp.: "Sim/flightmodel/position/true_theta" for pitch) and then send those values over your desired interface (Network, USB, etc) to your motion controller.
I use QT framework for writing plugins this makes it straight forward when creating UDP connections to certain devices like other PC or in my case raspberry pi.
Cheers