Solar panels do not produce electricity while landed properly.
It happens when craft is landed and unloaded during warp. Maybe there could be simple lookup table for rough angle exposure sets (vectorwhile landed calculated on vessel unload and while in off grid sim just apply those based on surface position and sun angle ?
the same might be actually applied to craft in flight where last exposure is taken, but might be easily put into angle table so that it might process it quicker and more realistically ? https://github.com/Kerbalism/Kerbalism/blob/master/src/Kerbalism/Modules/SolarPanelFixer.cs#L409
// cosine / occlusion factor isn't updated when in analyticalSunlight / unloaded states : // - evaluting sun_dir / vessel orientation gives random results resulting in inaccurate behavior / random EC rates // - using the last calculated factor is a satisfactory simulation of a sun relative vessel attitude keeping behavior // without all the complexity of actually doing it
does this means that during unloaded state vehicle orientation for root part is random? or there is a way to actually get that in reliable way ?
I hope I could help a bit.