//............................. // state_delta_t // // This is used to hold parameters that are used to modify // the starting state before swimming. typedef struct{ float Cpx; float Cpy; float Cpz; float Cx; float Cy; float Cq_over_p; float mass; }state_delta_t; //---------------- // SetStateDelta //---------------- inline void SetStateDelta(state_delta_t *sd, float Cpx, float Cpy, float Cpz, float Cx, float Cy, float Cq_over_p, float mass){ sd->Cpx = Cpx; sd->Cpy=Cpy; sd->Cpz=Cpz; sd->Cx=Cx; sd->Cy=Cy; sd->Cq_over_p=Cq_over_p; sd->mass=mass; }