Subversion Repositories Projects

Compare Revisions

Ignore whitespace Rev 419 → Rev 418

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