Commit b08cce7
authored
[oximeter] Add some units from physical reality (#6296)
In service of future changes to record data from power, temperature, and
fan speed sensors in Oximeter, this branch adds some physical quantities
to the `Units` enum: `Volts`, `Amps`, `DegreesCelcius`, and `Rpm`. I've
added all of these as whole numbers of the measured quantities, with the
expectation that they will probably be recorded as floating-point. We
could consider instead using a smaller unit like `MilliAmps`, and
recording them as integers, but that introduces a bunch of dimensional
analysis that I'm not sure if we want to be doing.1 parent 8592a6b commit b08cce7
3 files changed
+22
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19805 | 19805 | | |
19806 | 19806 | | |
19807 | 19807 | | |
19808 | | - | |
| 19808 | + | |
| 19809 | + | |
| 19810 | + | |
| 19811 | + | |
19809 | 19812 | | |
19810 | 19813 | | |
19811 | 19814 | | |
| |||
19814 | 19817 | | |
19815 | 19818 | | |
19816 | 19819 | | |
| 19820 | + | |
| 19821 | + | |
| 19822 | + | |
| 19823 | + | |
| 19824 | + | |
| 19825 | + | |
| 19826 | + | |
19817 | 19827 | | |
19818 | 19828 | | |
19819 | 19829 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
522 | 522 | | |
523 | 523 | | |
524 | 524 | | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
525 | 531 | | |
526 | 532 | | |
527 | 533 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
179 | 179 | | |
180 | 180 | | |
181 | 181 | | |
182 | | - | |
183 | 182 | | |
184 | 183 | | |
185 | 184 | | |
| |||
189 | 188 | | |
190 | 189 | | |
191 | 190 | | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
192 | 196 | | |
193 | 197 | | |
194 | 198 | | |
| |||
0 commit comments