Dynamic louvers with PV following the sun

How would I go about writing a recipe for a design where the louvers are active solar panels that are dynamically oriented towards the sun all through the day?

I understand that it is possible to write a shading schedule, but is it possible to write one that controls the orientation of the geometry?