Closed johnboiles closed 10 years ago
Hi John,
Odd error. I'm afraid we probably won't be looking to resolve this; the predictor is moving on and this old C codebase is to be deprecated very soon. The latest version is now feature-complete and should hopefully run on OS X, in addition to being a good deal easier to use. See https://github.com/cuspaceflight/tawhiri and http://tawhiri.readthedocs.org/en/latest/.
Since it still needs some 6GB downloaded every 4 hours, we recommend most people use the online version: http://predict.habhub.org/
Hope this helps, and thanks for the bug report!
@adamgreig thanks for the quick response. I'll take a look at Tawhiri! Great work on the predictor. Do you happen to know if anyone is using it to provide live prediction based on the current ascent rate / descent rate / and burst altitude of a balloon currently in flight (possibly based on data from aprs.fi or aprs-is)?
Also, here's the quick fix for this issue:
-#define gopt_start(...) (const void*)( const struct { int k; int f; const char *s; const char*const*l; }[]){ __VA_ARGS__, {0}}
+typedef struct { int k; int f; const char *s; const char*const*l; } kfsl;
+#define gopt_start(...) (const void*)( const kfsl[]){ __VA_ARGS__, {0}}
Yep, it's used on http://spacenear.us to do exactly that, based on data received through habhub/habitat (www.habhub.org and www.github.com/ukhas/habitat ). It's also used (though I think through spacenear.us) on http://habhub.org/mt although that's the same data source. Both occasionally import APRS based flights through APRS-IS and aprs.fi.
And wow, thanks for the fix. Not surprised clang got upset with that. What a define. I'll see if we want to merge it into this codebase in case it bites anyone else.
Oh awesome, I'll take a look at spacenear.us. Glad someone's already working on it.
Happy to create a pull request if this looks good to you.
Sure, a pull request would be great, thanks.
Possibly a clang vs gcc issue. Compilation fails in
pred.c:50
and seem to be related to thegopt_start
macro. Here are the errors.