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

EKF EV-Height Rotation #18867

Open
isidroas opened this issue Dec 16, 2021 · 0 comments
Open

EKF EV-Height Rotation #18867

isidroas opened this issue Dec 16, 2021 · 0 comments

Comments

@isidroas
Copy link
Contributor

Hi all, i have been working on a Aruco based quadrotor witch has an intermittent source of height. I found that it should be rotated in the same way as the position is rotated by _R_ev_to_ekf.

I think that this line,

_ev_pos_innov(2) = _state.pos(2) - _ev_sample_delayed.pos(2);

could be changed by:

		       Vector3f ev_pos_meas = _ev_sample_delayed.pos;
             
			if (_params.fusion_mode & MASK_ROTATE_EV) {
                                calcExtVisRotMat();
				ev_pos_meas = _R_ev_to_ekf * ev_pos_meas;
			}
                        _ev_pos_innov(2) = _state.pos(2) - ev_pos_meas(2);

also the Ekf::resetHeight() function would need to be changed

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

1 participant