Toggle navigation
Toggle navigation
This project
Loading...
Sign in
2021-1-capstone-design2
/
2014104077
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
Wonseok Kwak
2021-06-13 06:39:00 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
c8338d94443f5ca5bd893b29a16b5824a98bb957
c8338d94
1 parent
4d0089ec
Update : IMU Serial logging 및 monitoring을 위한 소스
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
source/DroneControl/getAccel.py
source/DroneControl/getAccel.py
View file @
c8338d9
...
...
@@ -18,7 +18,7 @@ def main():
drone
.
pair
()
# print the acceleration of drone
while
1
:
while
drone
.
isConnected
()
:
normal_x
=
0
normal_y
=
0
normal_z
=
0
...
...
@@ -81,7 +81,7 @@ def main():
deltha_z
[
0
]
=
abs
(
deltha_z
[
1
]
-
deltha_z
[
2
])
deltha
=
deltha_x
[
0
]
+
deltha_y
[
0
]
+
deltha_z
[
0
]
print
(
"AcX : "
,
deltha_x
[
0
],
"AcY : "
,
deltha_y
[
0
],
"AcZ : "
,
deltha_z
[
0
],
"Total : "
,
deltha
)
drone
.
close
()
if
__name__
==
'__main__'
:
main
()
...
...
Please
register
or
login
to post a comment