code: function getTargetAngle (projection, flipped) {
      const offset = flipped ? 180 : 0
      return Math.round((projection - offset - 1) / 360) * 360 + offset
    }
docs: Based on the projected angle `projection` and desired `flipped` state, determine the optimal angle to rotate the flipper to.