stgo Posted June 5, 2019 Share Posted June 5, 2019 The sensor measuyre -273 and whatever the value I choose it is stuck as active. Is it a bug or did I miss anything ? Link to comment Share on other sites More sharing options...
Nitroturtle Posted June 5, 2019 Share Posted June 5, 2019 Is it in a vacuum? Temp sensors won't work in a vacuum. Link to comment Share on other sites More sharing options...
Nightinggale Posted June 5, 2019 Share Posted June 5, 2019 Your sensor is stuck in a vacuum. It only updates when there is a liquid or gas to measure. If you want the full story, the code is this: public void Sim200ms(float dt) { if (this.simUpdateCounter < 8) { int i = Grid.PosToCell(this); if (Grid.Mass[i] > 0f) { this.temperatures[this.simUpdateCounter] = Grid.Temperature[i]; this.simUpdateCounter++; } return; } You need to increase the simUpdateCounter in order to update the output, but it doesn't update when the mass is 0. Link to comment Share on other sites More sharing options...
stgo Posted June 5, 2019 Author Share Posted June 5, 2019 it's close too vacuum due to liquefaction of oxygen Link to comment Share on other sites More sharing options...
Gurgel Posted June 5, 2019 Share Posted June 5, 2019 Just add a pressure sensor and some logic to deal with this case. Link to comment Share on other sites More sharing options...
Nightinggale Posted June 5, 2019 Share Posted June 5, 2019 5 minutes ago, Gurgel said: Just add a pressure sensor and some logic to deal with this case. But what if there is oxygen on the pressure sensor and vacuum on the thermo sensor? In fact why is the thermo sensor needed? Just measure the temperature of the pipe content to keep that stable and add oxygen when pressure is below a certain threshold. You don't actually need to know the temperature of the oxygen. You know indirectly because if there is a pressure, it's in gas form. If there is a vacuum, it's cold enough. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.
Please be aware that the content of this thread may be outdated and no longer applicable.