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