Clean up FOV cone debug logging

This commit is contained in:
stopflock
2026-01-30 18:55:29 -06:00
parent 9621e5f35a
commit f478a3eb2d

View File

@@ -171,9 +171,7 @@ class DirectionConesBuilder {
}) {
// Handle full circle case (360-degree FOV)
// Use 179.5 threshold to account for floating point precision
print("DEBUG: halfAngleDeg = $halfAngleDeg, bearing = $bearingDeg");
if (halfAngleDeg >= 179.5) {
print("DEBUG: Using full circle for 360° FOV");
return _buildFullCircle(
origin: origin,
zoom: zoom,
@@ -182,7 +180,6 @@ class DirectionConesBuilder {
isActiveDirection: isActiveDirection,
);
}
print("DEBUG: Using normal cone for FOV = ${halfAngleDeg * 2}°");
// Calculate pixel-based radii
final outerRadiusPx = kNodeIconDiameter + (kNodeIconDiameter * kDirectionConeBaseLength);
@@ -244,8 +241,6 @@ class DirectionConesBuilder {
bool isSession = false,
bool isActiveDirection = true,
}) {
print("DEBUG: Building full circle - isSession: $isSession, isActiveDirection: $isActiveDirection");
// Calculate pixel-based radii
final outerRadiusPx = kNodeIconDiameter + (kNodeIconDiameter * kDirectionConeBaseLength);
@@ -253,8 +248,6 @@ class DirectionConesBuilder {
final pixelToCoordinate = 0.00001 * math.pow(2, 15 - zoom);
final outerRadius = outerRadiusPx * pixelToCoordinate;
print("DEBUG: Outer radius: $outerRadius, zoom: $zoom");
// Create simple filled circle - no donut complexity
const int circlePoints = 60;
final points = <LatLng>[];
@@ -273,8 +266,6 @@ class DirectionConesBuilder {
points.add(project(angle, outerRadius));
}
print("DEBUG: Created ${points.length} points for full circle");
// Adjust opacity based on direction state
double opacity = kDirectionConeOpacity;
if (isSession && !isActiveDirection) {