Revision 4d6aa081
applications/sliposc/serialtoosc.py | ||
---|---|---|
4 | 4 |
#dumb router |
5 | 5 |
#echos serial from serial port to a udp socket |
6 | 6 |
# |
7 |
# BUG: Corrupted messages, even crash sclang |
|
8 |
# [ /sensors/, ms, 19300, eX, -7.875, eY, 16, eZ, 0, aX, 2.7000000476837, aY, 9.3199996948242, aZ, -1.3700000047684, gX, 0, gY, 0, gZ, 0.0625, calSys, 0, calAcc, 3, calGyr, 1, calMag, 0, Pa, 94696.84375 ] |
|
9 |
#nil |
|
10 |
#acc -2/-2/-2 gyro -2/-2/-2 euler -2/-2/-2 |
|
11 |
#bnoX/Y 0.05 0.05 -1.5 0.02 bnoX/Y 0.05 0.05 -1.5 0.02 [ /sensors/, ms, 20300, eX, -7.875, eY, 7.1728720664978, ��V��, 0, @0��, 4.286162823218e-39, �, 1.4349296274686e-42, , 2.7451219558716, �, 5.0638562171084e+19, �, 5.0638562171084e+19, �, 2.3509887016446e-38, , 8.00048828125, , 2.7292528152466, �, 7.1746481373431e-43, , 0, , 9.9746769275256e-15 ] |
|
12 |
#nil |
|
13 |
#acc -2/-2/-2 gyro -2/-2/-2 euler -2/-2/-2 |
|
14 |
#bnoX/Y 0.05 0.05 -1.5 0.02 [ /sensors/, ms, 26300, eX, -7.875, eY, 16, eZ, 0, aX, 2.6900000572205, aY, 9.3599996566772, aZ, -1.3600000143051, gX, -0.0625, gY, -0.125, gZ, 0, calSys, 0, calAcc, 3, calGyr, 1, calMag, 0, Pa, 94695.546875 ] |
|
15 |
#nil |
|
16 |
#acc -2/-2/-2 gyro -2/-2/-2 euler -2/-2/-2 |
|
17 |
#bnoX/Y 0.05 0.05 -1.5 0.02 ERROR: OSC messages must have type tags. lSys |
|
18 |
#[ /sensors/, ms, 29300, eX, -7.875, eY, 16, eZ, 0, aX, 2.6600000858307, aY, 9.3500003814697, aZ, -1.3400000333786, gX, 0, gY, -0.0625, gZ, 0, calSys, 0, calAcc, 3, calGyr, 1, calMag, 0, Pa, 94696.6875 ] |
|
19 |
#nil |
|
20 |
#acc -2/-2/-2 gyro -2/-2/-2 euler -2/-2/-2 |
|
21 |
#bnoX/Y 0.05 0.05 -1.5 0.02 [ /sensors/, ms, 30300, eX, -7.875, eY, 7.1728839874268, ��[��, 0, @0��, 4.286162823218e-39, �, 1.4349296274686e-42, , 2.7451219558716, �, 5.0638562171084e+19, �, 5.0638562171084e+19, �, 2.3509887016446e-38, , 8.00048828125, , 2.7292528152466, �, 7.1746481373431e-43, , 0, , 9.9746769275256e-15 ] |
|
22 |
#nil |
|
23 |
#acc -2/-2/-2 gyro -2/-2/-2 euler -2/-2/-2 |
|
24 |
#bnoX/Y 0.05 0.05 -1.5 0.02 [ /sensors/, ms, 33290, eX, -7.875, eY, 16, eZ, 0, aX, 2.6900000572205, aY, 9.3599996566772, aZ, -1.3500000238419, gX, 0, gY, 0.125, gZ, 0.125, calSys, 0, calAcc, 3, calGyr, 1, calMag, 0, Pa, 94694.421875 ] |
|
25 |
#nil |
|
26 |
# |
|
7 | 27 |
#TODO: OSC client as well |
8 | 28 |
#TODO: OSCQuery everything |
9 | 29 |
from IPython import embed |
Also available in: Unified diff