payloadcomputerdroneprojekt.test.mission_computer package#

Submodules#

payloadcomputerdroneprojekt.test.mission_computer.test_helper module#

class payloadcomputerdroneprojekt.test.mission_computer.test_helper.TestHelper(methodName='runTest')[source]#

Bases: TestCase

test_count()[source]#
test_count_at()[source]#
test_count_at_0()[source]#
test_load_rec()[source]#

payloadcomputerdroneprojekt.test.mission_computer.test_land module#

class payloadcomputerdroneprojekt.test.mission_computer.test_land.TestLand(methodName='runTest')[source]#

Bases: TestCase

test_land_easy()[source]#
class payloadcomputerdroneprojekt.test.mission_computer.test_land.image(config, camera, comms)[source]#

Bases: ImageAnalysis

async get_current_offset_closest(color, shape, yaw_0=True, indoor=False)[source]#

Get the offset from the drone to the closest object of a given color and shape.

Parameters:
  • color (str) – Color name to detect.

  • shape (str) – Shape name to detect.

  • yaw_zero (bool) – If True, set yaw to zero for calculation.

Returns:

Tuple (offset [x, y], height, yaw offset).

Return type:

tuple or (None, None, None) if not found

async payloadcomputerdroneprojekt.test.mission_computer.test_land.mission()[source]#
payloadcomputerdroneprojekt.test.mission_computer.test_land.random() x in the interval [0, 1).#

payloadcomputerdroneprojekt.test.mission_computer.test_polygon module#

class payloadcomputerdroneprojekt.test.mission_computer.test_polygon.TestPolygonScanPlan(methodName='runTest')[source]#

Bases: TestCase

setUp()[source]#

Hook method for setting up the test fixture before exercising it.

test_export_geojson_creates_file()[source]#
test_invalid_polygon_raises()[source]#
test_plan_scan_returns_mission()[source]#

Module contents#