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-09 23:32:11 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
aa8327f70c36f0af4ebbb033748aedbc37614e27
aa8327f7
1 parent
e18027ec
CoDroneFlightTest
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
source/DroneControl/CoDroneFlightTest/CoDroneFlightTest.ino
source/DroneControl/CoDroneFlightTest/CoDroneFlightTest.ino
0 → 100644
View file @
aa8327f
#include <CoDrone.h> // 코드론을 사용하기 위한 헤더파일
void
setup
()
{
CoDrone
.
begin
(
115200
);
// 드론 플러그의 통신 개시 (115200bps)
CoDrone
.
AutoConnect
(
NearbyDrone
);
// 가장 가까운 위치의 드론과 연결
CoDrone
.
DroneModeChange
(
Flight
);
// 드론을 플라이트 모드로 설정 (비행 형태)
// 2초간 드론을 띄운후 착륙하기
if
(
PAIRING
==
true
)
// 연결(페어링)이 성공한 경우에만 실행
{
CoDrone
.
FlightEvent
(
TakeOff
);
// 이륙
delay
(
2000
);
// 대기 시간
CoDrone
.
FlightEvent
(
Landing
);
// 서서히 착륙
}
}
void
loop
()
{
}
Please
register
or
login
to post a comment