example1.h 840 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. #pragma once
  2. #include "cmscp.h"
  3. #include <math.h>
  4. #include "denseBlas.h"
  5. /* ºê¶¨Òå */
  6. #define PI 3.141592653589793
  7. #define r2d (180/PI)
  8. #define d2r (PI/180)
  9. typedef struct cmscp_integTraj {
  10. double* time;
  11. demat* state;
  12. demat* control;
  13. int length;
  14. } cmscp_integTraj;
  15. typedef struct cmscp_scales {
  16. double length;
  17. double speed;
  18. double time;
  19. double acceleration;
  20. double mass;
  21. double force;
  22. double area;
  23. double volume;
  24. double density;
  25. double gravparam;
  26. } cmscp_scales;
  27. typedef struct cmscp_auxdata {
  28. cmscp_scales* scales;
  29. double omega;
  30. double mu;
  31. double ae;
  32. double be;
  33. double e;
  34. double S;
  35. double mass1;
  36. double mass2;
  37. double Re;
  38. double g0;
  39. double Isp;
  40. double thrust;
  41. double launchLon;
  42. double launchLat;
  43. double launchB;
  44. double launchA;
  45. double phiT0;
  46. double psiT0;
  47. double gammaT0;
  48. double x0[8];
  49. } cmscp_auxdata;