Posted 30 August 2013 - 03:55 PM
Hello everyone!
I made a program for keeping track of my steel tanks that hold oil and fuel. If fuel gets below 90 percent and there is a sufficient supply of oil, it will make fuel. The problem is is that the data sometimes picks out the wrong data. The code is here: http://pastebin.com/pxNmD63q
Is there any way to prevent that? The strange thing is, it does it every other 2 times. I put a print in there and I would get these results (examples):
The last values can represent the pressure and capacity of the valve of the steel tank. The mod used is OpenPeripherals and I used Wired Modems to connect to the steel tank valves.
I made a program for keeping track of my steel tanks that hold oil and fuel. If fuel gets below 90 percent and there is a sufficient supply of oil, it will make fuel. The problem is is that the data sometimes picks out the wrong data. The code is here: http://pastebin.com/pxNmD63q
Is there any way to prevent that? The strange thing is, it does it every other 2 times. I put a print in there and I would get these results (examples):
325675: 400000
367587: 400000
19: 20
The last values can represent the pressure and capacity of the valve of the steel tank. The mod used is OpenPeripherals and I used Wired Modems to connect to the steel tank valves.