Skip to content

Commit

Permalink
[WLS] Fix defines to be used in other source files. (#3154)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabien-B committed Nov 2, 2023
1 parent decbf5c commit 2ba164c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
7 changes: 0 additions & 7 deletions sw/airborne/math/wls/wls_alloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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))

Expand Down
10 changes: 10 additions & 0 deletions sw/airborne/math/wls/wls_alloc.h
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 2ba164c

Please sign in to comment.