From fa4b53a91583cbdd4776a041f6c6ad9550c2cc52 Mon Sep 17 00:00:00 2001 From: Kenan Zhu <62800488+KenanZhu111@users.noreply.github.com> Date: Thu, 26 Sep 2024 18:53:23 +0800 Subject: [PATCH 1/2] Update cal_mod.h --- headers/cal_mod.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/headers/cal_mod.h b/headers/cal_mod.h index f7e7ab9..a05a65b 100644 --- a/headers/cal_mod.h +++ b/headers/cal_mod.h @@ -78,10 +78,10 @@ void sat_gps_pos_clac(FILE * result_file, deg2dms temb = {0}; deg2dms teml = {0}; blh = (pblh)malloc(sizeof(pblh) * o_epochnum* 256); - enu = (penu)malloc(sizeof(penu) * o_epochnum* 256); - rah = (prah)malloc(sizeof(prah) * o_epochnum* 256); - pos_t = (ppos_t)malloc(sizeof(ppos_t) * o_epochnum* 256); - station = (pstation)malloc(sizeof(pstation) * o_epochnum* 256); + enu = (penu)malloc(sizeof(penu) * o_epochnum* 256); + rah = (prah)malloc(sizeof(prah) * o_epochnum* 256); + pos_t = (ppos_t)malloc(sizeof(ppos_t) * o_epochnum* 256); + station = (pstation)malloc(sizeof(pstation) * o_epochnum* 256); for (int i = 0; i < o_epochnum; i++)//第i个历元 { result_file = fopen(".\\Pos_out\\LLA_result.txt", "a+"); @@ -212,4 +212,4 @@ void sat_gps_pos_clac(FILE * result_file, free(station);station = NULL; } -#endif \ No newline at end of file +#endif From c33a8c9d156199a3971ebaa036a0fc5e2210e2f0 Mon Sep 17 00:00:00 2001 From: Kenan Zhu <62800488+KenanZhu111@users.noreply.github.com> Date: Thu, 26 Sep 2024 18:54:24 +0800 Subject: [PATCH 2/2] Update public.h --- headers/public.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/headers/public.h b/headers/public.h index 4a066d6..87ea689 100644 --- a/headers/public.h +++ b/headers/public.h @@ -71,9 +71,9 @@ //东北天结构体 typedef struct { - double E; - double N; - double U; + double E; + double N; + double U; }enu, *penu; //高度方位角结构体 typedef struct @@ -220,4 +220,4 @@ typedef struct obs_body }obs_body,*pobs_body; /* -------------------------------------------------------------------------- */ -#endif \ No newline at end of file +#endif