ajout module_mouvement
Dependencies: mbed xbee_lib ADXL345_I2C IMUfilter ITG3200 Motor RangeFinder Servo mbos PID
Fork of Labo_TRSE_Drone by
Service/Service.cpp@33:ec7d635636bf, 2013-04-17 (annotated)
- Committer:
- IngesupMbed01
- Date:
- Wed Apr 17 15:52:51 2013 +0000
- Revision:
- 33:ec7d635636bf
- Parent:
- 19:a05cd42f8e91
Module communication modifi? et variables globales d?plac?es.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
IngesupMbed01 | 19:a05cd42f8e91 | 1 | /* Copyright (c) 2012 - 2013 AUTEUR |
IngesupMbed01 | 19:a05cd42f8e91 | 2 | * |
IngesupMbed01 | 19:a05cd42f8e91 | 3 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED |
IngesupMbed01 | 19:a05cd42f8e91 | 4 | * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF |
IngesupMbed01 | 19:a05cd42f8e91 | 5 | * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT |
IngesupMbed01 | 19:a05cd42f8e91 | 6 | * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, |
IngesupMbed01 | 19:a05cd42f8e91 | 7 | * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT |
IngesupMbed01 | 19:a05cd42f8e91 | 8 | * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS |
IngesupMbed01 | 19:a05cd42f8e91 | 9 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, |
IngesupMbed01 | 19:a05cd42f8e91 | 10 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY |
IngesupMbed01 | 19:a05cd42f8e91 | 11 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
IngesupMbed01 | 19:a05cd42f8e91 | 12 | */ |
IngesupMbed01 | 19:a05cd42f8e91 | 13 | |
IngesupMbed01 | 19:a05cd42f8e91 | 14 | /* |
IngesupMbed01 | 19:a05cd42f8e91 | 15 | * Description : Cette classe contient les fonctionnalités que pourraient exploiter plusieurs classes |
IngesupMbed01 | 19:a05cd42f8e91 | 16 | * Input |
IngesupMbed01 | 19:a05cd42f8e91 | 17 | * Output |
IngesupMbed01 | 19:a05cd42f8e91 | 18 | */ |
IngesupMbed01 | 19:a05cd42f8e91 | 19 | |
IngesupMbed01 | 19:a05cd42f8e91 | 20 | #include "Service.h" |
IngesupMbed01 | 19:a05cd42f8e91 | 21 | |
IngesupMbed01 | 33:ec7d635636bf | 22 | unsigned int COMMANDE_TRAJECTOIRE; |
IngesupMbed01 | 33:ec7d635636bf | 23 | unsigned int NIVEAU_BATTERIE; |
IngesupMbed01 | 33:ec7d635636bf | 24 | bool STOP = false; |
IngesupMbed01 | 33:ec7d635636bf | 25 | bool EN_MOUVEMENT = false; |
IngesupMbed01 | 33:ec7d635636bf | 26 | position COORDONNEE_DRONE; |
IngesupMbed01 | 33:ec7d635636bf | 27 | position DONNEE_GYROSCOPE; |
IngesupMbed01 | 33:ec7d635636bf | 28 | position DONNEE_ACCELEROMETRE; |
IngesupMbed01 | 33:ec7d635636bf | 29 | |
IngesupMbed01 | 19:a05cd42f8e91 | 30 | /* CONSRTRUCTEUR(S) */ |
IngesupMbed01 | 19:a05cd42f8e91 | 31 | C_Service::C_Service() |
IngesupMbed01 | 19:a05cd42f8e91 | 32 | { |
IngesupMbed01 | 19:a05cd42f8e91 | 33 | |
IngesupMbed01 | 19:a05cd42f8e91 | 34 | } |
IngesupMbed01 | 19:a05cd42f8e91 | 35 | |
IngesupMbed01 | 19:a05cd42f8e91 | 36 | /* DESTRUCTEUR */ |
IngesupMbed01 | 19:a05cd42f8e91 | 37 | C_Service::~C_Service() |
IngesupMbed01 | 19:a05cd42f8e91 | 38 | { |
IngesupMbed01 | 19:a05cd42f8e91 | 39 | |
IngesupMbed01 | 19:a05cd42f8e91 | 40 | } |