Пример #1
0
    def test_determine_interpolated_collision(self):
        utm = distance.proj_utm(zone=18, north=True)

        (olat, olon, orad, oheight) = TESTDATA_STATOBST_INTERP_OBS
        pos = GpsPosition(latitude=olat, longitude=olon)
        pos.save()
        obst = StationaryObstacle(gps_position=pos,
                                  cylinder_radius=orad,
                                  cylinder_height=oheight)

        for (inside, uas_details) in TESTDATA_STATOBST_INTERP_TELEM:
            logs = self.create_uas_logs(self.user, uas_details)
            self.assertEqual(
                obst.determine_interpolated_collision(logs[0], logs[1], utm),
                inside)