Subversion Repositories Projects

Compare Revisions

Ignore whitespace Rev 449 → Rev 448

/QMK-Groundstation/branches/libMK/Forms/mktool.cpp
61,7 → 61,6
 
// Tab mit Debug-Elementen verbergen
tab_Main->removeTab(6);
 
// Develop - Nicht gebrauchte sachen abschalten.
pb_SettingsReset->hide();
pb_Flash->hide();
202,7 → 201,7
data = new KopterData();
 
//new QT-Communication object
com = new QTSerialCommunication();
com = new QTCommunication();
 
//create handler that handles incomming data
handler = new Handler(com, data);
420,13 → 419,13
 
void MKTool::slot_Test()
{
// sRxData RX;
sRxData RX;
 
// RX.str = IN->text().toLatin1().data();
RX.str = IN->text().toLatin1().data();
 
// RX.input = (char *)RX.str.c_str();
RX.input = (char *)RX.str.c_str();
 
// slot_newData(RX);
slot_newData(RX);
}
 
// KML-Datei nach Wegpunkt parsen
771,6 → 770,8
 
void MKTool::slot_MAP_SetWayPoints(QList<sWayPoint> l_WayPoints)
{
//FIXME: Put this in libMK/Handler.cpp or libMK/NaviCtrl.cpp
 
double Longitude, Latitude;
 
// delete waypoint-list
1336,8 → 1337,6
}
}
 
//FIXME: HERE!
/*
void MKTool::new_NaviData(sRxData RX)
{
// qDebug("Navi-Data");
1424,13 → 1423,12
QMK_Server->NewPosition(naviData);
}
}
*/
 
// Kopter-Kommunikations-Bereich, Befehle senden und Daten empfangen
////////////////////////////////////////////////////////////////////
 
// Neues Datenpacket empfangen -> Verarbeiten
//FIXME: HERE!
/*void MKTool::slot_newData(sRxData RX) // DONE 0.71g
void MKTool::slot_newData(sRxData RX) // DONE 0.71g
{
//handler->receiveData(RX)
 
1442,7 → 1440,7
 
slot_showTerminal(1, QString(RX.str.c_str()));
}
*/
 
void MKTool::slot_showTerminal(int Typ, QString Text)
{
switch(Typ)