Jawn
Newbie level 2
I'm using an Atmel AVR series microcontroller to position a motor using feedback from a rotary encoder. The code uses avrgcc libs.
The problem is this:
When I was developing the control algorithm I put code in it that printed out variable values to a serial port so I could get feedback if the code was working as expected. When I remove the code that prints to the serial port, the code doesn't work perfectly anymore and has issues.
I can leave the printing statements in the code but that would waste space and result in an unelegant solution. So how can I go about getting feedback on time sensitive code without disturbing the code itself?
Thanks in advance,
John
The problem is this:
When I was developing the control algorithm I put code in it that printed out variable values to a serial port so I could get feedback if the code was working as expected. When I remove the code that prints to the serial port, the code doesn't work perfectly anymore and has issues.
I can leave the printing statements in the code but that would waste space and result in an unelegant solution. So how can I go about getting feedback on time sensitive code without disturbing the code itself?
Thanks in advance,
John