[WLS] Fix defines to be used in other source files. (#3154)

This commit is contained in:
Fabien-B
2023-11-02 11:43:36 +01:00
committed by GitHub
parent decbf5c044
commit 2ba164cc41
2 changed files with 10 additions and 7 deletions
-7
View File
@@ -55,13 +55,6 @@ static void print_final_values(int n_u, int n_v, float* u, float** B, float* v,
static void print_in_and_outputs(int n_c, int n_free, float** A_free_ptr, float* d, float* p_free);
#endif
#ifndef WLS_N_U
#define WLS_N_U 6
#endif
#ifndef WLS_N_V
#define WLS_N_V 4
#endif
#define WLS_N_C ((WLS_N_U)+(WLS_N_V))
+10
View File
@@ -52,6 +52,16 @@
#ifndef WLS_ALLOC_HEADER
#define WLS_ALLOC_HEADER
#include "generated/airframe.h"
#ifndef WLS_N_U
#define WLS_N_U 6
#endif
#ifndef WLS_N_V
#define WLS_N_V 4
#endif
extern int wls_alloc(float* u, float* v,
float* umin, float* umax, float** B,