wjasmin93@yahoo.com [nuttx]
2018-01-16 08:18:59 UTC
Hy,
I'm pretty new to nuttX and programming at all. Therefore, please excuse my lack of knowledge I try to gain experience.
I'm currently working on a project using a STM32 board and several sensors. The main program is working and also all the drivers are implemented. One of the sensors is a gyroscope (BMG160) which I analyzed precisley due to the demanded high accuracy. I recognized that the frequency is not constant over time, especially if the temperature changes (Deviation of about 0.3 Hz). At the moment, I use a constant frequency for calculating the angle which leads to a too imprecise output.
I think about using a microcontroller timer (stm32_tim) to calculate the passed time between the last and new measurement but I'm not sure about how and where to implement (also regarding the hierarchy structure of the different files and drivers). I wanna avoid measuring other calculations or activities.
Does anyone have experience with that topic or ideas?
Many thanks in advance,
Jasmin
I'm pretty new to nuttX and programming at all. Therefore, please excuse my lack of knowledge I try to gain experience.
I'm currently working on a project using a STM32 board and several sensors. The main program is working and also all the drivers are implemented. One of the sensors is a gyroscope (BMG160) which I analyzed precisley due to the demanded high accuracy. I recognized that the frequency is not constant over time, especially if the temperature changes (Deviation of about 0.3 Hz). At the moment, I use a constant frequency for calculating the angle which leads to a too imprecise output.
I think about using a microcontroller timer (stm32_tim) to calculate the passed time between the last and new measurement but I'm not sure about how and where to implement (also regarding the hierarchy structure of the different files and drivers). I wanna avoid measuring other calculations or activities.
Does anyone have experience with that topic or ideas?
Many thanks in advance,
Jasmin