
Functions with return statments inside of structs
In an attempt to avoid the very annoying "inline" error and with the goal to make cleaner code I have written a PID control loop that you can create multiple instances of (hopefully).
This part of the code successfully compiles:
This, however, fails to compile and gives errors on the indicated lines:
Here is the error that is given:
I'm getting the impression that I'm doing something illegal in Robot C however I'm confused why the struct will compile but when I actually try to test it it wont.
Thanks!
Fido488