diff --git a/conf/airframes/examples/microjet.xml b/conf/airframes/examples/microjet.xml index 54f9c79fd9..13163b80fb 100644 --- a/conf/airframes/examples/microjet.xml +++ b/conf/airframes/examples/microjet.xml @@ -195,6 +195,7 @@ + diff --git a/conf/firmwares/subsystems/fixedwing/navigation_extra.makefile b/conf/firmwares/subsystems/fixedwing/navigation_extra.makefile index 7bfa74de6e..b5448fa32e 100644 --- a/conf/firmwares/subsystems/fixedwing/navigation_extra.makefile +++ b/conf/firmwares/subsystems/fixedwing/navigation_extra.makefile @@ -13,6 +13,5 @@ $(TARGET).srcs += $(SRC_SUBSYSTEMS)/navigation/nav_line.c $(TARGET).srcs += $(SRC_SUBSYSTEMS)/navigation/OSAMNav.c $(TARGET).srcs += $(SRC_SUBSYSTEMS)/navigation/snav.c -$(TARGET).srcs += $(SRC_SUBSYSTEMS)/navigation/poly_survey_adv.c $(TARGET).srcs += $(SRC_SUBSYSTEMS)/navigation/border_line.c diff --git a/conf/flight_plans/nav_modules.xml b/conf/flight_plans/nav_modules.xml new file mode 100644 index 0000000000..43ec60479a --- /dev/null +++ b/conf/flight_plans/nav_modules.xml @@ -0,0 +1,107 @@ + + + +
+#include "subsystems/navigation/nav_line.h" +#include "subsystems/datalink/datalink.h" +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/conf/modules/nav_survey_poly_adv.xml b/conf/modules/nav_survey_poly_adv.xml new file mode 100644 index 0000000000..aa3fcb1873 --- /dev/null +++ b/conf/modules/nav_survey_poly_adv.xml @@ -0,0 +1,30 @@ + + + + + + Advanced polygon survey for fixedwings from Uni Stuttgart. + In the flight plan, the survey blocks call init and run functions: + 1- Initialize the variables needed for the survey to start, with init_poly_survey_adv(first_wp, size,angle, sweep_width, shot_dist, min_rad, altitude): + first_wp the first Waypoint of the polygon (WP_waypoint_name) + size the number of points that make up the polygon + angle angle in which to do the flyovers + sweep_width distance between the sweeps + shot_dist distance between the shots + min_rad minimal radius when navigating + altitude the altitude that must be reached before the flyover starts + 2- Run the survey with poly_survey_adv() + Block example: + + + +
+ +
+ + + +
diff --git a/sw/airborne/subsystems/navigation/poly_survey_adv.c b/sw/airborne/modules/nav/nav_survey_poly_adv.c similarity index 99% rename from sw/airborne/subsystems/navigation/poly_survey_adv.c rename to sw/airborne/modules/nav/nav_survey_poly_adv.c index c3113c4650..80f71a5128 100644 --- a/sw/airborne/subsystems/navigation/poly_survey_adv.c +++ b/sw/airborne/modules/nav/nav_survey_poly_adv.c @@ -20,13 +20,13 @@ */ /** - * @file subsystems/navigation/poly_survey_adv.c + * @file modules/nav/nav_survey_poly_adv.c * * Advanced polygon survey for fixedwings from Uni Stuttgart. * */ -#include "poly_survey_adv.h" +#include "nav_survey_poly_adv.h" #include "subsystems/nav.h" #include "state.h" diff --git a/sw/airborne/subsystems/navigation/poly_survey_adv.h b/sw/airborne/modules/nav/nav_survey_poly_adv.h similarity index 96% rename from sw/airborne/subsystems/navigation/poly_survey_adv.h rename to sw/airborne/modules/nav/nav_survey_poly_adv.h index c4787263ac..99921aa49f 100644 --- a/sw/airborne/subsystems/navigation/poly_survey_adv.h +++ b/sw/airborne/modules/nav/nav_survey_poly_adv.h @@ -20,7 +20,7 @@ */ /** - * @file subsystems/navigation/poly_survey_adv.h + * @file modules/nav/nav_survey_poly_adv.h * * Advanced polygon survey for fixedwings from Uni Stuttgart. *