Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8)

Unified Diff: tools/battor_agent/battor_sample_converter.h

Issue 1586173002: tools/battor_agent: Prints real BattOr samples instead of raw ones (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@update_eeprom
Patch Set: Fixed size_t build error Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/battor_agent/battor_protocol_types.h ('k') | tools/battor_agent/battor_sample_converter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/battor_agent/battor_sample_converter.h
diff --git a/tools/battor_agent/battor_sample_converter.h b/tools/battor_agent/battor_sample_converter.h
index c22084485c5b993592b71325b9222976bdb1fe91..d02b0bb34c583c9238e46d7fd9aee7634b72c76b 100644
--- a/tools/battor_agent/battor_sample_converter.h
+++ b/tools/battor_agent/battor_sample_converter.h
@@ -5,6 +5,7 @@
#ifndef TOOLS_BATTOR_AGENT_BATTOR_SAMPLE_CONVERTER_H_
#define TOOLS_BATTOR_AGENT_BATTOR_SAMPLE_CONVERTER_H_
+#include <stddef.h>
#include <vector>
#include "tools/battor_agent/battor_protocol_types.h"
@@ -27,8 +28,9 @@ class BattOrSampleConverter {
const std::vector<RawBattOrSample>& calibration_frame);
virtual ~BattOrSampleConverter();
- // Converts a raw sample to a calibrated one.
- BattOrSample ToSample(const RawBattOrSample& sample) const;
+ // Converts a raw sample to a unitful one with a timestamp.
+ BattOrSample ToSample(const RawBattOrSample& sample,
+ size_t sample_number) const;
private:
// The BattOr's EEPROM, which stores some conversion parameters we need.
« no previous file with comments | « tools/battor_agent/battor_protocol_types.h ('k') | tools/battor_agent/battor_sample_converter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698