DLL_GZDW示例和说明.cpp 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. void testThreeStar_DW()
  2. {
  3. double ref_llh[3] = { 112.9043, 9.55549, 0 };
  4. double main_sat[3] = { -41627130.333, 6291290.744, -2672292.823 };
  5. double neigh_sat1[3] = { -24196959 , 34540119, -37186 };
  6. //double neigh_sat2[3] = { 4738483, 41885781, 17606 };
  7. double neigh_sat2[3] = { 109.4082, 18.3878, 0 };//如果是2星1地,这里输入CDB站址坐标(经纬高)
  8. double Ref_Station_LLH[3] = { 112.9043, 9.55549, 0 };//ckz坐标
  9. //double target_dto1 = -0.015951469492725;
  10. //double target_dto2 = -0.003776303087869;
  11. //double ref_dto1 = -0.010094828958135;
  12. //double ref_dto2 = -0.003418405196386;
  13. double target_dto1 = -0.012351141858723;
  14. double target_dto2 = -0.250032322626937;
  15. double ref_dto1 = -0.018988008565341;
  16. double ref_dto2 = -0.264358558464538;//**如果是2星1的,这里输入的是样本主x参估结果
  17. double target_llh[3];
  18. vec_copy(Ref_Station_LLH, target_llh, 3);
  19. bool flag = 1;//8***如果是3x定位,这个为0;如果是2x1d,为1.
  20. DW_Analysis(main_sat, neigh_sat1, neigh_sat2, Ref_Station_LLH, target_dto1, target_dto2, ref_dto1, ref_dto2, target_llh, flag);
  21. for (int idx = 0; idx < 3; ++idx)
  22. {
  23. std::cout << target_llh[idx] << std::endl;
  24. }
  25. }