Shell variables in C

I am currently working on a motor control project (post about it coming soon ;)) which requires a lot of parameter tuning of controllers and filters. One way would be to recompile and flash the microcontroller for each new parameter, which takes time and is quite a pain. Hence I’m working with ChibiOS¬†which has a built in shell through serial port or USB CDC I decided to write a simple code that would enable me to change variables during runtime. In the end it was not a lot of work and I am using it, not just for parameters but also for debugging.

Continue reading “Shell variables in C”