Jeff Mead – Task 4


Here is an example of raw data from a TCP/IP feed from our GPS RTK base station that we have setup for our Autonomous Robot project. The students are having to read the TCP stream with Python and then organise the data into the previously sent GPS position and then the current position. The problem here is that the data is all sent in one big string with a heap of data that is unnecessary. The students need to break it apart into individual variables and discard the excess data.

2019/09/13 05:40:11.000 -33.678731046 115.242653755 25.8894 2 6 0.4806 0.1854 0.4394 -0.1293 -0.2565 0.2588 -0.00 1.1
2019/09/13 05:40:12.000 -33.678731996 115.242654408 25.7539 2 6 0.4813 0.1847 0.4386 -0.1299 -0.2557 0.2596 0.20 1.1
2019/09/13 05:40:13.000 -33.678733388 115.242655125 25.5863 2 6 0.4827 0.1840 0.4374 -0.1295 -0.2545 0.2600 -0.00 1.0
2019/09/13 05:40:14.000 -33.678733674 115.242655184 25.5490 2 6 0.4836 0.1833 0.4364 -0.1295 -0.2536 0.2604 -0.00 1.0
2019/09/13 05:40:15.000 -33.678735294 115.242655641 25.4223 2 6 0.4848 0.1828 0.4359 -0.1301 -0.2530 0.2614 -0.00 1.0
2019/09/13 05:40:16.000 -33.678735753 115.242655575 25.4242 2 6 0.4860 0.1823 0.4355 -0.1308 -0.2524 0.2627 -0.00 1.0
2019/09/13 05:40:17.000 -33.678736850 115.242655895 25.3623 2 6 0.4872 0.1818 0.4351 -0.1315 -0.2519 0.2639 -0.00 1.1
2019/09/13 05:40:18.000 -33.678738187 115.242655782 25.3331 2 4 0.4886 0.1823 0.4365 -0.1328 -0.2529 0.2658 -0.00 1.2
2019/09/13 05:40:19.000 -33.678738823 115.242655393 25.4092 2 4 0.4899 0.1822 0.4367 -0.1334 -0.2528 0.2669 -0.00 1.5
2019/09/13 05:40:20.000 -33.678740129 115.242654980 25.4384 2 4 0.4911 0.1821 0.4367 -0.1338 -0.2527 0.2678 -0.00 1.4
2019/09/13 05:40:21.000 -33.678746096 115.242635177 29.0707 2 5 0.4908 0.1243 0.3512 -0.1517 -0.1713 0.2864 -0.00 2.5
2019/09/13 05:40:22.000 -33.678745532 115.242635393 29.1315 2 7 0.4852 0.1233 0.3477 -0.1482 -0.1691 0.2802 -0.00 1.2
2019/09/13 05:40:23.000 -33.678745400 115.242635656 29.1776 2 7 0.4786 0.1222 0.3439 -0.1442 -0.1667 0.2731 -0.00 1.2
2019/09/13 05:40:24.000 -33.678745731 115.242636079 29.1325 2 7 0.4745 0.1216 0.3413 -0.1419 -0.1652 0.2684 -0.00 1.3
2019/09/13 05:40:25.000 -33.678745096 115.242636549 29.0262 2 8 0.4873 0.1216 0.3433 -0.1418 -0.1654 0.2753 -0.00 1.6
2019/09/13 05:40:26.000 -33.678744610 115.242636777 29.1022 2 7 0.4430 0.1195 0.3278 -0.1267 -0.1588 0.2355 -0.00 1.5
2019/09/13 05:40:27.000 -33.678743998 115.242637318 29.0385 2 7 0.4628 0.1201 0.3345 -0.1342 -0.1615 0.2545 -0.00 1.2
2019/09/13 05:40:28.000 -33.678744649 115.242638065 28.8950 2 7 0.4722 0.1202 0.3386 -0.1374 -0.1628 0.2643 -0.00 1.1
2019/09/13 05:40:29.000 -33.678747524 115.242639101 28.6136 2 8 0.4847 0.1199 0.3408 -0.1391 -0.1630 0.2728 -0.00 1.1
2019/09/13 05:40:30.000 -33.678746858 115.242639557 28.5588 2 7 0.4402 0.1182 0.3259 -0.1240 -0.1568 0.2331 -0.00 1.1
2019/09/13 05:40:31.000 -33.678742376 115.242639553 28.6898 2 8 0.4535 0.1184 0.3310 -0.1286 -0.1586 0.2470 -0.00 1.0
2019/09/13 05:40:32.000 -33.678738948 115.242639665 28.7300 2 8 0.4218 0.1169 0.3200 -0.1168 -0.1537 0.2170 -0.00 1.1
2019/09/13 05:40:33.000 -33.678735589 115.242639714 28.7646 2 8 0.4129 0.1164 0.3166 -0.1130 -0.1522 0.2077 -0.00 1.3
2019/09/13 05:40:34.000 -33.678730992 115.242639471 28.9601 1 7 0.0129 0.0075 0.0409 0.0059 -0.0059 -0.0145 -0.00 3.2
2019/09/13 05:40:35.000 -33.678730970 115.242639450 28.9543 1 7 0.0129 0.0075 0.0409 0.0059 -0.0059 -0.0145 -0.00 3.1
2019/09/13 05:40:36.000 -33.678725538 115.242639626 28.9501 2 7 0.3980 0.1151 0.3123 -0.1060 -0.1495 0.1942 -0.00 1.5
2019/09/13 05:40:37.000 -33.678722598 115.242639731 28.9887 2 7 0.3942 0.1148 0.3113 -0.1040 -0.1488 0.1909 -0.00 1.0
2019/09/13 05:40:38.000 -33.678719319 115.242639659 29.0503 2 8 0.3906 0.1144 0.3102 -0.1023 -0.1481 0.1879 -0.00 1.1
2019/09/13 05:40:39.000 -33.678716504 115.242639935 29.0330 2 8 0.3873 0.1140 0.3093 -0.1006 -0.1474 0.1850 -0.00 1.0
2019/09/13 05:40:40.000 -33.678713051 115.242639823 29.0858 2 8 0.3841 0.1136 0.3083 -0.0989 -0.1467 0.1825 -0.00 1.0
2019/09/13 05:40:41.000 -33.678718247 115.242640725 28.7413 2 6 0.4445 0.1153 0.3264 -0.1198 -0.1539 0.2392 -0.00 1.0
2019/09/13 05:40:42.000 -33.678714564 115.242640442 28.8025 2 7 0.4689 0.1159 0.3353 -0.1274 -0.1570 0.2624 -0.00 1.0
2019/09/13 05:40:43.000 -33.679077883 115.242658553 14.8089 2 7 0.4451 0.1166 0.3335 -0.1251 -0.1577 0.2496 0.20 1.0

+ There are no comments

Add yours

Leave a Reply