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

Fixing small issues at ekf_att_pos_estimator #1827

Merged
merged 3 commits into from
Feb 28, 2015
Merged

Conversation

sverling
Copy link
Contributor

I found some small issues in the state estimator app which I have resolved. It is about three things:

lline 460: the for loop here is a duplicate of the previous for loop
line 777ff: according to comment and having a look at the units states 10-12 are delta angles (in rad). if we want to add it to the angular rates (rad/sec) we have to divide it with dt
line 1059: Here I adapted the the comment such that it is more descriptive and is similar to previous states (delta angle)

@thomasgubler
Copy link
Contributor

Makes sense if those comments are correct. However that would mean that until now the output of the the estimator was way off. Did you plot the angular rates before and after the change?

Also I am confused about why we publish those values twice to the attitude topic. _att.rate_offsets[0 to 3] and _att.rollspeed/ pitchspeed/yawspeed ...

@sverling
Copy link
Contributor Author

As the biases are very small you probably will not see a big change in the rates. However the bias is now much bigger (but still very small). Before this change we measured a bias of approx. 0.00002 rad (delta angle). If we divide it by dt we have 0.002 rad/sec.

About publishing twice. I think the reason why we publish the offset and the rates separately is that one can not only see the rates but also the offset itself for post analysis.

@LorenzMeier
Copy link
Member

@sverling The argument makes perfect sense and your fix is certainly needed. However, do you have some logs showing that it effectively zeros the gyros? I just want to be sure its 100% correct now and not just improved.

@sverling
Copy link
Contributor Author

We don't have such logs yet. We will do such an experiment as soon as possible.

@Zefz
Copy link
Contributor

Zefz commented Feb 26, 2015

Note that the rollspeed, anglespeed and yawspeed are used by the multicopter land_detector module to detect if the vehicle has landed. These parameters in the land_detector might need to be updated for this EKF correction (or else you might get false positives or false negative land detected)

@LorenzMeier
Copy link
Member

Thanks!

LorenzMeier added a commit that referenced this pull request Feb 28, 2015
Fixing small issues at ekf_att_pos_estimator
@LorenzMeier LorenzMeier merged commit 3355d77 into PX4:master Feb 28, 2015
PX4BuildBot added a commit that referenced this pull request Apr 7, 2022
    - mavlink in PX4/Firmware (094f4db): mavlink/mavlink@b568a60
    - mavlink current upstream: mavlink/mavlink@0133e5d
    - Changes: mavlink/mavlink@b568a60...0133e5d

    0133e5db 2022-04-06 Søren Friis - Update OpenDroneID messages to be compliant with protocol v2 (#1827)
39375a29 2022-04-06 Hamish Willee - MAV_TYPE_VTOL _DUOROTOR and _QUADROTOR renamed to new format (#1818)
20626dfa 2022-03-24 Hamish Willee - AVSSUAS.xml - remove empty whitespace at end of enum names
d5b9709e 2022-03-24 Peter Barker - common.xml: remove wip from AIS_VESSEL (#1817)
ee1bf9de 2022-03-24 Hamish Willee - MESSAGE_INTERVAL can be got using MAV_CMD_GET_MESSAGE_INTERVAL or MAV_CMD_REQUEST_MESSAGE (#1822)
087c1167 2022-03-24 Peter Barker - AVSUAS: correct MODE_M300_FORCE_AUTO_LANDING enum entry (#1824)
3d9594ef 2022-03-23 muexxl - add enums for mavlink ftp service (#1801)
d7a20cc3 2022-03-17 Hamish Willee - VTOL - define MAV_TYPE for belly-sitting non tiltrotor (#1808)
1fd97fb9 2022-03-17 Julian Oes - common: remove option for relative speed change (#1812)
8197285e 2022-03-16 Amilcar Lucas - Improve example documentation (#1816)
485f7d05 2022-03-14 Hamish Willee - Param protocol bits: revert float, move c_style (#1814)
1942c71e 2022-03-03 Hamish Willee - Tell git to ignore the doc/messages folder (#1809)
c38f6660 2022-03-03 Hamish Willee - Rename and document parameter encoding protocol bits. (#1799)
5186324e 2022-03-03 Julian Oes - camera/component information: URI zero termination (#1807)
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

Successfully merging this pull request may close these issues.

4 participants