|
From: | afishindouban |
Subject: | [Paparazzi-devel] antenna track code |
Date: | Mon, 21 Oct 2013 00:29:37 -0500 |
Dear All
I am fresh to read into the code and make some test, in antenna track
code, I get some confuse.
In this
function, on_NAV_STATUS(IvyClientPtr app, void *user_data, int argc, char *argv[]),
calculate ant_elev.
ant_elev = atan2( (gps_alt-home_alt), sqrt(atof(argv[5])) ) * 180. / M_PI;
what is Argv[5]? sqrt(atof(argv[5])) = distance from launch point to
the nav point ? it should equal to sqrt(sqr(gps_pos_x) + sqr (gps_pos_y)),
am I right ?
by the trace of the message, I think I am wrong. someone can
give me some tips ?
Thank you so much.
kevin
|
[Prev in Thread] | Current Thread | [Next in Thread] |