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.
Diff: VCODATA.cpp
- Revision:
- 2:c386c1f00d02
- Parent:
- 1:9a2a94ffbffb
- Child:
- 3:75e22a2e2109
diff -r 9a2a94ffbffb -r c386c1f00d02 VCODATA.cpp
--- a/VCODATA.cpp Tue Apr 04 02:23:56 2017 +0000
+++ b/VCODATA.cpp Tue Apr 04 06:17:11 2017 +0000
@@ -33,19 +33,15 @@
/* CONSTRUCTOR: */
VCODATA::VCODATA(NAVDATA InitData){
- //InitData.paddata(); // Inicializamos el vector LAST_NAV_DATA.
- //for(int i = valor inicial; i <= valor final; i = i + paso)
+ InitData.paddata(); // Inicializamos el vector LAST_NAV_DATA con valores default. Las constantes Klong, Klat; Ksen y ZH no se modifican.
+ NAV_DATA = new NAVDATA[100]; // Array de 100 elementos tipo NAVDATA
+ for (int i=0;i<100;i+=1)
+ this->NAV_DATA[i]= InitData; // Inicializa NAV_DATA[]. Carga el array repitiendo Initdata en todas las posiciones.
- NAV_DATA = new NAVDATA[100];
- for (int i=0;i<100;i+=1)
- this->NAV_DATA[i]= InitData;
+
//this->NAV_DATA[0]->LAST_NAV_DATA[0]=InitData.LAST_NAV_DATA[0]; // Inicializamos la matríz NAVDATA.
//NAV_DATA[i]=NULL;
- //AQUI GENERAR UNA MATRIZ CON VALORES DEFAULT....A lo mejor repitiendo el valor del parametro pasado o todo en 0
-
-
-
-
+
}