created a generic "units" module, which should be helpful in keeping certain units Correct.

This commit is contained in:
2026-05-24 10:34:40 -05:00
parent 0846808a4a
commit 1e5f8c15e4
4 changed files with 44 additions and 18 deletions
+14
View File
@@ -0,0 +1,14 @@
pub enum Current {
MilliAmps(u32),
MicroAmps(u32),
}
pub enum Voltage {
MilliVolts(u32),
MicroVolts(u32),
}
pub enum Angle {
Degrees(f32),
Radians(f32),
}