Subversion Repositories Projects

Compare Revisions

Ignore whitespace Rev 418 → Rev 419

/FollowMe/temp/FollowMe/kml.c
56,7 → 56,6
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
#include <stdlib.h>
#include <stdio.h>
#include "main.h"
#include "kml.h"
#include "kml_header.h"
 
/FollowMe/temp/FollowMe/logging.c
62,6 → 62,7
//#include "gpx.h"
#include "ssc.h"
#include "settings.h"
#include "printf_P.h"
 
 
#define LOG_FLUSH_INTERVAL 20000 // 20s
197,16 → 198,12
{
flushtimer = SetDelay(LOG_FLUSH_INTERVAL);
logfilestate = LOGFILE_OPENED; // goto next step
printf("\r\nOpening kml-file:");
printf(logfilename);
printf("\r\n");
printf("\r\nOpening kml-file: %s\r\n",logfilename);
}
else // could not be openend
{
logfilestate = LOGFILE_ERROR;
printf("\r\nError opening kml-file: ");
printf(logfilename);
printf("\r\n");
printf("\r\nError opening kml-file: %s\r\n", logfilename);
logtimer = SetDelay(10); // try again in open logfile in 10 mili sec
}
}
307,7 → 304,7
{
case LOGFILE_IDLE:
case LOGFILE_CLOSED:
//if((GPSData.Status != INVALID) && (GPSData.Flags & FLAG_GPSFIXOK) && (GPSData.SatFix == SATFIX_3D) && (FC.MKFlags & MKFLAG_FLY))
//if((GPSData.Status != INVALID) && (GPSData.Flags & FLAG_GPSFIXOK) && (GPSData.SatFix == SATFIX_3D) )
{
logfilestate = LOGFILE_START;
}
326,16 → 323,12
{
flushtimer = SetDelay(LOG_FLUSH_INTERVAL);
logfilestate = LOGFILE_OPENED; // goto next step
printf("\r\nOpening gpx-file:");
printf(logfilename);
printf("\r\n");
printf("\r\nOpening gpx-file: %s\r\n", logfilename);
}
else // could not be openend
{
logfilestate = LOGFILE_ERROR;
printf("\r\nError opening gpx-file: ");
printf(logfilename);
printf("\r\n");
printf("\r\nError opening gpx-file: %s\r\n", logfilename);
logtimer = SetDelay(10); // try again in open logfile in 10 mili sec
}
}