Aurora.3
Aurora.3 copied to clipboard
Implemented SI prefixes (KILO, MEGA, GIGA, TERA etc.)
Implemented SI prefixes (KILO, MEGA, GIGA, TERA etc.)
!review
If there is nothing besides watts that is using SI Prefixes, what is the advantage of implementing them in this way? (Given that most of them are not used at the moment)
If there is nothing besides watts that is using SI Prefixes, what is the advantage of implementing them in this way? (Given that most of them are not used at the moment)
- It's the SI powers, currently it's used for watts, we can use it for meters, eg. it can be applied to the overmap speeds, to vectors, for math operations, etcetera
- If/when we add new units, it's there ready
- It's in the air to update our power system to use joules instead, for example
- It separates the quantity from the matter -> if we swap watts to something else, you just have to update the specific metric, not everything else that comes with it
- We could already use this for the chemical energy system for example
- If you need 0.001 units of a medication to do something, you can express it as 1 MILLI (LITER? if we stop using fantasy units)
- It makes powers (or anything else) conversions evident in the code (
data["power_draw"] = active_power_usage * MILLI WATTS)