Hi,
I would like to read accelerometer value from orientation_detector_calibrate() (in asset_tracker/src/orientation_detector/orientation_detector.c).
But from main.c (in asset_tracker/src/main.c). it has a dependency on "CONFIG_ACCEL_CALIBRATE", which is defined like below.
#ifdef CONFIG_ACCEL_USE_SIM
#define FLIP_INPUT CONFIG_FLIP_INPUT
#define CALIBRATION_INPUT -1
#else
#define FLIP_INPUT -1
#ifdef CONFIG_ACCEL_CALIBRATE
#define CALIBRATION_INPUT CONFIG_CALIBRATION_INPUT
#else
#define CALIBRATION_INPUT -1
#endif /* CONFIG_ACCEL_CALIBRATE */
#endif /* CONFIG_ACCEL_USE_SIM */
After some debugging, I got to know that, these CONFIG_ macro values should be automatically generated and must be in "ncs\nrf\applications\asset_tracker\build\zephyr\include\generated\autoconf.h"
But unfortunately, I didn't see them in "autoconf.h" for the PCA20035 thingy91 (west build -b nrf9160_pca20035ns) device.
Please guide me the correct way to get generate them in order to access the orientation detector
Thank you.