Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
VCODATA.h@3:75e22a2e2109, 2017-04-08 (annotated)
- Committer:
- gstedile
- Date:
- Sat Apr 08 18:38:40 2017 +0000
- Revision:
- 3:75e22a2e2109
- Parent:
- 2:c386c1f00d02
- Child:
- 4:af09ad305303
Matriz andando
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
gstedile | 0:9faff39f9aa2 | 1 | /* mbed VCODATA Module Library |
gstedile | 0:9faff39f9aa2 | 2 | * Copyright (c) 2008-2010, sford |
gstedile | 0:9faff39f9aa2 | 3 | * |
gstedile | 0:9faff39f9aa2 | 4 | * Permission is hereby granted, free of charge, to any person obtaining a copy |
gstedile | 0:9faff39f9aa2 | 5 | * of this software and associated documentation files (the "Software"), to deal |
gstedile | 0:9faff39f9aa2 | 6 | * in the Software without restriction, including without limitation the rights |
gstedile | 0:9faff39f9aa2 | 7 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
gstedile | 0:9faff39f9aa2 | 8 | * copies of the Software, and to permit persons to whom the Software is |
gstedile | 0:9faff39f9aa2 | 9 | * furnished to do so, subject to the following conditions: |
gstedile | 0:9faff39f9aa2 | 10 | * |
gstedile | 0:9faff39f9aa2 | 11 | * The above copyright notice and this permission notice shall be included in |
gstedile | 0:9faff39f9aa2 | 12 | * all copies or substantial portions of the Software. |
gstedile | 0:9faff39f9aa2 | 13 | * |
gstedile | 0:9faff39f9aa2 | 14 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
gstedile | 0:9faff39f9aa2 | 15 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
gstedile | 0:9faff39f9aa2 | 16 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
gstedile | 0:9faff39f9aa2 | 17 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
gstedile | 0:9faff39f9aa2 | 18 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
gstedile | 0:9faff39f9aa2 | 19 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN |
gstedile | 0:9faff39f9aa2 | 20 | * THE SOFTWARE. |
gstedile | 0:9faff39f9aa2 | 21 | */ |
gstedile | 0:9faff39f9aa2 | 22 | |
gstedile | 0:9faff39f9aa2 | 23 | /*############################################################################ |
gstedile | 0:9faff39f9aa2 | 24 | ############################################################################## |
gstedile | 0:9faff39f9aa2 | 25 | */ |
gstedile | 0:9faff39f9aa2 | 26 | |
gstedile | 0:9faff39f9aa2 | 27 | #include "mbed.h" |
gstedile | 0:9faff39f9aa2 | 28 | #include <string> |
gstedile | 0:9faff39f9aa2 | 29 | #include <NAVDATA.h> |
gstedile | 0:9faff39f9aa2 | 30 | |
gstedile | 0:9faff39f9aa2 | 31 | #ifndef MBED_VCODATA_H |
gstedile | 0:9faff39f9aa2 | 32 | #define MBED_VCODATA_H |
gstedile | 0:9faff39f9aa2 | 33 | |
gstedile | 0:9faff39f9aa2 | 34 | /** VCODATA manage and store navigation data to obtain VCO */ |
gstedile | 0:9faff39f9aa2 | 35 | |
gstedile | 0:9faff39f9aa2 | 36 | |
gstedile | 0:9faff39f9aa2 | 37 | class VCODATA { |
gstedile | 0:9faff39f9aa2 | 38 | public: |
gstedile | 1:9a2a94ffbffb | 39 | /* CONSTRUCTOR */ |
gstedile | 3:75e22a2e2109 | 40 | VCODATA(NAVDATA InitData); // Argumento: Objeto de la clase NAVDATA que contiene los datos de navegación de un período. |
gstedile | 1:9a2a94ffbffb | 41 | |
gstedile | 1:9a2a94ffbffb | 42 | |
gstedile | 3:75e22a2e2109 | 43 | NAVDATA *NAV_DATA; // Matriz de datos: Array de objetos NAVDATA. Cada uno corresponde a una velocidad distinta. |
gstedile | 1:9a2a94ffbffb | 44 | |
gstedile | 0:9faff39f9aa2 | 45 | float get_VCO(); |
gstedile | 0:9faff39f9aa2 | 46 | |
gstedile | 3:75e22a2e2109 | 47 | |
gstedile | 3:75e22a2e2109 | 48 | void store_data (NAVDATA LastData); // Parámetro: Objeto NAVDATA. |
gstedile | 0:9faff39f9aa2 | 49 | |
gstedile | 0:9faff39f9aa2 | 50 | private: |
gstedile | 0:9faff39f9aa2 | 51 | |
gstedile | 0:9faff39f9aa2 | 52 | //enum vcodatavars{ timestmp=0, longitude, latitude, consumption, speed, distance, NUM_VCODATAVARS }; |
gstedile | 0:9faff39f9aa2 | 53 | |
gstedile | 1:9a2a94ffbffb | 54 | // NAVDATA NAV_DATA[100]; // Matriz de datos: Array de variables tipo NAVDATA(Arrays de datos de navegacion de un período). |
gstedile | 0:9faff39f9aa2 | 55 | |
gstedile | 0:9faff39f9aa2 | 56 | |
gstedile | 0:9faff39f9aa2 | 57 | |
gstedile | 0:9faff39f9aa2 | 58 | }; |
gstedile | 0:9faff39f9aa2 | 59 | #endif |
gstedile | 0:9faff39f9aa2 | 60 |