Commit 284a41b4 authored by Philippe Gaussier's avatar Philippe Gaussier
Browse files

Update compilation info.

parent 40f107fd
......@@ -119,6 +119,26 @@ add_executable(
lib/loguru/loguru.cpp
)
# Test trajectory launch
add_executable(TestDrone
test/TestDroneRemoteControl.cpp
test/include/PixhawkServer.h
test/src/Data_Drone.cpp
test/include/Data_Drone.h
# test/src/Display_IHM.cpp
# test/include/Display_IHM.h
test/src/Com_SerialReadingThread.cpp
test/include/Com_SerialReadingThread.h
test/src/Com_SerialWritingThread.cpp
test/include/Com_SerialWritingThread.h
test/src/Com_Serial.cpp
test/src/Abstract_ThreadClass.cpp
# test/src/Tools_SDL2.cpp
)
![Build Status](https://gitlab.com/pages/gatsby/badges/master/build.svg)
[![Awesome Badges](https://img.shields.io/badge/Laboratory-Etis-purple.svg)](https://www-etis.ensea.fr)
[![Awesome Badges](https://img.shields.io/badge/Team-Neurocyber-red.svg)](https://www-etis.ensea.fr)
[![Maintenance](https://img.shields.io/badge/Maintained%3F-yes-green.svg)](sylvain.colomer.pro@gmail.com)
---
# Pixhawk service #
[DroneFlyMonitor2]
## Introduction ##
Promethe_scripts: An application in promethe that allow user to control directly the drone.
The pixhawk service program is a simple application that allow use to communicate thourgh Mavlink to a pixhawk flying controler. It use Blc channels, a lib to use shared memory make by friendly collegue, Arnaud Blanchard (See blaar lib).
ComServer: the broker allowing to communicate with a drone through mavl BLC channels
---
## Project Structure ##
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
**Table of Contents** *generated with [DocToc](https://github.com/thlorenz/doctoc)*
The project word in real time with multiple thread :
* Serial port thread in reading and writing
* IHM thread
* Joystick thread
* Main thread
- [GitLab CI](#gitlab-ci)
- [Building locally](#building-locally)
- [GitLab User or Group Pages](#gitlab-user-or-group-pages)
- [Did you fork this project?](#did-you-fork-this-project)
### Language ###
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
C++
## GitLab CI
### Dependencies ###
This project's static Pages are built by [GitLab CI][ci], following the steps
defined in [`.gitlab-ci.yml`](.gitlab-ci.yml):
This project use :
* https://promethe.u-cergy.fr/blaar/blaar -> important
* xboxdrv
* librapidxml-dev 1.13-1
* libncurses5-dev
* libsdl2-ttf-dev
```yml
image: node
### Organisation ###
The project is organized in different specific folders :
* bin : application exe folder
* build: cmake folder
* data : explicit
* include : all header of the application
* lib : all lib use in the project like Mavlink v2.0
* log : classic
* src : all the source file of the project
* test : unit test use by the system
pages:
script:
- npm install
- npm install gatsby-cli
- node_modules/.bin/gatsby build --prefix-paths
artifacts:
paths:
- public
cache:
paths:
- node_modules
only:
- master
```
## How to ? ##
## Building locally
# see blc_channels
To work locally with this project, you'll have to follow the steps below:
cd $HOME/blaar
./run.sh gnuplot/o_gnuplot /pixhawk.control.arm
./run.sh gnuplot/o_gnuplot /pixhawk.control.motors -m-1000 -M1000
1. Fork, clone or download this project
1. [Install] Gatsby CLI
1. Generate and preview the website with hot-reloading: `gatsby develop`
1. Add content
### Resolve serial port problem ?
Read more at Gatsby's [documentation].
http://tvaira.free.fr/bts-sn/activites/preparation-ccf-e52/activite-port-serie-usb.html
## Did you fork this project?
### Compilate the project ###
If you forked this project for your own use, please go to your project's
**Settings** and remove the forking relationship, which won't be necessary
unless you want to contribute back to the upstream project.
[ci]: https://about.gitlab.com/gitlab-ci/
[Gatsby]: https://www.gatsbyjs.org/
[install]: https://www.gatsbyjs.org/docs/
[documentation]: https://www.gatsbyjs.org/docs/
[userpages]: https://docs.gitlab.com/ce/user/project/pages/introduction.html#user-or-group-pages
[projpages]: https://docs.gitlab.com/ce/user/project/pages/introduction.html#project-pages
Don't lose your time with greedy IDE :P. Use Cmake in the build folder.
```
mkdir build
cd build
cmake ..
make
----
```
### Execute tests ###
No unitary test support was made but the system was prepared. It's only a simple option on cmake.
## Other ##
Some links are interresting to consult to contributre to this program.
* https://www.google.com/search?client=ubuntu&channel=fs&q=mavlink+mode+guided&ie=utf-8&oe=utf-8
* https://gitter.im/dronekit/dronekit-python/archives/2017/06/04
* ardupilot.org/copter/docs/common-mavlink-mission-command-messages-mav_cmd.html -> tone
* https://dev.px4.io/en/qgc/video_streaming.html
* https://dev.px4.io/en/advanced/parameter_reference.html -> pixhawk flight stack
* https://msgpack.org/ -> format
* https://capnproto.org/ -> format
* https://docs.qgroundcontrol.com/en/SetupView/Joystick.html JOYSTICK
### Wiki ###
### Author ###
Sylvain Colomer into the Laboratory Etis, University of Cergy-Pontoise
Don't hesitate to contact me trough gitLab !
Forked from https://github.com/gatsbyjs/gatsby-starter-default
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment