Skip to content

Commit

Permalink
Fixes lasting incom(m)ing reading misspelling; does heel/toe swap; th…
Browse files Browse the repository at this point in the history
…at's it.
  • Loading branch information
cpscotti committed Mar 8, 2011
1 parent 5e17244 commit 3924da5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion PushBurton2/npushfoottick.cpp
Expand Up @@ -90,7 +90,7 @@ void NPushFootTick::dump_to_xml(QXmlStreamWriter& xml) const


QString NPushFootTick::get_pretty_print() 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(side))
.arg(QString::number(toes)) .arg(QString::number(toes))
.arg(QString::number(heel)); .arg(QString::number(heel));
Expand Down
4 changes: 2 additions & 2 deletions PushBurton2/pushdevicesholder.cpp
Expand Up @@ -92,7 +92,7 @@ void PushDevicesHolder::push_back(PushBurtonGenericDevice* ptr)
//If new device subscribes to it //PS: This enables recursion!! //If new device subscribes to it //PS: This enables recursion!!
if(ptr->subscribesTo(iptr) || typeid(*iptr) == typeid(PushN8SimulationDevice)) { if(ptr->subscribesTo(iptr) || typeid(*iptr) == typeid(PushN8SimulationDevice)) {
qDebug() << "Connected " << iptr->get_description() << "\'s output to " << ptr->get_description(); 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);
} }
} }
} }
Expand All @@ -103,7 +103,7 @@ void PushDevicesHolder::push_back(PushBurtonGenericDevice* ptr)
if(iptr->subscribesToAny()) { if(iptr->subscribesToAny()) {
if(iptr->subscribesTo(ptr)) { if(iptr->subscribesTo(ptr)) {
qDebug() << "Connected " << ptr->get_description() << "\'s output to " << iptr->get_description(); 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);
} }
} }
} }
Expand Down
7 changes: 5 additions & 2 deletions PushBurton2/pushn8footdevice.cpp
Expand Up @@ -61,8 +61,11 @@ void PushN8FootDevice::gotDataReceived(QString data)
QStringList params; QStringList params;
if(getPackage(data, params)) if(getPackage(data, params))
{ {
int ntoes = params[1].toInt(); // int ntoes = params[1].toInt();//Want to flip, this is it!
int nheel = params[2].toInt(); // 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); NPushFootTick * newFootTick = new NPushFootTick(side, ntoes, nheel);


Expand Down

0 comments on commit 3924da5

Please sign in to comment.