iOS App — Octave Master controller and the exercices ! ✨
This project is the code for the iPhone that control the drone.
Server : https://github.com/Suriteka/Octaserve
Screen : https://github.com/piwis/octave_client
Phone that send gyroscope data : https://github.com/piwis/octave_mobile
Here is the link to see the videos ⭐️: https://www.youtube.com/playlist?list=PLRjR1-0k_4swVZawVdHsnaWpcQ58BcR5B
The scenarios of the exercices are in the folder Octave/Scenarios
At the root of the project, there is a config.json.
You can pass the application to the mode debug and change the url of the socket server.
{
"debug": "true",
"serverUrl": "https://octaserve.suriteka.website"
}
This is an example of the JSON you need to have to manipulate the drone.
[
{
"duration" : "6",
"actions" : [
{
"actionType" : ".sparkEvent",
"actionName" : ".takeOff"
}
]
},
{
"duration" : "4",
"actions" : [
{
"actionType" : ".sparkDirectionVertical",
"actionName" : ".top",
"speed" : "0.25"
},
{
"actionType" : ".sparkRotation",
"actionName" : ".clockwise",
"speed" : "0.78"
}
]
}
]
To create an action that move the drone horizontaly, you need to create "actionType" : ".sparkDirectionHorizontal"
For actionTypeName there is these values.
| Parameters |
|---|
| .forward |
| .backward |
| .left |
| .right |
| .forwardLeft |
| .forwardRight |
| .backwardLeft |
| .backwardRight |
To create an action that move the drone horizontaly, you need to create "actionType" : ".sparkDirectionVertical"
For actionTypeName there is these values.
| Parameters |
|---|
| .top |
| .bottom |
To create an action that change the rotation of the drone, you need to create "actionType" : ".sparkRotation"
For actionTypeName there is these values.
| Parameters |
|---|
| .clockwise |
| .counterClockwise |
| .speed |
To create an action that move the drone horizontaly, you need to create "actionType" : ".sparkEvent"
For actionTypeName there is these values.
| Parameters |
|---|
| .landing |
| .takeOff |
| .stop |
To create an action that move the drone horizontaly, you need to create "actionType" : ".sparkGimbalRotation"
For actionTypeName there is these values.
| Parameters |
|---|
| .top |
| .bottom |
| .speed |
To create an action that move the drone horizontaly, you need to create "actionType" : ".sparkGimbalEvent"
For actionTypeName there is these values.
| Parameters |
|---|
| .takePictureFirst |
| .takePictureSecond |
GimbalEvent is probably gonna change one day ! .takePictureFirst and second was easy to do the exercices. We'll change this one day.
