Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

星历问题 #35

Closed
michaelnbk opened this issue Mar 12, 2024 · 2 comments
Closed

星历问题 #35

michaelnbk opened this issue Mar 12, 2024 · 2 comments

Comments

@michaelnbk
Copy link

您好:
我想请教一下,(ephemeris->eph = (eph_t *)malloc(sizeof(eph_t) * MAXSAT * 2))为什么要申请两倍的内存空间?是为了存储前后两个历元的星历数据还是其他用途?
期待您的回复,感谢!

@michaelnbk
Copy link
Author

另外,我还想请问一下input_rtcm2函数的处理逻辑是什么,一次只返回一个历元的观测或一颗卫星的星历?

@chichengcn
Copy link
Owner

是的,两倍空间是为了存储前后两个星历周期的星历数据。

input_rtcm2函数就是对rtcm2数据流的解码,根据rtcm数据协议的定义,一包数据可以包含多颗卫星的观测,但只能包含一颗卫星的星历。此外,rtcm电文还定义了其他类型的数据,比如基站坐标、SSR改正数等。详情请参考rtcm官方文档,或者源代码。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants