diff --git a/conf/airframes/TUDELFT/tudelft_KM_conf.xml b/conf/airframes/TUDELFT/tudelft_KM_conf.xml index 23fcf08951..7b09a5aa81 100644 --- a/conf/airframes/TUDELFT/tudelft_KM_conf.xml +++ b/conf/airframes/TUDELFT/tudelft_KM_conf.xml @@ -2,12 +2,12 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - -
- - - - - - - - - -
- - - - - - - -
- -
- - - - - - - - - - - - - - - - - - - - - -
- - - -
- - - - - - -
- -
- - -
- - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - - - -
- -
- - - - - - - -
- -
- - - -
- -
- - - - -
- -
- - - - - -
-
diff --git a/conf/modules/cv_opticflow.xml b/conf/modules/cv_opticflow.xml index 09f0cec153..76bcc87172 100644 --- a/conf/modules/cv_opticflow.xml +++ b/conf/modules/cv_opticflow.xml @@ -39,8 +39,6 @@ - - @@ -62,7 +60,6 @@ - @@ -94,24 +91,6 @@ - - - include $(CFG_SHARED)/udp.makefile - - VIEWVIDEO_HOST ?= $(MODEM_HOST) - VIEWVIDEO_PORT_OUT ?= 5000 - VIEWVIDEO_BROADCAST ?= TRUE - VIEWVIDEO_USE_NETCAT ?= FALSE - - VIEWVID_CFLAGS = -DVIEWVIDEO_HOST=$(VIEWVIDEO_HOST) -DVIEWVIDEO_PORT_OUT=$(VIEWVIDEO_PORT_OUT) - ifneq (,$(findstring $(VIEWVIDEO_USE_NETCAT),0 FALSE)) - ap.CFLAGS += $(VIEWVID_CFLAGS) -DVIEWVIDEO_BROADCAST=$(VIEWVIDEO_BROADCAST) - nps.CFLAGS += $(VIEWVID_CFLAGS) -DVIEWVIDEO_BROADCAST=FALSE - else - $(TARGET).CFLAGS += $(VIEWVID_CFLAGS) -DVIEWVIDEO_USE_NETCAT - endif - - diff --git a/sw/airborne/modules/computer_vision/opticflow/opticflow_calculator.c b/sw/airborne/modules/computer_vision/opticflow/opticflow_calculator.c index 24bbf8c890..aa3a84ec88 100644 --- a/sw/airborne/modules/computer_vision/opticflow/opticflow_calculator.c +++ b/sw/airborne/modules/computer_vision/opticflow/opticflow_calculator.c @@ -161,7 +161,13 @@ void opticflow_calc_init(struct opticflow_t *opticflow, uint16_t w, uint16_t h) opticflow->fast9_min_distance = OPTICFLOW_FAST9_MIN_DISTANCE; } - +/** + * Run the optical flow with fast9 and lukaskanade on a new image frame + * @param[in] *opticflow The opticalflow structure that keeps track of previous images + * @param[in] *state The state of the drone + * @param[in] *img The image frame to calculate the optical flow from + * @param[out] *result The optical flow result + */ void calc_fast9_lukas_kanade(struct opticflow_t *opticflow, struct opticflow_state_t *state, struct image_t *img, struct opticflow_result_t *result) { diff --git a/sw/airborne/modules/computer_vision/opticflow_module.c b/sw/airborne/modules/computer_vision/opticflow_module.c index 430594bef5..c3c2c44cfc 100644 --- a/sw/airborne/modules/computer_vision/opticflow_module.c +++ b/sw/airborne/modules/computer_vision/opticflow_module.c @@ -68,16 +68,6 @@ PRINT_CONFIG_MSG("OPTICFLOW_DEVICE_SIZE = " _SIZE_HELPER(OPTICFLOW_DEVICE_SIZE)) #endif PRINT_CONFIG_VAR(OPTICFLOW_DEVICE_BUFFERS) -#ifndef USE_EDGEFLOW -#define USE_EDGEFLOW FALSE -#endif -PRINT_CONFIG_VAR(USE_EDGEFLOW) - -#ifndef USE_LK -#define USE_LK TRUE ///< The video device buffers (the amount of V4L2 buffers) -#endif -PRINT_CONFIG_VAR(USE_LK) - /* The main opticflow variables */ struct opticflow_t opticflow; ///< Opticflow calculations static struct opticflow_result_t opticflow_result; ///< The opticflow result