-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[ins] reset reference position from INS not from NAV #644
Conversation
Nav is (almost) independent of the GPS which is a sensor and should only be seen by the INS/AHRS subsystems. It also allow to make shared INS filters more easily (example with invariant filter).
ins_impl.ltp_initialized = FALSE; | ||
ins.hf_realign = TRUE; | ||
ins.vf_realign = TRUE; | ||
ins_reset_ground_ref(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think calling it ins_reset_ltp_ref() would be more descriptive...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it is the same interface for utm and ltp, that's why I called it ground_ref
The gps include in navigation.c also seems to be not needed anymore now and can be removed, looks good to me otherwise.... |
unfortunately, we still need gps.h in nav for the GpsValid() function, but this should go in state in the end |
Right, then maybe a comment at the include that it is needed for auto_nav from the flight plan... |
and fix some missing fuctions
… by each algorithm
- reset reference position from INS not from NAV - remove hf_realign, vf_realign from ins struct - remove ins_realign_v and ins_realign_h API functions - weak functions for things that don't need to be implemented in each algoritm
Nav is (almost) independent of the GPS which is a sensor and should only
be seen by the INS/AHRS subsystems.
It also allow to make shared INS filters more easily (example with
invariant filter).