Hello. I am a total beginner when it comes to C-programming. I want to implement a PID-control using the C2000Ware DCL PID, see figure:
I want to put my control effort "u_k" into a register, see picture below:
How would I, in an efficient way, translate the control effort "u_k" into something I can put into this register? I don't have a good understanding of floating numbers and such.
Best regards