EKF: Use debug prints for NuttX builds

This commit is contained in:
Paul Riseborough 2021-02-11 20:11:25 +11:00 committed by Daniel Agar
parent 0f47cae1e1
commit 4bad2a272c
1 changed files with 9 additions and 3 deletions

12
ecl.h
View File

@ -47,9 +47,15 @@
#define ecl_elapsed_time hrt_elapsed_time
using ecl_abstime = hrt_abstime;
#define ECL_INFO PX4_INFO
#define ECL_WARN PX4_WARN
#define ECL_ERR PX4_ERR
#if defined(__PX4_NUTTX)
# define ECL_INFO PX4_DEBUG
# define ECL_WARN PX4_DEBUG
# define ECL_ERR PX4_DEBUG
#else
# define ECL_INFO PX4_INFO
# define ECL_WARN PX4_WARN
# define ECL_ERR PX4_ERR
#endif
#elif defined(__PAPARAZZI)