created a generic "units" module, which should be helpful in keeping certain units Correct.
This commit is contained in:
@@ -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),
|
||||
}
|
||||
Reference in New Issue
Block a user