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

cgi_func.h missing #1

Open
youjin2 opened this issue May 3, 2018 · 2 comments
Open

cgi_func.h missing #1

youjin2 opened this issue May 3, 2018 · 2 comments

Comments

@youjin2
Copy link

youjin2 commented May 3, 2018

Thanks for your sdp4 model implementation
I'm currently trying to convert TLE to the satellite azimuth/elevation angle using sdp4 model

However, make to build the library gives following error message.


sat_id2.cpp:21:22: fatal error: cgi_func.h


$ git clone https://github.com/Bill-Gray/sat_code
$ make

I think cgi_func.h is missed..
And it would be very helpful if there's some documentation or example codes

Bill-Gray added a commit that referenced this issue May 4, 2018
@Bill-Gray
Copy link
Owner

Thank you. I changed this library a while ago so that it drew on some routines from the lunar library, but didn't note that fact anywhere.

Actually, I see now that the only reliance is on cgi_func.h, for some of the routines used in parsing CGI data. So you can use the SDP4/SGP4 code and ignore that error message... I may just revise makefile so that sat_id2 is not built by default, and requires an explicit make sat_id2 step.

For example code, I'd suggest starting with test_out.cpp (just reads in TLE data and displays parts of it in a more human-readable form). test2.cpp shows how to compute state vectors from TLEs. obs_tes2.cpp and obs_test.cpp add the step of computing where an observer on the earth would be, so that you can compute the position of a satellite relative to an observer.

@AmirHosseinAlikhahMishamandani

Hey guys, this is a simplified make file ... you guys can add this to the code and compile it ... I could successfully test it on linux ubuntu16 ... Bill Gray, thank you for your efforts and awesome code ...
all:
g++ -O3 -std=c++11 "get_el.cpp" "basics.cpp" "common.cpp" "deep.cpp" "sgp.cpp" "sdp4.cpp" "sdp8.cpp" "sgp4.cpp" "sgp8.cpp" "test_sat.cpp" -o sattest -lm

sat_code.zip

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

3 participants