-
Notifications
You must be signed in to change notification settings - Fork 82
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
GpsModel(struct SCType *S) always says Valid #144
Comments
I wouldn't call it a bug, just a limitation of the model. All models are abstractions, and for various reasons some models in 42 are more fleshed out than others. The GPS model is pretty unsophisticated. If you need more fidelity, you may need to add it in yourself. I can't respond to all feature requests, but if you describe what you'd like to see, I'll at least consider it. Regards, |
Thanks for getting back to me. I was going to use the Valid flag to determine if a new measurement was taken (due to slower sample times), but looking at the other sensor types (e.g., Thanks, |
Hi Steve, Sounds like you want a flag or a time tag in the sensor model, that you can check and clear in your sensor processing. For example, In GpsModel, when the measurement is taken, set GPS->NewMeas = TRUE. Then, in your sensor processing...
There are variations on the theme, depending on needs and taste. Regards, |
Thanks Eric. That's effectively what I'm doing. I'm implementing some custom error models, so I think I'll handle the flag at the same time. That solves my problem. Thank you for your time! |
In 42sensors.c
GpsModel(struct SCType *S)
,GPS->Valid
is set true inside the SampleCounter if-statement but is only set to false if the RefOrb is not Earth. Is this the intended functionality (always valid after the first update) or a bug? Thanks.The text was updated successfully, but these errors were encountered: