Fix jwt-token
This commit is contained in:
@@ -1,145 +1,124 @@
|
||||
/**
|
||||
* Drone Type Mappings
|
||||
* Maps integer drone_type values to human-readable names and categories
|
||||
* Based on ESP32S3 GuessedDroneType enum for accurate real-world detection
|
||||
*/
|
||||
|
||||
const DRONE_TYPES = {
|
||||
// Military/Combat Drones
|
||||
// Based on ESP32S3 GuessedDroneType enum
|
||||
0: {
|
||||
name: "Russian Orlan",
|
||||
category: "Military/Reconnaissance",
|
||||
threat_level: "high",
|
||||
description: "Russian military reconnaissance drone"
|
||||
name: "None",
|
||||
category: "Unknown",
|
||||
threat_level: "monitoring",
|
||||
description: "No drone detected or signal below threshold"
|
||||
},
|
||||
1: {
|
||||
name: "Bayraktar TB2",
|
||||
category: "Military/Combat",
|
||||
threat_level: "critical",
|
||||
description: "Turkish military combat drone"
|
||||
name: "Unknown",
|
||||
category: "Unknown",
|
||||
threat_level: "medium",
|
||||
description: "Unidentified drone type"
|
||||
},
|
||||
2: {
|
||||
name: "MQ-9 Reaper",
|
||||
category: "Military/Combat",
|
||||
name: "Orlan",
|
||||
category: "Military/Reconnaissance",
|
||||
threat_level: "critical",
|
||||
description: "US military combat drone"
|
||||
description: "Russian military reconnaissance drone"
|
||||
},
|
||||
3: {
|
||||
name: "Iranian Shahed",
|
||||
category: "Military/Kamikaze",
|
||||
name: "Zala",
|
||||
category: "Military/Surveillance",
|
||||
threat_level: "critical",
|
||||
description: "Iranian kamikaze/suicide drone"
|
||||
description: "Russian military surveillance drone"
|
||||
},
|
||||
4: {
|
||||
name: "Chinese Wing Loong",
|
||||
category: "Military/Combat",
|
||||
name: "Eleron",
|
||||
category: "Military/Tactical",
|
||||
threat_level: "critical",
|
||||
description: "Chinese military combat drone"
|
||||
description: "Russian military tactical drone"
|
||||
},
|
||||
5: {
|
||||
name: "Israeli Hermes",
|
||||
name: "Zala Lancet",
|
||||
category: "Military/Kamikaze",
|
||||
threat_level: "critical",
|
||||
description: "Russian loitering munition drone"
|
||||
},
|
||||
6: {
|
||||
name: "Lancet",
|
||||
category: "Military/Kamikaze",
|
||||
threat_level: "critical",
|
||||
description: "Russian kamikaze loitering munition"
|
||||
},
|
||||
7: {
|
||||
name: "FPV CrossFire",
|
||||
category: "FPV/Racing",
|
||||
threat_level: "high",
|
||||
description: "FPV drone using CrossFire protocol"
|
||||
},
|
||||
8: {
|
||||
name: "FPV ELRS",
|
||||
category: "FPV/Racing",
|
||||
threat_level: "high",
|
||||
description: "FPV drone using ExpressLRS protocol"
|
||||
},
|
||||
9: {
|
||||
name: "Maybe Orlan",
|
||||
category: "Military/Reconnaissance",
|
||||
threat_level: "high",
|
||||
description: "Israeli military reconnaissance drone"
|
||||
description: "Possible Orlan drone (uncertain identification)"
|
||||
},
|
||||
|
||||
// Commercial/Professional Drones
|
||||
10: {
|
||||
name: "DJI Mavic",
|
||||
category: "Commercial/Professional",
|
||||
threat_level: "medium",
|
||||
description: "DJI professional quadcopter"
|
||||
name: "Maybe Zala",
|
||||
category: "Military/Surveillance",
|
||||
threat_level: "high",
|
||||
description: "Possible Zala drone (uncertain identification)"
|
||||
},
|
||||
11: {
|
||||
name: "DJI Phantom",
|
||||
category: "Commercial/Professional",
|
||||
threat_level: "medium",
|
||||
description: "DJI professional quadcopter"
|
||||
name: "Maybe Lancet",
|
||||
category: "Military/Kamikaze",
|
||||
threat_level: "high",
|
||||
description: "Possible Lancet drone (uncertain identification)"
|
||||
},
|
||||
12: {
|
||||
name: "DJI Inspire",
|
||||
category: "Commercial/Professional",
|
||||
threat_level: "medium",
|
||||
description: "DJI professional cinematography drone"
|
||||
name: "Maybe Eleron",
|
||||
category: "Military/Tactical",
|
||||
threat_level: "high",
|
||||
description: "Possible Eleron drone (uncertain identification)"
|
||||
},
|
||||
13: {
|
||||
name: "Autel EVO",
|
||||
name: "DJI",
|
||||
category: "Commercial/Professional",
|
||||
threat_level: "medium",
|
||||
description: "Autel professional quadcopter"
|
||||
description: "DJI consumer/commercial drone"
|
||||
},
|
||||
14: {
|
||||
name: "Parrot Anafi",
|
||||
name: "Supercam",
|
||||
category: "Military/Surveillance",
|
||||
threat_level: "critical",
|
||||
description: "Russian military surveillance drone"
|
||||
},
|
||||
15: {
|
||||
name: "Maybe Supercam",
|
||||
category: "Military/Surveillance",
|
||||
threat_level: "high",
|
||||
description: "Possible Supercam drone (uncertain identification)"
|
||||
},
|
||||
16: {
|
||||
name: "REB",
|
||||
category: "Military/Electronic Warfare",
|
||||
threat_level: "critical",
|
||||
description: "Russian Electronic Warfare (REB) drone"
|
||||
},
|
||||
17: {
|
||||
name: "Crypto Orlan",
|
||||
category: "Military/Reconnaissance",
|
||||
threat_level: "critical",
|
||||
description: "Encrypted Orlan drone with enhanced security"
|
||||
},
|
||||
18: {
|
||||
name: "DJI Enterprise",
|
||||
category: "Commercial/Professional",
|
||||
threat_level: "medium",
|
||||
description: "Parrot professional quadcopter"
|
||||
},
|
||||
|
||||
// Consumer/Hobby Drones
|
||||
20: {
|
||||
name: "DJI Mini",
|
||||
category: "Consumer/Hobby",
|
||||
threat_level: "low",
|
||||
description: "DJI consumer mini drone"
|
||||
},
|
||||
21: {
|
||||
name: "DJI Spark",
|
||||
category: "Consumer/Hobby",
|
||||
threat_level: "low",
|
||||
description: "DJI consumer compact drone"
|
||||
},
|
||||
22: {
|
||||
name: "Ryze Tello",
|
||||
category: "Consumer/Hobby",
|
||||
threat_level: "low",
|
||||
description: "Consumer toy/education drone"
|
||||
},
|
||||
23: {
|
||||
name: "Holy Stone",
|
||||
category: "Consumer/Hobby",
|
||||
threat_level: "low",
|
||||
description: "Consumer hobby quadcopter"
|
||||
},
|
||||
24: {
|
||||
name: "Syma X5C",
|
||||
category: "Consumer/Hobby",
|
||||
threat_level: "low",
|
||||
description: "Consumer toy quadcopter"
|
||||
},
|
||||
|
||||
// Racing/FPV Drones
|
||||
30: {
|
||||
name: "Racing Quadcopter",
|
||||
category: "Racing/FPV",
|
||||
threat_level: "low",
|
||||
description: "Custom racing/FPV quadcopter"
|
||||
},
|
||||
31: {
|
||||
name: "TinyHawk",
|
||||
category: "Racing/FPV",
|
||||
threat_level: "low",
|
||||
description: "Micro racing quadcopter"
|
||||
},
|
||||
|
||||
// Fixed-Wing Drones
|
||||
40: {
|
||||
name: "Fixed-Wing Surveillance",
|
||||
category: "Fixed-Wing/Surveillance",
|
||||
threat_level: "medium",
|
||||
description: "Fixed-wing surveillance aircraft"
|
||||
},
|
||||
41: {
|
||||
name: "Fixed-Wing Cargo",
|
||||
category: "Fixed-Wing/Commercial",
|
||||
threat_level: "medium",
|
||||
description: "Fixed-wing cargo/delivery aircraft"
|
||||
},
|
||||
|
||||
// Unknown/Unclassified
|
||||
99: {
|
||||
name: "Unknown Drone",
|
||||
category: "Unknown/Unclassified",
|
||||
threat_level: "medium",
|
||||
description: "Unidentified or unclassified drone"
|
||||
description: "DJI Enterprise/Professional drone"
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user