EKF: use ECL printfs everywhere

- Changes all printfs to ECL printfs
- Add ECL_ERR.
- Include ecl.h where needed.
- Add forgotten pragma once.
This commit is contained in:
Julian Oes
2016-06-02 15:58:26 +01:00
parent 654093cae1
commit ecfd8c867a
4 changed files with 20 additions and 14 deletions
+2 -1
View File
@@ -43,6 +43,7 @@
#define __STDC_FORMAT_MACROS
#include <inttypes.h>
#include <math.h>
#include <ecl/ecl.h>
#include "estimator_interface.h"
#include "mathlib.h"
@@ -335,7 +336,7 @@ bool EstimatorInterface::initialise_interface(uint64_t timestamp)
_flow_buffer.allocate(OBS_BUFFER_LENGTH) &&
_ext_vision_buffer.allocate(OBS_BUFFER_LENGTH) &&
_output_buffer.allocate(IMU_BUFFER_LENGTH))) {
printf("EKF buffer allocation failed!");
ECL_ERR("EKF buffer allocation failed!");
unallocate_buffers();
return false;
}