fixed Vis timestamp issue
This commit is contained in:
@@ -138,11 +138,17 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
uint64_t firstTs = 0;
|
||||
void setTimestamp(uint64_t ts) {
|
||||
static uint64_t firstTs = ts;
|
||||
if (firstTs == 0) {firstTs = ts;}
|
||||
//static uint64_t firstTs = ts;
|
||||
gp << "set label 1 \"" << ((ts-firstTs)/1000.0f) << "\" at screen 0.02,0.98\n";
|
||||
}
|
||||
|
||||
void resetTimestamp() {
|
||||
firstTs = 0;
|
||||
}
|
||||
|
||||
void setFilteringMedian(double median){
|
||||
gp << "set label 2 \"" << median << "\" at screen 0.02,0.90\n";
|
||||
}
|
||||
|
||||
@@ -363,6 +363,7 @@ public:
|
||||
//std::ofstream statsout2("/tmp/smoothed_" + runName + ".stats");
|
||||
//stats.reset();
|
||||
bf->reset();
|
||||
vis.resetTimestamp();
|
||||
|
||||
MyState estBF;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user