Skip to content

Commit f5679a9

Browse files
committed
Update index.html
1 parent 108c37b commit f5679a9

1 file changed

Lines changed: 12 additions & 12 deletions

File tree

mas/index.html

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
<div class="min-w-0 flex flex-col justify-center leading-none"><div class="text-[8px] text-slate-400 font-bold uppercase leading-none">Fluidity</div><span id="hud-fluidity" class="font-mono text-xs font-black text-[#00afb9]">0.00</span></div>
4141
</div>
4242
</div>
43-
<div class="flex-[3.5] min-h-0 w-full relative flex items-center justify-center bg-white border border-slate-200 rounded-lg shadow-xs overflow-hidden cursor-pointer" id="canvas-container">
43+
<div class="flex-[3.5] min-h-0 w-full relative flex items-center justify-center bg-white border border-slate-200 rounded-lg shadow-xs overflow-hidden cursor-default" id="canvas-container">
4444
<canvas id="coverageCanvas" class="absolute border border-slate-300 pointer-events-none rounded-sm hidden"></canvas>
4545
<canvas id="simulationCanvas" class="absolute border border-slate-300 bg-transparent rounded-sm hidden"></canvas>
4646
<div id="launchOverlay" class="absolute inset-0 bg-white/95 backdrop-blur-xs flex items-center justify-center z-30 rounded-lg">
@@ -397,17 +397,17 @@ <h4 class="font-bold text-[10px] sm:text-xs tracking-wider text-slate-500 upperc
397397
this.theta -= Math.max(Math.random() - 0.5, 0);
398398
}
399399

400-
} else if (D3 <= rPlan) { // rStop < D3 <= rPlan
401-
// Rear getting close — reverse orbit (mirrored angular vs AVOID)
402-
this.current_mode = "REVERSE";
403-
this.orbit_side = D2 < D1 ? 1 : -1;
404-
v = -config.V_ORBIT;
405-
const fwd = [Math.cos(this.theta), Math.sin(this.theta)];
406-
this.v_des_actual = this.orbit_side === 1
407-
? [ fwd[1], -fwd[0]] // mirrored vs forward AVOID
408-
: [-fwd[1], fwd[0]];
409-
const err = ((Math.atan2(this.v_des_actual[1], this.v_des_actual[0]) - this.theta + Math.PI) % (2*Math.PI)) - Math.PI;
410-
w = config.K_P * err;
400+
// } else if (D3 <= rPlan) { // rStop < D3 <= rPlan
401+
// // Rear getting close — reverse orbit (mirrored angular vs AVOID)
402+
// this.current_mode = "REVERSE";
403+
// this.orbit_side = D2 < D1 ? 1 : -1;
404+
// v = -config.V_ORBIT;
405+
// const fwd = [Math.cos(this.theta), Math.sin(this.theta)];
406+
// this.v_des_actual = this.orbit_side === 1
407+
// ? [ fwd[1], -fwd[0]] // mirrored vs forward AVOID
408+
// : [-fwd[1], fwd[0]];
409+
// const err = ((Math.atan2(this.v_des_actual[1], this.v_des_actual[0]) - this.theta + Math.PI) % (2*Math.PI)) - Math.PI;
410+
// w = config.K_P * err;
411411

412412
} else {
413413
// Rear clear — full reverse; steer slightly away from the

0 commit comments

Comments
 (0)