-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathuseful_code.py
23 lines (20 loc) · 1.33 KB
/
useful_code.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
lump = """1454432615840,1,-0.9426119923591614,-0.6642239689826965,-0.5274720191955566
1454432615860,1,0.7069590091705322,-0.2857140004634857,0.15995100140571594
1454432615880,1,1.1025630235671997,-0.26129400730133057,0.5873010158538818
1454432615899,1,0.7142850160598755,-0.16361400485038757,0.6336989998817444
1454432615920,1,0.07936500012874603,-0.1892549991607666,0.31013399362564087
1454432615940,1,-0.4175820052623749,-0.12209999561309814,0.06227099895477295
1454432615960,1,-0.3565320074558258,0.15995100140571594,0.167276993393898
1454432615980,1,-0.07692299783229828,0.2332109957933426,0.2808299958705902
1454432616001,1,0.1562879979610443,0.2649570107460022,0.34432199597358704
1454432616021,1,0.2527469992637634,0.28815600275993347,0.33821699023246765
1454432616042,1,0.22100099921226501,0.2869350016117096,0.2747249901294708
1454432616062,1,0.14285700023174286,0.13064700365066528,0.15018299221992493
1454432616081,1,-0.050060998648405075,0.020756999030709267,0.11843699961900711
1454432616102,1,-0.11233200132846832,-0.040293000638484955,0.08546999841928482
1454432616122,1,-0.12576299905776978,-0.07203900068998337,0.08546999841928482"""
values = [line.split(',')[2] + ',' +
line.split(',')[3] + ',' +
line.split(',')[4]for line in lump.split('\n')]
for value in values:
print("gyroSamples.add(new double[] {" + value + "});")