I'm working on a wheeled-robot platform. My team is implementing some algorithms on MCU to
- keep getting sensors reading (sonar array, IR array, motor encoders, IMU)
- receive user command (via a serial port connected to a tablet)
- control actuators (motors) to execute user commands.
- keep sending sensor readings to the tablet for more complicated algorithms.
We currently implement everything inside a global while-loop, while I know most of the other use-cases do the very same things with a real-time operating system.
Please tell me the benefits and reasons to use a real-time os instead of a simple while-loop.
tell me the benefits and reasons to use a real-time os... there are none for simple projects $\endgroup$