Skip to content

Commit

Permalink
Remise en état du Logger par compilation croisée en 64-bit
Browse files Browse the repository at this point in the history
  • Loading branch information
TheLortex committed Oct 5, 2013
1 parent 41505b4 commit dea44ba
Show file tree
Hide file tree
Showing 8 changed files with 18,476 additions and 17 deletions.
2 changes: 1 addition & 1 deletion ChronoReader
9 changes: 1 addition & 8 deletions FenPrincipale.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,14 +72,7 @@ FenPrincipale::FenPrincipale(Serial* _com) {

actTemps->start(1000);


reset_errors_timer = new QTimer();
connect(reset_errors_timer,SIGNAL(timeout()),this,SLOT(reset_error()));
reset_error();
reset_errors_timer->start(60000);


myDecoder = new YoloDecoder();
myDecoder = new CookieDecoder();
connect(myDecoder, SIGNAL(newValue(int,int,double)), sensormgr, SLOT(newValue(int,int,double)));
connect(myDecoder,SIGNAL(error_frame()), this, SLOT(error_frame()));
message("[INFO] All started !");
Expand Down
4 changes: 2 additions & 2 deletions FenPrincipale.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#include "ui_FenPrincipale.h"
#include "ChronoReader/chronoreaderwidget.h"
#include "InPut/sensormanager.h"
#include "InPut/yolodecoder.h"
#include "InPut/cookiedecoder.h"
#include "InPut/serial.h"
#include "UI/boardingtable.h"
#include "UI/graphicview.h"
Expand Down Expand Up @@ -49,7 +49,7 @@ class FenPrincipale : public QMainWindow, public Ui::FenPrincipale
QTimer *resetIndicator;
QTimer *reset_errors_timer;

YoloDecoder* myDecoder;
CookieDecoder* myDecoder;
BoardingTable* tableauBord;
MapsView* carte;
TableMgr* tableManager;
Expand Down
3 changes: 2 additions & 1 deletion InPut/cookiedecoder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ QString CookieDecoder::splitCharacter() {
return "@";
}

void CookieDecoder::decodeString(QString &str) {
void CookieDecoder::decodeString(QByteArray(&data)) {
QString str(data);

QStringList elements = str.split("$");
if(elements.size() < 6) {
Expand Down
2 changes: 1 addition & 1 deletion InPut/cookiedecoder.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class CookieDecoder : public QObject
public:
CookieDecoder();
QString splitCharacter();
void decodeString(QString &str);
void decodeString(QByteArray &str);

signals:
void newValue(int id_capteur, int id_valeur, double valeur);
Expand Down
5 changes: 2 additions & 3 deletions Logger21.pro
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ SOURCES += \
InPut/sensor.cpp \
InPut/fileimportdialog.cpp \
ChronoReader/chronoreaderwidget.cpp \
ChronoReader/TimeCalcs/timecalcs.cpp \
ChronoReader/TimeCalc/timecalcs.cpp \
ChronoReader/eventbox.cpp \
UI/graphicview.cpp \
InPut/cookiedecoder.cpp \
Expand All @@ -47,7 +47,7 @@ HEADERS += \
InPut/sensor.h \
InPut/fileimportdialog.h \
ChronoReader/chronoreaderwidget.h \
ChronoReader/TimeCalcs/timecalcs.h \
ChronoReader/TimeCalc/timecalcs.h \
ChronoReader/eventbox.h \
UI/graphicview.h \
InPut/cookiedecoder.h \
Expand Down Expand Up @@ -76,6 +76,5 @@ robotik {
linusque {
LIBS += /usr/lib/libqwt.so
LIBS += -lqjson
LIBS += -lmuparser
}

Loading

0 comments on commit dea44ba

Please sign in to comment.