Skip to content

Commit 0c7f068

Browse files
committed
phase unwrapping improvement
1 parent 7492e87 commit 0c7f068

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

view/plots/plotService.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,14 +160,14 @@ export class PhaseUnwrapper {
160160
newPhaseValue += this.#phaseAdjustmentTotal;
161161
this.#newAdjustment = 0;
162162
let diff = newPhaseValue - lastPhaseValue;
163-
if (diff > 1.8 * 180) {
163+
if (diff > 300) {
164164
// console.log("case1", newPhaseValue, lastPhaseValue);
165165
logMessages(
166166
[`[CP-85] Phase unwarp adjustment by -360, at w=${roundDecimal(w, 5)}`],
167167
"checkpoints"
168168
);
169169
this.#newAdjustment = -360;
170-
} else if (diff < -1.8 * 180) {
170+
} else if (diff < -300) {
171171
// console.log("case2", newPhaseValue, lastPhaseValue);
172172
logMessages(
173173
[`[CP-86] Phase unwarp adjustment by +360, at w=${roundDecimal(w, 5)}`],

0 commit comments

Comments
 (0)