title: Convert yaw and pitch to relative mouse movement
body: <p>I have the output of a sensor fusion(Razor_AHRS) (gyro, magnetometer, accelerometer) as yaw pitch roll.</p>
  
  <p>My goal is to convert them into mouse movements for yaw and pitch.</p>
  
  <p>Unfortunately, Yaw goes from 0 to 359, pitch from 0 to 179(if you use offsets). So at some point there is a discontinuity.</p>
  
  <p>What is the best way to convert these yaw and pitch values into something I could use with a relative mouse move method? So I need relative movement as int for x and y.</p>