Skip to content

Commit

Permalink
Update with fixes mentioned in PR
Browse files Browse the repository at this point in the history
  • Loading branch information
MSECode committed Oct 3, 2024
1 parent 05719b6 commit c7dafef
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions src/telemetryDeviceDumper/TelemetryDeviceDumper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,6 @@ bool TelemetryDeviceDumper::openRemapperControlBoard(yarp::os::Searchable& confi
int axes = 0;
ok = ok && remappedControlBoardInterfaces.encs->getAxes(&axes);
if (ok) {
yDebug() << "size of getAxes is:" << axes;
this->resizeBuffers(axes);
}
else {
Expand Down Expand Up @@ -389,7 +388,7 @@ void TelemetryDeviceDumper::resizeBuffers(int size) {
this->interactionModes.resize(size);
// OdometryData has 9 fields
this->odometryData.resize(9);
//this->rawDataValuesMap.clear();
this->rawDataValuesMap.clear();

}

Expand Down Expand Up @@ -457,12 +456,6 @@ bool TelemetryDeviceDumper::attachAll(const yarp::dev::PolyDriverList& device2at
for (auto [k, m] : metadata.metadataMap)
{
ok = ok && bufferManager.addChannel({ "raw_data_values::"+k, {static_cast<uint16_t>(m.size), 1}, m.rawValueNames });
yDebug() << "Add to channel key:" << k << "with a number of elements:" << m.size << "and elements name:";
for (size_t e = 0; e < m.size; e++)
{
yDebug() << m.rawValueNames[e];
}

}
}

Expand Down Expand Up @@ -768,9 +761,6 @@ void TelemetryDeviceDumper::readRawValuesData()
{
bufferManager.push_back(value, "raw_data_values::"+key);
}


//bufferManager.push_back(std::vector<std::int32_t>(), "raw_data_values");
}

}
Expand Down

0 comments on commit c7dafef

Please sign in to comment.