DroneProject package¶
Submodules¶
DroneProject.AbstractDrone module¶
-
class
DroneProject.AbstractDrone.
AbstractDrone
[source]¶ Bases:
abc.ABC
Abstract class for drone types
-
altitude
= 0¶
-
battery
= 100¶
-
current_latitude
= 0¶
-
current_longtitude
= 0¶
-
destination_latitude
= 0¶
-
destination_longtitude
= 0¶
-
drone_id
= 0¶
-
drone_type
= 'virtual'¶
-
flying_state
= 'Grounded'¶
-
heading
= 0¶
-
home_latitude
= 0¶
-
home_longtitude
= 0¶
-
speed
= 0¶
-
DroneProject.BebopDrone module¶
Bebop Drone class
DroneProject.DroneController module¶
Drone Controller¶
Contains all drone control algorithms
-
DroneProject.DroneController.
ChangeAltitude
(drone, newalt)[source]¶ This function handles changes in altitude
-
DroneProject.DroneController.
CollisionDetection
(drone, otherdrone)[source]¶ Collision detection, detects if other drone is within 30m horizontally or 10m vertically
-
DroneProject.DroneController.
Hover
(Drone)[source]¶ This function may be called to cause the drone to hover in place
-
DroneProject.DroneController.
MoveDrone
(drone, flight, dronelist, lat, lon, locations)[source]¶ This function handles the logic for drone in flight. It calls the collision detection function
-
DroneProject.DroneController.
TakeOffFlyLand
(drone, flight, dronelist, locationlist)[source]¶ Function called to execute a full flight
-
DroneProject.DroneController.
findnearestlocation
(drone, locations)[source]¶ Finds nearest location to drone
-
DroneProject.DroneController.
getdistancetodestination
(drone, flight)[source]¶ Get travel distance from point to point Formula adopted from top answer and source of answer: https://stackoverflow.com/questions/27928/calculate-distance-between-two-latitude-longitude-points-haversine-formula http://www.movable-type.co.uk/scripts/latlong.html
-
DroneProject.DroneController.
getdistancetodrone
(drone, otherdrone)[source]¶ Get travel distance from point to point Formula adopted from top answer and source of answer: https://stackoverflow.com/questions/27928/calculate-distance-between-two-latitude-longitude-points-haversine-formula http://www.movable-type.co.uk/scripts/latlong.html
-
DroneProject.DroneController.
getdistancetoposition
(drone, poslat, poslon)[source]¶ Get travel distance from point to point Formula adopted from top answer and source of answer: https://stackoverflow.com/questions/27928/calculate-distance-between-two-latitude-longitude-points-haversine-formula http://www.movable-type.co.uk/scripts/latlong.html
DroneProject.Flight module¶
DroneProject.FloatInput module¶
-
class
DroneProject.FloatInput.
FloatInput
(*args, **kwargs)[source]¶ Bases:
sphinx.ext.autodoc.importer._MockObject
Class designed to ensure only floats can be used for text input for lat/long values.
Source: https://kivy.org/doc/stable/api_kivy.uix.textinput.html
-
pat
= re.compile('[^-|0-9]')¶
-
DroneProject.Location module¶
DroneProject.MainMenu2 module¶
Original command line script #deprecated
DroneProject.MapViewApp module¶
MapViewApp.py¶
This is the core module for the ADTCS project
-
class
DroneProject.MapViewApp.
DroneMarkerLayer
(**kwargs)[source]¶ Bases:
sphinx.ext.autodoc.importer._MockObject
Class related to CRUD drones operations
-
droneview
= None¶
-
-
class
DroneProject.MapViewApp.
FlightLayer
(**kwargs)[source]¶ Bases:
sphinx.ext.autodoc.importer._MockObject
Class related to flight CRUD operations
-
class
DroneProject.MapViewApp.
LineMapLayer
(**kwargs)[source]¶ Bases:
sphinx.ext.autodoc.importer._MockObject
Class related to displaying lines between destinations !Currently incomplete
-
get_x
(lon)[source]¶ Get the x position on the map using this map source’s projection (0, 0) is located at the top left.
-
-
class
DroneProject.MapViewApp.
LocationMarkerLayer
(**kwargs)[source]¶ Bases:
sphinx.ext.autodoc.importer._MockObject
Class for adding Location and Location Markers
-
locationview
= None¶
-
DroneProject.PrintLists module¶
Used to store functions for printing drone/location/flight lists
DroneProject.VirtualDrone module¶
DroneProject.save_load module¶
Used for functions relating to saving and loading Item Lists