Hi, With an Arduino Uno I'm having a problem that is probably simple to solve. I'm trying to get this code to print out "-30" but all I get is "0" no matter what value I put in "setpt[x]" in the serial.print line in loop().
This sets only the first element of each array in your struct (with values 1, -40, and 1), leaving the remaining elements set to zero. Change the parentheses to braces inside the braces (with parentheses instead of braces, each expression evaluates to a single value—the commas are actually comma operators).