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:
- 9:b4232b5aa4ed
- Parent:
- 8:e105a233d4b1
- Child:
- 10:45e3c7f30950
--- a/NAVDATA.cpp Mon Apr 17 12:35:29 2017 +0000
+++ b/NAVDATA.cpp Sun Apr 23 18:27:51 2017 +0000
@@ -56,7 +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
+ this->LAST_NAV_DATA[cons_interpolated]=0; // Valor interpolado? 0-> real ; 1->interpolated; 2->smoothed; -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)