Comments (3)
We have kind of been following https://www.kernel.org/doc/Documentation/CodingStyle, Chapter 5: Typedefs on this, but probably not very consistently.
History:
struct predict_observation
never had the _t
-ending in order to elucidate that it was a pure output struct where all elements could/should be freely accessed, and didn't need no create
function. So in solving issue #22, I also changed predict_orbit_t
to struct predict_orbit
in order to make it be consistent with struct predict_observation
. I considered that it might cause some trouble with predict_orbit(...)
, but couldn't see any errors or warnings or find any indications of this on the Internet, so I thought it was fine. O:-)
Possible solutions:
- Rename
struct predict_orbit
andstruct predict_observation
topredict_orbit_t
andpredict_observation_t
. - Rename
struct predict_orbit
to something else (difficult to find a better name). - Rename
predict_orbit(...)
to something else (predict_calculate_orbit
?) - Add a typedef of
struct predict_orbit
for the python bindings.
Personally, I think it is nice to use struct name
instead of name_t
for the output structs in order to have clear separation between those and the structs that need initialization through a ..._create_...
function.
@ryeng, what do you think? o:-) Even if C handles struct predict_orbit
and predict_orbit(...)
fine, I guess it is a bit confusing to have the same name in the API anyway.
from libpredict.
Rename to struct predict_satellite? struct predict_orbiter?
from libpredict.
After an oral discussion, we decided to go for struct predict_position
, as it sums up what we wanted to convey with predict_orbit
.
TODO:
- Replace in all source files, header files
- Replace in examples
- Replace tests
- Replace in README.md
from libpredict.
Related Issues (20)
- Contributor agreement, thomasing
- Contributor agreement, kvamtroe
- Contributor agreement, bjorgan HOT 1
- Contributor agreement, core-dd
- Contributor agreement, nickoe
- Build C++ with -Wall and -Werror
- Max elevation unit test slow for Molniya 1 and Sirius 1 HOT 2
- src/julian_date.c needs "#include <time.h>" for gmtime_r HOT 2
- Please add cmake options enabling/disabling static and shared libraries HOT 4
- Help needed for use in windows 10+MATLAB
- WGS84 zenith position of the sun & moon
- WGS84 day/night terminator
- International designator in predict_orbital_elements misses termination for long designators
- Is there a specified version for ARM Cortex M HOT 1
- Julien date HOT 6
- predict_julian_date_t is not a julian date
- building on Mac HOT 3
- building on RPi4 and buster gets compiler errors; but completes! HOT 3
- gcc-12.1.1 -Werror doesn't like your tests HOT 1
- Build fails on testcase_reader.cpp.o HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from libpredict.