Closed a1270 closed 10 years ago
I need to work on this as well. EDIT: seems it was a phantom issue.
I'll attempt to justify the legitimacy and usefulness of this. kOS knows when it's getting power. The light sensor is basically polling to see if any solar panel is getting power. I usually pack many panels and an rtg on rovers. I want to know if it's day so i don't lurch around the surface on rtg power.
The name should probably be INLIGHT as there is no sun and it's shorter. Of course what i said above isn't what's happening in code but when the api offers better power polling i'll be sure to use it. I'll update the name after i exercise.
It does the same without that nasty foreach(). I really hope you see the light. For now i will go on with my elertricalstats work.
Not in love with the name but my imagination has failed me.