digraph detection2 {
    calibrating -> calibrating [ label="not stable or less than calibrationWindow times calibrating" ]
    calibrating -> preMove [ label="stable and more than calibrationWindows times calibrating" ]
    preMove -> preMove [ label="stable" ]
    preMove -> inMove [ label="not stable" ]
    inMove->inMove  [ label="not stable or difference of pixelChanges>10% of peak inMove value" ]
    inMove -> potentialMove [ label="stable and difference of pixelChanges<10% of peak inMove value" ]
  }