I am new to structs and trying to improve my code. It will just be used to pass a group of data around between functions. Are structs even possible in the v5 brain? Any help on what this even means would be great. (This example is just in the main loop of an empty project)
You have misspelled MaxRVelocity inside of your struct.
You cannot assign values to members in that scope that way. One way to fix it is to move ricky.MaxRVelocity = 0; inside a function such as main(). Alternatively, you can use static initialization like this:
Thanks. The misspelling certainly didn’t help, but I would have never guessed it had to be inside a function to work based on the error. Guess I’m too used to python…