public void UpdatePitch(int val) { if (_motion != null) { try { _motion.setAngles("HeadPitch", ScaleToRange(-val, _minPitch, _maxPitch),0.1f); } catch (Exception e) { Console.Out.WriteLine("HeadPanning.UpdateYaw exception: " + e); } } }