Skip to content
Snippets Groups Projects
Commit a0f84bd0 authored by Alberto Nidasio's avatar Alberto Nidasio
Browse files

[Servo] Fixed ServoData header and print functions

parent 465b406e
Branches
Tags
No related merge requests found
......@@ -34,11 +34,12 @@ struct ServoData
uint8_t channel;
float position;
static std::string header() { return "timestamp,position\n"; }
static std::string header() { return "timestamp,timer,channel,position\n"; }
void print(std::ostream& os) const
{
os << timestamp << "," << position << "\n";
os << timestamp << "," << timer << "," << channel << "," << position
<< "\n";
}
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment