Adds gas mixing proc and updates gas mixer

Also includes a whole bunch of fixes and updates for atmos machinery
This commit is contained in:
mwerezak
2014-08-02 17:43:08 -04:00
parent d034511ee6
commit 3647fa4d7d
13 changed files with 244 additions and 179 deletions

View File

@@ -93,12 +93,8 @@ Thus, the two variables affect pump operation are set in New():
use_power = 0 //don't force update - easier on CPU
last_power_draw = 0
last_flow_rate = 0
else if (power_draw > 0)
handle_power_draw(power_draw)
last_power_draw = power_draw
else
handle_power_draw(idle_power_usage)
last_power_draw = idle_power_usage
last_power_draw = handle_power_draw(power_draw)
return 1