-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyserial.py
57 lines (44 loc) · 40.8 KB
/
pyserial.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
"""
This python code reads sensor outputs from arduino and compare it to the collected dataset.
"""
import serial, sys
import numpy as np
alphaFile = open('Recognition_Result.txt', 'w')
etalist = [[[[4, 11, -15500], [11, 5, -15465], [5, 16, -15403], [16, 19, -15345], [19, 12, -15338], [12, 7, -15302], [7, 2, -15210], [2, 3, -15134], [3, 21, -15035], [21, 6, -14986], [6, 8, -14942], [8, 10, -14841], [10, 1, -14778], [1, 24, -14699], [24, 25, -14677], [25, 17, -14602], [17, 0, -14485], [0, 23, -14387], [23, 14, -14276], [14, 18, -14096], [18, 9, -13738], [9, 15, -13410], [15, 22, -13105], [22, 13, -13069], [13, 20, -12361]], [[6, 18, -6657], [18, 4, -6319], [4, 10, -5911], [10, 13, -5604], [13, 7, -5320], [7, 20, -5213], [20, 12, -5148], [12, 22, -5049], [22, 21, -4878], [21, 0, -4358], [0, 2, -3892], [2, 5, -3763], [5, 1, -3637], [1, 19, -3587], [19, 16, -3467], [16, 23, -3273], [23, 3, -3052], [3, 8, -2890], [8, 11, -2803], [11, 17, -2709], [17, 14, -2421], [14, 9, -2037], [9, 25, -1772], [25, 15, -1459], [15, 24, -1264]], [[6, 2, -12730], [2, 11, -11869], [11, 24, -10676], [24, 5, -10177], [5, 16, -10012], [16, 19, -9941], [19, 25, -9734], [25, 3, -9592], [3, 8, -9446], [8, 4, -9228], [4, 15, -8936], [15, 12, -8923], [12, 7, -8831], [7, 17, -8577], [17, 21, -8292], [21, 1, -8140], [1, 14, -7994], [14, 23, -7855], [23, 10, -7712], [10, 0, -7512], [0, 9, -7121], [9, 18, -6047], [18, 22, -5500], [22, 13, -4716], [13, 20, -4337]], [[14, 11, 228], [11, 4, 285], [4, 21, 293], [21, 2, 302], [2, 25, 318], [25, 5, 320], [5, 1, 339], [1, 0, 349], [0, 3, 382], [3, 6, 531], [6, 12, 712], [12, 17, 738], [17, 10, 771], [10, 15, 781], [15, 7, 790], [7, 13, 798], [13, 23, 827], [23, 22, 829], [22, 19, 831], [19, 16, 832], [16, 8, 834], [8, 20, 846], [20, 18, 883], [18, 9, 912], [9, 24, 927]], [[22, 24, -42], [24, 6, -28], [6, 17, -23], [17, 21, -17], [21, 11, -16], [11, 0, -12], [0, 14, -7], [14, 9, -6], [9, 18, -5], [18, 8, -5], [8, 20, -1], [20, 4, 0], [4, 10, 5], [10, 5, 11], [5, 16, 15], [16, 15, 17], [15, 2, 21], [2, 19, 24], [19, 25, 25], [25, 23, 27], [23, 3, 31], [3, 12, 35], [12, 7, 39], [7, 1, 41], [1, 13, 42]], [[10, 6, -218], [6, 4, -155], [4, 13, -92], [13, 17, -68], [17, 7, -56], [7, 5, -45], [5, 12, -39], [12, 25, -25], [25, 9, -14], [9, 21, -13], [21, 11, -12], [11, 14, -9], [14, 3, -4], [3, 0, -2], [0, 18, 0], [18, 1, 1], [1, 19, 5], [19, 20, 9], [20, 8, 13], [8, 15, 15], [15, 23, 18], [23, 2, 19], [2, 22, 20], [22, 24, 23], [24, 16, 26]]], [[[12, 16, -15378], [16, 5, -15349], [5, 11, -15329], [11, 19, -15317], [19, 4, -15243], [4, 2, -15137], [2, 21, -15060], [21, 6, -14993], [6, 7, -14952], [7, 8, -14859], [8, 1, -14778], [1, 10, -14752], [10, 3, -14683], [3, 17, -14608], [17, 24, -14558], [24, 25, -14502], [25, 0, -14419], [0, 23, -14416], [23, 14, -14155], [14, 18, -14117], [18, 15, -13714], [15, 9, -13342], [9, 22, -13265], [22, 13, -13150], [13, 20, -12723]], [[6, 18, -10160], [18, 10, -6525], [10, 4, -6047], [4, 22, -5724], [22, 12, -5466], [12, 13, -5446], [13, 20, -5411], [20, 7, -5164], [7, 21, -4850], [21, 19, -4415], [19, 0, -3994], [0, 2, -3824], [2, 1, -3716], [1, 16, -3666], [16, 5, -3584], [5, 23, -3424], [23, 17, -3206], [17, 8, -3085], [8, 11, -2993], [11, 3, -2861], [3, 14, -2510], [14, 9, -2034], [9, 25, -1754], [25, 15, -1544], [15, 24, -1402]], [[6, 2, -15525], [2, 11, -11909], [11, 24, -10599], [24, 16, -10248], [16, 19, -10202], [19, 3, -10083], [3, 5, -9932], [5, 25, -9814], [25, 4, -9205], [4, 8, -9178], [8, 12, -9112], [12, 15, -9067], [15, 7, -8744], [7, 17, -8372], [17, 1, -8258], [1, 21, -8184], [21, 23, -8123], [23, 14, -7998], [14, 10, -7761], [10, 0, -7566], [0, 9, -7203], [9, 18, -6530], [18, 22, -5721], [22, 13, -5025], [13, 20, -4294]], [[14, 11, 225], [11, 4, 257], [4, 21, 301], [21, 2, 305], [2, 5, 316], [5, 25, 323], [25, 1, 329], [1, 0, 356], [0, 3, 381], [3, 6, 459], [6, 12, 711], [12, 17, 738], [17, 10, 772], [10, 15, 781], [15, 7, 789], [7, 13, 800], [13, 22, 828], [22, 23, 829], [23, 19, 831], [19, 16, 833], [16, 8, 833], [8, 20, 845], [20, 9, 885], [9, 18, 914], [18, 24, 921]], [[3, 25, -1108], [25, 11, -1018], [11, 4, -973], [4, 24, -660], [24, 5, -323], [5, 6, -170], [6, 14, -61], [14, 9, -25], [9, 7, -7], [7, 15, 56], [15, 1, 115], [1, 17, 136], [17, 23, 195], [23, 13, 262], [13, 8, 297], [8, 18, 323], [18, 16, 345], [16, 19, 376], [19, 22, 418], [22, 2, 446], [2, 21, 464], [21, 0, 483], [0, 10, 534], [10, 12, 627], [12, 20, 736]], [[3, 4, -2740], [4, 12, -2151], [12, 7, -1988], [7, 10, -1888], [10, 19, -1564], [19, 25, -1279], [25, 22, -1182], [22, 11, -1079], [11, 23, -1058], [23, 24, -922], [24, 9, -770], [9, 13, -717], [13, 5, -654], [5, 8, -617], [8, 16, -603], [16, 15, -595], [15, 18, -573], [18, 0, -526], [0, 17, -486], [17, 21, -454], [21, 2, -427], [2, 20, -372], [20, 1, -254], [1, 14, -99], [14, 6, 3]]], [[[6, 5, -14855], [5, 2, -14609], [2, 21, -14392], [21, 1, -14338], [1, 14, -14231], [14, 4, -14109], [4, 12, -14058], [12, 11, -14029], [11, 16, -13971], [16, 8, -13860], [8, 3, -13744], [3, 7, -13705], [7, 0, -13671], [0, 25, -13583], [25, 19, -13529], [19, 18, -13422], [18, 10, -13308], [10, 23, -13287], [23, 24, -13212], [24, 17, -13087], [17, 15, -12762], [15, 13, -12486], [13, 9, -12384], [9, 22, -12184], [22, 20, -11856]], [[6, 18, -9823], [18, 4, -6047], [4, 10, -5475], [10, 12, -4450], [12, 7, -3900], [7, 13, -3854], [13, 3, -3741], [3, 23, -3575], [23, 20, -3464], [20, 1, -3405], [1, 0, -3182], [0, 22, -2970], [22, 2, -2903], [2, 5, -2755], [5, 21, -2653], [21, 14, -2438], [14, 25, -2153], [25, 11, -1849], [11, 16, -1512], [16, 19, -1354], [19, 17, -1283], [17, 9, -1260], [9, 8, -1114], [8, 15, -923], [15, 24, -354]], [[6, 2, -14976], [2, 5, -10513], [5, 15, -8626], [15, 8, -8240], [8, 21, -8211], [21, 11, -8137], [11, 24, -8060], [24, 16, -8015], [16, 14, -7963], [14, 1, -7767], [1, 19, -7356], [19, 12, -6957], [12, 0, -6415], [0, 7, -6413], [7, 25, -6380], [25, 17, -6216], [17, 3, -6064], [3, 4, -5961], [4, 23, -5862], [23, 9, -5595], [9, 18, -5240], [18, 10, -4966], [10, 13, -4755], [13, 22, -4458], [22, 20, -4040]], [[14, 11, 225], [11, 4, 289], [4, 21, 293], [21, 2, 302], [2, 25, 325], [25, 5, 327], [5, 1, 333], [1, 0, 359], [0, 3, 373], [3, 6, 459], [6, 12, 708], [12, 17, 758], [17, 10, 768], [10, 15, 789], [15, 7, 793], [7, 13, 804], [13, 22, 817], [22, 23, 831], [23, 8, 832], [8, 19, 835], [19, 16, 841], [16, 20, 857], [20, 9, 884], [9, 18, 912], [18, 24, 924]], [[11, 10, -2736], [10, 4, -2269], [4, 25, -2216], [25, 19, -2075], [19, 7, -1867], [7, 24, -1755], [24, 3, -1648], [3, 22, -1506], [22, 12, -1422], [12, 5, -1343], [5, 16, -1291], [16, 17, -1246], [17, 9, -1146], [9, 20, -1010], [20, 8, -914], [8, 23, -884], [23, 21, -841], [21, 13, -803], [13, 0, -570], [0, 15, -339], [15, 2, -258], [2, 6, -167], [6, 14, -87], [14, 1, 45], [1, 18, 234]], [[23, 10, -2772], [10, 19, -2590], [19, 24, -2386], [24, 11, -2331], [11, 17, -2291], [17, 4, -2107], [4, 1, -2095], [1, 7, -2071], [7, 16, -1939], [16, 8, -1703], [8, 0, -1575], [0, 12, -1489], [12, 3, -1384], [3, 25, -1283], [25, 15, -1156], [15, 2, -1066], [2, 5, -1016], [5, 9, -849], [9, 18, -524], [18, 14, -87], [14, 6, 198], [6, 20, 242], [20, 21, 278], [21, 13, 336], [13, 22, 389]]], [[[6, 5, -14734], [5, 21, -14560], [21, 2, -14468], [2, 14, -14324], [14, 4, -14095], [4, 16, -13939], [16, 12, -13842], [12, 3, -13751], [3, 11, -13691], [11, 0, -13682], [0, 18, -13656], [18, 1, -13565], [1, 8, -13472], [8, 7, -13445], [7, 25, -13395], [25, 13, -13172], [13, 19, -12981], [19, 24, -12945], [24, 23, -12860], [23, 22, -12851], [22, 10, -12831], [10, 17, -12774], [17, 15, -12555], [15, 9, -12507], [9, 20, -12240]], [[6, 18, -10202], [18, 4, -6991], [4, 10, -6671], [10, 12, -5737], [12, 7, -4901], [7, 23, -4680], [23, 13, -4441], [13, 3, -4331], [3, 20, -4201], [20, 22, -4135], [22, 0, -4126], [0, 1, -4013], [1, 2, -3672], [2, 21, -3197], [21, 5, -2777], [5, 25, -2577], [25, 11, -2435], [11, 16, -2276], [16, 9, -2089], [9, 14, -1934], [14, 19, -1844], [19, 17, -1677], [17, 8, -1491], [8, 15, -1355], [15, 24, -956]], [[6, 2, -14841], [2, 5, -9995], [5, 14, -8223], [14, 21, -8022], [21, 15, -7624], [15, 16, -7270], [16, 8, -7145], [8, 11, -6954], [11, 24, -6805], [24, 25, -6345], [25, 19, -6198], [19, 0, -5989], [0, 1, -5871], [1, 4, -5804], [4, 3, -5745], [3, 18, -5603], [18, 12, -5497], [12, 17, -5451], [17, 9, -5335], [9, 7, -5029], [7, 23, -4717], [23, 22, -4518], [22, 13, -4282], [13, 10, -3817], [10, 20, -3621]], [[14, 11, 226], [11, 4, 258], [4, 21, 293], [21, 2, 302], [2, 5, 313], [5, 25, 319], [25, 1, 331], [1, 0, 346], [0, 3, 373], [3, 6, 460], [6, 12, 623], [12, 17, 738], [17, 10, 771], [10, 15, 787], [15, 7, 795], [7, 13, 805], [13, 22, 827], [22, 8, 829], [8, 23, 830], [23, 19, 832], [19, 16, 834], [16, 20, 846], [20, 18, 884], [18, 9, 912], [9, 24, 924]], [[19, 10, -1923], [10, 12, -1612], [12, 16, -1512], [16, 17, -1394], [17, 8, -1274], [8, 7, -1249], [7, 1, -1196], [1, 23, -1126], [23, 24, -1056], [24, 11, -967], [11, 18, -917], [18, 15, -876], [15, 20, -795], [20, 0, -765], [0, 5, -664], [5, 4, -591], [4, 25, -559], [25, 2, -494], [2, 21, -421], [21, 3, -177], [3, 9, 62], [9, 6, 141], [6, 14, 195], [14, 13, 217], [13, 22, 730]], [[1, 23, -1034], [23, 11, -483], [11, 8, -430], [8, 2, -392], [2, 24, -208], [24, 15, -126], [15, 12, -24], [12, 25, -2], [25, 0, 14], [0, 5, 31], [5, 19, 34], [19, 16, 72], [16, 10, 156], [10, 9, 205], [9, 17, 220], [17, 7, 267], [7, 21, 305], [21, 20, 342], [20, 6, 435], [6, 3, 498], [3, 14, 597], [14, 18, 738], [18, 4, 938], [4, 13, 1277], [13, 22, 1962]]], [[[21, 5, -14882], [5, 4, -14797], [4, 6, -14641], [6, 2, -14521], [2, 12, -14466], [12, 14, -14367], [14, 7, -14217], [7, 22, -14056], [22, 0, -13939], [0, 16, -13920], [16, 3, -13898], [3, 13, -13876], [13, 1, -13821], [1, 11, -13786], [11, 18, -13716], [18, 8, -13616], [8, 10, -13572], [10, 19, -13546], [19, 17, -13520], [17, 24, -13497], [24, 25, -13456], [25, 15, -13317], [15, 23, -13193], [23, 9, -12943], [9, 20, -12599]], [[6, 18, -10629], [18, 4, -7148], [4, 10, -6419], [10, 7, -5818], [7, 23, -5156], [23, 1, -4829], [1, 12, -4517], [12, 20, -4304], [20, 0, -4071], [0, 3, -3954], [3, 13, -3875], [13, 19, -3686], [19, 2, -3512], [2, 21, -3455], [21, 5, -3301], [5, 22, -3159], [22, 11, -2902], [11, 25, -2650], [25, 9, -2581], [9, 8, -2512], [8, 17, -2313], [17, 15, -1922], [15, 16, -1683], [16, 14, -1631], [14, 24, -1419]], [[6, 2, -14813], [2, 14, -10131], [14, 5, -8751], [5, 21, -8690], [21, 15, -8452], [15, 16, -7957], [16, 24, -7648], [24, 12, -7563], [12, 4, -7393], [4, 22, -7252], [22, 17, -7020], [17, 11, -6790], [11, 8, -6697], [8, 3, -6566], [3, 25, -6492], [25, 0, -6412], [0, 13, -6322], [13, 7, -6280], [7, 19, -6130], [19, 1, -5882], [1, 9, -5597], [9, 18, -5368], [18, 10, -5176], [10, 23, -4908], [23, 20, -4494]], [[14, 11, 231], [11, 4, 291], [4, 21, 293], [21, 2, 299], [2, 5, 313], [5, 25, 323], [25, 1, 336], [1, 0, 361], [0, 3, 379], [3, 6, 457], [6, 12, 708], [12, 17, 757], [17, 10, 767], [10, 15, 780], [15, 7, 791], [7, 13, 802], [13, 23, 828], [23, 22, 830], [22, 8, 832], [8, 16, 834], [16, 19, 835], [19, 20, 846], [20, 18, 884], [18, 9, 912], [9, 24, 925]], [[2, 18, -463], [18, 1, -272], [1, 6, -58], [6, 0, 50], [0, 11, 66], [11, 8, 151], [8, 16, 257], [16, 12, 291], [12, 9, 354], [9, 23, 412], [23, 3, 474], [3, 21, 564], [21, 5, 619], [5, 19, 648], [19, 14, 671], [14, 25, 690], [25, 15, 695], [15, 20, 745], [20, 17, 825], [17, 7, 902], [7, 10, 956], [10, 4, 1145], [4, 13, 1340], [13, 24, 1442], [24, 22, 1582]], [[8, 18, -394], [18, 9, -264], [9, 2, -220], [2, 19, -144], [19, 25, -60], [25, 11, 91], [11, 5, 324], [5, 6, 779], [6, 23, 1199], [23, 14, 1247], [14, 20, 1297], [20, 3, 1347], [3, 24, 1384], [24, 0, 1440], [0, 21, 1564], [21, 1, 1716], [1, 15, 1937], [15, 16, 2272], [16, 7, 2481], [7, 17, 2573], [17, 10, 2632], [10, 4, 2866], [4, 12, 3126], [12, 13, 3264], [13, 22, 3429]]], [[[21, 4, -15272], [4, 5, -15079], [5, 12, -14898], [12, 6, -14853], [6, 7, -14783], [7, 16, -14693], [16, 14, -14616], [14, 22, -14549], [22, 10, -14454], [10, 3, -14412], [3, 13, -14392], [13, 2, -14353], [2, 0, -14300], [0, 1, -14248], [1, 17, -14131], [17, 11, -14009], [11, 24, -13958], [24, 23, -13838], [23, 15, -13708], [15, 8, -13629], [8, 25, -13560], [25, 19, -13555], [19, 18, -13536], [18, 20, -13235], [20, 9, -12713]], [[6, 18, -10151], [18, 4, -6497], [4, 10, -5278], [10, 23, -5000], [23, 7, -4773], [7, 19, -4396], [19, 1, -4036], [1, 12, -3886], [12, 20, -3720], [20, 21, -3604], [21, 3, -3514], [3, 13, -3464], [13, 5, -3379], [5, 2, -3305], [2, 0, -3219], [0, 22, -3036], [22, 8, -2856], [8, 25, -2703], [25, 11, -2612], [11, 9, -2316], [9, 17, -1946], [17, 16, -1706], [16, 24, -1412], [24, 14, -1238], [14, 15, -1145]], [[6, 2, -15167], [2, 21, -10723], [21, 14, -10020], [14, 15, -9890], [15, 16, -9819], [16, 4, -9525], [4, 12, -9004], [12, 5, -8733], [5, 24, -8697], [24, 22, -8614], [22, 17, -8424], [17, 13, -8193], [13, 7, -8060], [7, 1, -7967], [1, 3, -7905], [3, 0, -7832], [0, 11, -7554], [11, 10, -7218], [10, 8, -6888], [8, 25, -6646], [25, 19, -6334], [19, 23, -6032], [23, 20, -5727], [20, 9, -5328], [9, 18, -5059]], [[14, 11, 216], [11, 4, 258], [4, 21, 295], [21, 2, 301], [2, 25, 314], [25, 5, 324], [5, 1, 336], [1, 0, 358], [0, 3, 382], [3, 6, 459], [6, 12, 712], [12, 17, 758], [17, 10, 767], [10, 15, 781], [15, 7, 792], [7, 13, 802], [13, 22, 828], [22, 23, 830], [23, 19, 832], [19, 8, 832], [8, 16, 835], [16, 20, 858], [20, 18, 884], [18, 9, 910], [9, 24, 920]], [[2, 9, -338], [9, 18, -218], [18, 6, -145], [6, 22, -35], [22, 5, 25], [5, 8, 100], [8, 13, 158], [13, 0, 211], [0, 12, 281], [12, 1, 310], [1, 17, 333], [17, 23, 423], [23, 19, 500], [19, 24, 501], [24, 11, 530], [11, 15, 576], [15, 4, 624], [4, 25, 670], [25, 3, 696], [3, 10, 746], [10, 21, 798], [21, 7, 842], [7, 14, 965], [14, 16, 1134], [16, 20, 1232]], [[22, 19, -440], [19, 13, -384], [13, 4, -267], [4, 25, -89], [25, 8, -86], [8, 12, -25], [12, 5, 57], [5, 2, 101], [2, 18, 130], [18, 24, 284], [24, 9, 428], [9, 6, 456], [6, 17, 662], [17, 11, 919], [11, 15, 1152], [15, 7, 1328], [7, 0, 1357], [0, 14, 1386], [14, 10, 1449], [10, 20, 1627], [20, 3, 1795], [3, 16, 1834], [16, 23, 1848], [23, 1, 1873], [1, 21, 1945]]], [[[21, 16, -15389], [16, 14, -14964], [14, 6, -14887], [6, 3, -14869], [3, 5, -14837], [5, 4, -14785], [4, 7, -14631], [7, 11, -14472], [11, 23, -14390], [23, 2, -14307], [2, 0, -14250], [0, 1, -14213], [1, 22, -14127], [22, 10, -14055], [10, 12, -13974], [12, 18, -13791], [18, 20, -13679], [20, 24, -13664], [24, 17, -13648], [17, 25, -13642], [25, 15, -13570], [15, 13, -13423], [13, 8, -13336], [8, 19, -13324], [19, 9, -13155]], [[6, 18, -10012], [18, 4, -6089], [4, 10, -4948], [10, 23, -4556], [23, 7, -4163], [7, 21, -3722], [21, 1, -3622], [1, 22, -3537], [22, 3, -3334], [3, 19, -3152], [19, 20, -3085], [20, 12, -3040], [12, 5, -2994], [5, 2, -2956], [2, 0, -2887], [0, 13, -2813], [13, 25, -2728], [25, 16, -2616], [16, 11, -2513], [11, 8, -2256], [8, 9, -2013], [9, 17, -1766], [17, 14, -1390], [14, 15, -1048], [15, 24, -844]], [[6, 2, -15385], [2, 21, -11435], [21, 14, -11266], [14, 16, -10743], [16, 15, -9974], [15, 5, -9355], [5, 3, -9048], [3, 24, -8744], [24, 11, -8356], [11, 7, -8170], [7, 0, -8096], [0, 4, -8024], [4, 17, -7873], [17, 12, -7598], [12, 22, -7354], [22, 23, -7249], [23, 1, -7157], [1, 10, -6907], [10, 8, -6706], [8, 25, -6633], [25, 20, -6535], [20, 13, -6241], [13, 9, -5990], [9, 19, -5934], [19, 18, -5695]], [[14, 11, 223], [11, 4, 292], [4, 21, 296], [21, 2, 301], [2, 5, 322], [5, 25, 323], [25, 1, 331], [1, 0, 358], [0, 3, 369], [3, 6, 458], [6, 12, 713], [12, 17, 762], [17, 10, 770], [10, 15, 788], [15, 7, 793], [7, 13, 800], [13, 22, 826], [22, 8, 828], [8, 19, 830], [19, 23, 830], [23, 16, 833], [16, 20, 854], [20, 18, 882], [18, 9, 909], [9, 24, 920]], [[13, 22, -772], [22, 4, -524], [4, 17, -473], [17, 15, -332], [15, 2, -323], [2, 5, -302], [5, 6, -274], [6, 8, -249], [8, 12, -236], [12, 24, -185], [24, 7, -181], [7, 1, -113], [1, 19, -42], [19, 0, 74], [0, 25, 257], [25, 18, 338], [18, 23, 353], [23, 21, 407], [21, 16, 476], [16, 9, 506], [9, 3, 512], [3, 10, 555], [10, 11, 666], [11, 14, 925], [14, 20, 1220]], [[12, 13, -3267], [13, 10, -2849], [10, 22, -2618], [22, 4, -2154], [4, 0, -1708], [0, 17, -1590], [17, 15, -1497], [15, 24, -1350], [24, 7, -1220], [7, 1, -1142], [1, 16, -1077], [16, 8, -529], [8, 6, 38], [6, 25, 122], [25, 19, 201], [19, 5, 314], [5, 2, 402], [2, 14, 629], [14, 18, 877], [18, 21, 1009], [21, 3, 1144], [3, 11, 1253], [11, 20, 1321], [20, 9, 1446], [9, 23, 1573]]], [[[21, 14, -15546], [14, 5, -15129], [5, 16, -14956], [16, 11, -14820], [11, 3, -14763], [3, 23, -14700], [23, 6, -14666], [6, 2, -14215], [2, 20, -14174], [20, 18, -14125], [18, 4, -14083], [4, 7, -14047], [7, 1, -14030], [1, 12, -13922], [12, 25, -13785], [25, 0, -13726], [0, 8, -13708], [8, 19, -13676], [19, 22, -13604], [22, 9, -13546], [9, 15, -13445], [15, 13, -13327], [13, 10, -13275], [10, 24, -13249], [24, 17, -13106]], [[6, 18, -10209], [18, 10, -6256], [10, 4, -5402], [4, 23, -5000], [23, 12, -4409], [12, 1, -4190], [1, 22, -4081], [22, 7, -3929], [7, 21, -3828], [21, 13, -3642], [13, 20, -3479], [20, 0, -3321], [0, 19, -3122], [19, 5, -3032], [5, 16, -2998], [16, 2, -2949], [2, 3, -2802], [3, 8, -2642], [8, 11, -2507], [11, 25, -2412], [25, 9, -2255], [9, 17, -1803], [17, 14, -1487], [14, 15, -1316], [15, 24, -927]], [[6, 2, -15337], [2, 21, -11742], [21, 14, -11632], [14, 5, -10593], [5, 11, -9489], [11, 3, -9196], [3, 16, -9014], [16, 15, -8969], [15, 23, -8422], [23, 20, -7595], [20, 24, -7275], [24, 7, -7203], [7, 9, -7131], [9, 8, -6999], [8, 25, -6828], [25, 0, -6733], [0, 1, -6626], [1, 4, -6297], [4, 18, -6230], [18, 19, -6071], [19, 17, -5908], [17, 12, -5805], [12, 22, -5493], [22, 13, -5363], [13, 10, -5136]], [[14, 11, 229], [11, 4, 261], [4, 21, 297], [21, 2, 303], [2, 25, 323], [25, 5, 325], [5, 1, 331], [1, 0, 361], [0, 3, 373], [3, 6, 460], [6, 12, 623], [12, 17, 733], [17, 10, 767], [10, 15, 781], [15, 7, 791], [7, 13, 804], [13, 22, 816], [22, 8, 829], [8, 19, 830], [19, 23, 831], [23, 16, 834], [16, 20, 846], [20, 9, 883], [9, 18, 910], [18, 24, 921]], [[17, 10, -852], [10, 7, -644], [7, 0, -542], [0, 4, -470], [4, 12, -444], [12, 24, -424], [24, 3, -382], [3, 16, -333], [16, 1, -303], [1, 15, -254], [15, 22, -206], [22, 6, -184], [6, 2, -90], [2, 21, 42], [21, 25, 107], [25, 19, 131], [19, 23, 151], [23, 9, 165], [9, 8, 208], [8, 18, 269], [18, 13, 334], [13, 5, 395], [5, 11, 571], [11, 14, 810], [14, 20, 890]], [[16, 4, -1727], [4, 17, -1437], [17, 10, -1245], [10, 24, -1087], [24, 0, -1014], [0, 15, -933], [15, 22, -892], [22, 3, -809], [3, 7, -700], [7, 6, -575], [6, 1, -431], [1, 21, -248], [21, 23, -88], [23, 14, 54], [14, 20, 200], [20, 2, 328], [2, 12, 428], [12, 25, 677], [25, 18, 968], [18, 9, 1049], [9, 5, 1079], [5, 11, 1181], [11, 13, 1310], [13, 8, 1449], [8, 19, 1621]]], [[[21, 14, -15624], [14, 5, -15272], [5, 11, -15130], [11, 6, -14900], [6, 3, -14656], [3, 12, -14550], [12, 19, -14498], [19, 18, -14469], [18, 23, -14443], [23, 2, -14401], [2, 16, -14375], [16, 8, -14350], [8, 7, -14281], [7, 13, -14211], [13, 20, -14172], [20, 4, -14139], [4, 1, -14064], [1, 0, -14006], [0, 25, -13967], [25, 22, -13891], [22, 9, -13818], [9, 10, -13674], [10, 24, -13498], [24, 15, -13389], [15, 17, -13280]], [[6, 18, -10358], [18, 4, -6915], [4, 10, -6660], [10, 7, -5812], [7, 12, -4915], [12, 1, -4670], [1, 23, -4578], [23, 21, -4240], [21, 22, -3935], [22, 0, -3898], [0, 13, -3791], [13, 20, -3653], [20, 19, -3443], [19, 3, -3186], [3, 5, -3011], [5, 2, -2897], [2, 8, -2807], [8, 17, -2741], [17, 16, -2713], [16, 11, -2477], [11, 25, -2137], [25, 9, -2008], [9, 14, -1967], [14, 15, -1741], [15, 24, -1475]], [[6, 2, -15471], [2, 14, -11889], [14, 21, -11482], [21, 11, -10750], [11, 5, -10079], [5, 15, -9333], [15, 3, -8666], [3, 8, -8446], [8, 16, -8135], [16, 19, -7979], [19, 12, -7831], [12, 25, -7670], [25, 23, -7445], [23, 9, -7404], [9, 13, -7151], [13, 20, -7118], [20, 24, -7053], [24, 18, -6917], [18, 7, -6688], [7, 0, -6464], [0, 1, -6320], [1, 22, -6194], [22, 4, -6096], [4, 17, -5983], [17, 10, -5587]], [[14, 11, 227], [11, 4, 258], [4, 21, 296], [21, 2, 303], [2, 5, 315], [5, 25, 321], [25, 1, 332], [1, 0, 359], [0, 3, 385], [3, 6, 461], [6, 12, 705], [12, 17, 758], [17, 10, 769], [10, 15, 789], [15, 7, 793], [7, 13, 800], [13, 22, 826], [22, 23, 827], [23, 8, 829], [8, 19, 829], [19, 16, 834], [16, 20, 854], [20, 9, 883], [9, 18, 914], [18, 24, 927]], [[10, 4, -550], [4, 16, -546], [16, 3, -414], [3, 24, -258], [24, 21, -213], [21, 6, -159], [6, 1, -106], [1, 9, -83], [9, 15, -76], [15, 23, -73], [23, 17, -72], [17, 20, -43], [20, 18, 7], [18, 25, 82], [25, 2, 148], [2, 0, 213], [0, 7, 264], [7, 14, 286], [14, 11, 415], [11, 5, 524], [5, 8, 544], [8, 12, 625], [12, 19, 854], [19, 22, 1088], [22, 13, 1321]], [[21, 23, -975], [23, 20, -851], [20, 16, -777], [16, 6, -692], [6, 14, -644], [14, 3, -595], [3, 15, -315], [15, 7, -14], [7, 1, 87], [1, 4, 230], [4, 17, 320], [17, 2, 362], [2, 9, 423], [9, 24, 613], [24, 18, 797], [18, 10, 879], [10, 11, 946], [11, 5, 1010], [5, 0, 1166], [0, 25, 1296], [25, 8, 1548], [8, 13, 1812], [13, 22, 1949], [22, 19, 2261], [19, 12, 2688]]], [[[21, 14, -15311], [14, 11, -15288], [11, 5, -15245], [5, 19, -15166], [19, 12, -14998], [12, 8, -14825], [8, 6, -14739], [6, 18, -14665], [18, 0, -14611], [0, 2, -14574], [2, 22, -14539], [22, 13, -14527], [13, 3, -14398], [3, 7, -14254], [7, 25, -14171], [25, 1, -14098], [1, 4, -14083], [4, 16, -14075], [16, 23, -14031], [23, 20, -13945], [20, 9, -13856], [9, 10, -13796], [10, 24, -13736], [24, 17, -13590], [17, 15, -13413]], [[6, 18, -10278], [18, 4, -6727], [4, 10, -6268], [10, 7, -5696], [7, 12, -5167], [12, 1, -4777], [1, 23, -4649], [23, 20, -4395], [20, 21, -4119], [21, 13, -4038], [13, 0, -3891], [0, 22, -3762], [22, 3, -3537], [3, 19, -3346], [19, 2, -3196], [2, 17, -2959], [17, 5, -2832], [5, 11, -2654], [11, 8, -2512], [8, 14, -2292], [14, 16, -2039], [16, 9, -1971], [9, 15, -1796], [15, 24, -1506], [24, 25, -1357]], [[6, 2, -15538], [2, 14, -11739], [14, 5, -11214], [5, 11, -10935], [11, 21, -10259], [21, 19, -9871], [19, 8, -9371], [8, 15, -8946], [15, 25, -8573], [25, 12, -8438], [12, 22, -8246], [22, 3, -8068], [3, 13, -7945], [13, 16, -7872], [16, 24, -7812], [24, 0, -7764], [0, 9, -7582], [9, 18, -7223], [18, 7, -6812], [7, 23, -6578], [23, 1, -6568], [1, 20, -6511], [20, 4, -6348], [4, 17, -6181], [17, 10, -5970]], [[14, 11, 229], [11, 4, 259], [4, 21, 294], [21, 2, 304], [2, 5, 316], [5, 25, 324], [25, 1, 330], [1, 0, 349], [0, 3, 388], [3, 6, 462], [6, 12, 707], [12, 17, 734], [17, 10, 768], [10, 15, 781], [15, 7, 791], [7, 13, 806], [13, 22, 828], [22, 23, 829], [23, 16, 833], [16, 19, 835], [19, 8, 837], [8, 20, 848], [20, 18, 884], [18, 9, 913], [9, 24, 925]], [[20, 15, -428], [15, 18, -283], [18, 21, -199], [21, 9, -177], [9, 23, -147], [23, 14, -114], [14, 13, -100], [13, 1, -94], [1, 10, -60], [10, 3, -11], [3, 12, 38], [12, 25, 45], [25, 17, 54], [17, 6, 114], [6, 8, 209], [8, 2, 259], [2, 7, 274], [7, 16, 297], [16, 5, 317], [5, 11, 347], [11, 0, 394], [0, 24, 423], [24, 4, 530], [4, 19, 646], [19, 22, 840]], [[21, 3, -1374], [3, 23, -1224], [23, 20, -1048], [20, 14, -983], [14, 12, -863], [12, 6, -687], [6, 7, -457], [7, 13, -223], [13, 9, -90], [9, 5, -58], [5, 15, -34], [15, 18, 60], [18, 1, 200], [1, 11, 281], [11, 2, 354], [2, 10, 493], [10, 4, 600], [4, 17, 639], [17, 8, 717], [8, 16, 776], [16, 25, 925], [25, 24, 1088], [24, 19, 1225], [19, 22, 1474], [22, 0, 1729]]], [[[5, 21, -15418], [21, 19, -15385], [19, 11, -15336], [11, 14, -15243], [14, 6, -15097], [6, 2, -14881], [2, 8, -14735], [8, 22, -14695], [22, 18, -14601], [18, 12, -14524], [12, 0, -14448], [0, 1, -14366], [1, 4, -14314], [4, 13, -14288], [13, 25, -14282], [25, 3, -14258], [3, 16, -14220], [16, 10, -14113], [10, 24, -13996], [24, 7, -13954], [7, 23, -13889], [23, 9, -13775], [9, 17, -13664], [17, 20, -13587], [20, 15, -13524]], [[6, 18, -10348], [18, 4, -6461], [4, 10, -5978], [10, 12, -5533], [12, 7, -5174], [7, 23, -4985], [23, 1, -4888], [1, 20, -4634], [20, 13, -4436], [13, 21, -4354], [21, 22, -4021], [22, 3, -3664], [3, 19, -3504], [19, 5, -3343], [5, 0, -3220], [0, 2, -3174], [2, 17, -2936], [17, 11, -2562], [11, 14, -2351], [14, 8, -2206], [8, 16, -2057], [16, 9, -1965], [9, 15, -1889], [15, 25, -1601], [25, 24, -1244]], [[6, 2, -15502], [2, 11, -11661], [11, 5, -10730], [5, 14, -10551], [14, 19, -10244], [19, 8, -9859], [8, 21, -9562], [21, 25, -9233], [25, 15, -8841], [15, 24, -8618], [24, 16, -8565], [16, 22, -8398], [22, 0, -8152], [0, 3, -7693], [3, 9, -7288], [9, 13, -7209], [13, 12, -7110], [12, 18, -7090], [18, 1, -6996], [1, 17, -6713], [17, 7, -6471], [7, 4, -6425], [4, 10, -6206], [10, 23, -5916], [23, 20, -5721]], [[14, 11, 227], [11, 4, 257], [4, 21, 297], [21, 2, 302], [2, 25, 320], [25, 5, 322], [5, 1, 329], [1, 0, 361], [0, 3, 374], [3, 6, 464], [6, 12, 713], [12, 17, 758], [17, 10, 769], [10, 15, 787], [15, 7, 790], [7, 13, 795], [13, 16, 827], [16, 22, 829], [22, 23, 830], [23, 8, 832], [8, 19, 834], [19, 20, 847], [20, 18, 884], [18, 9, 914], [9, 24, 927]], [[13, 20, -739], [20, 14, -528], [14, 18, -369], [18, 12, -314], [12, 22, -253], [22, 23, -191], [23, 9, -142], [9, 21, -87], [21, 3, -64], [3, 15, -51], [15, 8, -31], [8, 7, 9], [7, 1, 35], [1, 17, 44], [17, 5, 71], [5, 19, 126], [19, 0, 180], [0, 25, 225], [25, 6, 260], [6, 2, 305], [2, 4, 358], [4, 10, 379], [10, 24, 425], [24, 11, 495], [11, 16, 560]], [[12, 13, -1382], [13, 20, -1244], [20, 21, -1068], [21, 14, -1013], [14, 22, -993], [22, 7, -923], [7, 0, -767], [0, 23, -602], [23, 18, -415], [18, 6, -275], [6, 9, -251], [9, 5, -149], [5, 3, -43], [3, 11, 23], [11, 8, 160], [8, 19, 250], [19, 4, 278], [4, 25, 315], [25, 2, 371], [2, 15, 403], [15, 10, 443], [10, 17, 502], [17, 16, 643], [16, 1, 789], [1, 24, 855]]], [[[5, 19, -15403], [19, 11, -15380], [11, 21, -15307], [21, 6, -14942], [6, 14, -14938], [14, 2, -14912], [2, 8, -14774], [8, 16, -14658], [16, 12, -14625], [12, 1, -14551], [1, 18, -14470], [18, 25, -14406], [25, 3, -14356], [3, 24, -14318], [24, 4, -14305], [4, 10, -14282], [10, 22, -14253], [22, 0, -14195], [0, 7, -14025], [7, 23, -13879], [23, 13, -13837], [13, 17, -13755], [17, 15, -13625], [15, 9, -13620], [9, 20, -13334]], [[6, 18, -10201], [18, 12, -6308], [12, 10, -5812], [10, 4, -5605], [4, 7, -5474], [7, 23, -5205], [23, 20, -4855], [20, 13, -4667], [13, 1, -4625], [1, 21, -4592], [21, 22, -4380], [22, 3, -4014], [3, 19, -3706], [19, 2, -3482], [2, 0, -3123], [0, 5, -2816], [5, 14, -2658], [14, 16, -2479], [16, 17, -2427], [17, 11, -2406], [11, 9, -2129], [9, 8, -1858], [8, 15, -1775], [15, 25, -1500], [25, 24, -1214]], [[6, 2, -15384], [2, 11, -11972], [11, 5, -10641], [5, 19, -10199], [19, 14, -9930], [14, 8, -9622], [8, 16, -9518], [16, 24, -9434], [24, 25, -9303], [25, 21, -9126], [21, 15, -8930], [15, 1, -8145], [1, 3, -7442], [3, 0, -7379], [0, 9, -7249], [9, 22, -7085], [22, 12, -7007], [12, 17, -6971], [17, 18, -6830], [18, 4, -6678], [4, 10, -6619], [10, 23, -6437], [23, 13, -6080], [13, 7, -6059], [7, 20, -5573]], [[14, 11, 229], [11, 4, 288], [4, 21, 295], [21, 2, 302], [2, 25, 314], [25, 5, 325], [5, 1, 331], [1, 0, 349], [0, 3, 375], [3, 6, 462], [6, 12, 623], [12, 17, 757], [17, 10, 765], [10, 15, 784], [15, 7, 788], [7, 13, 796], [13, 23, 814], [23, 16, 827], [16, 22, 828], [22, 8, 831], [8, 19, 834], [19, 20, 848], [20, 18, 886], [18, 9, 913], [9, 24, 924]], [[13, 14, -676], [14, 22, -578], [22, 20, -516], [20, 23, -219], [23, 18, -212], [18, 7, -204], [7, 8, -176], [8, 1, -119], [1, 21, -78], [21, 9, -60], [9, 15, -12], [15, 19, 49], [19, 3, 74], [3, 0, 89], [0, 5, 100], [5, 17, 154], [17, 2, 228], [2, 16, 263], [16, 12, 287], [12, 6, 315], [6, 24, 373], [24, 25, 468], [25, 4, 538], [4, 10, 635], [10, 11, 722]], [[22, 13, -1559], [13, 14, -1116], [14, 0, -947], [0, 20, -872], [20, 21, -792], [21, 5, -546], [5, 18, -361], [18, 9, -297], [9, 6, -215], [6, 11, -117], [11, 8, -29], [8, 19, 16], [19, 25, 91], [25, 2, 184], [2, 15, 260], [15, 1, 322], [1, 3, 390], [3, 17, 423], [17, 7, 433], [7, 23, 457], [23, 24, 597], [24, 4, 719], [4, 16, 761], [16, 10, 829], [10, 12, 868]]], [[[19, 11, -15417], [11, 5, -15377], [5, 21, -15192], [21, 16, -15144], [16, 2, -15046], [2, 12, -14957], [12, 6, -14854], [6, 4, -14844], [4, 8, -14813], [8, 14, -14747], [14, 1, -14677], [1, 10, -14643], [10, 3, -14611], [3, 24, -14547], [24, 25, -14489], [25, 7, -14407], [7, 18, -14327], [18, 0, -14242], [0, 23, -14091], [23, 17, -13956], [17, 22, -13810], [22, 15, -13616], [15, 9, -13582], [9, 13, -13497], [13, 20, -13122]], [[6, 18, -10108], [18, 4, -6266], [4, 12, -5813], [12, 10, -5566], [10, 7, -5504], [7, 13, -5226], [13, 20, -4944], [20, 22, -4814], [22, 21, -4737], [21, 23, -4702], [23, 1, -4523], [1, 3, -4095], [3, 19, -3713], [19, 2, -3530], [2, 0, -3314], [0, 5, -3115], [5, 16, -3005], [16, 14, -2693], [14, 17, -2403], [17, 11, -2356], [11, 8, -2276], [8, 9, -2068], [9, 15, -1725], [15, 25, -1413], [25, 24, -1267]], [[6, 2, -15387], [2, 11, -12076], [11, 5, -10719], [5, 19, -10205], [19, 16, -9983], [16, 24, -9731], [24, 25, -9647], [25, 8, -9546], [8, 14, -9242], [14, 15, -8935], [15, 21, -8726], [21, 12, -8256], [12, 3, -7811], [3, 1, -7606], [1, 4, -7514], [4, 10, -7355], [10, 17, -7191], [17, 0, -7132], [0, 9, -7049], [9, 7, -6896], [7, 23, -6721], [23, 18, -6555], [18, 22, -6237], [22, 13, -5749], [13, 20, -5079]], [[14, 11, 221], [11, 4, 258], [4, 21, 292], [21, 2, 300], [2, 25, 315], [25, 5, 322], [5, 1, 329], [1, 0, 347], [0, 3, 372], [3, 6, 460], [6, 12, 709], [12, 17, 763], [17, 10, 770], [10, 15, 788], [15, 7, 793], [7, 13, 801], [13, 23, 827], [23, 22, 828], [22, 16, 829], [16, 19, 833], [19, 8, 835], [8, 20, 855], [20, 9, 884], [9, 18, 913], [18, 24, 922]], [[14, 13, -567], [13, 0, -454], [0, 22, -389], [22, 20, -317], [20, 21, -158], [21, 18, -23], [18, 15, -18], [15, 19, 3], [19, 9, 37], [9, 23, 64], [23, 5, 92], [5, 1, 116], [1, 6, 138], [6, 8, 162], [8, 2, 175], [2, 7, 240], [7, 3, 318], [3, 17, 339], [17, 24, 346], [24, 16, 388], [16, 12, 463], [12, 4, 499], [4, 25, 538], [25, 11, 583], [11, 10, 606]], [[22, 13, -927], [13, 14, -734], [14, 20, -567], [20, 21, -362], [21, 18, -236], [18, 5, -184], [5, 9, -137], [9, 25, -100], [25, 8, -72], [8, 6, -64], [6, 11, -39], [11, 19, -13], [19, 15, 54], [15, 2, 139], [2, 1, 158], [1, 0, 165], [0, 17, 325], [17, 16, 479], [16, 4, 513], [4, 3, 619], [3, 10, 750], [10, 24, 831], [24, 23, 857], [23, 12, 1142], [12, 7, 1480]]], [[[11, 19, -15419], [19, 5, -15388], [5, 16, -15327], [16, 12, -15275], [12, 2, -15182], [2, 21, -15105], [21, 8, -15019], [8, 6, -14918], [6, 3, -14884], [3, 4, -14873], [4, 10, -14847], [10, 1, -14790], [1, 7, -14706], [7, 24, -14647], [24, 25, -14568], [25, 14, -14493], [14, 0, -14423], [0, 18, -14213], [18, 23, -14177], [23, 17, -14131], [17, 15, -13860], [15, 9, -13549], [9, 22, -13457], [22, 13, -13329], [13, 20, -12904]], [[6, 18, -10149], [18, 4, -6259], [4, 12, -5797], [12, 10, -5570], [10, 7, -5393], [7, 13, -5236], [13, 22, -5113], [22, 20, -5041], [20, 21, -4893], [21, 1, -4543], [1, 23, -4180], [23, 3, -3913], [3, 2, -3695], [2, 0, -3589], [0, 19, -3583], [19, 16, -3403], [16, 5, -3088], [5, 11, -2719], [11, 17, -2478], [17, 8, -2469], [8, 14, -2415], [14, 9, -1894], [9, 15, -1708], [15, 25, -1387], [25, 24, -1213]], [[6, 2, -12939], [2, 11, -12098], [11, 24, -10818], [24, 5, -10327], [5, 19, -10207], [19, 16, -10075], [16, 25, -9764], [25, 8, -9495], [8, 15, -9222], [15, 12, -8930], [12, 3, -8838], [3, 21, -8642], [21, 14, -8396], [14, 7, -8110], [7, 1, -7794], [1, 10, -7748], [10, 17, -7697], [17, 4, -7644], [4, 0, -7596], [0, 23, -7380], [23, 9, -7073], [9, 18, -6616], [18, 22, -5310], [22, 13, -5160], [13, 20, -4661]], [[14, 11, 227], [11, 4, 284], [4, 21, 289], [21, 2, 302], [2, 25, 322], [25, 5, 323], [5, 1, 332], [1, 0, 361], [0, 3, 372], [3, 6, 458], [6, 12, 708], [12, 17, 756], [17, 10, 766], [10, 15, 788], [15, 7, 791], [7, 13, 800], [13, 22, 823], [22, 23, 830], [23, 8, 831], [8, 19, 833], [19, 16, 835], [16, 20, 856], [20, 9, 884], [9, 18, 914], [18, 24, 922]], [[14, 20, -375], [20, 13, -196], [13, 22, -144], [22, 15, -111], [15, 21, -67], [21, 9, -21], [9, 19, -1], [19, 18, 17], [18, 23, 43], [23, 6, 79], [6, 24, 130], [24, 1, 156], [1, 8, 162], [8, 2, 181], [2, 5, 206], [5, 3, 232], [3, 0, 253], [0, 16, 260], [16, 7, 276], [7, 17, 301], [17, 10, 324], [10, 4, 338], [4, 12, 361], [12, 11, 397], [11, 25, 458]], [[22, 13, -450], [13, 14, -347], [14, 20, -304], [20, 21, -248], [21, 18, -177], [18, 11, -125], [11, 9, -51], [9, 8, -31], [8, 19, -9], [19, 25, -1], [25, 5, 11], [5, 15, 20], [15, 2, 33], [2, 16, 83], [16, 0, 158], [0, 6, 235], [6, 10, 346], [10, 24, 439], [24, 1, 472], [1, 17, 500], [17, 4, 560], [4, 23, 637], [23, 12, 830], [12, 3, 1049], [3, 7, 1146]]], [[[11, 19, -15455], [19, 5, -15421], [5, 12, -15412], [12, 16, -15377], [16, 2, -15253], [2, 7, -15133], [7, 21, -15093], [21, 3, -15070], [3, 4, -15042], [4, 10, -14994], [10, 8, -14962], [8, 6, -14906], [6, 1, -14823], [1, 24, -14749], [24, 25, -14642], [25, 0, -14530], [0, 14, -14374], [14, 17, -14356], [17, 23, -14324], [23, 18, -14227], [18, 15, -13838], [15, 9, -13503], [9, 22, -13376], [22, 13, -13213], [13, 20, -12815]], [[6, 18, -6589], [18, 4, -6118], [4, 10, -5636], [10, 7, -5448], [7, 13, -5269], [13, 12, -5245], [12, 22, -5174], [22, 20, -5084], [20, 21, -4941], [21, 1, -4444], [1, 3, -3884], [3, 0, -3713], [0, 2, -3689], [2, 23, -3659], [23, 19, -3605], [19, 5, -3453], [5, 16, -3333], [16, 17, -2998], [17, 8, -2650], [8, 11, -2609], [11, 14, -2431], [14, 9, -2098], [9, 15, -1682], [15, 25, -1438], [25, 24, -1322]], [[6, 2, -15453], [2, 11, -12163], [11, 24, -10972], [24, 5, -10443], [5, 16, -10216], [16, 19, -10173], [19, 25, -9612], [25, 8, -9560], [8, 3, -9377], [3, 12, -9195], [12, 15, -9049], [15, 7, -8704], [7, 21, -8361], [21, 14, -8229], [14, 1, -8129], [1, 10, -7980], [10, 4, -7891], [4, 17, -7890], [17, 23, -7699], [23, 0, -7454], [0, 9, -7138], [9, 18, -6515], [18, 22, -5665], [22, 13, -5013], [13, 20, -4160]], [[14, 11, 230], [11, 4, 289], [4, 21, 292], [21, 2, 301], [2, 25, 318], [25, 5, 321], [5, 1, 327], [1, 0, 346], [0, 3, 372], [3, 6, 456], [6, 12, 711], [12, 17, 737], [17, 10, 770], [10, 15, 782], [15, 7, 789], [7, 13, 808], [13, 22, 820], [22, 23, 833], [23, 19, 833], [19, 8, 834], [8, 16, 834], [16, 20, 843], [20, 18, 884], [18, 9, 917], [9, 24, 926]], [[14, 20, -295], [20, 22, -109], [22, 8, -63], [8, 13, -44], [13, 15, -33], [15, 21, -32], [21, 1, -21], [1, 6, -6], [6, 0, 1], [0, 24, 8], [24, 19, 14], [19, 18, 18], [18, 9, 29], [9, 3, 44], [3, 10, 63], [10, 11, 76], [11, 16, 89], [16, 23, 102], [23, 12, 113], [12, 2, 148], [2, 5, 199], [5, 17, 228], [17, 7, 245], [7, 25, 277], [25, 4, 353]], [[22, 20, -180], [20, 13, -141], [13, 5, -120], [5, 18, -104], [18, 14, -101], [14, 21, -88], [21, 8, -61], [8, 11, -39], [11, 25, -30], [25, 2, -14], [2, 16, -12], [16, 9, -10], [9, 15, 1], [15, 19, 16], [19, 10, 43], [10, 0, 70], [0, 24, 99], [24, 12, 188], [12, 6, 270], [6, 1, 310], [1, 17, 363], [17, 23, 416], [23, 4, 492], [4, 3, 603], [3, 7, 714]]], [[[12, 11, -15496], [11, 5, -15477], [5, 19, -15450], [19, 16, -15384], [16, 7, -15307], [7, 2, -15237], [2, 3, -15185], [3, 4, -15146], [4, 21, -15095], [21, 10, -15017], [10, 8, -14953], [8, 1, -14859], [1, 6, -14765], [6, 24, -14747], [24, 25, -14698], [25, 17, -14589], [17, 0, -14503], [0, 23, -14415], [23, 14, -14310], [14, 18, -14181], [18, 15, -13795], [15, 9, -13489], [9, 22, -13351], [22, 13, -13152], [13, 20, -12776]], [[6, 18, -10229], [18, 10, -6192], [10, 4, -5511], [4, 13, -5248], [13, 12, -5214], [12, 7, -5189], [7, 20, -5157], [20, 22, -5133], [22, 21, -4952], [21, 1, -4349], [1, 0, -3902], [0, 2, -3769], [2, 5, -3623], [5, 19, -3592], [19, 3, -3517], [3, 23, -3405], [23, 16, -3359], [16, 17, -3054], [17, 11, -2692], [11, 8, -2622], [8, 14, -2420], [14, 9, -1954], [9, 25, -1711], [25, 15, -1431], [15, 24, -1297]], [[6, 2, -15917], [2, 11, -12140], [11, 24, -10930], [24, 19, -10389], [19, 5, -10121], [5, 16, -10071], [16, 25, -9880], [25, 3, -9503], [3, 8, -9475], [8, 12, -9371], [12, 15, -9094], [15, 7, -8834], [7, 21, -8562], [21, 4, -8313], [4, 17, -8243], [17, 1, -8167], [1, 14, -8067], [14, 10, -7894], [10, 23, -7719], [23, 0, -7640], [0, 9, -7229], [9, 18, -6459], [18, 22, -5566], [22, 13, -4962], [13, 20, -4459]], [[14, 11, 224], [11, 4, 281], [4, 21, 294], [21, 2, 302], [2, 5, 315], [5, 25, 323], [25, 1, 328], [1, 0, 356], [0, 3, 370], [3, 6, 460], [6, 12, 705], [12, 17, 733], [17, 10, 768], [10, 15, 787], [15, 7, 792], [7, 13, 806], [13, 22, 816], [22, 23, 827], [23, 8, 830], [8, 19, 833], [19, 16, 835], [16, 20, 859], [20, 18, 885], [18, 9, 911], [9, 24, 922]], [[14, 20, -203], [20, 3, -75], [3, 22, -43], [22, 21, -21], [21, 13, -13], [13, 8, -9], [8, 24, -5], [24, 1, 1], [1, 19, 4], [19, 11, 7], [11, 15, 16], [15, 10, 23], [10, 9, 25], [9, 6, 28], [6, 0, 34], [0, 23, 42], [23, 18, 47], [18, 5, 51], [5, 12, 54], [12, 7, 67], [7, 25, 78], [25, 2, 88], [2, 16, 112], [16, 17, 149], [17, 4, 249]], [[20, 18, -87], [18, 11, -69], [11, 2, -67], [2, 13, -64], [13, 21, -45], [21, 10, -43], [10, 14, -41], [14, 8, -27], [8, 25, -26], [25, 5, -19], [5, 12, -10], [12, 22, -8], [22, 19, -6], [19, 9, -4], [9, 16, 5], [16, 15, 19], [15, 24, 34], [24, 0, 53], [0, 1, 85], [1, 23, 177], [23, 17, 261], [17, 6, 308], [6, 3, 346], [3, 7, 356], [7, 4, 514]]], [[[11, 5, -15506], [5, 12, -15457], [12, 19, -15415], [19, 16, -15398], [16, 4, -15366], [4, 7, -15360], [7, 2, -15289], [2, 3, -15188], [3, 21, -15104], [21, 8, -14969], [8, 10, -14955], [10, 6, -14895], [6, 1, -14815], [1, 24, -14773], [24, 25, -14697], [25, 17, -14600], [17, 0, -14526], [0, 23, -14442], [23, 14, -14311], [14, 18, -14146], [18, 9, -13486], [9, 15, -13481], [15, 22, -13336], [22, 13, -13125], [13, 20, -12740]], [[6, 18, -10291], [18, 10, -6221], [10, 4, -5657], [4, 7, -5421], [7, 13, -5280], [13, 20, -5195], [20, 12, -5099], [12, 22, -5073], [22, 21, -4934], [21, 2, -4320], [2, 0, -3821], [0, 1, -3795], [1, 5, -3704], [5, 19, -3595], [19, 16, -3458], [16, 23, -3307], [23, 3, -3194], [3, 17, -2942], [17, 8, -2744], [8, 11, -2696], [11, 14, -2412], [14, 9, -2053], [9, 25, -1739], [25, 15, -1431], [15, 24, -1106]], [[6, 2, -15664], [2, 11, -12032], [11, 24, -10853], [24, 5, -10182], [5, 19, -10160], [19, 16, -10109], [16, 25, -9856], [25, 3, -9625], [3, 8, -9535], [8, 12, -9288], [12, 15, -9050], [15, 7, -8936], [7, 4, -8879], [4, 17, -8314], [17, 1, -8307], [1, 21, -8280], [21, 14, -8152], [14, 10, -7921], [10, 23, -7795], [23, 0, -7681], [0, 9, -7198], [9, 18, -6428], [18, 22, -5531], [22, 13, -4913], [13, 20, -4429]], [[14, 11, 223], [11, 4, 256], [4, 21, 292], [21, 2, 301], [2, 5, 313], [5, 25, 321], [25, 1, 328], [1, 0, 363], [0, 3, 375], [3, 6, 459], [6, 12, 619], [12, 17, 758], [17, 10, 766], [10, 15, 784], [15, 7, 791], [7, 13, 805], [13, 23, 821], [23, 22, 825], [22, 8, 829], [8, 16, 834], [16, 19, 836], [19, 20, 860], [20, 18, 886], [18, 9, 913], [9, 24, 925]], [[14, 3, -118], [3, 20, -91], [20, 10, -55], [10, 13, -41], [13, 1, -33], [1, 24, -24], [24, 11, -19], [11, 16, -18], [16, 8, -16], [8, 22, -11], [22, 19, -10], [19, 15, -2], [15, 21, 3], [21, 18, 10], [18, 9, 20], [9, 7, 35], [7, 5, 50], [5, 25, 57], [25, 12, 63], [12, 0, 82], [0, 17, 100], [17, 2, 102], [2, 23, 110], [23, 6, 136], [6, 4, 322]], [[0, 2, -122], [2, 20, -78], [20, 10, -57], [10, 18, -45], [18, 19, -43], [19, 11, -29], [11, 24, -17], [24, 25, -16], [25, 12, -14], [12, 21, -13], [21, 16, -12], [16, 9, -10], [9, 8, -8], [8, 13, -4], [13, 22, -1], [22, 15, 0], [15, 5, 0], [5, 14, 16], [14, 7, 33], [7, 1, 34], [1, 3, 49], [3, 23, 97], [23, 17, 132], [17, 6, 219], [6, 4, 351]]]]
alphabet = ['A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z']
alphabetN = 26
ard = serial.Serial('COM4',9600)
while(1):
count = [0 for i in range(alphabetN)]
AcX = AcY = AcZ = GyX = GyY = GyZ = 0
for i in range(17):
val = ard.readline()
check = np.fromstring(val,dtype='uint8')
c = np.fromstring(',',dtype='uint8')
comma = np.where(check == c[0])[0]
AcX = float((val[comma[0]+1:comma[1]-1]))
AcY = float(val[comma[1]+1:comma[2]-1])
AcZ = float(val[comma[2]+1:comma[3]-1])
GyX = float(val[comma[3]+1:comma[4]-1])
GyY = float(val[comma[4]+1:comma[5]-1])
GyZ = float(val[comma[5]+1:comma[6]-1])
v = [AcX,AcY,AcZ,GyX,GyY,GyZ]
for j in range(6):
if (j == 3):
continue
for k in range(alphabetN-1):
if(k == 0):
if(v[j] <= etalist[i][j][k][2]):
print(j,(v[j]), etalist[i][j][k], "BEG")
count[etalist[i][j][k][0]] += 1
elif(k == alphabetN-2):
if(v[j] > etalist[i][j][k][2]):
print(j,(v[j]), etalist[i][j][k], "END")
count[etalist[i][j][k][1]] += 1
else:
if(etalist[i][j][k][2] < v[j] <= etalist[i][j][k+1][2]):
print(j,(v[j]), etalist[i][j][k], etalist[i][j][k+1])
count[etalist[i][j][k][1]] += 1
# print(alphabet[count.index(max(count))])
# print(count)
alphaFile.write(alphabet[count.index(max(count))]+'\n')