I have built a 2 axis solar array that uses linear actuators to move the panels in X and Y.

I have found many resources that allow me to determin the sun's altitude (elevation) and azimuth (degrees from North) for any given day/time and location on the face of the earth, and even the Hour Angle to look at the sun directly.

What my problem is that these equations are based on having the X axis and Y axis line up with North/South East/West. So that say the elevation is 25deg and the Hour angel is 35 you set your panel to have its X axis at 25 and Y at 35 and your panel should be perpendicular to the the rays of the sun....

Now my panel is not lined up north and south/east and west due to propery lines and fences etc... Instead of my panels facing 180 due south, they face 230 south.

I need to be able to take the co-ordinates calculated for elevation and hour angle and convert them to elevation and angle for my panels that are skewed. And as such manipulate the actuators with software on a micro controller to adjust them properly.

I have been out of advanced math for more than 2 decades and can't recall what to use to compute my skew...

Any help would be wonderfully appreciated!

Thanks.