Subversion Repositories Projects

Rev

Rev 394 | Rev 442 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 394 Rev 440
Line 18... Line 18...
18
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
18
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
19
 ***************************************************************************/
19
 ***************************************************************************/
Line 20... Line 20...
20
 
20
 
Line 21... Line 21...
21
#include "CSVLogger.h"
21
#include "CSVLogger.h"
22
 
22
 
23
CSVLogger::CSVLogger(cSettings * settings, sMode * mode)
23
CSVLogger::CSVLogger(cSettings * settings, KopterData * data)
24
{
24
{
25
    // QFile-Instanz (Log-Datei)
25
    // QFile-Instanz (Log-Datei)
26
    csvfile = new QFile("");
26
    csvfile = new QFile("");
27
    this->settings = settings;
27
    this->settings = settings;
Line 28... Line 28...
28
    this->mode = mode;
28
    this->data = data;
29
}
29
}
30
 
30
 
Line 49... Line 49...
49
//neuen Log erstellen
49
//neuen Log erstellen
50
void CSVLogger::newLog()
50
void CSVLogger::newLog()
51
{
51
{
52
    if (!csvfile->isOpen())
52
    if (!csvfile->isOpen())
53
    {
53
    {
54
        QString mode_name = QString(mode->Hardware.c_str());
54
        QString mode_name = QString(data->mode.Hardware.c_str());
Line 55... Line 55...
55
 
55
 
56
        if (mode_name.size() == 0)
56
        if (mode_name.size() == 0)
57
        {
57
        {
58
            mode_name = QString("groundstation_log");
58
            mode_name = QString("groundstation_log");