2019-01-05 02:36 AM
2019-01-05 02:40 AM
As the borg(s) says: Please elaborate.
2019-01-05 02:45 AM
I own a PCB STEVAL-FCU001V1 and I have a question about it. How to activate the pressure sensor. I want the drone to constantly send pressure through the UART. If I activate the PRINTF that I attached in the image, I get an error saying that the variable is not declared. I have activated the pressure sensor and the magnetrometer in config_drone.h, as attached in the second photo.
2019-01-05 02:56 AM
Find in file PRINTF and check if this function is valid and included in the corresponding .h header file.
The function is not precompiled. Find where it is defined, referenced and which header file to include in the corresponding C file. If the function is static, remove the static.
I would strongly advise using floats in the conversion.
Just convert your pressure in milibars or hectopascals and send it as integers.
I usually send pressure_mb_x10 which is the pressure in 0.1 milibar step. 10803 = 1080.3 milibar.
This is more effective and easy to debug/view the variable.
Can't tell more as I don't use this eval board.