Posted 29 July 2015 - 02:39 AM
Current code:
http://pastebin.com/7eNAdg9e
Hi, Im writing a basic code to monitor a powercube. I managed to get most of it working but i cant seem to get the total RF usage to work correctly currently its just adding to it self over and over.
I belive it has something to do with the "current" Value but i can work out how to fix it.
Could anyone offer any addvice?
Thanks Sky
http://pastebin.com/7eNAdg9e
Hi, Im writing a basic code to monitor a powercube. I managed to get most of it working but i cant seem to get the total RF usage to work correctly currently its just adding to it self over and over.
usage = current-test.getEnergyStored()
m.write("Usage: "..usage)
I belive it has something to do with the "current" Value but i can work out how to fix it.
Could anyone offer any addvice?
Thanks Sky