diff --git a/conf/airframes/examples/microjet.xml b/conf/airframes/examples/microjet.xml index 04b61eff0a..617f047077 100644 --- a/conf/airframes/examples/microjet.xml +++ b/conf/airframes/examples/microjet.xml @@ -197,6 +197,7 @@ + diff --git a/conf/firmwares/subsystems/fixedwing/navigation_extra.makefile b/conf/firmwares/subsystems/fixedwing/navigation_extra.makefile index c00b65d785..49fe8c8682 100644 --- a/conf/firmwares/subsystems/fixedwing/navigation_extra.makefile +++ b/conf/firmwares/subsystems/fixedwing/navigation_extra.makefile @@ -12,5 +12,4 @@ $(TARGET).srcs += $(SRC_SUBSYSTEMS)/navigation/traffic_info.c $(TARGET).srcs += $(SRC_SUBSYSTEMS)/navigation/nav_survey_rectangle.c $(TARGET).srcs += $(SRC_SUBSYSTEMS)/navigation/OSAMNav.c -$(TARGET).srcs += $(SRC_SUBSYSTEMS)/navigation/snav.c diff --git a/conf/flight_plans/nav_modules.xml b/conf/flight_plans/nav_modules.xml index d515904f49..07fffc18d6 100644 --- a/conf/flight_plans/nav_modules.xml +++ b/conf/flight_plans/nav_modules.xml @@ -80,6 +80,16 @@ + + + + + + + + + + diff --git a/conf/flight_plans/snav.xml b/conf/flight_plans/snav.xml deleted file mode 100644 index d506a8b9d9..0000000000 --- a/conf/flight_plans/snav.xml +++ /dev/null @@ -1,68 +0,0 @@ - - - -
-#include "subsystems/datalink/datalink.h" -#include "subsystems/navigation/snav.h" -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
diff --git a/conf/modules/nav_line.xml b/conf/modules/nav_line.xml index abd6b45266..4ce20d208c 100644 --- a/conf/modules/nav_line.xml +++ b/conf/modules/nav_line.xml @@ -1,6 +1,6 @@ - + Fixedwing navigation along a line with nice U-turns. diff --git a/conf/modules/nav_smooth.xml b/conf/modules/nav_smooth.xml new file mode 100644 index 0000000000..87272a6d93 --- /dev/null +++ b/conf/modules/nav_smooth.xml @@ -0,0 +1,15 @@ + + + + + + Smooth navigation to wp_a along an arc (around wp_cd), a segment (from wp_rd to wp_ta) and a second arc (around wp_ca). + + +
+ +
+ + + +
diff --git a/sw/airborne/modules/nav/nav_line.c b/sw/airborne/modules/nav/nav_line.c index 69434451a3..a5cd601c32 100644 --- a/sw/airborne/modules/nav/nav_line.c +++ b/sw/airborne/modules/nav/nav_line.c @@ -20,13 +20,13 @@ */ /** - * @file subsystems/navigation/nav_line.c + * @file modules/nav/nav_line.c * * Fixedwing navigation along a line with nice U-turns. */ #include "generated/airframe.h" -#include "subsystems/navigation/nav_line.h" +#include "modules/nav/nav_line.h" #include "subsystems/nav.h" /** Status along the pattern */ diff --git a/sw/airborne/modules/nav/nav_line.h b/sw/airborne/modules/nav/nav_line.h index 4030b967e0..92ae949bf2 100644 --- a/sw/airborne/modules/nav/nav_line.h +++ b/sw/airborne/modules/nav/nav_line.h @@ -20,7 +20,7 @@ */ /** - * @file subsystems/navigation/nav_line.h + * @file modules/nav/nav_line.h * * Fixedwing navigation along a line with nice U-turns. */ diff --git a/sw/airborne/subsystems/navigation/snav.c b/sw/airborne/modules/nav/nav_smooth.c similarity index 98% rename from sw/airborne/subsystems/navigation/snav.c rename to sw/airborne/modules/nav/nav_smooth.c index 253e35021b..a7b5371ae0 100644 --- a/sw/airborne/subsystems/navigation/snav.c +++ b/sw/airborne/modules/nav/nav_smooth.c @@ -20,7 +20,7 @@ */ /** - * @file subsystems/navigation/snav.c + * @file modules/nav/nav_smooth.c * * Smooth navigation to wp_a along an arc (around wp_cd), * a segment (from wp_rd to wp_ta) and a second arc (around wp_ca). @@ -28,7 +28,7 @@ #include #include "generated/airframe.h" -#include "subsystems/navigation/snav.h" +#include "modules/nav/nav_smooth.h" #include "state.h" #include "subsystems/nav.h" #include "subsystems/gps.h" diff --git a/sw/airborne/subsystems/navigation/snav.h b/sw/airborne/modules/nav/nav_smooth.h similarity index 97% rename from sw/airborne/subsystems/navigation/snav.h rename to sw/airborne/modules/nav/nav_smooth.h index 5bbc2d3957..cfece53816 100644 --- a/sw/airborne/subsystems/navigation/snav.h +++ b/sw/airborne/modules/nav/nav_smooth.h @@ -20,7 +20,7 @@ */ /** - * @file subsystems/navigation/snav.h + * @file modules/nav/nav_smooth.h * * Smooth navigation to wp_a along an arc (around wp_cd), * a segment (from wp_rd to wp_ta) and a second arc (around wp_ca). @@ -31,6 +31,7 @@ #include "std.h" + extern float snav_desired_tow; /* time of week, s */ bool_t snav_init(uint8_t wp_a, float desired_course_rad, float radius); @@ -40,5 +41,3 @@ bool_t snav_circle2(void); bool_t snav_on_time(float radius); #endif // SNAV_H - -