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-12 20:16:19 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
3a01003bebffa47a31455e8a0a6c4e5c047d82cb
3a01003b
1 parent
b686682f
IMU Serial logging 및 monitoring을 위한 소스
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
source/DroneControl/getAccel.py
source/DroneControl/getAccel.py
0 → 100644
View file @
3a01003
1
+
import
CoDrone
2
+
3
+
def
main
():
4
+
drone
=
CoDrone
.
CoDrone
()
5
+
drone
.
pair
()
6
+
7
+
# print the acceleration of drone
8
+
while
1
:
9
+
acceleration
=
drone
.
get_accelerometer
()
10
+
print
(
acceleration
.
X
,
acceleration
.
Y
,
acceleration
.
Z
)
11
+
12
+
if
__name__
==
'__main__'
:
13
+
main
()
Please
register
or
login
to post a comment