質問編集履歴

2

記載ミス

2019/06/05 05:01

投稿

aiai8976
aiai8976

スコア112

test CHANGED
File without changes
test CHANGED
@@ -342,4 +342,6 @@
342
342
 
343
343
  print('degree: %08.3f' % sum_degree)
344
344
 
345
- print('\n')``
345
+ print('\n')
346
+
347
+ ```

1

記載ミス

2019/06/05 05:01

投稿

aiai8976
aiai8976

スコア112

test CHANGED
File without changes
test CHANGED
@@ -56,6 +56,8 @@
56
56
 
57
57
  import numpy as np
58
58
 
59
+
60
+
59
61
  #
60
62
 
61
63
  # define
@@ -92,7 +94,7 @@
92
94
 
93
95
  sum_degree=0
94
96
 
95
- time=0.018
97
+ timeval=0.018
96
98
 
97
99
 
98
100
 
@@ -324,7 +326,7 @@
324
326
 
325
327
  #print(sum_degree)
326
328
 
327
- #sleep(time)
329
+ #sleep(timeval)
328
330
 
329
331
  i=i+1
330
332
 
@@ -334,12 +336,10 @@
334
336
 
335
337
  print ('gyro[deg/s]')
336
338
 
337
- print('z: %08.3f' % gyro_z(i))
339
+ print('z: %08.3f' % gyro_z[i])
338
-
340
+
339
- sum_degree+=rotation_degree(i)
341
+ sum_degree+=rotation_degree[i]
340
342
 
341
343
  print('degree: %08.3f' % sum_degree)
342
344
 
343
- print('\n')
345
+ print('\n')``
344
-
345
- ```