Compare commits

...

2 commits

Author SHA1 Message Date
94092298a1 Add separate color and legend entry for High Vortex Large aircraft
- Added High Vortex Large as distinct category in legend
- Assigned red-orange color (#ff4500) to differentiate from regular Large
- Updated JavaScript to check for high vortex before regular large
- Maintains proper ADS-B category distinctions for wake turbulence

High Vortex Large aircraft (like B757) create stronger wake turbulence
than typical large aircraft, warranting visual distinction for safety.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-24 20:28:27 +02:00
a231c5f2fc Fix aircraft weight category classification
- Fixed incorrect category label: 34000-136000kg is Large, not Medium
- Updated JavaScript color matching to properly distinguish categories
- Simplified color logic to use category keywords (light/medium/large/heavy)

This ensures:
- Light aircraft (< 7000kg): Sky blue
- Medium aircraft (7000-34000kg): Green
- Large aircraft (34000-136000kg): Orange
- Heavy aircraft (> 136000kg): Red

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-24 20:24:48 +02:00
4 changed files with 14 additions and 5 deletions

View file

@ -271,6 +271,7 @@ body {
.legend-icon.light { background: #00bfff; } /* Sky blue for light aircraft */
.legend-icon.medium { background: #00ff88; } /* Green for medium aircraft */
.legend-icon.large { background: #ff8c00; } /* Orange for large aircraft */
.legend-icon.high-vortex { background: #ff4500; } /* Red-orange for high vortex large */
.legend-icon.heavy { background: #ff0000; } /* Red for heavy aircraft */
.legend-icon.helicopter { background: #ff00ff; } /* Magenta for helicopters */
.legend-icon.military { background: #ff4444; } /* Red-orange for military */

View file

@ -118,6 +118,10 @@
<span class="legend-icon large"></span>
<span>Large 34000-136000kg</span>
</div>
<div class="legend-item">
<span class="legend-icon high-vortex"></span>
<span>High Vortex Large</span>
</div>
<div class="legend-item">
<span class="legend-icon heavy"></span>
<span>Heavy &gt; 136000kg</span>

View file

@ -290,19 +290,23 @@ export class AircraftManager {
// Check for specific weight ranges in the category string
// Light aircraft (< 7000kg) - Sky blue
if (cat.includes('light') || cat.includes('7000kg')) {
if (cat.includes('light')) {
return '#00bfff';
}
// Medium aircraft (7000-34000kg) - Green
if (cat.includes('medium 7000')) {
if (cat.includes('medium')) {
return '#00ff88';
}
// High Vortex Large - Red-orange (special wake turbulence category)
if (cat.includes('high vortex')) {
return '#ff4500';
}
// Large aircraft (34000-136000kg) - Orange
if (cat.includes('medium 34000') || cat.includes('large')) {
if (cat.includes('large')) {
return '#ff8c00';
}
// Heavy aircraft (> 136000kg) - Red
if (cat.includes('heavy') || cat.includes('136000kg') || cat.includes('super')) {
if (cat.includes('heavy') || cat.includes('super')) {
return '#ff0000';
}
}

View file

@ -789,7 +789,7 @@ func (d *Decoder) getAircraftCategory(tc uint8, ca uint8) string {
case 2:
return "Medium 7000-34000kg"
case 3:
return "Medium 34000-136000kg"
return "Large 34000-136000kg"
case 4:
return "High Vortex Large"
case 5: