Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

main.py is the main program that includes functions that call functions from other files. Using file names in other module folders, main.py imports functions from those files, and those functions can now be called anywhere in main.py. Each function written in main.py takes care of a different task.

callTrain() checks if the "targetAcquisition/yolov2_assets" path exists, then imports its module. callTrain() does not call any imported functions.

flightProgram() instantiates a video pipeline, video mediator, and frame capture. flightProgram() then feeds tent coordinates into pipeline, feeds the tent coordinates from pipeline into geolocation, retrieves GPS coordinates from geolocation, and sends these coordinates to the command module. This method calls imported functions decklinkSrcWorker(), pipelineMergeWorker(), targetAcquisitionWorker(), geolocation_locator_worker(), geolocation_output_worker, and flight_command_worker().

...

qrProgram() uses the webcam to detect and decode a QR code to return the string message that the QR contains. The qrProgram() function uses decklinkSrcWorker_taxi() to access a camera stream which provides frames from the camera, and these frames are then passed into qr_worker() as its parameter pipelineIn. qrProgram() calls imported methods decklinkSrcWorker_taxi() and qr_worker().

...

init_logger() initializes the logger with formatted date and time. This method does not call any imported functions.

taxiProgram() → ignore for now

showVideo() displays a user’s default webcam. This function calls imported methods from videoDisplayWorker.py and decklinkSrcWorker_taxi.py.

...