Nivekk / KOS

Fully programmable autopilot mod for KSP.
Other
80 stars 30 forks source link

Add INLIGHT: checks if solar panels are in light. #179

Closed a1270 closed 10 years ago

a1270 commented 10 years ago

Not in love with the name but my imagination has failed me.

a1270 commented 10 years ago

I need to work on this as well. EDIT: seems it was a phantom issue.

a1270 commented 10 years ago

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.

a1270 commented 10 years ago

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.