diff --git a/scripts/geolocation-logs-to-kml.py b/scripts/geolocation-logs-to-kml.py index cc54281b..d33d220f 100644 --- a/scripts/geolocation-logs-to-kml.py +++ b/scripts/geolocation-logs-to-kml.py @@ -9,9 +9,9 @@ from modules.common.kml.modules import location_ground -HOME_LOCATION_LATITUDE = 43.47685623168945 # degrees -HOME_LOCATION_LONGITUDE = -80.56877136230469 # degrees -HOME_LOCATION_ALTITUDE = 348.7200012207031 # metres above sea level +HOME_LOCATION_LATITUDE = 43.47445297241211 # degrees +HOME_LOCATION_LONGITUDE = -80.55301666259766 # degrees +HOME_LOCATION_ALTITUDE = 336.25 # metres above sea level def main() -> int: @@ -19,111 +19,48 @@ def main() -> int: Main function. """ geolocation_coordinates = [ - [10.96412141420508, -1.7535836556833015], - [10.824626334516953, -1.3758263570293336], - [10.740049315297938, -1.8419246342642135], - [10.599233569351886, -1.4647170118602102], - [10.782211303710938, -1.6095728874206543], - [10.85372264201112, -1.454620121973409], - [10.703139244840514, -1.0468352921107207], - [10.67474502551541, -1.5252007142664867], - [10.523028245282054, -1.1178878568013508], - [10.688896179199219, -1.2867846488952637], - [9.93025878559225, -1.72464107287649], - [9.79536041556695, -1.3745671151390852], - [9.694509979482978, -1.8176162288245652], - [9.558324937336236, -1.4680781413579387], - [9.744794845581055, -1.596706748008728], - [9.960777081029136, -1.6791483180065343], - [9.834803206427397, -1.3515932104253807], - [9.683211817881576, -1.788617906132208], - [9.555821505291407, -1.4616527304959317], - [9.758810043334961, -1.5706747770309448], - [10.371559282542183, -1.7709655167075604], - [10.250081186856779, -1.4501775831900199], - [10.045146997993921, -1.8996753546295213], - [9.922035071963693, -1.579567633730599], - [10.147351264953613, -1.6755025386810303], - [10.284857658760435, -1.7980182868305539], - [10.149321578943383, -1.4415424066271871], - [9.922116203466699, -1.941054095685029], - [9.784561680492526, -1.5854185904972506], - [10.035395622253418, -1.6920098066329956], - [10.11707835468907, -1.7458657900188919], - [9.976810167660433, -1.3791857802344774], - [9.740855959361516, -1.8942306250266254], - [9.598436275714041, -1.5284465521335768], - [9.858487129211426, -1.6374623775482178], - [10.085153565129666, -1.7509984216910344], - [9.954782531582193, -1.4106646590348728], - [9.73458328604436, -1.8892480175315858], - [9.602351346555693, -1.5496891743538244], - [9.844383239746094, -1.6506069898605347], - [10.00542310545116, -1.7698958162314635], - [9.87159176652444, -1.4217712073055597], - [9.719802540800119, -1.8825331489985138], - [9.58441990449117, -1.535054549104773], - [9.795486450195312, -1.6527905464172363], - [9.924479613968668, -1.7552396072138974], - [9.797773484206546, -1.42666071397226], - [9.7040733884765, -1.842162064670874], - [9.576237636553817, -1.5140536062634826], - [9.750801086425781, -1.6349531412124634], - [10.056653015527381, -1.6659844930319383], - [9.945659692919696, -1.3761880070642598], - [9.75596129882244, -1.7845727710210335], - [9.64361064933754, -1.4953415583713283], - [9.850590705871582, -1.580852746963501], - [10.192898070643356, -1.6941876596080645], - [10.08838387698024, -1.4198973959022128], - [9.910545243554637, -1.8055364763922817], - [9.8048241096792, -1.531748787715475], - [9.999269485473633, -1.613139271736145], - [10.245754611263429, -1.6299646247792592], - [10.138223878567763, -1.3495725067584907], - [9.951284862030295, -1.744885783269507], - [9.842566081915416, -1.4653021604981313], - [10.044498443603516, -1.5477713346481323], - [10.393891895735285, -1.7344048194256718], - [10.285827782155243, -1.452358757536371], - [10.099557332608667, -1.8486109144105491], - [9.990407821228482, -1.5674022340494442], - [10.192439079284668, -1.6510233879089355], - [10.413459078573164, -1.7511082591524847], - [10.307392576673863, -1.4741353537548847], - [10.129784321711067, -1.86114823755815], - [10.022690119866814, -1.5849678253314514], - [10.218352317810059, -1.6681561470031738], - [10.54637168443922, -1.6897972263239764], - [10.444498878172563, -1.4221625389901495], - [10.27096302410055, -1.7966423801620894], - [10.16812621717975, -1.5297506018062672], - [10.357507705688477, -1.6098835468292236], - [10.48241367852133, -1.7239468475119284], - [10.376501177836658, -1.4465273559721283], - [10.198247232789765, -1.8341780667659517], - [10.091303617549436, -1.5575534410292278], - [10.287137031555176, -1.6408685445785522], - [10.410838058471453, -1.6428572256832012], - [10.291459659413094, -1.3306559325718361], - [10.090277772705058, -1.7673576774855964], - [9.969592766193394, -1.4561657484742048], - [10.190567970275879, -1.5496604442596436], - [7.720697013326741, 1.8625177876289838], - [7.634643270724434, 2.204649756102592], - [7.527653073080431, 1.8075562634533624], - [7.4407798378012515, 2.1507995807670164], - [7.581176280975342, 2.0062077045440674], - [12.890380696057893, 3.8093527146060313], - [12.815303802030046, 4.133784459954408], - [12.561653712986693, 3.7306456139089175], - [12.485510239113276, 4.053910180008601], - [12.688065528869629, 3.931558609008789], - [9.634291453293624, 0.08882535691319601], - [9.792006011312195, -0.41606719123484076], - [9.852289040619246, 0.1625812744239513], - [10.00712003075442, -0.3466616338802698], - [9.821788787841797, -0.13018354773521423], + [2.790659928834995, 16.874113944870896], [2.623356099877902, 17.008544774530296], [2.626147444275784, 16.690409828892125], [2.4602290227113843, 16.8232329559531], + [2.6248, 16.849], + [-1.7217417129688413, 12.781458905271222], [-1.8790325733519717, 12.887588926530112], [-1.8295993078138812, 12.619647319312024], [-1.986949665353001, 12.725696635517638], + [-1.8543, 12.754], + [-4.534619877314564, 8.561474015586832], [-4.699962814408373, 8.680765438049978], [-4.64662925743775, 8.395530639325083], [-4.812511581455281, 8.514232508612633], + [-4.6733, 8.5379], + [-0.3896708546718805, 10.90143017460312], [-0.5612814969385918, 11.010820921328301], [-0.5008794534653555, 10.727316361956749], [-0.6724063847345413, 10.836477790440648], + [-0.53106, 10.869], + [0.9859127788731491, 10.988293050232368], [0.8575708310913416, 10.846071894332328], [1.1377052556484528, 10.8658105859535], [1.0088059097521276, 10.72295674606246], + [0.99733, 10.856], + [-2.9298171502249986, 15.17711906382994], [-3.055846919692756, 15.0390657216696], [-2.7845336309596442, 15.05349715518809], [-2.9107711001170857, 14.91507428877176], + [-2.9203, 15.046], + [2.494198997580188, 8.119952340163575], [2.4023086752362186, 7.9923780947458525], [2.630390394826233, 8.029363399180271], [2.538210042301434, 7.901302285376601], + [2.5162, 8.0108], + [5.063378117540398, 9.823682992175764], [4.81708329727323, 9.916016920217123], [4.968479018923111, 9.607841607869501], [4.722704984698731, 9.7011464393237], + [4.8926, 9.7623], + [-4.6587159265035805, 6.648305380190666], [-4.843418206609145, 6.73241568724654], [-4.737097343585498, 6.451358430614076], [-4.922667072023882, 6.535675882920018], + [-4.7904, 6.5921], + [8.173172165068813, 3.315140771140099], [8.018912455815554, 3.1695465934038327], [8.323839299030269, 3.165197444580955], [8.169039588085463, 3.0191733530266736], + [8.1711, 3.1674], + [-15.965186062415532, 21.278327457256133], [-15.924364274055643, 21.487049981367043], [-16.176802378568492, 21.306314633679996], [-16.13607034805477, 21.51583041886965], + [-16.05, 21.397], + [-20.08115191935206, 13.01410200037896], [-20.08702090934152, 13.184627316983896], [-20.26498869213706, 12.993962647666349], [-20.27091090129696, 13.165282872435755], + [-20.176, 13.09], + [-18.327465687344034, 9.14375646769988], [-18.4115372201042, 9.322618872102364], [-18.504643364360323, 9.04034168872473], [-18.589393474897808, 9.220055668784852], + [-18.458, 9.1818], + [-19.68091248109127, 11.901751222660833], [-19.648213154542706, 12.071487222016376], [-19.846307544602336, 11.9161192869239], [-19.81347346459842, 12.086672968598377], + [-19.747, 11.994], + [-16.370913580055845, 19.744173481582973], [-16.554551932349153, 19.768530952323136], [-16.38767685418038, 19.56115941761046], [-16.57126932047408, 19.584451310125495], + [-16.471, 19.665], + [-4.1373978409859085, 22.407747996201742], [-3.9673999540034663, 22.521895007484925], [-4.258813805293411, 22.569507390023944], [-4.088322638214793, 22.684293690727205], + [-4.1129, 22.546], + [0.55766115749679, 12.407296611018072], [0.4297019629507724, 12.493753409878021], [0.4698383062432752, 12.27507454547856], [0.3418210953498789, 12.361501063867264], + [0.44977, 12.384], + [0.16921512752101706, 12.730217335371792], [0.04440558889144285, 12.814842542390213], [0.08336131922145988, 12.601830331993735], [-0.04149670272003058, 12.686436682059918], + [0.063884, 12.708], + [-0.2336184955382102, 13.548196437914639], [-0.34564028371902256, 13.626463222873518], [-0.31283709451625474, 13.434375196017337], [-0.4248374606121404, 13.512525092264468], + [-0.32923, 13.53], + [-0.9531831452666771, 13.153999362402107], [-1.056188239199809, 13.225002131752515], [-1.0231328847445402, 13.052085289194029], [-1.1261390260400979, 13.123022161502512], + [-1.0397, 13.139], + [-1.178295495931934, 13.118219519862457], [-1.2766205432838336, 13.186009760031851], [-1.2464711215265658, 13.019301695524538], [-1.3447803854388976, 13.087032479474708], + [-1.2615, 13.103], ] result, home_location = drone_odometry.DronePosition.create(