Shuhei Tsuchida / Mbed 2 deprecated dotstar_old_style_6volleyball

Dependencies:   RotationMat_ SDFileSystem math mbed trigonometric_fanc

Committer:
shuhei2306
Date:
Mon Feb 08 11:20:19 2016 +0000
Revision:
2:b09caaa3de96
Parent:
1:64ca0218709d
?????????

Who changed what in which revision?

UserRevisionLine numberNew contents of line
shuhei2306 0:28d0b65a60fe 1
shuhei2306 0:28d0b65a60fe 2 #include "mbed.h"
shuhei2306 0:28d0b65a60fe 3 #include "SDFileSystem.h"
shuhei2306 0:28d0b65a60fe 4 #include "Adafruit_DotStar.h"
shuhei2306 0:28d0b65a60fe 5
shuhei2306 0:28d0b65a60fe 6 #include "Vector3D.h"
shuhei2306 0:28d0b65a60fe 7 #include "RotationMat.h"
shuhei2306 2:b09caaa3de96 8 //#include "trigonometric_fanc.h"
shuhei2306 2:b09caaa3de96 9 #include "mymath.h"
shuhei2306 2:b09caaa3de96 10
shuhei2306 2:b09caaa3de96 11 const float v_leds[6][9][22][3]={{{{0.585398, 0.636783, 0.501813},{0.519512, 0.691586, 0.501813},{0.448526, 0.7396, 0.501813},{0.373138, 0.780354, 0.501813},{0.294086, 0.813448, 0.501813},{0.212148, 0.838557, 0.501813},{0.128128, 0.855434, 0.501813},{0.0428495, 0.863914, 0.501813},{-0.0428495, 0.863914, 0.501813},{-0.128128, 0.855434, 0.501813},{-0.212148, 0.838557, 0.501813},{-0.294086, 0.813448, 0.501813},{-0.373138, 0.780354, 0.501813},{-0.448526, 0.7396, 0.501813},{-0.519512, 0.691586, 0.501813},{-0.585398, 0.636783, 0.501813},{0,0,0},{0,0,0},{0,0,0},{0,0,0},{0,0,0},{0,0,0}},
shuhei2306 2:b09caaa3de96 12 {{-0.684874, 0.619184, 0.384134},{-0.624509, 0.680021, 0.384134},{-0.558764, 0.735, 0.384134},{-0.488203, 0.783644, 0.384134},{-0.413436, 0.825537, 0.384134},{-0.335106, 0.860317, 0.384134},{-0.25389, 0.887683, 0.384134},{-0.170485, 0.907401, 0.384134},{-0.0856113, 0.9193, 0.384134},{0, 0.923277, 0.384134},{0.0856113, 0.9193, 0.384134},{0.170485, 0.907401, 0.384134},{0.253889, 0.887683, 0.384134},{0.335106, 0.860317, 0.384134},{0.413436, 0.825537, 0.384134},{0.488203, 0.783645, 0.384134},{0.558763, 0.735, 0.384134},{0.624509, 0.680021, 0.384134},{0.684874, 0.619184, 0.384134},{0,0,0},{0,0,0},{0,0,0}},
shuhei2306 2:b09caaa3de96 13 {{0.721281, 0.64206, 0.25983},{0.661511, 0.703485, 0.25983},{0.59653, 0.759368, 0.25983},{0.52685, 0.80927, 0.25983},{0.453019, 0.852796, 0.25983},{0.375621, 0.889605, 0.25983},{0.295263, 0.919406, 0.25983},{0.212579, 0.941965, 0.25983},{0.128221, 0.957104, 0.25983},{0.0428528, 0.964703, 0.25983},{-0.0428529, 0.964703, 0.25983},{-0.128221, 0.957104, 0.25983},{-0.212579, 0.941965, 0.25983},{-0.295263, 0.919406, 0.25983},{-0.375621, 0.889605, 0.25983},{-0.453019, 0.852796, 0.25983},{-0.52685, 0.80927, 0.25983},{-0.59653, 0.759368, 0.25983},{-0.661511, 0.703485, 0.25983},{-0.721281, 0.64206, 0.25983},{0,0,0},{0,0,0}},
shuhei2306 2:b09caaa3de96 14 {{-0.781503, 0.609984, 0.131045},{-0.725896, 0.675205, 0.131045},{-0.664864, 0.735379, 0.131045},{-0.598863, 0.790057, 0.131045},{-0.528386, 0.83883, 0.131045},{-0.45396, 0.881333, 0.131045},{-0.37614, 0.917249, 0.131045},{-0.295509, 0.946309, 0.131045},{-0.21267, 0.968297, 0.131045},{-0.128241, 0.983047, 0.131045},{-0.0428538, 0.99045, 0.131045},{0.0428539, 0.99045, 0.131045},{0.128241, 0.983047, 0.131045},{0.21267, 0.968297, 0.131045},{0.29551, 0.946309, 0.131045},{0.37614, 0.917249, 0.131045},{0.45396, 0.881333, 0.131045},{0.528386, 0.83883, 0.131045},{0.598863, 0.790057, 0.131045},{0.664864, 0.735379, 0.131045},{0.725896, 0.675205, 0.131045},{0.781503, 0.609984, 0.131045}},
shuhei2306 2:b09caaa3de96 15 {{0.783455, 0.621449, 0},{0.727363, 0.686253, 0},{0.665929, 0.746015, 0},{0.599602, 0.800298, 0},{0.528871, 0.848702, 0},{0.454256, 0.890871, 0},{0.376303, 0.926497, 0},{0.295586, 0.955316, 0},{0.212697, 0.977118, 0},{0.128247, 0.991742, 0},{0.0428538, 0.999081, 0},{-0.0428538, 0.999081, 0},{-0.128247, 0.991742, 0},{-0.212697, 0.977118, 0},{-0.295586, 0.955316, 0},{-0.376303, 0.926497, 0},{-0.454256, 0.890871, 0},{-0.528872, 0.848702, 0},{-0.599602, 0.800298, 0},{-0.665929, 0.746015, 0},{-0.727363, 0.686253, 0},{-0.783455, 0.621449, 0}},
shuhei2306 2:b09caaa3de96 16 {{-0.781503, 0.609984, -0.131045},{-0.725896, 0.675205, -0.131045},{-0.664864, 0.735379, -0.131045},{-0.598863, 0.790057, -0.131045},{-0.528386, 0.83883, -0.131045},{-0.45396, 0.881333, -0.131045},{-0.37614, 0.917249, -0.131045},{-0.295509, 0.946309, -0.131045},{-0.21267, 0.968297, -0.131045},{-0.128241, 0.983047, -0.131045},{-0.0428538, 0.99045, -0.131045},{0.0428539, 0.99045, -0.131045},{0.128241, 0.983047, -0.131045},{0.21267, 0.968297, -0.131045},{0.29551, 0.946309, -0.131045},{0.37614, 0.917249, -0.131045},{0.45396, 0.881333, -0.131045},{0.528386, 0.83883, -0.131045},{0.598863, 0.790057, -0.131045},{0.664864, 0.735379, -0.131045},{0.725896, 0.675205, -0.131045},{0.781503, 0.609984, -0.131045}},
shuhei2306 2:b09caaa3de96 17 {{0.721281, 0.64206, -0.25983},{0.661511, 0.703485, -0.25983},{0.59653, 0.759368, -0.25983},{0.52685, 0.80927, -0.25983},{0.453019, 0.852796, -0.25983},{0.375621, 0.889605, -0.25983},{0.295263, 0.919406, -0.25983},{0.212579, 0.941965, -0.25983},{0.128221, 0.957104, -0.25983},{0.0428528, 0.964703, -0.25983},{-0.0428529, 0.964703, -0.25983},{-0.128221, 0.957104, -0.25983},{-0.212579, 0.941965, -0.25983},{-0.295263, 0.919406, -0.25983},{-0.375621, 0.889605, -0.25983},{-0.453019, 0.852796, -0.25983},{-0.52685, 0.80927, -0.25983},{-0.59653, 0.759368, -0.25983},{-0.661511, 0.703485, -0.25983},{-0.721281, 0.64206, -0.25983},{0,0,0},{0,0,0}},
shuhei2306 2:b09caaa3de96 18 {{-0.684874, 0.619184, -0.384134},{-0.624509, 0.680021, -0.384134},{-0.558764, 0.735, -0.384134},{-0.488203, 0.783644, -0.384134},{-0.413436, 0.825537, -0.384134},{-0.335106, 0.860317, -0.384134},{-0.25389, 0.887683, -0.384134},{-0.170485, 0.907401, -0.384134},{-0.0856113, 0.9193, -0.384134},{0, 0.923277, -0.384134},{0.0856113, 0.9193, -0.384134},{0.170485, 0.907401, -0.384134},{0.253889, 0.887683, -0.384134},{0.335106, 0.860317, -0.384134},{0.413436, 0.825537, -0.384134},{0.488203, 0.783645, -0.384134},{0.558763, 0.735, -0.384134},{0.624509, 0.680021, -0.384134},{0.684874, 0.619184, -0.384134},{0,0,0},{0,0,0},{0,0,0}},
shuhei2306 2:b09caaa3de96 19 {{0.585398, 0.636783, -0.501813},{0.519512, 0.691586, -0.501813},{0.448526, 0.7396, -0.501813},{0.373138, 0.780354, -0.501813},{0.294086, 0.813448, -0.501813},{0.212148, 0.838557, -0.501813},{0.128128, 0.855434, -0.501813},{0.0428495, 0.863914, -0.501813},{-0.0428495, 0.863914, -0.501813},{-0.128128, 0.855434, -0.501813},{-0.212148, 0.838557, -0.501813},{-0.294086, 0.813448, -0.501813},{-0.373138, 0.780354, -0.501813},{-0.448526, 0.7396, -0.501813},{-0.519512, 0.691586, -0.501813},{-0.585398, 0.636783, -0.501813},{0,0,0},{0,0,0},{0,0,0},{0,0,0},{0,0,0},{0,0,0}}
shuhei2306 2:b09caaa3de96 20 },{{{0.501813, 0.585398, 0.636783},{0.501813, 0.519512, 0.691586},{0.501813, 0.448526, 0.7396},{0.501813, 0.373138, 0.780354},{0.501813, 0.294086, 0.813448},{0.501813, 0.212148, 0.838557},{0.501813, 0.128128, 0.855434},{0.501813, 0.0428495, 0.863914},{0.501813, -0.0428495, 0.863914},{0.501813, -0.128128, 0.855434},{0.501813, -0.212148, 0.838557},{0.501813, -0.294086, 0.813448},{0.501813, -0.373138, 0.780354},{0.501813, -0.448526, 0.7396},{0.501813, -0.519512, 0.691586},{0.501813, -0.585398, 0.636783},{0,0,0},{0,0,0},{0,0,0},{0,0,0},{0,0,0},{0,0,0}},
shuhei2306 2:b09caaa3de96 21 {{0.384134, -0.684874, 0.619184},{0.384134, -0.624509, 0.680021},{0.384134, -0.558763, 0.735},{0.384134, -0.488203, 0.783645},{0.384134, -0.413436, 0.825537},{0.384134, -0.335106, 0.860317},{0.384134, -0.253889, 0.887683},{0.384134, -0.170485, 0.907401},{0.384134, -0.0856113, 0.919299},{0.384134, 1.6791e-08, 0.923277},{0.384134, 0.0856113, 0.919299},{0.384134, 0.170485, 0.907401},{0.384134, 0.253889, 0.887683},{0.384134, 0.335106, 0.860317},{0.384134, 0.413436, 0.825537},{0.384134, 0.488203, 0.783645},{0.384134, 0.558763, 0.735},{0.384134, 0.624509, 0.680021},{0.384134, 0.684874, 0.619184},{0,0,0},{0,0,0},{0,0,0}},
shuhei2306 2:b09caaa3de96 22 {{0.25983, 0.721281, 0.64206},{0.25983, 0.661511, 0.703485},{0.25983, 0.59653, 0.759368},{0.25983, 0.52685, 0.80927},{0.25983, 0.453019, 0.852796},{0.25983, 0.375621, 0.889605},{0.25983, 0.295263, 0.919406},{0.25983, 0.212579, 0.941965},{0.25983, 0.128221, 0.957104},{0.25983, 0.0428529, 0.964703},{0.25983, -0.0428529, 0.964703},{0.25983, -0.128221, 0.957104},{0.25983, -0.212579, 0.941965},{0.259831, -0.295263, 0.919406},{0.25983, -0.375621, 0.889605},{0.259831, -0.453019, 0.852796},{0.259831, -0.52685, 0.80927},{0.25983, -0.59653, 0.759368},{0.25983, -0.661511, 0.703485},{0.25983, -0.721281, 0.64206},{0,0,0},{0,0,0}},
shuhei2306 2:b09caaa3de96 23 {{0.131045, -0.781502, 0.609984},{0.131045, -0.725896, 0.675205},{0.131045, -0.664864, 0.735379},{0.131045, -0.598863, 0.790057},{0.131045, -0.528386, 0.83883},{0.131045, -0.45396, 0.881333},{0.131045, -0.37614, 0.917249},{0.131045, -0.295509, 0.946309},{0.131045, -0.21267, 0.968297},{0.131045, -0.128241, 0.983047},{0.131045, -0.0428538, 0.99045},{0.131045, 0.0428539, 0.99045},{0.131045, 0.128241, 0.983047},{0.131045, 0.21267, 0.968297},{0.131045, 0.29551, 0.946309},{0.131045, 0.37614, 0.917249},{0.131045, 0.45396, 0.881333},{0.131045, 0.528386, 0.83883},{0.131045, 0.598863, 0.790057},{0.131045, 0.664864, 0.735379},{0.131045, 0.725896, 0.675205},{0.131045, 0.781503, 0.609984}},
shuhei2306 2:b09caaa3de96 24 {{-7.08151e-09, 0.783455, 0.621449},{-1.797e-09, 0.727363, 0.686253},{3.5007e-09, 0.665929, 0.746015},{8.77269e-09, 0.599602, 0.800298},{1.39802e-08, 0.528871, 0.848702},{1.90851e-08, 0.454256, 0.890871},{2.40497e-08, 0.376303, 0.926497},{2.88377e-08, 0.295586, 0.955316},{3.34139e-08, 0.212697, 0.977118},{3.77446e-08, 0.128247, 0.991742},{4.1798e-08, 0.0428538, 0.999081},{4.55444e-08, -0.0428538, 0.999081},{4.89563e-08, -0.128247, 0.991742},{5.20085e-08, -0.212697, 0.977118},{5.46787e-08, -0.295586, 0.955316},{5.69472e-08, -0.376303, 0.926497},{5.87974e-08, -0.454256, 0.890871},{6.02157e-08, -0.528872, 0.848702},{6.11916e-08, -0.599602, 0.800298},{6.1718e-08, -0.665929, 0.746015},{6.17911e-08, -0.727363, 0.686253},{6.14103e-08, -0.783455, 0.621449}},
shuhei2306 2:b09caaa3de96 25 {{-0.131045, -0.781502, 0.609984},{-0.131045, -0.725896, 0.675205},{-0.131045, -0.664864, 0.735379},{-0.131045, -0.598863, 0.790057},{-0.131045, -0.528386, 0.83883},{-0.131045, -0.45396, 0.881333},{-0.131045, -0.37614, 0.917249},{-0.131045, -0.295509, 0.946309},{-0.131045, -0.21267, 0.968297},{-0.131045, -0.128241, 0.983047},{-0.131045, -0.0428538, 0.99045},{-0.131045, 0.0428539, 0.99045},{-0.131045, 0.128241, 0.983047},{-0.131045, 0.21267, 0.968297},{-0.131045, 0.29551, 0.946309},{-0.131045, 0.37614, 0.917249},{-0.131045, 0.45396, 0.881333},{-0.131045, 0.528386, 0.83883},{-0.131045, 0.598863, 0.790057},{-0.131045, 0.664864, 0.735379},{-0.131045, 0.725896, 0.675205},{-0.131045, 0.781503, 0.609984}},
shuhei2306 2:b09caaa3de96 26 {{-0.25983, 0.721281, 0.64206},{-0.25983, 0.661511, 0.703485},{-0.25983, 0.59653, 0.759368},{-0.25983, 0.52685, 0.80927},{-0.25983, 0.453019, 0.852796},{-0.25983, 0.375621, 0.889605},{-0.25983, 0.295263, 0.919406},{-0.25983, 0.212579, 0.941965},{-0.25983, 0.128221, 0.957104},{-0.25983, 0.0428528, 0.964703},{-0.25983, -0.0428529, 0.964703},{-0.25983, -0.128221, 0.957104},{-0.25983, -0.212579, 0.941965},{-0.25983, -0.295263, 0.919406},{-0.25983, -0.375621, 0.889605},{-0.25983, -0.453019, 0.852796},{-0.25983, -0.52685, 0.80927},{-0.25983, -0.59653, 0.759368},{-0.25983, -0.661511, 0.703485},{-0.25983, -0.721281, 0.64206},{0,0,0},{0,0,0}},
shuhei2306 2:b09caaa3de96 27 {{-0.384134, -0.684874, 0.619184},{-0.384134, -0.624509, 0.680021},{-0.384134, -0.558763, 0.735},{-0.384134, -0.488203, 0.783645},{-0.384134, -0.413436, 0.825537},{-0.384134, -0.335106, 0.860317},{-0.384134, -0.25389, 0.887683},{-0.384134, -0.170485, 0.907401},{-0.384134, -0.0856113, 0.9193},{-0.384134, -1.6791e-08, 0.923277},{-0.384134, 0.0856113, 0.9193},{-0.384134, 0.170485, 0.907401},{-0.384134, 0.253889, 0.887683},{-0.384134, 0.335106, 0.860317},{-0.384134, 0.413436, 0.825537},{-0.384134, 0.488203, 0.783645},{-0.384134, 0.558763, 0.735},{-0.384134, 0.624509, 0.680021},{-0.384134, 0.684874, 0.619184},{0,0,0},{0,0,0},{0,0,0}},
shuhei2306 2:b09caaa3de96 28 {{-0.501813, 0.585398, 0.636783},{-0.501813, 0.519512, 0.691586},{-0.501813, 0.448526, 0.7396},{-0.501813, 0.373138, 0.780354},{-0.501813, 0.294086, 0.813448},{-0.501813, 0.212148, 0.838557},{-0.501813, 0.128128, 0.855434},{-0.501813, 0.0428494, 0.863914},{-0.501813, -0.0428495, 0.863914},{-0.501813, -0.128128, 0.855434},{-0.501813, -0.212148, 0.838557},{-0.501813, -0.294087, 0.813448},{-0.501813, -0.373138, 0.780354},{-0.501813, -0.448526, 0.7396},{-0.501813, -0.519512, 0.691586},{-0.501813, -0.585398, 0.636784},{0,0,0},{0,0,0},{0,0,0},{0,0,0},{0,0,0},{0,0,0}}
shuhei2306 2:b09caaa3de96 29 },{{{-0.501813, 0.585398, -0.636783},{-0.501813, 0.519512, -0.691586},{-0.501813, 0.448526, -0.7396},{-0.501813, 0.373138, -0.780354},{-0.501813, 0.294086, -0.813448},{-0.501813, 0.212148, -0.838557},{-0.501813, 0.128128, -0.855434},{-0.501813, 0.0428494, -0.863914},{-0.501813, -0.0428495, -0.863914},{-0.501813, -0.128128, -0.855434},{-0.501813, -0.212148, -0.838557},{-0.501813, -0.294087, -0.813448},{-0.501813, -0.373138, -0.780354},{-0.501813, -0.448526, -0.7396},{-0.501813, -0.519512, -0.691586},{-0.501813, -0.585398, -0.636784},{0,0,0},{0,0,0},{0,0,0},{0,0,0},{0,0,0},{0,0,0}},
shuhei2306 2:b09caaa3de96 30 {{-0.384134, -0.684874, -0.619184},{-0.384134, -0.624509, -0.680021},{-0.384134, -0.558763, -0.735},{-0.384134, -0.488203, -0.783645},{-0.384134, -0.413436, -0.825537},{-0.384134, -0.335106, -0.860317},{-0.384134, -0.25389, -0.887683},{-0.384134, -0.170485, -0.907401},{-0.384134, -0.0856113, -0.9193},{-0.384134, -1.6791e-08, -0.923277},{-0.384134, 0.0856113, -0.9193},{-0.384134, 0.170485, -0.907401},{-0.384134, 0.253889, -0.887683},{-0.384134, 0.335106, -0.860317},{-0.384134, 0.413436, -0.825537},{-0.384134, 0.488203, -0.783645},{-0.384134, 0.558763, -0.735},{-0.384134, 0.624509, -0.680021},{-0.384134, 0.684874, -0.619184},{0,0,0},{0,0,0},{0,0,0}},
shuhei2306 2:b09caaa3de96 31 {{-0.25983, 0.721281, -0.64206},{-0.25983, 0.661511, -0.703485},{-0.25983, 0.59653, -0.759368},{-0.25983, 0.52685, -0.80927},{-0.25983, 0.453019, -0.852796},{-0.25983, 0.375621, -0.889605},{-0.25983, 0.295263, -0.919406},{-0.25983, 0.212579, -0.941965},{-0.25983, 0.128221, -0.957104},{-0.25983, 0.0428528, -0.964703},{-0.25983, -0.0428529, -0.964703},{-0.25983, -0.128221, -0.957104},{-0.25983, -0.212579, -0.941965},{-0.25983, -0.295263, -0.919406},{-0.25983, -0.375621, -0.889605},{-0.25983, -0.453019, -0.852796},{-0.25983, -0.52685, -0.80927},{-0.25983, -0.59653, -0.759368},{-0.25983, -0.661511, -0.703485},{-0.25983, -0.721281, -0.64206},{0,0,0},{0,0,0}},
shuhei2306 2:b09caaa3de96 32 {{-0.131045, -0.781502, -0.609984},{-0.131045, -0.725896, -0.675205},{-0.131045, -0.664864, -0.735379},{-0.131045, -0.598863, -0.790057},{-0.131045, -0.528386, -0.83883},{-0.131045, -0.45396, -0.881333},{-0.131045, -0.37614, -0.917249},{-0.131045, -0.295509, -0.946309},{-0.131045, -0.21267, -0.968297},{-0.131045, -0.128241, -0.983047},{-0.131045, -0.0428538, -0.99045},{-0.131045, 0.0428539, -0.99045},{-0.131045, 0.128241, -0.983047},{-0.131045, 0.21267, -0.968297},{-0.131045, 0.29551, -0.946309},{-0.131045, 0.37614, -0.917249},{-0.131045, 0.45396, -0.881333},{-0.131045, 0.528386, -0.83883},{-0.131045, 0.598863, -0.790057},{-0.131045, 0.664864, -0.735379},{-0.131045, 0.725896, -0.675205},{-0.131045, 0.781503, -0.609984}},
shuhei2306 2:b09caaa3de96 33 {{-7.08151e-09, 0.783455, -0.621449},{-1.797e-09, 0.727363, -0.686253},{3.5007e-09, 0.665929, -0.746015},{8.77269e-09, 0.599602, -0.800298},{1.39802e-08, 0.528871, -0.848702},{1.90851e-08, 0.454256, -0.890871},{2.40497e-08, 0.376303, -0.926497},{2.88377e-08, 0.295586, -0.955316},{3.34139e-08, 0.212697, -0.977118},{3.77446e-08, 0.128247, -0.991742},{4.1798e-08, 0.0428538, -0.999081},{4.55444e-08, -0.0428538, -0.999081},{4.89563e-08, -0.128247, -0.991742},{5.20085e-08, -0.212697, -0.977118},{5.46787e-08, -0.295586, -0.955316},{5.69472e-08, -0.376303, -0.926497},{5.87974e-08, -0.454256, -0.890871},{6.02157e-08, -0.528872, -0.848702},{6.11916e-08, -0.599602, -0.800298},{6.1718e-08, -0.665929, -0.746015},{6.17911e-08, -0.727363, -0.686253},{6.14103e-08, -0.783455, -0.621449}},
shuhei2306 2:b09caaa3de96 34 {{0.131045, -0.781502, -0.609984},{0.131045, -0.725896, -0.675205},{0.131045, -0.664864, -0.735379},{0.131045, -0.598863, -0.790057},{0.131045, -0.528386, -0.83883},{0.131045, -0.45396, -0.881333},{0.131045, -0.37614, -0.917249},{0.131045, -0.295509, -0.946309},{0.131045, -0.21267, -0.968297},{0.131045, -0.128241, -0.983047},{0.131045, -0.0428538, -0.99045},{0.131045, 0.0428539, -0.99045},{0.131045, 0.128241, -0.983047},{0.131045, 0.21267, -0.968297},{0.131045, 0.29551, -0.946309},{0.131045, 0.37614, -0.917249},{0.131045, 0.45396, -0.881333},{0.131045, 0.528386, -0.83883},{0.131045, 0.598863, -0.790057},{0.131045, 0.664864, -0.735379},{0.131045, 0.725896, -0.675205},{0.131045, 0.781503, -0.609984}},
shuhei2306 2:b09caaa3de96 35 {{0.25983, 0.721281, -0.64206},{0.25983, 0.661511, -0.703485},{0.25983, 0.59653, -0.759368},{0.25983, 0.52685, -0.80927},{0.25983, 0.453019, -0.852796},{0.25983, 0.375621, -0.889605},{0.25983, 0.295263, -0.919406},{0.25983, 0.212579, -0.941965},{0.25983, 0.128221, -0.957104},{0.25983, 0.0428529, -0.964703},{0.25983, -0.0428529, -0.964703},{0.25983, -0.128221, -0.957104},{0.25983, -0.212579, -0.941965},{0.259831, -0.295263, -0.919406},{0.25983, -0.375621, -0.889605},{0.259831, -0.453019, -0.852796},{0.259831, -0.52685, -0.80927},{0.25983, -0.59653, -0.759368},{0.25983, -0.661511, -0.703485},{0.25983, -0.721281, -0.64206},{0,0,0},{0,0,0}},
shuhei2306 2:b09caaa3de96 36 {{0.384134, -0.684874, -0.619184},{0.384134, -0.624509, -0.680021},{0.384134, -0.558763, -0.735},{0.384134, -0.488203, -0.783645},{0.384134, -0.413436, -0.825537},{0.384134, -0.335106, -0.860317},{0.384134, -0.253889, -0.887683},{0.384134, -0.170485, -0.907401},{0.384134, -0.0856113, -0.919299},{0.384134, 1.6791e-08, -0.923277},{0.384134, 0.0856113, -0.919299},{0.384134, 0.170485, -0.907401},{0.384134, 0.253889, -0.887683},{0.384134, 0.335106, -0.860317},{0.384134, 0.413436, -0.825537},{0.384134, 0.488203, -0.783645},{0.384134, 0.558763, -0.735},{0.384134, 0.624509, -0.680021},{0.384134, 0.684874, -0.619184},{0,0,0},{0,0,0},{0,0,0}},
shuhei2306 2:b09caaa3de96 37 {{0.501813, 0.585398, -0.636783},{0.501813, 0.519512, -0.691586},{0.501813, 0.448526, -0.7396},{0.501813, 0.373138, -0.780354},{0.501813, 0.294086, -0.813448},{0.501813, 0.212148, -0.838557},{0.501813, 0.128128, -0.855434},{0.501813, 0.0428495, -0.863914},{0.501813, -0.0428495, -0.863914},{0.501813, -0.128128, -0.855434},{0.501813, -0.212148, -0.838557},{0.501813, -0.294086, -0.813448},{0.501813, -0.373138, -0.780354},{0.501813, -0.448526, -0.7396},{0.501813, -0.519512, -0.691586},{0.501813, -0.585398, -0.636783},{0,0,0},{0,0,0},{0,0,0},{0,0,0},{0,0,0},{0,0,0}}
shuhei2306 2:b09caaa3de96 38 },{{{-0.636784, 0.501813, -0.585398},{-0.691586, 0.501813, -0.519512},{-0.7396, 0.501813, -0.448526},{-0.780354, 0.501813, -0.373138},{-0.813448, 0.501813, -0.294086},{-0.838557, 0.501813, -0.212148},{-0.855434, 0.501813, -0.128128},{-0.863914, 0.501813, -0.0428494},{-0.863914, 0.501813, 0.0428495},{-0.855434, 0.501813, 0.128128},{-0.838557, 0.501813, 0.212148},{-0.813448, 0.501813, 0.294087},{-0.780354, 0.501813, 0.373138},{-0.7396, 0.501813, 0.448526},{-0.691586, 0.501813, 0.519512},{-0.636783, 0.501813, 0.585398},{0,0,0},{0,0,0},{0,0,0},{0,0,0},{0,0,0},{0,0,0}},
shuhei2306 2:b09caaa3de96 39 {{-0.619184, 0.384134, 0.684874},{-0.680021, 0.384134, 0.624509},{-0.734999, 0.384134, 0.558764},{-0.783644, 0.384134, 0.488203},{-0.825537, 0.384134, 0.413436},{-0.860317, 0.384134, 0.335106},{-0.887683, 0.384134, 0.25389},{-0.907401, 0.384134, 0.170485},{-0.919299, 0.384134, 0.0856113},{-0.923277, 0.384134, 2.35667e-08},{-0.9193, 0.384134, -0.0856113},{-0.907401, 0.384134, -0.170485},{-0.887683, 0.384134, -0.253889},{-0.860317, 0.384134, -0.335106},{-0.825537, 0.384134, -0.413436},{-0.783645, 0.384134, -0.488203},{-0.735, 0.384134, -0.558763},{-0.680021, 0.384134, -0.624509},{-0.619184, 0.384134, -0.684874},{0,0,0},{0,0,0},{0,0,0}},
shuhei2306 2:b09caaa3de96 40 {{-0.642061, 0.25983, -0.721281},{-0.703485, 0.25983, -0.661511},{-0.759368, 0.25983, -0.59653},{-0.80927, 0.25983, -0.52685},{-0.852796, 0.25983, -0.453019},{-0.889605, 0.25983, -0.375621},{-0.919406, 0.25983, -0.295263},{-0.941965, 0.25983, -0.212579},{-0.957104, 0.25983, -0.128221},{-0.964703, 0.25983, -0.0428528},{-0.964703, 0.25983, 0.0428529},{-0.957104, 0.25983, 0.128221},{-0.941965, 0.25983, 0.212579},{-0.919406, 0.25983, 0.295263},{-0.889605, 0.25983, 0.375621},{-0.852796, 0.25983, 0.453019},{-0.80927, 0.25983, 0.52685},{-0.759368, 0.25983, 0.59653},{-0.703485, 0.25983, 0.661511},{-0.64206, 0.25983, 0.721281},{0,0,0},{0,0,0}},
shuhei2306 2:b09caaa3de96 41 {{-0.609984, 0.131045, 0.781503},{-0.675205, 0.131045, 0.725896},{-0.735379, 0.131045, 0.664864},{-0.790057, 0.131045, 0.598863},{-0.83883, 0.131045, 0.528386},{-0.881333, 0.131045, 0.45396},{-0.917249, 0.131045, 0.37614},{-0.946309, 0.131045, 0.29551},{-0.968297, 0.131045, 0.21267},{-0.983047, 0.131045, 0.128241},{-0.99045, 0.131045, 0.0428539},{-0.99045, 0.131045, -0.0428539},{-0.983047, 0.131045, -0.128241},{-0.968297, 0.131045, -0.21267},{-0.946309, 0.131045, -0.29551},{-0.917249, 0.131045, -0.37614},{-0.881333, 0.131045, -0.45396},{-0.83883, 0.131045, -0.528386},{-0.790057, 0.131045, -0.598863},{-0.735379, 0.131045, -0.664864},{-0.675205, 0.131045, -0.725896},{-0.609984, 0.131045, -0.781503}},
shuhei2306 2:b09caaa3de96 42 {{-0.621449, -3.42459e-08, -0.783455},{-0.686253, -3.17941e-08, -0.727363},{-0.746015, -2.91087e-08, -0.665929},{-0.800298, -2.62095e-08, -0.599602},{-0.848702, -2.31177e-08, -0.528871},{-0.890871, -1.98561e-08, -0.454256},{-0.926497, -1.64487e-08, -0.376303},{-0.955316, -1.29205e-08, -0.295586},{-0.977118, -9.29729e-09, -0.212697},{-0.991742, -5.60583e-09, -0.128247},{-0.999081, -1.8732e-09, -0.0428538},{-0.999081, 1.8732e-09, 0.0428538},{-0.991742, 5.60585e-09, 0.128247},{-0.977118, 9.29731e-09, 0.212698},{-0.955316, 1.29205e-08, 0.295586},{-0.926497, 1.64487e-08, 0.376303},{-0.890871, 1.98561e-08, 0.454256},{-0.848702, 2.31177e-08, 0.528872},{-0.800298, 2.62095e-08, 0.599603},{-0.746015, 2.91087e-08, 0.665929},{-0.686252, 3.17941e-08, 0.727363},{-0.621449, 3.42459e-08, 0.783455}},
shuhei2306 2:b09caaa3de96 43 {{-0.609984, -0.131045, 0.781503},{-0.675205, -0.131045, 0.725896},{-0.735379, -0.131045, 0.664864},{-0.790057, -0.131045, 0.598863},{-0.83883, -0.131045, 0.528386},{-0.881333, -0.131045, 0.45396},{-0.917249, -0.131045, 0.37614},{-0.946309, -0.131045, 0.29551},{-0.968297, -0.131045, 0.21267},{-0.983047, -0.131045, 0.128241},{-0.99045, -0.131045, 0.0428539},{-0.99045, -0.131045, -0.0428539},{-0.983047, -0.131045, -0.128241},{-0.968297, -0.131045, -0.21267},{-0.946309, -0.131045, -0.29551},{-0.917249, -0.131045, -0.37614},{-0.881333, -0.131045, -0.45396},{-0.83883, -0.131045, -0.528386},{-0.790057, -0.131045, -0.598863},{-0.735379, -0.131045, -0.664864},{-0.675205, -0.131045, -0.725896},{-0.609984, -0.131045, -0.781503}},
shuhei2306 2:b09caaa3de96 44 {{-0.64206, -0.25983, -0.721281},{-0.703485, -0.25983, -0.661511},{-0.759368, -0.25983, -0.59653},{-0.80927, -0.25983, -0.52685},{-0.852796, -0.25983, -0.453019},{-0.889605, -0.25983, -0.375621},{-0.919406, -0.25983, -0.295263},{-0.941965, -0.25983, -0.212579},{-0.957104, -0.25983, -0.128221},{-0.964703, -0.25983, -0.0428528},{-0.964703, -0.25983, 0.042853},{-0.957104, -0.25983, 0.128221},{-0.941965, -0.25983, 0.212579},{-0.919406, -0.25983, 0.295263},{-0.889605, -0.25983, 0.375621},{-0.852796, -0.25983, 0.453019},{-0.80927, -0.25983, 0.52685},{-0.759368, -0.25983, 0.59653},{-0.703485, -0.25983, 0.661511},{-0.64206, -0.25983, 0.721281},{0,0,0},{0,0,0}},
shuhei2306 2:b09caaa3de96 45 {{-0.619184, -0.384134, 0.684874},{-0.680021, -0.384134, 0.624509},{-0.734999, -0.384134, 0.558764},{-0.783645, -0.384134, 0.488203},{-0.825537, -0.384134, 0.413436},{-0.860317, -0.384134, 0.335107},{-0.887683, -0.384134, 0.25389},{-0.907401, -0.384134, 0.170485},{-0.919299, -0.384134, 0.0856114},{-0.923277, -0.384134, 5.71488e-08},{-0.9193, -0.384134, -0.0856113},{-0.907401, -0.384134, -0.170485},{-0.887683, -0.384134, -0.253889},{-0.860317, -0.384134, -0.335106},{-0.825537, -0.384134, -0.413436},{-0.783645, -0.384134, -0.488203},{-0.735, -0.384134, -0.558763},{-0.680021, -0.384134, -0.624509},{-0.619184, -0.384134, -0.684874},{0,0,0},{0,0,0},{0,0,0}},
shuhei2306 2:b09caaa3de96 46 {{-0.636784, -0.501813, -0.585398},{-0.691586, -0.501813, -0.519512},{-0.7396, -0.501813, -0.448526},{-0.780354, -0.501813, -0.373138},{-0.813448, -0.501813, -0.294086},{-0.838557, -0.501813, -0.212148},{-0.855434, -0.501813, -0.128128},{-0.863914, -0.501813, -0.0428494},{-0.863914, -0.501813, 0.0428496},{-0.855434, -0.501813, 0.128128},{-0.838557, -0.501813, 0.212148},{-0.813448, -0.501813, 0.294087},{-0.780354, -0.501813, 0.373138},{-0.7396, -0.501813, 0.448526},{-0.691586, -0.501813, 0.519512},{-0.636783, -0.501813, 0.585398},{0,0,0},{0,0,0},{0,0,0},{0,0,0},{0,0,0},{0,0,0}}
shuhei2306 2:b09caaa3de96 47 },{{{0.636783, 0.501813, 0.585398},{0.691586, 0.501813, 0.519512},{0.7396, 0.501813, 0.448526},{0.780354, 0.501813, 0.373138},{0.813448, 0.501813, 0.294086},{0.838557, 0.501813, 0.212148},{0.855434, 0.501813, 0.128128},{0.863914, 0.501813, 0.0428495},{0.863914, 0.501813, -0.0428495},{0.855434, 0.501813, -0.128128},{0.838557, 0.501813, -0.212148},{0.813448, 0.501813, -0.294086},{0.780354, 0.501813, -0.373138},{0.7396, 0.501813, -0.448526},{0.691586, 0.501813, -0.519512},{0.636784, 0.501813, -0.585398},{0,0,0},{0,0,0},{0,0,0},{0,0,0},{0,0,0},{0,0,0}},
shuhei2306 2:b09caaa3de96 48 {{0.619184, 0.384134, -0.684874},{0.680021, 0.384134, -0.624509},{0.735, 0.384134, -0.558763},{0.783645, 0.384134, -0.488203},{0.825537, 0.384134, -0.413436},{0.860317, 0.384134, -0.335106},{0.887683, 0.384134, -0.25389},{0.907401, 0.384134, -0.170485},{0.919299, 0.384134, -0.0856113},{0.923277, 0.384134, 2.35667e-08},{0.9193, 0.384134, 0.0856113},{0.907401, 0.384134, 0.170485},{0.887683, 0.384134, 0.253889},{0.860317, 0.384134, 0.335106},{0.825537, 0.384134, 0.413436},{0.783644, 0.384134, 0.488203},{0.735, 0.384134, 0.558763},{0.680021, 0.384134, 0.624509},{0.619184, 0.384134, 0.684874},{0,0,0},{0,0,0},{0,0,0}},
shuhei2306 2:b09caaa3de96 49 {{0.64206, 0.25983, 0.721281},{0.703485, 0.25983, 0.661511},{0.759368, 0.25983, 0.59653},{0.80927, 0.25983, 0.52685},{0.852796, 0.25983, 0.453019},{0.889605, 0.25983, 0.375621},{0.919406, 0.25983, 0.295263},{0.941965, 0.25983, 0.212579},{0.957104, 0.25983, 0.128221},{0.964703, 0.25983, 0.0428529},{0.964703, 0.25983, -0.0428529},{0.957104, 0.25983, -0.128221},{0.941965, 0.25983, -0.212579},{0.919406, 0.25983, -0.295263},{0.889605, 0.25983, -0.375621},{0.852796, 0.25983, -0.453019},{0.80927, 0.25983, -0.52685},{0.759368, 0.25983, -0.59653},{0.703485, 0.25983, -0.661511},{0.64206, 0.25983, -0.721281},{0,0,0},{0,0,0}},
shuhei2306 2:b09caaa3de96 50 {{0.609984, 0.131045, -0.781502},{0.675205, 0.131045, -0.725896},{0.735379, 0.131045, -0.664864},{0.790057, 0.131045, -0.598863},{0.83883, 0.131045, -0.528386},{0.881333, 0.131045, -0.45396},{0.917249, 0.131045, -0.37614},{0.946309, 0.131045, -0.295509},{0.968297, 0.131045, -0.21267},{0.983047, 0.131045, -0.128241},{0.99045, 0.131045, -0.0428538},{0.99045, 0.131045, 0.042854},{0.983047, 0.131045, 0.128241},{0.968297, 0.131045, 0.21267},{0.946309, 0.131045, 0.29551},{0.917249, 0.131045, 0.37614},{0.881333, 0.131045, 0.45396},{0.83883, 0.131045, 0.528386},{0.790057, 0.131045, 0.598863},{0.735379, 0.131045, 0.664864},{0.675205, 0.131045, 0.725896},{0.609984, 0.131045, 0.781503}},
shuhei2306 2:b09caaa3de96 51 {{0.621449, 3.42459e-08, 0.783455},{0.686253, 3.17941e-08, 0.727363},{0.746015, 2.91087e-08, 0.665929},{0.800298, 2.62095e-08, 0.599602},{0.848702, 2.31177e-08, 0.528872},{0.890871, 1.98561e-08, 0.454256},{0.926497, 1.64487e-08, 0.376303},{0.955316, 1.29205e-08, 0.295586},{0.977118, 9.2973e-09, 0.212697},{0.991742, 5.60584e-09, 0.128247},{0.999081, 1.8732e-09, 0.0428539},{0.999081, -1.8732e-09, -0.0428538},{0.991742, -5.60584e-09, -0.128247},{0.977118, -9.2973e-09, -0.212697},{0.955316, -1.29205e-08, -0.295586},{0.926497, -1.64487e-08, -0.376303},{0.890871, -1.98561e-08, -0.454256},{0.848702, -2.31177e-08, -0.528872},{0.800298, -2.62095e-08, -0.599602},{0.746015, -2.91087e-08, -0.665929},{0.686253, -3.17941e-08, -0.727363},{0.621449, -3.42459e-08, -0.783455}},
shuhei2306 2:b09caaa3de96 52 {{0.609984, -0.131045, -0.781502},{0.675205, -0.131045, -0.725896},{0.735379, -0.131045, -0.664864},{0.790057, -0.131045, -0.598863},{0.83883, -0.131045, -0.528386},{0.881333, -0.131045, -0.45396},{0.917249, -0.131045, -0.37614},{0.946309, -0.131045, -0.295509},{0.968297, -0.131045, -0.21267},{0.983047, -0.131045, -0.128241},{0.99045, -0.131045, -0.0428538},{0.99045, -0.131045, 0.042854},{0.983047, -0.131045, 0.128241},{0.968297, -0.131045, 0.21267},{0.946309, -0.131045, 0.29551},{0.917249, -0.131045, 0.37614},{0.881333, -0.131045, 0.45396},{0.83883, -0.131045, 0.528386},{0.790057, -0.131045, 0.598863},{0.735379, -0.131045, 0.664864},{0.675205, -0.131045, 0.725896},{0.609984, -0.131045, 0.781503}},
shuhei2306 2:b09caaa3de96 53 {{0.64206, -0.25983, 0.721281},{0.703485, -0.25983, 0.661511},{0.759368, -0.25983, 0.59653},{0.80927, -0.25983, 0.52685},{0.852796, -0.25983, 0.453019},{0.889605, -0.25983, 0.375621},{0.919406, -0.25983, 0.295263},{0.941965, -0.25983, 0.212579},{0.957104, -0.25983, 0.128221},{0.964703, -0.25983, 0.0428529},{0.964703, -0.25983, -0.0428528},{0.957104, -0.25983, -0.128221},{0.941965, -0.25983, -0.212579},{0.919406, -0.25983, -0.295263},{0.889605, -0.25983, -0.375621},{0.852796, -0.25983, -0.453019},{0.80927, -0.25983, -0.52685},{0.759368, -0.25983, -0.59653},{0.703485, -0.25983, -0.661511},{0.64206, -0.25983, -0.721281},{0,0,0},{0,0,0}},
shuhei2306 2:b09caaa3de96 54 {{0.619184, -0.384134, -0.684874},{0.680021, -0.384134, -0.624509},{0.735, -0.384134, -0.558763},{0.783645, -0.384134, -0.488203},{0.825537, -0.384134, -0.413436},{0.860317, -0.384134, -0.335106},{0.887683, -0.384134, -0.253889},{0.907401, -0.384134, -0.170485},{0.919299, -0.384134, -0.0856113},{0.923277, -0.384134, 5.71488e-08},{0.9193, -0.384134, 0.0856114},{0.907401, -0.384134, 0.170485},{0.887683, -0.384134, 0.25389},{0.860317, -0.384134, 0.335106},{0.825537, -0.384134, 0.413436},{0.783645, -0.384134, 0.488203},{0.735, -0.384134, 0.558763},{0.680021, -0.384134, 0.624509},{0.619184, -0.384134, 0.684874},{0,0,0},{0,0,0},{0,0,0}},
shuhei2306 2:b09caaa3de96 55 {{0.636783, -0.501813, 0.585398},{0.691586, -0.501813, 0.519512},{0.7396, -0.501813, 0.448526},{0.780354, -0.501813, 0.373138},{0.813448, -0.501813, 0.294087},{0.838557, -0.501813, 0.212148},{0.855434, -0.501813, 0.128128},{0.863914, -0.501813, 0.0428495},{0.863914, -0.501813, -0.0428495},{0.855434, -0.501813, -0.128128},{0.838557, -0.501813, -0.212148},{0.813448, -0.501813, -0.294086},{0.780354, -0.501813, -0.373138},{0.7396, -0.501813, -0.448526},{0.691586, -0.501813, -0.519512},{0.636784, -0.501813, -0.585398},{0,0,0},{0,0,0},{0,0,0},{0,0,0},{0,0,0},{0,0,0}}
shuhei2306 2:b09caaa3de96 56 },{{{0.585398, -0.636783, -0.501813},{0.519512, -0.691586, -0.501813},{0.448526, -0.7396, -0.501813},{0.373138, -0.780354, -0.501813},{0.294086, -0.813448, -0.501813},{0.212148, -0.838557, -0.501813},{0.128128, -0.855434, -0.501813},{0.0428495, -0.863914, -0.501813},{-0.0428495, -0.863914, -0.501813},{-0.128128, -0.855434, -0.501813},{-0.212148, -0.838557, -0.501813},{-0.294086, -0.813448, -0.501813},{-0.373138, -0.780354, -0.501813},{-0.448526, -0.7396, -0.501813},{-0.519512, -0.691586, -0.501813},{-0.585398, -0.636783, -0.501813},{0,0,0},{0,0,0},{0,0,0},{0,0,0},{0,0,0},{0,0,0}},
shuhei2306 2:b09caaa3de96 57 {{-0.684874, -0.619184, -0.384134},{-0.624509, -0.680021, -0.384134},{-0.558763, -0.734999, -0.384134},{-0.488203, -0.783644, -0.384134},{-0.413436, -0.825537, -0.384134},{-0.335106, -0.860317, -0.384134},{-0.253889, -0.887683, -0.384134},{-0.170485, -0.907401, -0.384134},{-0.0856113, -0.919299, -0.384134},{0, -0.923277, -0.384134},{0.0856113, -0.919299, -0.384134},{0.170485, -0.907401, -0.384134},{0.253889, -0.887683, -0.384134},{0.335106, -0.860317, -0.384134},{0.413436, -0.825537, -0.384134},{0.488203, -0.783644, -0.384134},{0.558763, -0.735, -0.384134},{0.624509, -0.680021, -0.384134},{0.684874, -0.619184, -0.384134},{0,0,0},{0,0,0},{0,0,0}},
shuhei2306 2:b09caaa3de96 58 {{0.721281, -0.64206, -0.25983},{0.661511, -0.703485, -0.25983},{0.59653, -0.759368, -0.25983},{0.52685, -0.80927, -0.25983},{0.453019, -0.852796, -0.25983},{0.375621, -0.889605, -0.25983},{0.295263, -0.919406, -0.25983},{0.212579, -0.941965, -0.25983},{0.128221, -0.957104, -0.25983},{0.0428528, -0.964703, -0.259831},{-0.0428529, -0.964703, -0.259831},{-0.128221, -0.957104, -0.259831},{-0.212579, -0.941965, -0.25983},{-0.295263, -0.919406, -0.25983},{-0.375621, -0.889605, -0.25983},{-0.453019, -0.852796, -0.25983},{-0.52685, -0.80927, -0.25983},{-0.59653, -0.759368, -0.25983},{-0.661511, -0.703485, -0.25983},{-0.721281, -0.64206, -0.25983},{0,0,0},{0,0,0}},
shuhei2306 2:b09caaa3de96 59 {{-0.781503, -0.609984, -0.131045},{-0.725896, -0.675205, -0.131045},{-0.664864, -0.735379, -0.131045},{-0.598863, -0.790057, -0.131045},{-0.528386, -0.83883, -0.131045},{-0.45396, -0.881333, -0.131045},{-0.37614, -0.917249, -0.131045},{-0.295509, -0.946309, -0.131045},{-0.21267, -0.968297, -0.131045},{-0.128241, -0.983047, -0.131045},{-0.0428538, -0.99045, -0.131045},{0.0428539, -0.99045, -0.131045},{0.128241, -0.983047, -0.131045},{0.21267, -0.968297, -0.131045},{0.29551, -0.946309, -0.131045},{0.37614, -0.917249, -0.131045},{0.45396, -0.881333, -0.131045},{0.528386, -0.83883, -0.131045},{0.598863, -0.790057, -0.131045},{0.664864, -0.735379, -0.131045},{0.725896, -0.675205, -0.131045},{0.781503, -0.609984, -0.131045}},
shuhei2306 2:b09caaa3de96 60 {{0.783455, -0.621449, -5.43288e-08},{0.727363, -0.686253, -5.99941e-08},{0.665929, -0.746015, -6.52187e-08},{0.599602, -0.800298, -6.99643e-08},{0.528871, -0.848702, -7.41959e-08},{0.454256, -0.890871, -7.78825e-08},{0.376303, -0.926497, -8.09969e-08},{0.295586, -0.955316, -8.35164e-08},{0.212697, -0.977118, -8.54224e-08},{0.128247, -0.991742, -8.67009e-08},{0.0428538, -0.999081, -8.73425e-08},{-0.0428538, -0.999081, -8.73425e-08},{-0.128247, -0.991742, -8.67009e-08},{-0.212697, -0.977118, -8.54224e-08},{-0.295586, -0.955316, -8.35164e-08},{-0.376303, -0.926497, -8.09969e-08},{-0.454256, -0.890871, -7.78825e-08},{-0.528872, -0.848702, -7.41959e-08},{-0.599602, -0.800298, -6.99643e-08},{-0.665929, -0.746015, -6.52187e-08},{-0.727363, -0.686253, -5.99941e-08},{-0.783455, -0.621449, -5.43288e-08}},
shuhei2306 2:b09caaa3de96 61 {{-0.781503, -0.609984, 0.131045},{-0.725896, -0.675205, 0.131045},{-0.664864, -0.735379, 0.131045},{-0.598863, -0.790057, 0.131045},{-0.528386, -0.83883, 0.131045},{-0.45396, -0.881333, 0.131045},{-0.37614, -0.917249, 0.131045},{-0.295509, -0.946309, 0.131045},{-0.21267, -0.968297, 0.131045},{-0.128241, -0.983047, 0.131045},{-0.0428538, -0.99045, 0.131045},{0.0428539, -0.99045, 0.131045},{0.128241, -0.983047, 0.131045},{0.21267, -0.968297, 0.131045},{0.29551, -0.946309, 0.131045},{0.37614, -0.917249, 0.131045},{0.45396, -0.881333, 0.131045},{0.528386, -0.83883, 0.131045},{0.598863, -0.790057, 0.131045},{0.664864, -0.735379, 0.131045},{0.725896, -0.675205, 0.131045},{0.781503, -0.609984, 0.131045}},
shuhei2306 2:b09caaa3de96 62 {{0.721281, -0.64206, 0.25983},{0.661511, -0.703485, 0.25983},{0.59653, -0.759368, 0.25983},{0.52685, -0.80927, 0.25983},{0.453019, -0.852796, 0.25983},{0.375621, -0.889605, 0.25983},{0.295263, -0.919406, 0.25983},{0.212579, -0.941965, 0.25983},{0.128221, -0.957104, 0.25983},{0.0428528, -0.964703, 0.25983},{-0.0428529, -0.964703, 0.25983},{-0.128221, -0.957104, 0.25983},{-0.212579, -0.941965, 0.25983},{-0.295263, -0.919406, 0.25983},{-0.375621, -0.889605, 0.25983},{-0.453019, -0.852796, 0.25983},{-0.52685, -0.80927, 0.25983},{-0.59653, -0.759368, 0.25983},{-0.661511, -0.703485, 0.25983},{-0.721281, -0.64206, 0.25983},{0,0,0},{0,0,0}},
shuhei2306 2:b09caaa3de96 63 {{-0.684874, -0.619184, 0.384134},{-0.624509, -0.680021, 0.384134},{-0.558763, -0.735, 0.384134},{-0.488203, -0.783645, 0.384134},{-0.413436, -0.825537, 0.384134},{-0.335106, -0.860317, 0.384134},{-0.25389, -0.887683, 0.384134},{-0.170485, -0.907401, 0.384134},{-0.0856113, -0.9193, 0.384134},{0, -0.923277, 0.384134},{0.0856113, -0.9193, 0.384134},{0.170485, -0.907401, 0.384134},{0.253889, -0.887683, 0.384134},{0.335106, -0.860317, 0.384134},{0.413436, -0.825537, 0.384134},{0.488203, -0.783645, 0.384134},{0.558763, -0.735, 0.384134},{0.624509, -0.680021, 0.384134},{0.684874, -0.619184, 0.384134},{0,0,0},{0,0,0},{0,0,0}},
shuhei2306 2:b09caaa3de96 64 {{0.585398, -0.636784, 0.501813},{0.519512, -0.691586, 0.501813},{0.448526, -0.7396, 0.501813},{0.373138, -0.780354, 0.501813},{0.294086, -0.813448, 0.501813},{0.212148, -0.838557, 0.501813},{0.128128, -0.855434, 0.501813},{0.0428495, -0.863914, 0.501813},{-0.0428495, -0.863914, 0.501813},{-0.128128, -0.855434, 0.501813},{-0.212148, -0.838557, 0.501813},{-0.294086, -0.813448, 0.501813},{-0.373138, -0.780354, 0.501813},{-0.448526, -0.7396, 0.501813},{-0.519512, -0.691586, 0.501813},{-0.585398, -0.636784, 0.501813},{0,0,0},{0,0,0},{0,0,0},{0,0,0},{0,0,0},{0,0,0}}}};
shuhei2306 0:28d0b65a60fe 65
shuhei2306 0:28d0b65a60fe 66 SDFileSystem sd(p11, p12, p13, p14, "sd"); // the pinout on the mbed Cool Components workshop board
shuhei2306 0:28d0b65a60fe 67 Serial pc(USBTX, USBRX); // tx, rx
shuhei2306 0:28d0b65a60fe 68 FILE *fp;
shuhei2306 2:b09caaa3de96 69 float z_ganma=0;
shuhei2306 2:b09caaa3de96 70 float z_kijun_ganma=0;
shuhei2306 0:28d0b65a60fe 71
shuhei2306 2:b09caaa3de96 72 RawSerial device(p28, p27); // serial communication between robot and mbed: speed,angle,led status received
shuhei2306 2:b09caaa3de96 73 struct robotData {
shuhei2306 2:b09caaa3de96 74 float speed;
shuhei2306 2:b09caaa3de96 75 float angle;
shuhei2306 2:b09caaa3de96 76 uint8_t led; // receive-data: 0,33=1,34=2,35=3
shuhei2306 2:b09caaa3de96 77 uint8_t status;
shuhei2306 2:b09caaa3de96 78 } robotData = { 0,0,33,0 };
shuhei2306 2:b09caaa3de96 79 //LocalFileSystem local("local"); // Create the local filesystem under the name "local"
shuhei2306 0:28d0b65a60fe 80
shuhei2306 0:28d0b65a60fe 81 //const int byte_num = 114;//3*19 *2上下 // CSVから一度に読み込むバイト数 // 改行2バイト分読み込みをどこかで考える(アスキーコード 13と10)
shuhei2306 0:28d0b65a60fe 82
shuhei2306 0:28d0b65a60fe 83 //int rState = 3; // シリアル値によって変化
shuhei2306 0:28d0b65a60fe 84 bool ontime = false;
shuhei2306 0:28d0b65a60fe 85 unsigned char compareT_b[3];
shuhei2306 0:28d0b65a60fe 86 unsigned long compareT = 0;//比較する数値
shuhei2306 0:28d0b65a60fe 87 //unsigned long diff_time = 0;//時間調整用
shuhei2306 0:28d0b65a60fe 88 //unsigned long start_time = 0;//時間調整用
shuhei2306 0:28d0b65a60fe 89 Timer timer;
shuhei2306 2:b09caaa3de96 90 float cos_theta;
shuhei2306 0:28d0b65a60fe 91
shuhei2306 0:28d0b65a60fe 92 RotationMat rMat;
shuhei2306 0:28d0b65a60fe 93
shuhei2306 1:64ca0218709d 94 Vector3D position_vec(0,0,0);
shuhei2306 1:64ca0218709d 95 Vector3D target_vec(0,1,0);
shuhei2306 0:28d0b65a60fe 96 Vector3D rAxis(1,0,0);
shuhei2306 0:28d0b65a60fe 97 const Vector3D xAxis(1,0,0);
shuhei2306 0:28d0b65a60fe 98 const Vector3D yAxis(0,1,0);
shuhei2306 0:28d0b65a60fe 99 const Vector3D zAxis(0,0,1);
shuhei2306 0:28d0b65a60fe 100
shuhei2306 2:b09caaa3de96 101 float angular_velocity=10;
shuhei2306 2:b09caaa3de96 102 float kaiten;
shuhei2306 2:b09caaa3de96 103 float pretime=0;
shuhei2306 0:28d0b65a60fe 104 float x_=0;
shuhei2306 0:28d0b65a60fe 105 float y_=0;
shuhei2306 0:28d0b65a60fe 106 float z_=0;
shuhei2306 0:28d0b65a60fe 107
shuhei2306 0:28d0b65a60fe 108 short longtitude;
shuhei2306 0:28d0b65a60fe 109 short latitude;
shuhei2306 0:28d0b65a60fe 110
shuhei2306 1:64ca0218709d 111 float angles;
shuhei2306 1:64ca0218709d 112
shuhei2306 2:b09caaa3de96 113 #define LED_0_8_NUM 16
shuhei2306 2:b09caaa3de96 114 #define LED_1_7_NUM 19
shuhei2306 2:b09caaa3de96 115 #define LED_2_6_NUM 20
shuhei2306 2:b09caaa3de96 116 #define LED_3_4_5_NUM 22
shuhei2306 0:28d0b65a60fe 117 #define NUMPIXELS 178
shuhei2306 0:28d0b65a60fe 118 #define NUM_LINE 9
shuhei2306 1:64ca0218709d 119 #define NUM_TAPE 6
shuhei2306 0:28d0b65a60fe 120 Adafruit_DotStar strip(NUMPIXELS, DOTSTAR_RGB);
shuhei2306 0:28d0b65a60fe 121
shuhei2306 0:28d0b65a60fe 122 DigitalOut decoder_in_a(p24);
shuhei2306 0:28d0b65a60fe 123 DigitalOut decoder_in_b(p25);
shuhei2306 0:28d0b65a60fe 124 DigitalOut decoder_in_c(p26);
shuhei2306 0:28d0b65a60fe 125
shuhei2306 2:b09caaa3de96 126
shuhei2306 2:b09caaa3de96 127 void pc_rx () {
shuhei2306 2:b09caaa3de96 128 /*
shuhei2306 2:b09caaa3de96 129 pc.putc(pc.getc());
shuhei2306 2:b09caaa3de96 130 if(i<TOPNUMPIXELS-2)
shuhei2306 2:b09caaa3de96 131 i++;
shuhei2306 2:b09caaa3de96 132 else
shuhei2306 2:b09caaa3de96 133 i=0;
shuhei2306 2:b09caaa3de96 134
shuhei2306 2:b09caaa3de96 135 if(j<BOTTOMNUMPIXELS-2)
shuhei2306 2:b09caaa3de96 136 j++;
shuhei2306 2:b09caaa3de96 137 else
shuhei2306 2:b09caaa3de96 138 j=0;
shuhei2306 2:b09caaa3de96 139 */
shuhei2306 2:b09caaa3de96 140 }
shuhei2306 2:b09caaa3de96 141
shuhei2306 2:b09caaa3de96 142 void rx()
shuhei2306 0:28d0b65a60fe 143 {
shuhei2306 2:b09caaa3de96 144 uint8_t val = device.getc(), buf = 0;
shuhei2306 2:b09caaa3de96 145 // pc.putc(val);
shuhei2306 2:b09caaa3de96 146 // pc.putc(val);
shuhei2306 2:b09caaa3de96 147 //robotはPCから受けたものをそのまま渡してきてる
shuhei2306 2:b09caaa3de96 148 //上位2bitは10 つまり4bytes目
shuhei2306 2:b09caaa3de96 149
shuhei2306 2:b09caaa3de96 150 //上位2bitを確認 mode確認
shuhei2306 2:b09caaa3de96 151 robotData.status = (val >> 6) & 0x03;
shuhei2306 2:b09caaa3de96 152
shuhei2306 2:b09caaa3de96 153 //上位2bitは00の時,speed
shuhei2306 2:b09caaa3de96 154 if ((robotData.status == 0x00)) {
shuhei2306 2:b09caaa3de96 155 buf = val & 0x3f;
shuhei2306 2:b09caaa3de96 156 // robotData.angle = (float)buf * 5.625;
shuhei2306 2:b09caaa3de96 157 robotData.speed=(float)buf*0.03125f;
shuhei2306 2:b09caaa3de96 158 // pc.printf("speed=%f\n", (float)buf*0.03125f);
shuhei2306 2:b09caaa3de96 159 // pc.putc(robotData.angle);
shuhei2306 2:b09caaa3de96 160 }
shuhei2306 2:b09caaa3de96 161 //上位2bitは01の時,angle
shuhei2306 2:b09caaa3de96 162 if ((robotData.status == 0x01)) {
shuhei2306 2:b09caaa3de96 163 buf = val & 0x3f;//1<<6
shuhei2306 2:b09caaa3de96 164 if((float)buf==0)
shuhei2306 2:b09caaa3de96 165 {
shuhei2306 2:b09caaa3de96 166
shuhei2306 2:b09caaa3de96 167 }
shuhei2306 2:b09caaa3de96 168 else
shuhei2306 2:b09caaa3de96 169 {
shuhei2306 2:b09caaa3de96 170 z_ganma=(float)buf*0.09817f;//2*PI/64
shuhei2306 2:b09caaa3de96 171 // pc.printf("angle=%f\n", (float)buf*0.09817f);
shuhei2306 2:b09caaa3de96 172 }
shuhei2306 2:b09caaa3de96 173
shuhei2306 2:b09caaa3de96 174 //pc.printf("angle=%f\n", (float)buf*360.0f/64.0f);
shuhei2306 2:b09caaa3de96 175 }
shuhei2306 2:b09caaa3de96 176
shuhei2306 2:b09caaa3de96 177 //とりあえず上のbit は10らしい ロボット側のせってい
shuhei2306 2:b09caaa3de96 178 if ((robotData.status == 0x02)) {
shuhei2306 2:b09caaa3de96 179 //回転決めるために速度送る.
shuhei2306 2:b09caaa3de96 180 //上位3bit,4bit目を割り当てる.
shuhei2306 2:b09caaa3de96 181 if( ((val>>4) & 0x03) == 0x03)
shuhei2306 2:b09caaa3de96 182 {
shuhei2306 2:b09caaa3de96 183 buf = (val & 0x0f);
shuhei2306 2:b09caaa3de96 184 z_kijun_ganma+= (int)buf;
shuhei2306 2:b09caaa3de96 185 //pc.printf("buf=%d\n", (int)buf);
shuhei2306 2:b09caaa3de96 186 if(z_kijun_ganma>360)z_kijun_ganma = z_kijun_ganma-360;
shuhei2306 2:b09caaa3de96 187 }
shuhei2306 2:b09caaa3de96 188 }
shuhei2306 2:b09caaa3de96 189 }
shuhei2306 2:b09caaa3de96 190
shuhei2306 0:28d0b65a60fe 191
shuhei2306 0:28d0b65a60fe 192 void selectDecoderCh(unsigned int num_ch)
shuhei2306 0:28d0b65a60fe 193 {
shuhei2306 0:28d0b65a60fe 194 decoder_in_a = num_ch & 0b1;
shuhei2306 0:28d0b65a60fe 195 decoder_in_b = (num_ch>>1) & 0b1;
shuhei2306 0:28d0b65a60fe 196 decoder_in_c = (num_ch>>2) & 0b1;
shuhei2306 0:28d0b65a60fe 197 }
shuhei2306 0:28d0b65a60fe 198
shuhei2306 0:28d0b65a60fe 199
shuhei2306 0:28d0b65a60fe 200 //仮想LEDの回転
shuhei2306 0:28d0b65a60fe 201 //ロボットから受け取った値と連動させる?
shuhei2306 0:28d0b65a60fe 202 void updateRotation()
shuhei2306 0:28d0b65a60fe 203 {
shuhei2306 0:28d0b65a60fe 204 rMat.calMat(angular_velocity, rAxis.x, rAxis.y, rAxis.z);
shuhei2306 1:64ca0218709d 205 x_ = target_vec.x;//x
shuhei2306 1:64ca0218709d 206 y_ = target_vec.y;//y
shuhei2306 1:64ca0218709d 207 z_ = target_vec.z;//z
shuhei2306 2:b09caaa3de96 208 target_vec.x = rMat.r[0][0]*x_+rMat.r[0][1]*y_+rMat.r[0][2]*z_;
shuhei2306 2:b09caaa3de96 209 target_vec.y = rMat.r[1][0]*x_+rMat.r[1][1]*y_+rMat.r[1][2]*z_;
shuhei2306 2:b09caaa3de96 210 target_vec.z = rMat.r[2][0]*x_+rMat.r[2][1]*y_+rMat.r[2][2]*z_;
shuhei2306 0:28d0b65a60fe 211 }
shuhei2306 0:28d0b65a60fe 212
shuhei2306 0:28d0b65a60fe 213 void set_strip_color(int i_tape, int i_line, int i_pixel, int i_lednum)
shuhei2306 0:28d0b65a60fe 214 {
shuhei2306 0:28d0b65a60fe 215 position_vec.x = v_leds[i_tape][i_line][i_pixel][0];
shuhei2306 0:28d0b65a60fe 216 position_vec.y = v_leds[i_tape][i_line][i_pixel][1];
shuhei2306 0:28d0b65a60fe 217 position_vec.z = v_leds[i_tape][i_line][i_pixel][2];
shuhei2306 0:28d0b65a60fe 218
shuhei2306 2:b09caaa3de96 219 //angles = angle(target_vec , position_vec);
shuhei2306 2:b09caaa3de96 220 cos_theta = MyMath::cos(MyMath::Degrees(40));
shuhei2306 2:b09caaa3de96 221 if((position_vec)*(target_vec) < cos_theta) {
shuhei2306 2:b09caaa3de96 222 strip.setPixelColor(i_lednum,100,0,0);
shuhei2306 0:28d0b65a60fe 223 }
shuhei2306 0:28d0b65a60fe 224 else
shuhei2306 0:28d0b65a60fe 225 {
shuhei2306 1:64ca0218709d 226 strip.setPixelColor(i_lednum,0,0,0);
shuhei2306 0:28d0b65a60fe 227 }
shuhei2306 1:64ca0218709d 228
shuhei2306 0:28d0b65a60fe 229 }
shuhei2306 0:28d0b65a60fe 230
shuhei2306 0:28d0b65a60fe 231 void init()
shuhei2306 0:28d0b65a60fe 232 {
shuhei2306 2:b09caaa3de96 233 pc.baud(115200);
shuhei2306 2:b09caaa3de96 234 pc.attach(pc_rx, Serial::RxIrq);
shuhei2306 2:b09caaa3de96 235 device.attach(rx, Serial::RxIrq);
shuhei2306 2:b09caaa3de96 236 //pc.printf("Hello World!\n");
shuhei2306 0:28d0b65a60fe 237 /*
shuhei2306 0:28d0b65a60fe 238 mkdir("/sd/001.txt", 0777);
shuhei2306 0:28d0b65a60fe 239 fp = fopen("/sd/001.txt","r");
shuhei2306 0:28d0b65a60fe 240
shuhei2306 0:28d0b65a60fe 241 if(fp == NULL)
shuhei2306 0:28d0b65a60fe 242 {
shuhei2306 0:28d0b65a60fe 243 error("Could not open file for read\n");
shuhei2306 0:28d0b65a60fe 244 }
shuhei2306 0:28d0b65a60fe 245 */
shuhei2306 0:28d0b65a60fe 246 timer.start();
shuhei2306 0:28d0b65a60fe 247
shuhei2306 0:28d0b65a60fe 248 strip.begin(); //Initialize
shuhei2306 0:28d0b65a60fe 249 for(int i_tape=0; i_tape<NUM_TAPE; i_tape++)
shuhei2306 0:28d0b65a60fe 250 {
shuhei2306 0:28d0b65a60fe 251 selectDecoderCh(i_tape);
shuhei2306 0:28d0b65a60fe 252 strip.show(); //Turn all LEDs off ASAP
shuhei2306 0:28d0b65a60fe 253 }
shuhei2306 0:28d0b65a60fe 254 }
shuhei2306 0:28d0b65a60fe 255
shuhei2306 0:28d0b65a60fe 256 int main() {
shuhei2306 0:28d0b65a60fe 257 init();
shuhei2306 0:28d0b65a60fe 258
shuhei2306 0:28d0b65a60fe 259 while(1)
shuhei2306 0:28d0b65a60fe 260 {
shuhei2306 2:b09caaa3de96 261 //進行方向を回転させる用
shuhei2306 2:b09caaa3de96 262 //シリアルで受け取る.
shuhei2306 2:b09caaa3de96 263 /*これいる?ワープしちゃう原因?
shuhei2306 2:b09caaa3de96 264 x_ = targetvec.x*MyMath::cos(MyMath::Degrees(z_kijun_ganma)) - targetvec.y * MyMath::sin(MyMath::Degrees(z_kijun_ganma));
shuhei2306 2:b09caaa3de96 265 y_ = targetvec.x*MyMath::sin(MyMath::Degrees(z_kijun_ganma)) + targetvec.y * MyMath::cos(MyMath::Degrees(z_kijun_ganma));
shuhei2306 2:b09caaa3de96 266
shuhei2306 2:b09caaa3de96 267 targetvec.x=x_;
shuhei2306 2:b09caaa3de96 268 targetvec.y=y_;
shuhei2306 2:b09caaa3de96 269 */
shuhei2306 2:b09caaa3de96 270 //回転軸回転させる.
shuhei2306 2:b09caaa3de96 271 x_ = rAxis.x*MyMath::cos(MyMath::Degrees(z_kijun_ganma)) - rAxis.y * MyMath::sin(MyMath::Degrees(z_kijun_ganma));
shuhei2306 2:b09caaa3de96 272 y_ = rAxis.x*MyMath::sin(MyMath::Degrees(z_kijun_ganma)) + rAxis.y * MyMath::cos(MyMath::Degrees(z_kijun_ganma));
shuhei2306 2:b09caaa3de96 273
shuhei2306 2:b09caaa3de96 274 rAxis.x=x_;
shuhei2306 2:b09caaa3de96 275 rAxis.y=y_;
shuhei2306 2:b09caaa3de96 276
shuhei2306 2:b09caaa3de96 277 //向きに対して
shuhei2306 2:b09caaa3de96 278 x_= rAxis.x*MyMath::cos(MyMath::Degrees(z_ganma))-rAxis.y*MyMath::sin(MyMath::Degrees(z_ganma));
shuhei2306 2:b09caaa3de96 279 y_= rAxis.x*MyMath::sin(MyMath::Degrees(z_ganma))+rAxis.y*MyMath::cos(MyMath::Degrees(z_ganma));
shuhei2306 2:b09caaa3de96 280
shuhei2306 2:b09caaa3de96 281 rAxis.x=x_;
shuhei2306 2:b09caaa3de96 282 rAxis.y=y_;
shuhei2306 2:b09caaa3de96 283
shuhei2306 2:b09caaa3de96 284 //速度*時間差=直径xPIxθ/360
shuhei2306 2:b09caaa3de96 285 //kaiten=(v(t'-t)*360)/(2*PI*R)
shuhei2306 2:b09caaa3de96 286 if(timer.read_ms()-pretime>=30)
shuhei2306 2:b09caaa3de96 287 {
shuhei2306 2:b09caaa3de96 288 kaiten+=(robotData.speed *( (timer.read_ms()-pretime)/1000.0f )* PI_180 ) / 0.09f ;
shuhei2306 2:b09caaa3de96 289 if(kaiten>360)kaiten=kaiten-360;
shuhei2306 2:b09caaa3de96 290 pretime=timer.read_ms();
shuhei2306 2:b09caaa3de96 291 }
shuhei2306 2:b09caaa3de96 292
shuhei2306 2:b09caaa3de96 293 //回転行列生成
shuhei2306 0:28d0b65a60fe 294 updateRotation();
shuhei2306 0:28d0b65a60fe 295
shuhei2306 0:28d0b65a60fe 296 for(int i_tape=0; i_tape<NUM_TAPE; i_tape++)
shuhei2306 0:28d0b65a60fe 297 {
shuhei2306 0:28d0b65a60fe 298 selectDecoderCh(i_tape);
shuhei2306 0:28d0b65a60fe 299 for(int i_line=0; i_line<NUM_LINE; i_line++)
shuhei2306 0:28d0b65a60fe 300 {
shuhei2306 0:28d0b65a60fe 301 switch(i_line)
shuhei2306 0:28d0b65a60fe 302 {
shuhei2306 0:28d0b65a60fe 303 case 0:
shuhei2306 0:28d0b65a60fe 304 for(int i_pixel =0; i_pixel < LED_0_8_NUM ; i_pixel++)
shuhei2306 0:28d0b65a60fe 305 {
shuhei2306 0:28d0b65a60fe 306 set_strip_color(i_tape, i_line, i_pixel, i_pixel);
shuhei2306 0:28d0b65a60fe 307 }
shuhei2306 0:28d0b65a60fe 308 break;
shuhei2306 0:28d0b65a60fe 309 case 1:
shuhei2306 0:28d0b65a60fe 310 for(int i_pixel =0; i_pixel < LED_1_7_NUM ; i_pixel++)
shuhei2306 0:28d0b65a60fe 311 {
shuhei2306 0:28d0b65a60fe 312 set_strip_color(i_tape, i_line, i_pixel, i_pixel+16);
shuhei2306 0:28d0b65a60fe 313 }
shuhei2306 0:28d0b65a60fe 314 break;
shuhei2306 0:28d0b65a60fe 315 case 2:
shuhei2306 0:28d0b65a60fe 316 for(int i_pixel =0; i_pixel < LED_2_6_NUM ; i_pixel++)
shuhei2306 0:28d0b65a60fe 317 {
shuhei2306 0:28d0b65a60fe 318 set_strip_color(i_tape, i_line, i_pixel, i_pixel+35);
shuhei2306 0:28d0b65a60fe 319 }
shuhei2306 0:28d0b65a60fe 320 break;
shuhei2306 0:28d0b65a60fe 321 case 3:
shuhei2306 0:28d0b65a60fe 322 for(int i_pixel =0; i_pixel < LED_3_4_5_NUM ; i_pixel++)
shuhei2306 0:28d0b65a60fe 323 {
shuhei2306 0:28d0b65a60fe 324 set_strip_color(i_tape, i_line, i_pixel, i_pixel+55);
shuhei2306 0:28d0b65a60fe 325 }
shuhei2306 0:28d0b65a60fe 326 break;
shuhei2306 0:28d0b65a60fe 327 case 4:
shuhei2306 0:28d0b65a60fe 328 for(int i_pixel =0; i_pixel < LED_3_4_5_NUM ; i_pixel++)
shuhei2306 0:28d0b65a60fe 329 {
shuhei2306 0:28d0b65a60fe 330 set_strip_color(i_tape, i_line, i_pixel, i_pixel+77);
shuhei2306 0:28d0b65a60fe 331 }
shuhei2306 0:28d0b65a60fe 332 break;
shuhei2306 0:28d0b65a60fe 333 case 5:
shuhei2306 0:28d0b65a60fe 334 for(int i_pixel =0; i_pixel < LED_3_4_5_NUM ; i_pixel++)
shuhei2306 0:28d0b65a60fe 335 {
shuhei2306 0:28d0b65a60fe 336 set_strip_color(i_tape, i_line, i_pixel, i_pixel+99);
shuhei2306 0:28d0b65a60fe 337 }
shuhei2306 0:28d0b65a60fe 338 break;
shuhei2306 0:28d0b65a60fe 339 case 6:
shuhei2306 0:28d0b65a60fe 340 for(int i_pixel =0; i_pixel < LED_2_6_NUM ; i_pixel++)
shuhei2306 0:28d0b65a60fe 341 {
shuhei2306 0:28d0b65a60fe 342 set_strip_color(i_tape, i_line, i_pixel, i_pixel+121);
shuhei2306 0:28d0b65a60fe 343 }
shuhei2306 0:28d0b65a60fe 344 break;
shuhei2306 0:28d0b65a60fe 345 case 7:
shuhei2306 0:28d0b65a60fe 346 for(int i_pixel =0; i_pixel < LED_1_7_NUM ; i_pixel++)
shuhei2306 0:28d0b65a60fe 347 {
shuhei2306 0:28d0b65a60fe 348 set_strip_color(i_tape, i_line, i_pixel, i_pixel+141);
shuhei2306 0:28d0b65a60fe 349 }
shuhei2306 0:28d0b65a60fe 350 break;
shuhei2306 0:28d0b65a60fe 351 case 8:
shuhei2306 0:28d0b65a60fe 352 for(int i_pixel =0; i_pixel < LED_0_8_NUM ; i_pixel++)
shuhei2306 0:28d0b65a60fe 353 {
shuhei2306 0:28d0b65a60fe 354 set_strip_color(i_tape, i_line, i_pixel, i_pixel+160);
shuhei2306 0:28d0b65a60fe 355 }
shuhei2306 0:28d0b65a60fe 356 break;
shuhei2306 0:28d0b65a60fe 357 }
shuhei2306 0:28d0b65a60fe 358 }
shuhei2306 0:28d0b65a60fe 359 //白色点灯回避用
shuhei2306 0:28d0b65a60fe 360 strip.setPixelColor(176,0,0,0);
shuhei2306 0:28d0b65a60fe 361 strip.setPixelColor(177,0,0,0);
shuhei2306 0:28d0b65a60fe 362
shuhei2306 0:28d0b65a60fe 363 strip.show();
shuhei2306 0:28d0b65a60fe 364 }
shuhei2306 0:28d0b65a60fe 365 }
shuhei2306 0:28d0b65a60fe 366 }
shuhei2306 0:28d0b65a60fe 367 /* for(int i_tape=0; i_tape<NUM_TAPE; i_tape++)
shuhei2306 0:28d0b65a60fe 368 {
shuhei2306 0:28d0b65a60fe 369 selectDecoderCh(i_tape);
shuhei2306 0:28d0b65a60fe 370 for(int i_pixel=0; i_pixel<NUMPIXELS; i_pixel++)
shuhei2306 0:28d0b65a60fe 371 {
shuhei2306 0:28d0b65a60fe 372 strip.setPixelColor(i_pixel, 100*i_pixel/NUMPIXELS, 100*(NUMPIXELS-i_pixel)/NUMPIXELS, 0);
shuhei2306 0:28d0b65a60fe 373 }
shuhei2306 0:28d0b65a60fe 374 strip.show();
shuhei2306 0:28d0b65a60fe 375 }
shuhei2306 0:28d0b65a60fe 376
shuhei2306 0:28d0b65a60fe 377 for(int i_tape=0; i_tape<NUM_TAPE; i_tape++)
shuhei2306 0:28d0b65a60fe 378 {
shuhei2306 0:28d0b65a60fe 379 selectDecoderCh(i_tape);
shuhei2306 0:28d0b65a60fe 380 for(int i_pixel=0; i_pixel<NUMPIXELS; i_pixel++)
shuhei2306 0:28d0b65a60fe 381 {
shuhei2306 0:28d0b65a60fe 382 strip.setPixelColor(i_pixel, 0, 100*i_pixel/NUMPIXELS, 100*(NUMPIXELS-i_pixel)/NUMPIXELS);
shuhei2306 0:28d0b65a60fe 383 }
shuhei2306 0:28d0b65a60fe 384 strip.show();
shuhei2306 0:28d0b65a60fe 385 }
shuhei2306 0:28d0b65a60fe 386 */
shuhei2306 0:28d0b65a60fe 387
shuhei2306 0:28d0b65a60fe 388 /*
shuhei2306 0:28d0b65a60fe 389 while(1) {
shuhei2306 0:28d0b65a60fe 390 // testes=fgetc(fp);
shuhei2306 0:28d0b65a60fe 391 // pc.printf("%d\n", (int)testes - 48);
shuhei2306 0:28d0b65a60fe 392 wait(0.01);
shuhei2306 0:28d0b65a60fe 393
shuhei2306 0:28d0b65a60fe 394 // pc.printf("sdData[9]: %d\n", (int)(sdData[9]));
shuhei2306 0:28d0b65a60fe 395
shuhei2306 0:28d0b65a60fe 396 if(ontime == false)
shuhei2306 0:28d0b65a60fe 397 {
shuhei2306 0:28d0b65a60fe 398 fread(compareT_b, 1,3, fp);
shuhei2306 0:28d0b65a60fe 399
shuhei2306 0:28d0b65a60fe 400 //fgets(compareT_b, 3+1, fp);//取ってくる個数+1
shuhei2306 0:28d0b65a60fe 401 pc.printf("Compare0: %d\n", (int)( compareT_b[0]));
shuhei2306 0:28d0b65a60fe 402 pc.printf("Compare1: %d\n", (int)( compareT_b[1]));
shuhei2306 0:28d0b65a60fe 403 pc.printf("Compare2: %d\n", (int)( compareT_b[2]));
shuhei2306 0:28d0b65a60fe 404 compareT = (unsigned long)(compareT_b[0]) * 256 * 256 + (unsigned long)(compareT_b[1]) * 256 + (unsigned long)compareT_b[2];//符号拡張阻止
shuhei2306 0:28d0b65a60fe 405 //pc.putc(compareT);
shuhei2306 0:28d0b65a60fe 406 pc.printf("Compare: %d\n", compareT);
shuhei2306 0:28d0b65a60fe 407
shuhei2306 0:28d0b65a60fe 408 ontime = true;
shuhei2306 0:28d0b65a60fe 409 }
shuhei2306 0:28d0b65a60fe 410
shuhei2306 0:28d0b65a60fe 411 if( timer.read()*1000 > compareT)//compareTが現在の時間がcomparetTを超えたら
shuhei2306 0:28d0b65a60fe 412 {
shuhei2306 0:28d0b65a60fe 413 ontime = false;
shuhei2306 0:28d0b65a60fe 414
shuhei2306 0:28d0b65a60fe 415 // SDカードをbyte_num分、読み取る (57Byte)
shuhei2306 0:28d0b65a60fe 416 //fgets(sdData, byte_num+1+2, fp);//取ってくる個数+1
shuhei2306 0:28d0b65a60fe 417 fread(sdData, 1,byte_num, fp);
shuhei2306 0:28d0b65a60fe 418 pc.printf("sdData[0]: %d\n", (int)(sdData[0]));
shuhei2306 0:28d0b65a60fe 419 pc.printf("sdData[1]: %d\n", (int)(sdData[1]));
shuhei2306 0:28d0b65a60fe 420 pc.printf("sdData[2]: %d\n", (int)(sdData[2]));
shuhei2306 0:28d0b65a60fe 421 }
shuhei2306 0:28d0b65a60fe 422 }
shuhei2306 1:64ca0218709d 423 */
shuhei2306 2:b09caaa3de96 424