![]() |
OT - Adding Roll & pitch to sat dish pointing - Printable Version +- HP Forums (https://archived.hpcalc.org/museumforum) +-- Forum: HP Museum Forums (https://archived.hpcalc.org/museumforum/forum-1.html) +--- Forum: Old HP Forum Archives (https://archived.hpcalc.org/museumforum/forum-2.html) +--- Thread: OT - Adding Roll & pitch to sat dish pointing (/thread-177461.html) |
OT - Adding Roll & pitch to sat dish pointing - Giuseppe Marullo - 01-22-2011 Hi all, A friend of mine asked help to develop a automagic satellite dish tracker (stationary). Basically, we put togheter compass and GPS data to move a dish automatically to receive HotBird. We have tested the basic formulas and they seems okay against the tables provided for latitude and longitude. Now I would like to add pitch and roll of the truck in the equations to account for small angles that could lead to errors. I have roll&pitch from 2 accelerometers in degrees resolution -+1 degrees increment (or I could access raw accelerometer data). These are the formulas we are using:
PosLat = (2*M_PI*PosLat) / 360.0; // truck latitude to radians v1 = 6.612 * cos(PosLat)*cos(PosLong-SatLong)-1; v2 = 6.612 * sqrt( 1-(pow(cos(PosLat),2)) * pow((cos(PosLong- SatLong)),2));
SatElevation = atan(v1/v2); clear();
SatElevation = (SatElevation * 360.0) / (2*M_PI); // sat elevation in deg
How could I modify the formulas to account for pitch & roll of the truck? TIA. Giuseppe Marullo
giuseppe.marullonospam@iname.com |