Thanks. so on the solar tracking
I have this:
Global2Local(rsuninv, rsunloc);
Solpangle = (PI * ((solp_rot_proc * 2))); // current rotation angle of panels
//double sunangle = atan2(-rsunloc.x, rsunloc.z); // current angle of sun on ZX plane relative to z axis
double sunangle = atan2(rsunloc.z, rsunloc.y); // current angle of sun on Zy plane relative to X axis
but I think it needs to be 90 degrees off set
going to fix the animations
I have this:
Global2Local(rsuninv, rsunloc);
Solpangle = (PI * ((solp_rot_proc * 2))); // current rotation angle of panels
//double sunangle = atan2(-rsunloc.x, rsunloc.z); // current angle of sun on ZX plane relative to z axis
double sunangle = atan2(rsunloc.z, rsunloc.y); // current angle of sun on Zy plane relative to X axis
but I think it needs to be 90 degrees off set
going to fix the animations


