/tg/ Station 13 - Modules - TypesVar Details - Proc Details

solar

Vars

azimuth_current[0-360) degrees, which direction are we facing?
needs_to_turndo we need to turn next tick?
needs_to_update_solar_exposuredo we need to call update_solar_exposure() next tick?
sunfrac[0-1] measure of obscuration -- multipllier against power generation

Procs

get_panel_transformGet the 2.5D transform for the panel, given an angle Arguments:
occlusion_setuptrace towards sun to see if we're in shadow
update_solar_exposurecalculates the fraction of the sunlight that the panel receives

Var Details

azimuth_current

[0-360) degrees, which direction are we facing?

needs_to_turn

do we need to turn next tick?

needs_to_update_solar_exposure

do we need to call update_solar_exposure() next tick?

sunfrac

[0-1] measure of obscuration -- multipllier against power generation

Proc Details

get_panel_transform

Get the 2.5D transform for the panel, given an angle Arguments:

occlusion_setup

trace towards sun to see if we're in shadow

update_solar_exposure

calculates the fraction of the sunlight that the panel receives