It's beginning to make sense. I was looking at the SetSSOwithPot.c file you send. I wanted to add the FRO pot program to this one since they are both using WaitNextTimeSlice();
The second line is:
"#define TMP 10 // which spare persist to use to transfer data"
I don't see this being used in the program. How does this fit into the program? Will I need to define a Persist for the additional pot?
I thought Maybe in the PC-DSP file:
#define PC_COMM_SET_FRO 5 // Persist+1 is the FRO as a float
#define PC_COMM_SET_FRO_INC 6 // Persist+1 is the factor to change it as float
#define PC_COMM_SET_SSO 21 // Persist+1 is the SSO as a float
#define PC_COMM_SET_SSO_INC 22 // Persist+1 is the factor to change it as float
Actually define the individual Persists for these operations. Or are these not related and used for some other function?
Also looking at
External Buttons.c It has "#define ESTOP 26"
But EstopDisablesAll.c has "#define ESTOP_BIT 180"
Are these just arbritrary assignments for examples or is there some significance to 26 and 180?
Regarding Pots for SSO and FRO see the example:
And attached a similar example for SSO.