From 3924da504a9a8347e6da22c129cd095c2c7aec8f Mon Sep 17 00:00:00 2001 From: cpscotti Date: Tue, 8 Mar 2011 21:43:56 +0000 Subject: [PATCH] Fixes lasting incom(m)ing reading misspelling; does heel/toe swap; that's it. --- PushBurton2/npushfoottick.cpp | 2 +- PushBurton2/pushdevicesholder.cpp | 4 ++-- PushBurton2/pushn8footdevice.cpp | 7 +++++-- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/PushBurton2/npushfoottick.cpp b/PushBurton2/npushfoottick.cpp index 7dbdb8f..ea64edf 100755 --- a/PushBurton2/npushfoottick.cpp +++ b/PushBurton2/npushfoottick.cpp @@ -90,7 +90,7 @@ void NPushFootTick::dump_to_xml(QXmlStreamWriter& xml) const QString NPushFootTick::get_pretty_print() const { - return QString("Foot: [%1;%2;%3]") + return QString("Foot: [%1;T:%2;H:%3]") .arg(QString(side)) .arg(QString::number(toes)) .arg(QString::number(heel)); diff --git a/PushBurton2/pushdevicesholder.cpp b/PushBurton2/pushdevicesholder.cpp index 281687f..28398ba 100755 --- a/PushBurton2/pushdevicesholder.cpp +++ b/PushBurton2/pushdevicesholder.cpp @@ -92,7 +92,7 @@ void PushDevicesHolder::push_back(PushBurtonGenericDevice* ptr) //If new device subscribes to it //PS: This enables recursion!! if(ptr->subscribesTo(iptr) || typeid(*iptr) == typeid(PushN8SimulationDevice)) { qDebug() << "Connected " << iptr->get_description() << "\'s output to " << ptr->get_description(); - ptr->connect(iptr, SIGNAL(reading_ready(NPushLogTick*)), ptr, SLOT(incomming_reading(NPushLogTick*)), Qt::UniqueConnection); + ptr->connect(iptr, SIGNAL(reading_ready(NPushLogTick*)), ptr, SLOT(incoming_reading(NPushLogTick*)), Qt::UniqueConnection); } } } @@ -103,7 +103,7 @@ void PushDevicesHolder::push_back(PushBurtonGenericDevice* ptr) if(iptr->subscribesToAny()) { if(iptr->subscribesTo(ptr)) { qDebug() << "Connected " << ptr->get_description() << "\'s output to " << iptr->get_description(); - iptr->connect(ptr, SIGNAL(reading_ready(NPushLogTick*)), iptr, SLOT(incomming_reading(NPushLogTick*)), Qt::UniqueConnection); + iptr->connect(ptr, SIGNAL(reading_ready(NPushLogTick*)), iptr, SLOT(incoming_reading(NPushLogTick*)), Qt::UniqueConnection); } } } diff --git a/PushBurton2/pushn8footdevice.cpp b/PushBurton2/pushn8footdevice.cpp index ae17fd6..7befd97 100755 --- a/PushBurton2/pushn8footdevice.cpp +++ b/PushBurton2/pushn8footdevice.cpp @@ -61,8 +61,11 @@ void PushN8FootDevice::gotDataReceived(QString data) QStringList params; if(getPackage(data, params)) { - int ntoes = params[1].toInt(); - int nheel = params[2].toInt(); +// int ntoes = params[1].toInt();//Want to flip, this is it! +// int nheel = params[2].toInt();// THIS IS THE OLD SETUP + + int ntoes = params[2].toInt();//Want to flip, this is it! + int nheel = params[1].toInt();// THIS IS THE NEW SETUP for the v3 boxes NPushFootTick * newFootTick = new NPushFootTick(side, ntoes, nheel);