Skip to content

Commit

Permalink
Merge pull request #539 from Duet3D/closed-loop-control
Browse files Browse the repository at this point in the history
Added timestamp to closed loop datapackets
  • Loading branch information
dc42 authored Aug 24, 2021
2 parents 953f16f + 3487b46 commit 7806332
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ClosedLoop/ClosedLoop.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ static bool OpenDataCollectionFile(String<MaxFilenameLength> filename, unsigned
// Write the header line
{
String<StringLength500> temp;
temp.printf("Sample");
temp.copy("Sample,Timestamp");
if (filterRequested & CL_RECORD_RAW_ENCODER_READING) {temp.cat(",Raw Encoder Reading");}
if (filterRequested & CL_RECORD_CURRENT_MOTOR_STEPS) {temp.cat(",Current Motor Steps");}
if (filterRequested & CL_RECORD_TARGET_MOTOR_STEPS) {temp.cat(",Target Motor Steps");}
Expand Down Expand Up @@ -198,7 +198,7 @@ void ClosedLoop::ProcessReceivedData(CanAddress src, const CanMessageClosedLoopD
if (f != nullptr)
{
unsigned int numSamples = msg.numSamples;
const size_t variableCount = msg.GetFilterSetBits();
const size_t variableCount = msg.GetVariableCount();

while (numSamples != 0)
{
Expand Down

0 comments on commit 7806332

Please sign in to comment.