I am working on a project, where we need to guide a robot through a maze. It is running on C code that communicates wirelessly via UART protocol with the robot.
The robot also can send information back such as whether it successfully made it to a crossing or if it senses a blocking in the maze.
Now I was wondering if anybody knows how to test the C code, while simulating timed inputs from the robot and reading our output. I would like a way to go through the code step by step and optionally change input variables on the go.
Thanks in advance!
Iskender
I have tried implementing this in the code, eventhough it does eventually work, it takes a lot of time and is too complicated to test effectively as the source files get larger.
Iskender Kool is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.