Skip to content

Instantly share code, notes, and snippets.

@alexfaber2011
Created March 20, 2015 01:07
Show Gist options
  • Save alexfaber2011/0034551838bc7a8a5d2f to your computer and use it in GitHub Desktop.
Save alexfaber2011/0034551838bc7a8a5d2f to your computer and use it in GitHub Desktop.
firstChunkMillis = [3604,3615,3624,3634,3645,3655,3664,3675,3684,3695,3705,3714,3724,3734,3745,3755,3764,3775,3785,3795,3805,3815,3825,3837,3844,3859,3865,3875,3885,3895,3904,3915,3926,3950,3952,4037,4038,4038,4039,4040,4040,4042,4043,4043,4044,4054,4064,4074,4085,4094,4104,4115,4125,4134,4144,4155,4165,4174,4184,4194,4205,4214,4225,4234,4245,4255,4265,4275,4284,4294,4304,4314,4325,4334,4345,4354,4364,4375,4384,4394,4404,4415,4424,4434,4444,4454,4464,4474,4484,4494,4504,4514,4524,4534,4545,4554,4564,4574,4584,4595,4605,4615,4624,4634,4646,4654,4664,4675,4684,4694,4705,4714,4724,4734,4745,4755,4765,4774,4784,4794,4804,4815,4825,4835,4845,4857,4866,4875,4885,4894,4905,4914,4925,4934,4947,4955,4965,4975,4984,4994,5004,5014,5024,5034,5044,5055,5064,5074,5084,5094,5104,5114,5125,5134,5144,5155,5164,5174,5185,5195,5205,5214,5224,5234,5244,5255,5264,5275,5286,5295,5305,5314,5326,5334,5345,5355,5365,5377,5385,5395,5405,5420,5425,5438,5446,5456,5465,5476,5484,5495,5506,5515,5524,5538,5544,5554,5566,5575,5585,5594,5604,5614,5624,5634,5644,5655,5665,5674,5684,5694,5708,5715,5725,5735,5744,5755,5767,5775,5785,5794,5804,5815,5825,5834,5844,5855,5865,5875,5885,5895,5904,5914,5925,5935,5944,5954,5965,5975,5984,5996,6005,6015,6025,6035,6044,6054,6064,6074,6085,6095,6106,6114,6125,6135,6145,6155,6165,6175,6184,6194,6204,6214,6224,6235,6244,6255,6264,6274,6284,6294,6304,6315,6324,6335,6345,6354,6364,6374,6385,6395,6404,6415,6424,6434,6444,6454,6465,6474,6485,6494,6504,6516,6525,6535,6545,6556,6565,6575,6585,6598,6605,6618,6625,6635,6645,6655,6665,6675,6688,6695,6705,6718,6725,6738,6745,6754,6765,6779,6784,6795,6804,6814,6824,6834,6844,6855,6865,6879,6884,6894,6905,6914,6924,6934,6944,6955,6965,6975,6984,6995,7005,7015,7025,7035,7046,7056,7064,7075,7085,7095,7104,7115,7125,7135,7145,7155,7171,7181,7186,7197,7204,7215,7225,7234,7245,7254,7264,7275,7285,7297,7306,7315,7325,7335,7344,7360,7365,7375,7385,7395,7405,7415,7425,7435,7447,7454,7465,7481,7484,7496,7505,7514,7525,7541,7544,7554,7564,7575,7584,7594,7604,7614,7625,7634,7644,7654,7666,7674,7684,7696,7704,7716,7724,7736,7744,7755,7764,7777,7784,7795,7804,7815,7826,7835,7844,7854,7864,7875,7885,7898,7904,7915,7924,7934,7944,7955,7965,7975,7984,7994,8004,8014,8024,8034,8044,8054,8064,8074,8084,8095,8104,8115,8124,8135,8145,8154,8164,8175,8185,8195,8205,8215,8225,8235,8245,8254,8265,8275,8285,8294,8305,8315,8325,8334,8344,8355,8365,8375,8385,8395,8405,8425,8428,8435,8444,8454,8464,8474,8484,8494,8504,8514,8525,8534,8544,8554,8564,8575,8584,8595,8604,8614,8624,8635,8644,8654,8664,8675,8685,8695,8704,8714,8725,8734,8745,8755,8764,8774,8785,8795,8805,8815,8825,8834,8844,8854,8864,8875,8885,8895,8905,8916,8925,8936,8944,8955,8964,8975,8984,8995,9005,9014,9024,9035,9045,9055,9064,9076,9084,9094,9105,9114,9124,9134,9144,9154,9164,9174,9184,9194,9204,9214,9225,9235,9245,9255,9264,9274,9286,9296,9305,9314,9325,9334,9344,9354,9365,9375,9385,9395,9405,9415,9425,9434,9444,9454,9465,9476,9488,9494,9505,9515,9524,9534,9544,9556,9564,9575,9585,9595,9605,9615,9625,9634,9645,9654,9665,9681,9685,9699,9704,9714,9725,9737,9745,9756,9764,9774,9784,9797,9805,9815,9825,9835,9846,9855,9865,9875,9885,9895,9905,9915,9932,9934,9944,9954,9965,9974,9985,9995,10005,10017,10024,10034,10045,10055,10064,10075,10084,10095,10105,10115,10124,10134,10144,10155,10164,10175,10185,10195,10204,10215,10225,10235,10244,10254,10264,10275,10285,10294,10305,10315,10326,10334,10344,10355,10364,10374,10384,10397]
firstChunkGyro = [-0.0021,-0.0021,-0.0021,-0.0021,-0.0021,-0.0021,-0.0021,-0.0021,-0.0021,-0.0021,-0.0021,-0.0021,-0.0021,-0.0037,-0.0037,-0.0037,-0.0037,-0.0037,-0.0037,-0.0037,-0.0037,-0.0037,-0.0037,-0.0037,-0.0037,-0.0037,-0.0037,-0.0037,-0.0037,-0.0037,-0.0037,-0.0051,-0.0051,-0.0051,-0.0051,-0.0051,-0.0051,-0.0051,-0.0051,-0.0051,-0.0051,-0.0051,-0.0051,-0.0051,-0.0051,-0.0051,-0.0051,-0.0051,-0.0051,-0.0115,-0.0115,-0.0115,-0.0115,-0.0115,-0.0115,-0.0115,-0.0115,-0.0115,-0.0115,-0.0115,-0.0115,-0.0115,-0.0115,-0.0115,-0.0115,-0.0115,-0.0115,-0.0072,-0.0072,-0.0072,-0.0072,-0.0072,-0.0072,-0.0072,-0.0072,-0.0072,-0.0072,-0.0072,-0.0072,-0.0072,-0.0072,-0.0072,-0.0072,-0.0072,-0.0072,-0.0439,-0.0439,-0.0439,-0.0439,-0.0439,-0.0439,-0.0439,-0.0439,-0.0439,-0.0439,-0.0439,-0.0439,-0.0439,-0.0439,-0.0439,-0.0439,-0.0439,-0.0439,-0.0913,-0.0913,-0.0913,-0.0913,-0.0913,-0.0913,-0.0913,-0.0913,-0.0913,-0.0913,-0.0913,-0.0913,-0.0913,-0.0913,-0.0913,-0.0913,-0.0913,-0.0913,-0.1491,-0.1491,-0.1491,-0.1491,-0.1491,-0.1491,-0.1491,-0.1491,-0.1491,-0.1491,-0.1491,-0.1491,-0.1491,-0.1491,-0.1491,-0.1491,-0.1491,-0.1491,-0.1475,-0.1475,-0.1475,-0.1475,-0.1475,-0.1475,-0.1475,-0.1475,-0.1475,-0.1475,-0.1475,-0.1475,-0.1475,-0.1475,-0.1475,-0.1475,-0.1475,-0.1475,-0.1702,-0.1702,-0.1702,-0.1702,-0.1702,-0.1702,-0.1702,-0.1702,-0.1702,-0.1702,-0.1702,-0.1702,-0.1702,-0.1702,-0.1702,-0.1702,-0.1702,-0.1702,-0.2162,-0.2162,-0.2162,-0.2162,-0.2162,-0.2162,-0.2162,-0.2162,-0.2162,-0.2162,-0.2162,-0.2162,-0.2162,-0.2162,-0.2162,-0.2162,-0.2162,-0.2162,-0.257,-0.257,-0.257,-0.257,-0.257,-0.257,-0.257,-0.257,-0.257,-0.257,-0.257,-0.257,-0.257,-0.257,-0.257,-0.257,-0.257,-0.2418,-0.2418,-0.2418,-0.2418,-0.2418,-0.2418,-0.2418,-0.2418,-0.2418,-0.2418,-0.2418,-0.2418,-0.2418,-0.2418,-0.2418,-0.2418,-0.2418,-0.2418,-0.2418,-0.2511,-0.2511,-0.2511,-0.2511,-0.2511,-0.2511,-0.2511,-0.2511,-0.2511,-0.2511,-0.2511,-0.2511,-0.2511,-0.2511,-0.2511,-0.2511,-0.2511,-0.2511,-0.2684,-0.2684,-0.2684,-0.2684,-0.2684,-0.2684,-0.2684,-0.2684,-0.2684,-0.2684,-0.2684,-0.2684,-0.2684,-0.2684,-0.2684,-0.2684,-0.2684,-0.2684,-0.2788,-0.2788,-0.2788,-0.2788,-0.2788,-0.2788,-0.2788,-0.2788,-0.2788,-0.2788,-0.2788,-0.2788,-0.2788,-0.2788,-0.2788,-0.2788,-0.2788,-0.2788,-0.2892,-0.2892,-0.2892,-0.2892,-0.2892,-0.2892,-0.2892,-0.2892,-0.2892,-0.2892,-0.2892,-0.2892,-0.2892,-0.2892,-0.2892,-0.2892,-0.2892,-0.2892,-0.3057,-0.3057,-0.3057,-0.3057,-0.3057,-0.3057,-0.3057,-0.3057,-0.3057,-0.3057,-0.3057,-0.3057,-0.3057,-0.3057,-0.3057,-0.3057,-0.3057,-0.3057,-0.3356,-0.3356,-0.3356,-0.3356,-0.3356,-0.3356,-0.3356,-0.3356,-0.3356,-0.3356,-0.3356,-0.3356,-0.3356,-0.3356,-0.3356,-0.3356,-0.3356,-0.3356,-0.3124,-0.3124,-0.3124,-0.3124,-0.3124,-0.3124,-0.3124,-0.3124,-0.3124,-0.3124,-0.3124,-0.3124,-0.3124,-0.3124,-0.3124,-0.3124,-0.3124,-0.3124,-0.3129,-0.3129,-0.3129,-0.3129,-0.3129,-0.3129,-0.3129,-0.3129,-0.3129,-0.3129,-0.3129,-0.3129,-0.3129,-0.3129,-0.3129,-0.3129,-0.3129,-0.3156,-0.3156,-0.3156,-0.3156,-0.3156,-0.3156,-0.3156,-0.3156,-0.3156,-0.3156,-0.3156,-0.3156,-0.3156,-0.3156,-0.3156,-0.3156,-0.3156,-0.3156,-0.3156,-0.355,-0.355,-0.355,-0.355,-0.355,-0.355,-0.355,-0.355,-0.355,-0.355,-0.355,-0.355,-0.355,-0.355,-0.355,-0.355,-0.355,-0.355,-0.3904,-0.3904,-0.3904,-0.3904,-0.3904,-0.3904,-0.3904,-0.3904,-0.3904,-0.3904,-0.3904,-0.3904,-0.3904,-0.3904,-0.3904,-0.3904,-0.3904,-0.3904,-0.3995,-0.3995,-0.3995,-0.3995,-0.3995,-0.3995,-0.3995,-0.3995,-0.3995,-0.3995,-0.3995,-0.3995,-0.3995,-0.3995,-0.3995,-0.3995,-0.3995,-0.3995,-0.3667,-0.3667,-0.3667,-0.3667,-0.3667,-0.3667,-0.3667,-0.3667,-0.3667,-0.3667,-0.3667,-0.3667,-0.3667,-0.3667,-0.3667,-0.3667,-0.3667,-0.3667,-0.3446,-0.3446,-0.3446,-0.3446,-0.3446,-0.3446,-0.3446,-0.3446,-0.3446,-0.3446,-0.3446,-0.3446,-0.3446,-0.3446,-0.3446,-0.3446,-0.3446,-0.3297,-0.3297,-0.3297,-0.3297,-0.3297,-0.3297,-0.3297,-0.3297,-0.3297,-0.3297,-0.3297,-0.3297,-0.3297,-0.3297,-0.3297,-0.3297,-0.3297,-0.3297,-0.3297,-0.3574,-0.3574,-0.3574,-0.3574,-0.3574,-0.3574,-0.3574,-0.3574,-0.3574,-0.3574,-0.3574,-0.3574,-0.3574,-0.3574,-0.3574,-0.3574,-0.3574,-0.3574,-0.3691,-0.3691,-0.3691,-0.3691,-0.3691,-0.3691,-0.3691,-0.3691,-0.3691,-0.3691,-0.3691,-0.3691,-0.3691,-0.3691,-0.3691,-0.3691,-0.3691,-0.3691,-0.3718,-0.3718,-0.3718,-0.3718,-0.3718,-0.3718,-0.3718,-0.3718,-0.3718,-0.3718,-0.3718,-0.3718,-0.3718,-0.3718,-0.3718,-0.3718,-0.3718,-0.3718,-0.371,-0.371,-0.371,-0.371,-0.371,-0.371,-0.371,-0.371,-0.371,-0.371,-0.371,-0.371,-0.371,-0.371,-0.371,-0.371,-0.371,-0.371,-0.3662,-0.3662,-0.3662,-0.3662,-0.3662,-0.3662,-0.3662,-0.3662,-0.3662,-0.3662,-0.3662,-0.3662,-0.3662,-0.3662,-0.3662,-0.3662,-0.3662,-0.3252,-0.3252,-0.3252,-0.3252,-0.3252,-0.3252,-0.3252,-0.3252,-0.3252,-0.3252,-0.3252,-0.3252,-0.3252,-0.3252,-0.3252,-0.3252,-0.3252,-0.3252,-0.3252,-0.2711,-0.2711,-0.2711,-0.2711,-0.2711,-0.2711,-0.2711,-0.2711,-0.2711,-0.2711,-0.2711,-0.2711,-0.2711,-0.2711,-0.2711,-0.2711,-0.2711,-0.2711,-0.2341,-0.2341,-0.2341,-0.2341,-0.2341,-0.2341,-0.2341,-0.2341,-0.2341,-0.2341,-0.2341,-0.2341,-0.2341,-0.2341,-0.2341,-0.2341,-0.2341,-0.2341,-0.1547,-0.1547,-0.1547,-0.1547,-0.1547,-0.1547,-0.1547,-0.1547,-0.1547,-0.1547,-0.1547,-0.1547,-0.1547,-0.1547,-0.1547,-0.1547,-0.1547,-0.0722,-0.0722,-0.0722,-0.0722,-0.0722,-0.0722,-0.0722,-0.0722,-0.0722,-0.0722,-0.0722,-0.0722,-0.0722,-0.0722,-0.0722,-0.0722,-0.0722,-0.0722,-0.0722,0.0096]
secondChunkMillis = [26445,26455,26465,26475,26485,26495,26505,26515,26525,26535,26545,26555,26564,26574,26585,26594,26604,26615,26625,26634,26644,26654,26664,26674,26684,26694,26704,26714,26724,26735,26744,26754,26764,26774,26784,26795,26804,26814,26824,26834,26845,26855,26866,26875,26885,26895,26904,26914,26926,26935,26945,26955,26965,26974,26985,26995,27005,27015,27024,27035,27044,27054,27065,27079,27086,27095,27104,27115,27128,27135,27145,27155,27165,27175,27185,27194,27205,27215,27225,27234,27245,27255,27265,27275,27285,27295,27311,27315,27325,27336,27345,27355,27366,27374,27384,27395,27405,27414,27425,27435,27445,27455,27465,27475,27484,27494,27504,27515,27525,27535,27548,27555,27564,27576,27585,27595,27604,27615,27625,27634,27644,27654,27664,27674,27685,27695,27705,27715,27725,27734,27744,27755,27765,27776,27784,27794,27805,27815,27825,27835,27845,27854,27864,27875,27884,27894,27904,27915,27925,27935,27944,27955,27965,27974,27985,27995,28005,28014,28024,28035,28044,28055,28065,28074,28091,28094,28104,28114,28124,28135,28145,28154,28165,28175,28185,28195,28205,28215,28225,28235,28245,28255,28265,28275,28285,28295,28305,28315,28325,28335,28345,28355,28364,28374,28384,28395,28404,28414,28424,28434,28444,28454,28465,28475,28484,28495,28505,28514,28525,28535,28544,28555,28565,28575,28584,28595,28605,28615,28625,28635,28645,28655,28664,28674,28684,28697,28705,28715,28724,28735,28744,28754,28765,28775,28784,28795,28804,28814,28825,28835,28845,28854,28864,28874,28885,28894,28904,28915,28925,28935,28944,28954,28964,28975,28984,28995,29004,29015,29024,29035,29045,29054,29065,29075,29085,29096,29105,29115,29124,29135,29144,29154,29164,29174,29184,29195,29205,29215,29225,29236,29244,29258,29265,29276,29285,29295,29306,29315,29325,29336,29344,29354,29365,29375,29384,29397,29405,29415,29425,29436,29445,29454,29464,29475,29485,29494,29504,29514,29524,29534,29544,29554,29564,29575,29585,29596,29604,29615,29624,29634,29644,29655,29665,29679,29685,29695,29706,29714,29724,29734,29744,29755,29764,29774,29784,29794,29804,29814,29824,29834,29844,29854,29864,29874,29885,29895,29904,29914,29924,29934,29945,29954,29964,29975,29984,29994,30005,30017,30024,30034,30044,30055,30064,30075,30085,30094,30104,30114,30124,30134,30144,30154,30165,30174,30185,30194,30205,30215,30227,30234,30244,30255,30265,30275,30284,30297,30304,30315,30327,30334,30345,30354,30365,30375,30385,30395,30405,30415,30424,30434,30445,30455,30465,30474,30485,30502,30504,30517,30525,30535,30545,30557,30565,30583,30585,30612,30614,30617,30625,30634,30645,30655,30665,30674,30684,30694,30705,30714,30725,30735,30747,30754,30764,30775,30784,30794,30804,30815,30825,30835,30845,30855,30865,30875,30885,30894,30904,30914,30925,30934,30944,30955,30965,30975,30985,30995,31005,31015,31025,31035,31045,31055,31065,31075,31085,31095,31105,31114,31125,31134,31151,31154,31164,31176,31185,31195,31205,31216,31225,31235,31245,31254,31266,31275,31285,31295,31305,31315,31325,31335,31345,31355,31365,31378,31385,31395,31405,31415,31425,31435,31444,31455,31465,31475,31485,31495,31504,31515,31525,31535,31545,31555,31571,31574,31584,31595,31604,31618,31624,31635,31644,31655,31665,31674,31689,31695,31705,31715,31725,31735,31747,31755,31765,31775,31785,31795,31806,31815,31825,31835,31845,31855,31864,31874,31885,31895,31905,31915,31927,31934,31945,31955,31964,31975,31985,31996,32005,32015,32025,32035,32045,32055,32064,32075,32085,32095,32109,32115,32127,32134,32145,32155,32165,32175,32184,32195,32204,32215,32224,32235,32245,32255,32265,32275,32285,32295,32304,32316,32326,32336,32346,32355,32365,32375,32386,32395,32404,32415,32424,32434,32444,32455,32465,32474,32484,32495,32504,32515,32525,32535,32545,32556,32567,32575,32586,32595,32605,32614,32624,32634,32646,32655,32664,32675,32685,32699]
secondChunkGyro = [-0.0021,-0.0021,-0.0021,-0.0021,-0.0021,-0.0021,-0.0021,-0.0021,-0.0021,-0.0021,-0.0021,-0.0021,-0.0021,-0.0021,-5.00e-04,-5.00e-04,-5.00e-04,-5.00e-04,-5.00e-04,-5.00e-04,-5.00e-04,-5.00e-04,-5.00e-04,-5.00e-04,-5.00e-04,-5.00e-04,-5.00e-04,-5.00e-04,-5.00e-04,-5.00e-04,-5.00e-04,-5.00e-04,-5.00e-04,-0.0029,-0.0029,-0.0029,-0.0029,-0.0029,-0.0029,-0.0029,-0.0029,-0.0029,-0.0029,-0.0029,-0.0029,-0.0029,-0.0029,-0.0029,-0.0029,-0.0029,5.00e-04,5.00e-04,5.00e-04,5.00e-04,5.00e-04,5.00e-04,5.00e-04,5.00e-04,5.00e-04,5.00e-04,5.00e-04,5.00e-04,5.00e-04,5.00e-04,5.00e-04,5.00e-04,5.00e-04,5.00e-04,0.0136,0.0136,0.0136,0.0136,0.0136,0.0136,0.0136,0.0136,0.0136,0.0136,0.0136,0.0136,0.0136,0.0136,0.0136,0.0136,0.0136,0.0136,0.0599,0.0599,0.0599,0.0599,0.0599,0.0599,0.0599,0.0599,0.0599,0.0599,0.0599,0.0599,0.0599,0.0599,0.0599,0.0599,0.0599,0.0599,0.1398,0.1398,0.1398,0.1398,0.1398,0.1398,0.1398,0.1398,0.1398,0.1398,0.1398,0.1398,0.1398,0.1398,0.1398,0.1398,0.1398,0.1398,0.2562,0.2562,0.2562,0.2562,0.2562,0.2562,0.2562,0.2562,0.2562,0.2562,0.2562,0.2562,0.2562,0.2562,0.2562,0.2562,0.2562,0.2562,0.3611,0.3611,0.3611,0.3611,0.3611,0.3611,0.3611,0.3611,0.3611,0.3611,0.3611,0.3611,0.3611,0.3611,0.3611,0.3611,0.3611,0.3611,0.3888,0.3888,0.3888,0.3888,0.3888,0.3888,0.3888,0.3888,0.3888,0.3888,0.3888,0.3888,0.3888,0.3888,0.3888,0.3888,0.3888,0.3888,0.3507,0.3507,0.3507,0.3507,0.3507,0.3507,0.3507,0.3507,0.3507,0.3507,0.3507,0.3507,0.3507,0.3507,0.3507,0.3507,0.3507,0.3507,0.3033,0.3033,0.3033,0.3033,0.3033,0.3033,0.3033,0.3033,0.3033,0.3033,0.3033,0.3033,0.3033,0.3033,0.3033,0.3033,0.3033,0.3033,0.2868,0.2868,0.2868,0.2868,0.2868,0.2868,0.2868,0.2868,0.2868,0.2868,0.2868,0.2868,0.2868,0.2868,0.2868,0.2868,0.2868,0.2868,0.2959,0.2959,0.2959,0.2959,0.2959,0.2959,0.2959,0.2959,0.2959,0.2959,0.2959,0.2959,0.2959,0.2959,0.2959,0.2959,0.2959,0.2959,0.2937,0.2937,0.2937,0.2937,0.2937,0.2937,0.2937,0.2937,0.2937,0.2937,0.2937,0.2937,0.2937,0.2937,0.2937,0.2937,0.2937,0.2937,0.3119,0.3119,0.3119,0.3119,0.3119,0.3119,0.3119,0.3119,0.3119,0.3119,0.3119,0.3119,0.3119,0.3119,0.3119,0.3119,0.3119,0.3119,0.3033,0.3033,0.3033,0.3033,0.3033,0.3033,0.3033,0.3033,0.3033,0.3033,0.3033,0.3033,0.3033,0.3033,0.3033,0.3033,0.3033,0.3033,0.3182,0.3182,0.3182,0.3182,0.3182,0.3182,0.3182,0.3182,0.3182,0.3182,0.3182,0.3182,0.3182,0.3182,0.3182,0.3182,0.3182,0.3182,0.3478,0.3478,0.3478,0.3478,0.3478,0.3478,0.3478,0.3478,0.3478,0.3478,0.3478,0.3478,0.3478,0.3478,0.3478,0.3478,0.3478,0.3478,0.4035,0.4035,0.4035,0.4035,0.4035,0.4035,0.4035,0.4035,0.4035,0.4035,0.4035,0.4035,0.4035,0.4035,0.4035,0.4035,0.4035,0.4035,0.4338,0.4338,0.4338,0.4338,0.4338,0.4338,0.4338,0.4338,0.4338,0.4338,0.4338,0.4338,0.4338,0.4338,0.4338,0.4338,0.4338,0.4338,0.4685,0.4685,0.4685,0.4685,0.4685,0.4685,0.4685,0.4685,0.4685,0.4685,0.4685,0.4685,0.4685,0.4685,0.4685,0.4685,0.4685,0.4685,0.47,0.47,0.47,0.47,0.47,0.47,0.47,0.47,0.47,0.47,0.47,0.47,0.47,0.47,0.47,0.47,0.47,0.47,0.4525,0.4525,0.4525,0.4525,0.4525,0.4525,0.4525,0.4525,0.4525,0.4525,0.4525,0.4525,0.4525,0.4525,0.4525,0.4525,0.4525,0.4525,0.4096,0.4096,0.4096,0.4096,0.4096,0.4096,0.4096,0.4096,0.4096,0.4096,0.4096,0.4096,0.4096,0.4096,0.4096,0.4096,0.4096,0.4096,0.3771,0.3771,0.3771,0.3771,0.3771,0.3771,0.3771,0.3771,0.3771,0.3771,0.3771,0.3771,0.3771,0.3771,0.3771,0.3771,0.3771,0.3771,0.3577,0.3577,0.3577,0.3577,0.3577,0.3577,0.3577,0.3577,0.3577,0.3577,0.3577,0.3577,0.3577,0.3577,0.3577,0.3577,0.3577,0.3577,0.3302,0.3302,0.3302,0.3302,0.3302,0.3302,0.3302,0.3302,0.3302,0.3302,0.3302,0.3302,0.3302,0.3302,0.3302,0.3302,0.3302,0.3302,0.3201,0.3201,0.3201,0.3201,0.3201,0.3201,0.3201,0.3201,0.3201,0.3201,0.3201,0.3201,0.3201,0.3201,0.3201,0.3201,0.3201,0.2759,0.2759,0.2759,0.2759,0.2759,0.2759,0.2759,0.2759,0.2759,0.2759,0.2759,0.2759,0.2759,0.2759,0.2759,0.2759,0.2759,0.2759,0.2759,0.2429,0.2429,0.2429,0.2429,0.2429,0.2429,0.2429,0.2429,0.2429,0.2429,0.2429,0.2429,0.2429,0.2429,0.2429,0.2429,0.2429,0.2429,0.1814,0.1814,0.1814,0.1814,0.1814,0.1814,0.1814,0.1814,0.1814,0.1814,0.1814,0.1814,0.1814,0.1814,0.1814,0.1814,0.1814,0.1814,0.0996,0.0996,0.0996,0.0996,0.0996,0.0996,0.0996,0.0996,0.0996,0.0996,0.0996,0.0996,0.0996,0.0996,0.0996,0.0996,0.0996,0.0996,0.0447,0.0447,0.0447,0.0447,0.0447,0.0447,0.0447,0.0447,0.0447,0.0447,0.0447,0.0447,0.0447,0.0447,0.0447,0.0447,0.0447,0.0447,-0.028,-0.028,-0.028,-0.028,-0.028,-0.028,-0.028,-0.028,-0.028,-0.028,-0.028,-0.028,-0.028,-0.028,-0.028,-0.028,-0.028,-0.0021]
thirdChunkMillis = [41424,41434,41444,41454,41464,41475,41484,41496,41505,41515,41525,41535,41545,41555,41565,41575,41585,41595,41605,41615,41625,41650,41653,41654,41665,41674,41685,41695,41704,41714,41724,41734,41744,41754,41765,41775,41785,41794,41805,41815,41825,41835,41846,41856,41865,41882,41884,41894,41905,41914,41925,41938,41947,41955,41964,41974,41986,41995,42005,42015,42024,42034,42044,42055,42065,42075,42084,42094,42105,42115,42125,42135,42145,42155,42164,42175,42185,42195,42205,42215,42224,42234,42250,42254,42265,42275,42284,42296,42304,42316,42325,42336,42344,42354,42365,42375,42385,42395,42404,42421,42424,42434,42444,42454,42465,42474,42485,42495,42504,42514,42525,42535,42545,42555,42565,42574,42584,42594,42605,42615,42625,42635,42644,42655,42665,42675,42685,42694,42707,42714,42724,42735,42745,42756,42765,42774,42785,42795,42805,42815,42824,42835,42845,42855,42864,42875,42885,42895,42905,42915,42924,42934,42945,42954,42967,42976,42985,42995,43005,43015,43024,43035,43045,43054,43064,43075,43084,43096,43105,43114,43124,43134,43144,43155,43165,43174,43185,43194,43205,43215,43224,43234,43245,43255,43264,43274,43289,43298,43306,43314,43326,43334,43346,43355,43365,43375,43384,43395,43404,43414,43425,43435,43445,43454,43464,43474,43485,43501,43507,43514,43525,43534,43545,43555,43564,43574,43585,43594,43605,43615,43625,43635,43645,43655,43665,43675,43684,43694,43704,43718,43725,43735,43756,43759,43765,43775,43785,43795,43805,43814,43825,43835,43845,43855,43864,43875,43885,43895,43905,43915,43925,43934,43944,43954,43966,43974,43985,44000,44005,44014,44024,44036,44046,44054,44064,44075,44084,44095,44105,44114,44124,44134,44145,44157,44164,44175,44185,44195,44205,44215,44224,44234,44244,44259,44265,44275,44285,44295,44308,44319,44325,44334,44344,44354,44365,44374,44384,44394,44404,44415,44425,44435,44444,44454,44465,44475,44485,44495,44504,44514,44525,44535,44545,44554,44564,44575,44585,44595,44604,44615,44625,44635,44644,44655,44664,44675,44684,44695,44705,44715,44724,44735,44745,44756,44765,44775,44784,44794,44805,44815,44825,44835,44845,44854,44867,44874,44885,44894,44905,44915,44929,44935,44944,44955,44965,44975,44984,44995,45005,45014,45024,45035,45046,45054,45064,45075,45085,45095,45105,45115,45125,45135,45145,45154,45164,45176,45185,45195,45205,45214,45225,45234,45245,45255,45264,45275,45286,45295,45305,45315,45326,45335,45344,45358,45365,45376,45385,45394,45404,45414,45424,45435,45445,45455,45464,45475,45484,45495,45506,45515,45525,45535,45544,45555,45565,45575,45585,45595,45605,45615,45625,45635,45645,45655,45665,45674,45684,45695,45704,45715,45728,45735,45744,45754,45764,45780,45784,45795,45805,45815,45825,45835]
thirdChunkGyro = [0.0016,0.0016,0.0016,0.0016,0.0016,0.0016,0.0016,0.0016,0.0016,-5.00e-04,-5.00e-04,-5.00e-04,-5.00e-04,-5.00e-04,-5.00e-04,-5.00e-04,-5.00e-04,-5.00e-04,-5.00e-04,-5.00e-04,-5.00e-04,-5.00e-04,-5.00e-04,-5.00e-04,-5.00e-04,-5.00e-04,-5.00e-04,-8.00e-04,-8.00e-04,-8.00e-04,-8.00e-04,-8.00e-04,-8.00e-04,-8.00e-04,-8.00e-04,-8.00e-04,-8.00e-04,-8.00e-04,-8.00e-04,-8.00e-04,-8.00e-04,-8.00e-04,-8.00e-04,-8.00e-04,-8.00e-04,-0.0016,-0.0016,-0.0016,-0.0016,-0.0016,-0.0016,-0.0016,-0.0016,-0.0016,-0.0016,-0.0016,-0.0016,-0.0016,-0.0016,-0.0016,-0.0016,-0.0016,-0.0016,0.0013,0.0013,0.0013,0.0013,0.0013,0.0013,0.0013,0.0013,0.0013,0.0013,0.0013,0.0013,0.0013,0.0013,0.0013,0.0013,0.0013,0.0013,0.0013,0.0021,0.0021,0.0021,0.0021,0.0021,0.0021,0.0021,0.0021,0.0021,0.0021,0.0021,0.0021,0.0021,0.0021,0.0021,0.0021,0.0021,0.0205,0.0205,0.0205,0.0205,0.0205,0.0205,0.0205,0.0205,0.0205,0.0205,0.0205,0.0205,0.0205,0.0205,0.0205,0.0205,0.0205,0.0205,0.0205,0.0399,0.0399,0.0399,0.0399,0.0399,0.0399,0.0399,0.0399,0.0399,0.0399,0.0399,0.0399,0.0399,0.0399,0.0399,0.0399,0.0399,0.0767,0.0767,0.0767,0.0767,0.0767,0.0767,0.0767,0.0767,0.0767,0.0767,0.0767,0.0767,0.0767,0.0767,0.0767,0.0767,0.0767,0.0767,0.0767,0.1142,0.1142,0.1142,0.1142,0.1142,0.1142,0.1142,0.1142,0.1142,0.1142,0.1142,0.1142,0.1142,0.1142,0.1142,0.1142,0.1142,0.1814,0.1814,0.1814,0.1814,0.1814,0.1814,0.1814,0.1814,0.1814,0.1814,0.1814,0.1814,0.1814,0.1814,0.1814,0.1814,0.1814,0.1814,0.3372,0.3372,0.3372,0.3372,0.3372,0.3372,0.3372,0.3372,0.3372,0.3372,0.3372,0.3372,0.3372,0.3372,0.3372,0.3372,0.3372,0.3372,0.3414,0.3414,0.3414,0.3414,0.3414,0.3414,0.3414,0.3414,0.3414,0.3414,0.3414,0.3414,0.3414,0.3414,0.3414,0.3414,0.3414,0.3414,0.3087,0.3087,0.3087,0.3087,0.3087,0.3087,0.3087,0.3087,0.3087,0.3087,0.3087,0.3087,0.3087,0.3087,0.3087,0.3087,0.3087,0.3087,0.2983,0.2983,0.2983,0.2983,0.2983,0.2983,0.2983,0.2983,0.2983,0.2983,0.2983,0.2983,0.2983,0.2983,0.2983,0.2983,0.2983,0.2983,0.3212,0.3212,0.3212,0.3212,0.3212,0.3212,0.3212,0.3212,0.3212,0.3212,0.3212,0.3212,0.3212,0.3212,0.3212,0.3212,0.3212,0.3212,0.3398,0.3398,0.3398,0.3398,0.3398,0.3398,0.3398,0.3398,0.3398,0.3398,0.3398,0.3398,0.3398,0.3398,0.3398,0.3398,0.3398,0.3398,0.3622,0.3622,0.3622,0.3622,0.3622,0.3622,0.3622,0.3622,0.3622,0.3622,0.3622,0.3622,0.3622,0.3622,0.3622,0.3622,0.3622,0.3622,0.2999,0.2999,0.2999,0.2999,0.2999,0.2999,0.2999,0.2999,0.2999,0.2999,0.2999,0.2999,0.2999,0.2999,0.2999,0.2999,0.2999,0.2999,0.2056,0.2056,0.2056,0.2056,0.2056,0.2056,0.2056,0.2056,0.2056,0.2056,0.2056,0.2056,0.2056,0.2056,0.2056,0.2056,0.2056,0.2056,0.1779,0.1779,0.1779,0.1779,0.1779,0.1779,0.1779,0.1779,0.1779,0.1779,0.1779,0.1779,0.1779,0.1779,0.1779,0.1779,0.1779,0.1779,0.1811,0.1811,0.1811,0.1811,0.1811,0.1811,0.1811,0.1811,0.1811,0.1811,0.1811,0.1811,0.1811,0.1811,0.1811,0.1811,0.1811,0.1811,0.1832,0.1832,0.1832,0.1832,0.1832,0.1832,0.1832,0.1832,0.1832,0.1832,0.1832,0.1832,0.1832,0.1832,0.1832,0.1832,0.1832,0.1832,0.13,0.13,0.13,0.13,0.13,0.13,0.13,0.13,0.13,0.13,0.13,0.13,0.13,0.13,0.13,0.13,0.13,0.13,0.0317,0.0317,0.0317,0.0317,0.0317,0.0317,0.0317,0.0317,0.0317,0.0317,0.0317,0.0317,0.0317,0.0317,0.0317,0.0317,0.0317,0.0317,-0.0141]
fourthChunkMillis = [56834,56851,56854,56865,56874,56885,56894,56906,56915,56924,56937,56945,56955,56965,56975,56985,57002,57005,57019,57027,57038,57044,57054,57064,57075,57084,57095,57104,57114,57124,57134,57145,57155,57165,57175,57185,57195,57205,57214,57224,57235,57245,57255,57265,57275,57285,57295,57305,57314,57325,57335,57345,57355,57365,57374,57385,57395,57404,57414,57424,57435,57445,57455,57465,57475,57489,57495,57505,57515,57524,57534,57546,57556,57566,57574,57585,57595,57604,57615,57624,57634,57644,57655,57665,57675,57684,57694,57704,57715,57725,57735,57745,57755,57765,57775,57785,57794,57805,57814,57824,57834,57844,57854,57864,57875,57884,57894,57904,57915,57924,57935,57944,57954,57964,57975,57985,57995,58006,58036,58037,58038,58045,58054,58064,58074,58084,58095,58105,58115,58125,58134,58144,58158,58164,58175,58185,58194,58205,58215,58225,58234,58244,58255,58264,58274,58284,58294,58304,58314,58324,58335,58346,58355,58365,58375,58385,58396,58405,58415,58425,58435,58445,58455,58465,58475,58485,58495,58504,58515,58525,58534,58544,58555,58564,58575,58585,58594,58605,58615,58624,58634,58644,58656,58665,58674,58684,58695,58706,58716,58724,58734,58745,58754,58765,58775,58785,58795,58805,58815,58824,58834,58844,58854,58865,58875,58884,58895,58905,58914,58924,58934,58944,58955,58965,58975,58985,58995,59005,59015,59025,59035,59045,59055,59065,59075,59085,59095,59104,59115,59125,59135,59145,59155,59165,59175,59185,59194,59205,59214,59224,59235,59244,59255,59264,59275,59284,59294,59305,59315,59325,59335,59345,59355,59365,59375,59385,59395,59405,59414,59424,59434,59444,59455,59464,59474,59484,59494,59504,59515,59525,59534,59544,59555,59564,59575,59584,59594,59604,59615,59625,59634,59645,59655,59665,59675,59684,59695,59704,59715,59724,59735,59745,59754,59765,59774,59784,59794,59805,59815,59825,59834,59844,59854,59865,59879,59885,59894,59904,59914,59924,59934,59945,59955,59965,59975,59985,59995,60005,60014,60024,60034,60044,60054,60065,60075,60084,60100,60105,60116,60126,60135,60145,60154,60164,60175,60184,60194,60205,60215,60224,60235,60244,60255,60265,60275,60285,60295,60305,60315,60325,60335,60344,60355,60365,60379,60385,60394,60405,60415,60424,60434,60444,60454,60464,60475,60485,60494,60504,60514,60525,60534,60544,60554,60565,60575,60585,60594,60604,60615,60626,60635,60645,60654,60664,60675,60685,60695,60705,60714,60724,60735,60744,60755,60765,60775,60784,60794,60804,60814,60824,60835,60845,60855,60865,60874,60886,60896,60905,60914,60925,60935,60945,60954,60965,60975,60985,60995,61005,61015,61025,61035,61045,61054,61065,61075,61085,61095,61105,61115,61125,61134,61144,61155,61165,61175,61185,61195,61205,61215,61225,61235,61244,61255,61265,61275,61285,61295,61305,61315,61325,61334,61344,61354,61365,61375,61385,61395,61404,61415,61425,61434,61444,61454,61465,61475,61485,61494,61504,61516,61525,61541,61547,61555,61565,61574,61584,61594,61605,61615,61625,61635,61645,61655,61666,61674,61684,61696,61707,61721,61725,61735,61744,61754,61764,61774,61785,61795,61805,61815,61825,61834,61844,61854,61864,61876,61885,61895,61904,61915]
fourthChunkGyro = [0.0024,0.0024,0.0024,0.0024,0.0024,0.0024,0.0024,0.0024,0.0024,0.0024,0.0024,0.0024,0.0024,0.0024,0.0024,0.0024,-0.0016,-0.0016,-0.0016,-0.0016,-0.0016,-0.0016,-0.0016,-0.0016,-0.0016,-0.0016,-0.0016,-0.0016,-0.0016,-0.0016,-0.0016,-0.0016,-0.0016,-0.0016,0.0123,0.0123,0.0123,0.0123,0.0123,0.0123,0.0123,0.0123,0.0123,0.0123,0.0123,0.0123,0.0123,0.0123,0.0123,0.0123,0.0123,0.0123,-0.0061,-0.0061,-0.0061,-0.0061,-0.0061,-0.0061,-0.0061,-0.0061,-0.0061,-0.0061,-0.0061,-0.0061,-0.0061,-0.0061,-0.0061,-0.0061,-0.0061,-0.0061,0.0032,0.0032,0.0032,0.0032,0.0032,0.0032,0.0032,0.0032,0.0032,0.0032,0.0032,0.0032,0.0032,0.0032,0.0032,0.0032,0.0032,0.0032,0.0224,0.0224,0.0224,0.0224,0.0224,0.0224,0.0224,0.0224,0.0224,0.0224,0.0224,0.0224,0.0224,0.0224,0.0224,0.0224,0.0224,0.0224,0.0682,0.0682,0.0682,0.0682,0.0682,0.0682,0.0682,0.0682,0.0682,0.0682,0.0682,0.0682,0.0682,0.0682,0.0682,0.0682,0.0682,0.0682,0.1358,0.1358,0.1358,0.1358,0.1358,0.1358,0.1358,0.1358,0.1358,0.1358,0.1358,0.1358,0.1358,0.1358,0.1358,0.1358,0.1358,0.1358,0.1901,0.1901,0.1901,0.1901,0.1901,0.1901,0.1901,0.1901,0.1901,0.1901,0.1901,0.1901,0.1901,0.1901,0.1901,0.1901,0.1901,0.1901,0.3707,0.3707,0.3707,0.3707,0.3707,0.3707,0.3707,0.3707,0.3707,0.3707,0.3707,0.3707,0.3707,0.3707,0.3707,0.3707,0.3707,0.3707,0.5369,0.5369,0.5369,0.5369,0.5369,0.5369,0.5369,0.5369,0.5369,0.5369,0.5369,0.5369,0.5369,0.5369,0.5369,0.5369,0.5369,0.5369,0.5601,0.5601,0.5601,0.5601,0.5601,0.5601,0.5601,0.5601,0.5601,0.5601,0.5601,0.5601,0.5601,0.5601,0.5601,0.5601,0.5601,0.5601,0.4967,0.4967,0.4967,0.4967,0.4967,0.4967,0.4967,0.4967,0.4967,0.4967,0.4967,0.4967,0.4967,0.4967,0.4967,0.4967,0.4967,0.4967,0.4807,0.4807,0.4807,0.4807,0.4807,0.4807,0.4807,0.4807,0.4807,0.4807,0.4807,0.4807,0.4807,0.4807,0.4807,0.4807,0.4807,0.4807,0.494,0.494,0.494,0.494,0.494,0.494,0.494,0.494,0.494,0.494,0.494,0.494,0.494,0.494,0.494,0.494,0.494,0.494,0.5225,0.5225,0.5225,0.5225,0.5225,0.5225,0.5225,0.5225,0.5225,0.5225,0.5225,0.5225,0.5225,0.5225,0.5225,0.5225,0.5225,0.5225,0.5204,0.5204,0.5204,0.5204,0.5204,0.5204,0.5204,0.5204,0.5204,0.5204,0.5204,0.5204,0.5204,0.5204,0.5204,0.5204,0.5204,0.5204,0.5236,0.5236,0.5236,0.5236,0.5236,0.5236,0.5236,0.5236,0.5236,0.5236,0.5236,0.5236,0.5236,0.5236,0.5236,0.5236,0.5236,0.5236,0.4826,0.4826,0.4826,0.4826,0.4826,0.4826,0.4826,0.4826,0.4826,0.4826,0.4826,0.4826,0.4826,0.4826,0.4826,0.4826,0.4826,0.4826,0.4908,0.4908,0.4908,0.4908,0.4908,0.4908,0.4908,0.4908,0.4908,0.4908,0.4908,0.4908,0.4908,0.4908,0.4908,0.4908,0.4908,0.4908,0.5108,0.5108,0.5108,0.5108,0.5108,0.5108,0.5108,0.5108,0.5108,0.5108,0.5108,0.5108,0.5108,0.5108,0.5108,0.5108,0.5108,0.5108,0.5108,0.5121,0.5121,0.5121,0.5121,0.5121,0.5121,0.5121,0.5121,0.5121,0.5121,0.5121,0.5121,0.5121,0.5121,0.5121,0.5121,0.5121,0.486,0.486,0.486,0.486,0.486,0.486,0.486,0.486,0.486,0.486,0.486,0.486,0.486,0.486,0.486,0.486,0.486,0.486,0.453,0.453,0.453,0.453,0.453,0.453,0.453,0.453,0.453,0.453,0.453,0.453,0.453,0.453,0.453,0.453,0.453,0.453,0.3606,0.3606,0.3606,0.3606,0.3606,0.3606,0.3606,0.3606,0.3606,0.3606,0.3606,0.3606,0.3606,0.3606,0.3606,0.3606,0.3606,0.3606,0.3166,0.3166,0.3166,0.3166,0.3166,0.3166,0.3166,0.3166,0.3166,0.3166,0.3166,0.3166,0.3166,0.3166,0.3166,0.3166,0.3166,0.3166,0.3081,0.3081,0.3081,0.3081,0.3081,0.3081,0.3081,0.3081,0.3081,0.3081,0.3081,0.3081,0.3081,0.3081,0.3081,0.3081,0.3081,0.1862,0.1862,0.1862,0.1862,0.1862,0.1862,0.1862,0.1862,0.1862,0.1862,0.1862,0.1862,0.1862,0.1862,0.1862,0.1862,0.1862,0.1862,0.1862,0.0045,0.0045,0.0045,0.0045,0.0045,0.0045,0.0045]
computeLeftArea = (y1, x1, x2) ->
area = y1 * (x2 - x1) / 1000
return area
integrate = (gyro, milliseconds) ->
sum = 0
for i in [1 ... milliseconds.length]
sum += computeLeftArea gyro[i - 1], milliseconds[i - 1], milliseconds[i]
return sum
app = ->
console.log integrate firstChunkGyro, firstChunkMillis
console.log integrate secondChunkGyro, secondChunkMillis
console.log integrate thirdChunkGyro, thirdChunkMillis
console.log integrate fourthChunkGyro, fourthChunkMillis
module.exports = app()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment