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: NAVDATA.cpp
- Revision:
- 8:e105a233d4b1
- Parent:
- 7:0522eded4738
- Child:
- 9:b4232b5aa4ed
diff -r 0522eded4738 -r e105a233d4b1 NAVDATA.cpp
--- a/NAVDATA.cpp Fri Apr 14 04:54:13 2017 +0000
+++ b/NAVDATA.cpp Mon Apr 17 12:35:29 2017 +0000
@@ -56,6 +56,7 @@
this->LAST_NAV_DATA[consumption_i]=this->LAST_NAV_DATA[consumption_f];
this->LAST_NAV_DATA[consumption_f]=c/Ksen;
this->LAST_NAV_DATA[consumption_p]=this->LAST_NAV_DATA[consumption_f]-this->LAST_NAV_DATA[consumption_i]; // Consumo en litros del período.
+ this->LAST_NAV_DATA[cons_interpolated]=0; // Valor interpolado? 0-> real ; 1-> interpolated; -1-> initial padding
if (this->LAST_NAV_DATA[distance_p] > 0) this->LAST_NAV_DATA[cons_mile_p]=this->LAST_NAV_DATA[consumption_p]/this->LAST_NAV_DATA[distance_p]; // Consumo en litros por milla nautica.
else this->LAST_NAV_DATA[cons_mile_p]= -1; // Variable no mensurable (-1)
@@ -84,12 +85,13 @@
this->LAST_NAV_DATA[time_f]=-1; // El dato (timestamp al final del período en cuestion, en horas) se obtendrá luego proveniente del GPS.
this->LAST_NAV_DATA[time_i]=0; // Timestamp al inicio del período en horas.
this->LAST_NAV_DATA[distance_p]=0; // Distancia recorrida durante este período en millas nauticas.
- this->LAST_NAV_DATA[speed_p]=0; // Velocidad media del período en nudos.
+ this->LAST_NAV_DATA[speed_p]=-1; // Velocidad media del período en nudos.
this->LAST_NAV_DATA[consumption_i]=0; // Consumo en litros al comienzo del período.
this->LAST_NAV_DATA[consumption_f]=0; // Consumo en litros al final del período.
this->LAST_NAV_DATA[consumption_p]=0; // Consumo en litros del período.
this->LAST_NAV_DATA[cons_mile_p]=0; // Consumo en litros por milla nautica.
this->LAST_NAV_DATA[cons_hour_p]=0; // Consumo en litros por hora.
+ this->LAST_NAV_DATA[cons_interpolated]=-1; // Consumo interpolado?: -1-> initial padding
}