Tool/software: TI-RTOS
Hello everyone,
I am working on a device which GPS, OLED, IMU sensor. Right now I am in confusion about my project structure and handling of sensors data. In my project, I want to run GPS and IMU sensor in real time. GPS data read frequency is 1 Hz, I am using UART with 9600 bps baud rate to read GPS data and I2c to read IMU data. The GPS data buffer size is 1000 of type char and it takes almost 1 sec to read complete buffer. My question is, How should I handle both IMU and GPS in real time. So the device can detect the motion in real time and fetch the latitude-longitude in real-time, after detecting some motion device has to display some data and distances, while displaying data device has to scan for other nearest device also. The device is working as advertiser and observer both. So, can anyone please suggest me how to handle everything. What should be the structure, How many task and event I need to create.
Thank you