diff --git a/docs/Documentation/AATC_AStar Writeup.odt b/docs/Documentation/AATC_AStar Writeup.odt index b08387a..5a8dfe8 100644 Binary files a/docs/Documentation/AATC_AStar Writeup.odt and b/docs/Documentation/AATC_AStar Writeup.odt differ diff --git a/docs/Documentation/AATC_Client Writeup.odt b/docs/Documentation/AATC_Client Writeup.odt index 22db984..804ea5d 100644 Binary files a/docs/Documentation/AATC_Client Writeup.odt and b/docs/Documentation/AATC_Client Writeup.odt differ diff --git a/docs/Documentation/AATC_Client_Text_UI Writeup.odt b/docs/Documentation/AATC_Client_Text_UI Writeup.odt index 8784b58..a848d02 100644 Binary files a/docs/Documentation/AATC_Client_Text_UI Writeup.odt and b/docs/Documentation/AATC_Client_Text_UI Writeup.odt differ diff --git a/docs/Documentation/AATC_Config Writeup.odt b/docs/Documentation/AATC_Config Writeup.odt index b819f77..15e1c18 100644 Binary files a/docs/Documentation/AATC_Config Writeup.odt and b/docs/Documentation/AATC_Config Writeup.odt differ diff --git a/docs/Documentation/AATC_Coordinate Writeup.odt b/docs/Documentation/AATC_Coordinate Writeup.odt index 1e204c4..125daf9 100644 Binary files a/docs/Documentation/AATC_Coordinate Writeup.odt and b/docs/Documentation/AATC_Coordinate Writeup.odt differ diff --git a/docs/Documentation/AATC_Create_Graph Writeup2.odt b/docs/Documentation/AATC_Create_Graph Writeup2.odt index 9eabcef..dd8a284 100644 Binary files a/docs/Documentation/AATC_Create_Graph Writeup2.odt and b/docs/Documentation/AATC_Create_Graph Writeup2.odt differ diff --git a/docs/Documentation/AATC_Crypto Writeup.odt b/docs/Documentation/AATC_Crypto Writeup.odt index 860ac13..66c0ea4 100644 Binary files a/docs/Documentation/AATC_Crypto Writeup.odt and b/docs/Documentation/AATC_Crypto Writeup.odt differ diff --git a/docs/Documentation/AATC_CryptoBeta Writeup.odt b/docs/Documentation/AATC_CryptoBeta Writeup.odt index 7e0b314..76fc20d 100644 Binary files a/docs/Documentation/AATC_CryptoBeta Writeup.odt and b/docs/Documentation/AATC_CryptoBeta Writeup.odt differ diff --git a/docs/Documentation/AATC_DB Writeup.odt b/docs/Documentation/AATC_DB Writeup.odt index cd6e8a2..9e3a4a6 100644 Binary files a/docs/Documentation/AATC_DB Writeup.odt and b/docs/Documentation/AATC_DB Writeup.odt differ diff --git a/docs/Documentation/AATC_Drone Writeup2.odt b/docs/Documentation/AATC_Drone Writeup2.odt index e7c695f..033b32a 100644 Binary files a/docs/Documentation/AATC_Drone Writeup2.odt and b/docs/Documentation/AATC_Drone Writeup2.odt differ diff --git a/docs/Documentation/AATC_Drone_Logic Writeup.odt b/docs/Documentation/AATC_Drone_Logic Writeup.odt index dc73745..8905686 100644 Binary files a/docs/Documentation/AATC_Drone_Logic Writeup.odt and b/docs/Documentation/AATC_Drone_Logic Writeup.odt differ diff --git a/docs/Documentation/AATC_GPIO Writeup.odt b/docs/Documentation/AATC_GPIO Writeup.odt index e589c04..befe304 100644 Binary files a/docs/Documentation/AATC_GPIO Writeup.odt and b/docs/Documentation/AATC_GPIO Writeup.odt differ diff --git a/docs/Documentation/AATC_Monitor Writeup.odt b/docs/Documentation/AATC_Monitor Writeup.odt index 02ea0f2..24af5c1 100644 Binary files a/docs/Documentation/AATC_Monitor Writeup.odt and b/docs/Documentation/AATC_Monitor Writeup.odt differ diff --git a/docs/Documentation/AATC_Monitor_Viewer Writeup.odt b/docs/Documentation/AATC_Monitor_Viewer Writeup.odt index 6930871..230497c 100644 Binary files a/docs/Documentation/AATC_Monitor_Viewer Writeup.odt and b/docs/Documentation/AATC_Monitor_Viewer Writeup.odt differ diff --git a/docs/Documentation/AATC_NoFlyZoneGrapher Writeup.odt b/docs/Documentation/AATC_NoFlyZoneGrapher Writeup.odt index 35745e5..660da9b 100644 Binary files a/docs/Documentation/AATC_NoFlyZoneGrapher Writeup.odt and b/docs/Documentation/AATC_NoFlyZoneGrapher Writeup.odt differ diff --git a/docs/Documentation/AATC_PriorityQueue Writeup.odt b/docs/Documentation/AATC_PriorityQueue Writeup.odt index 6bec070..bf75359 100644 Binary files a/docs/Documentation/AATC_PriorityQueue Writeup.odt and b/docs/Documentation/AATC_PriorityQueue Writeup.odt differ diff --git a/docs/Documentation/AATC_Server_002 Writeup.odt b/docs/Documentation/AATC_Server_002 Writeup.odt index 2822958..bebac48 100644 Binary files a/docs/Documentation/AATC_Server_002 Writeup.odt and b/docs/Documentation/AATC_Server_002 Writeup.odt differ diff --git a/docs/Documentation/AATC_Server_Starter Writeup.odt b/docs/Documentation/AATC_Server_Starter Writeup.odt index 9085e84..17ae600 100644 Binary files a/docs/Documentation/AATC_Server_Starter Writeup.odt and b/docs/Documentation/AATC_Server_Starter Writeup.odt differ diff --git a/docs/Documentation/AATC_Weather Writeup.odt b/docs/Documentation/AATC_Weather Writeup.odt index ccf4880..178f22c 100644 Binary files a/docs/Documentation/AATC_Weather Writeup.odt and b/docs/Documentation/AATC_Weather Writeup.odt differ diff --git a/docs/Documentation/DDL.py b/docs/Documentation/DDL.py new file mode 100644 index 0000000..4833ed0 --- /dev/null +++ b/docs/Documentation/DDL.py @@ -0,0 +1,88 @@ +CREATE TABLE User( + UserID INTEGER PRIMARY KEY AUTO_INCREMENT, + Username TEXT, + Password TEXT, + PublicVisibleFlights INT, + PermissionAdder INT , + ZoneCreatorPermission INT, + ZoneRemoverPermission INT, + ZoneModifierPermission INT) + +CREATE TABLE Drone( + DroneID INTEGER PRIMARY KEY AUTO_INCREMENT, + UserID INT, + DroneName TEXT, + DroneType TEXT, + DroneSpeed INT, + DroneRange INT, + DroneWeight REAL, + FlightsFlown INT, + LastCoords TEXT, + LastBattery REAL, + FOREIGN KEY(UserID) REFERENCES User(UserID)) + +CREATE TABLE Monitor( + MonitorID INTEGER PRIMARY KEY AUTO_INCREMENT, + MonitorName TEXT, + MonitorPassword TEXT) + + +CREATE TABLE MonitorPermission( + MonitorID INT , + UserID INT, + LastAccessed TEXT, + ExpiryDate TEXT, + PRIMARY KEY(MonitorID,UserID), + FOREIGN KEY(MonitorID) REFERENCES Monitor(MonitorID), + FOREIGN KEY(UserID) REFERENCES User(UserID)) + + +CREATE TABLE Flight(FlightID INTEGER PRIMARY KEY AUTO_INCREMENT, + DroneID INT, + StartCoords TEXT, + EndCoords TEXT, + StartTime REAL, + ETA REAL, + EndTime REAL, + Distance REAL, + XOffset REAL , + YOffset REAL , + ZOffset REAL, + Completed INT, + FOREIGN KEY(DroneID) REFERENCES Drone(DroneID)) + + +CREATE TABLE FlightWaypoints( + FlightID INT, + WaypointNumber INT, + Coords TEXT, + ETA REAL, + BlockTime INT , + PRIMARY KEY(FlightID,WaypointNumber), + FOREIGN KEY(FlightID) REFERENCES Flight(FlightID)) + + + +CREATE TABLE NoFlyZone( + ZoneID INTEGER PRIMARY KEY AUTO_INCREMENT, + StartCoord TEXT, + EndCoord TEXT, + Level INT, + OwnerUserID INT, + FOREIGN KEY(OwnerUserID) REFERENCES User(UserID)) + + +CREATE TABLE DroneCredentials(DroneID INTEGER PRIMARY KEY AUTO_INCREMENT , + DronePassword TEXT) + + +CREATE TABLE InputStack(chat_id INT , + stack_pos INT, + value TEXT, + PRIMARY KEY(chat_id,stack_pos)) + +CREATE TABLE Sessions(chat_id INT PRIMARY KEY, + UserID INT) + + + diff --git a/docs/Documentation/HedaBot Writeup.odt b/docs/Documentation/HedaBot Writeup.odt index 421f771..e4a79aa 100644 Binary files a/docs/Documentation/HedaBot Writeup.odt and b/docs/Documentation/HedaBot Writeup.odt differ diff --git a/docs/Documentation/Install_and_Setup.odt b/docs/Documentation/Install_and_Setup.odt index e6f122f..5349145 100644 Binary files a/docs/Documentation/Install_and_Setup.odt and b/docs/Documentation/Install_and_Setup.odt differ diff --git a/docs/Documentation/OOP.odt b/docs/Documentation/OOP.odt index 881a7e2..1a3192d 100644 Binary files a/docs/Documentation/OOP.odt and b/docs/Documentation/OOP.odt differ diff --git a/docs/Documentation/Recvall Writeup.odt b/docs/Documentation/Recvall Writeup.odt index 055e4f7..f88c7dc 100644 Binary files a/docs/Documentation/Recvall Writeup.odt and b/docs/Documentation/Recvall Writeup.odt differ