|
From: | Felix Ruess |
Subject: | Re: [Paparazzi-devel] antenna track code |
Date: | Mon, 21 Oct 2013 13:07:16 +0200 |
Dear AllI 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.
_______________________________________________
Paparazzi-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/paparazzi-devel
[Prev in Thread] | Current Thread | [Next in Thread] |