33 #include "generated/airframe.h"
47 radius = fabs(radius);
53 float d = sqrt(l2_l1_x * l2_l1_x + l2_l1_y * l2_l1_y);
55 float u_x = l2_l1_x / d;
56 float u_y = l2_l1_y / d;
64 struct point l2_c2 = { l2_c1.
x + 2 * radius * cos(angle) ,
65 l2_c1.
y - 2 * radius * sin(angle),
75 struct point l1_c3 = { l1_c2.
x - 2 * radius * cos(angle) ,
76 l1_c2.
y + 2 * radius * sin(angle),
80 float qdr_out_2_1 = M_PI / 3. - atan2(u_y, u_x);
81 float qdr_out_2_2 = -M_PI / 3. - atan2(u_y, u_x);
82 float qdr_out_2_3 = M_PI - atan2(u_y, u_x);