|Subject:||[Paparazzi-devel] antenna track code|
|Date:||Mon, 21 Oct 2013 00:17:06 -0500|
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)) ) * 180. / M_PI;
what is Argv? sqrt(atof(argv)) = 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.
|[Prev in Thread]||Current Thread||[Next in Thread]|