Exemplo n.º 1
0
def build_area_jardimSenai():
    geo_home = pp.GeoPoint((-48.45255874975791, -27.43338368181769, 0))
    points = [(-48.45257490160673, -27.43336038312699, 1),
              (-48.45235131274588, -27.43329678596995, 1),
              (-48.45239011279272, -27.43319913253362, 4),
              (-48.45261463110952, -27.43325291267052, 4)]
    geo_points = [pp.GeoPoint(i) for i in points]
    area = pp.Area(geo_home, geo_points)

    return area
Exemplo n.º 2
0
def build_area_C2():
    geo_home = pp.GeoPoint((-47.932949, -22.002467, 0))

    points = [(-47.932749, -22.002332, 7), (-47.932794, -22.002177, 13),
              (-47.932664, -22.002147, 13), (-47.932612, -22.002306, 7)]

    geo_points = [pp.GeoPoint(i) for i in points]

    area = pp.Area(geo_home, geo_points)

    return area
Exemplo n.º 3
0
def build_area_C2():
    geo_home = pp.GeoPoint((-47.9328042, -22.0024053, 0))

    points = [(-47.932749, -22.002332, 7), (-47.932794, -22.002177, 13),
              (-47.932664, -22.002147, 13), (-47.932612, -22.002306, 7)]

    #points = [
    #    (-47.933463, -22.002382, 13),
    #    (-47.933385, -22.002634, 13),
    #    (-47.933463, -22.002382, 5),
    #    (-47.933385, -22.002634, 5)
    #]

    geo_points = [pp.GeoPoint(i) for i in points]

    area = pp.Area(geo_home, geo_points)

    return area
Exemplo n.º 4
0
            
            camera = pp.Camera(
                (78.8, 59.1),
                (4000.0, 3000.0), 
                1, 
                1.0 / 8000.0, 
                12.0, 
                5.0, 
                200.0, 
                (6.17, 4.5), 
                28.0
            )
    

            
            geo_home = pp.GeoPoint((-48.45255874975791, -27.43338368181769, 0))

            points = ((-48.45257490160673, -27.43336038312699, 1), (-48.45235131274588, -27.43329678596995, 1), (-48.45239011279272, -27.43319913253362, 4), (-48.45261463110952, -27.43325291267052, 4))
            geo_points = [pp.GeoPoint(i) for i in points]

            area = pp.Area(geo_home, geo_points)
            run_pathplanning(drone, camera, area)

        if arg == '--loadpresets':
            load_presets()




# Action Functions
# ___________________________________________________________________________