The following warnings occurred:
Warning [2] Undefined array key 177461 - Line: 275 - File: inc/plugins/threaded_mode.php PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php 275 errorHandler->error_callback
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Undefined variable $thread - Line: 295 - File: inc/plugins/threaded_mode.php PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php 295 errorHandler->error_callback
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Trying to access array offset on value of type null - Line: 295 - File: inc/plugins/threaded_mode.php PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php 295 errorHandler->error_callback
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Undefined variable $fid - Line: 295 - File: inc/plugins/threaded_mode.php PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php 295 errorHandler->error_callback
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Undefined array key 177461 - Line: 331 - File: inc/plugins/threaded_mode.php PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php 331 errorHandler->error_callback
/inc/plugins/threaded_mode.php 304 ThreadedMode::buildtree
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Undefined variable $theme - Line: 3 - File: inc/plugins/threaded_mode.php(305) : eval()'d code PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php(305) : eval()'d code 3 errorHandler->error_callback
/inc/plugins/threaded_mode.php 305 eval
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Trying to access array offset on value of type null - Line: 3 - File: inc/plugins/threaded_mode.php(305) : eval()'d code PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php(305) : eval()'d code 3 errorHandler->error_callback
/inc/plugins/threaded_mode.php 305 eval
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Undefined variable $theme - Line: 3 - File: inc/plugins/threaded_mode.php(305) : eval()'d code PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php(305) : eval()'d code 3 errorHandler->error_callback
/inc/plugins/threaded_mode.php 305 eval
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Trying to access array offset on value of type null - Line: 3 - File: inc/plugins/threaded_mode.php(305) : eval()'d code PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php(305) : eval()'d code 3 errorHandler->error_callback
/inc/plugins/threaded_mode.php 305 eval
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Undefined variable $lang - Line: 5 - File: inc/plugins/threaded_mode.php(305) : eval()'d code PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php(305) : eval()'d code 5 errorHandler->error_callback
/inc/plugins/threaded_mode.php 305 eval
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Attempt to read property "messages_in_thread" on null - Line: 5 - File: inc/plugins/threaded_mode.php(305) : eval()'d code PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php(305) : eval()'d code 5 errorHandler->error_callback
/inc/plugins/threaded_mode.php 305 eval
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks





OT - Adding Roll & pitch to sat dish pointing



#2

Hi all,
I don't know where to look so I am asking for some assistance here.

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
PosLong = (2*M_PI*PosLong) / 360.0; // truck longitude to radians
SatLong = (2*M_PI*SatLong) / 360.0; // sat longitude 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);
SatAzimuth = M_PI + atan( tan(PosLong-SatLong) / sin(PosLat) );
SatPolarization = -atan( sin(PosLong-SatLong) /tan(PosLat) );

clear();

SatElevation = (SatElevation * 360.0) / (2*M_PI); // sat elevation in deg
SatAzimuth = (SatAzimuth * 360.0) / (2*M_PI); // sat azimuth in deg

How could I modify the formulas to account for pitch & roll of the truck?
Could you eventually point me to any site that could explain to me easily how to achieve this?

TIA.

Giuseppe Marullo

giuseppe.marullonospam@iname.com
PS: remove nospam to reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  HP Prime: adding an entry to a vector Alberto Candel 12 3,903 12-02-2013, 01:18 PM
Last Post: Alberto Candel
  Roll-down key in HP-15C Steve Ross 6 2,219 10-15-2013, 04:12 AM
Last Post: Nick_S
  (Printer) Roll Call Matt Agajanian 2 1,307 08-26-2013, 09:48 PM
Last Post: Matt Agajanian
  [hypothetical] adding mass storage functions to a 42S Eric Smith 12 3,087 08-26-2012, 02:20 PM
Last Post: Eric Smith
  Old HP Calculators on the SAT Fouad M. Kaadou 13 3,285 08-25-2012, 09:32 AM
Last Post: David Tellet
  WP 34S adding own conversions Lourensk 4 1,494 03-24-2012, 02:45 PM
Last Post: Walter B
  TFF update; Ángel's on a roll Geir Isene 8 2,373 11-02-2011, 02:20 PM
Last Post: Ángel Martin
  Adding a crystal to the wp34s - how? Cristian Arezzini 5 1,782 07-10-2011, 11:07 AM
Last Post: Marcus von Cube, Germany
  Adding a Crystal to a WP34s Gerry Schultz 6 1,967 06-24-2011, 03:38 AM
Last Post: Marcus von Cube, Germany
  Adding a crystal to a 20b or 30b Marcus von Cube, Germany 7 1,895 05-18-2011, 01:51 AM
Last Post: Marcus von Cube, Germany

Forum Jump: