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

Unified Diff: tools/battor_agent/battor_protocol_types.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_agent_unittest.cc ('k') | tools/battor_agent/battor_sample_converter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/battor_agent/battor_protocol_types.h
diff --git a/tools/battor_agent/battor_protocol_types.h b/tools/battor_agent/battor_protocol_types.h
index 4cb8bfdc371fc3fbd95bff59f708d1489c6bc98f..9385836b1203517428e6ea458acf0ac9667e431f 100644
--- a/tools/battor_agent/battor_protocol_types.h
+++ b/tools/battor_agent/battor_protocol_types.h
@@ -101,7 +101,7 @@ struct BattOrEEPROM {
float high_gain_correction_factor;
float high_gain_correction_offset;
uint16_t high_gain_amppot;
- uint32_t sd_sr;
+ uint32_t sd_sample_rate;
uint16_t sd_tdiv;
uint16_t sd_tovf;
uint16_t sd_filpot;
@@ -128,8 +128,10 @@ struct RawBattOrSample {
int16_t current_raw;
};
-// A single BattOr sample after conversion to a real number with units.
+// A single BattOr sample after timestamp assignment and conversion to unitful
+// numbers.
struct BattOrSample {
+ double time_ms;
double voltage_mV;
double current_mA;
};
« no previous file with comments | « tools/battor_agent/battor_agent_unittest.cc ('k') | tools/battor_agent/battor_sample_converter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698