code: def demix2(servo1, servo2, gain=0.5):
      '''de-mix a mixed servo output'''
      s1 = servo1 - 1500
      s2 = servo2 - 1500
      out1 = (s1+s2)*gain
      out2 = (s1-s2)*gain
      return out2+150f demix2(servo1, servo2, gain=0.5):
      '''de-mix a mixed servo output'''
      s1 = servo1 - 1500
      s2 = servo2 - 1500
      out1 = (s1+s2)*gain
      out2 = (s1-s2)*gain
      return out2+1500
docs: de-mix a mixed servo output