I have a struct type as shown below:
typedef struct position{
float X;
float Y;
float Z;
float A;
} position;
typedef struct move{
position initial_position;
double feedrate;
long speed;
int g_code;
} move;
I am trying to statically initialize it, but I have not found a way to do it. Is this possible?
It should work like this:
The brace initializers for structs and arrays can be nested.