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

SITL Z-Drift in position estimate when drone is doing nothing #14783

Closed
shubang93 opened this issue Apr 28, 2020 · 5 comments
Closed

SITL Z-Drift in position estimate when drone is doing nothing #14783

shubang93 opened this issue Apr 28, 2020 · 5 comments

Comments

@shubang93
Copy link

I'm trying to use PX4 SITL using the Typhoon H480 model. All I do is instantiate the simulator using the following commands:

DONT_RUN=1 make px4_sitl gazebo_hexa_x_tilt     
source /opt/ros/melodic/setup.bash     
source Tools/setup_gazebo.bash $(pwd) $(pwd)/build/px4_sitl_default     
export ROS_PACKAGE_PATH=$ROS_PACKAGE_PATH:$(pwd)     
export ROS_PACKAGE_PATH=$ROS_PACKAGE_PATH:$(pwd)/Tools/sitl_gazebo     
roslaunch px4 mavros_posix_sitl.launch vehicle:=typhoon_h480 world:=/workspace/Firmware/Tools/sitl_gazebo/worlds/typhoon_h480.world verbose:=true

Then, I just let it sit there for about 200 seconds. A couple of things happen:

  1. There is a sudden increase in noise along Z for IMU measurement
  2. Eventually there is a shift in the average value of IMU - Z measurement
    At the second point (circled in the plot), there is a large jump in position estimate of Z. In all of this, the GPS altitude measurement is very stable. What is causing this issue? Am I doing something wrong?
    Screenshot from 2020-04-28 15-53-13

The plots from QGroundControl are below:
Screenshot from 2020-04-28 16-08-12

To reiterate, I'm doing absolutely nothing. Not even arming the vehicle.

@julianoes julianoes assigned julianoes and unassigned julianoes Apr 29, 2020
@julianoes julianoes added bug Sim: SITL software in the loop simulation State Estimation labels Apr 29, 2020
@julianoes
Copy link
Contributor

Interesting, thanks for the issue.
FYI @Jaeyoung-Lim @bresch

@Jaeyoung-Lim
Copy link
Member

Jaeyoung-Lim commented May 2, 2020

@shubang93 I think this might be related to the oscillations in the vehicle. Could you maybe check if this is reproducible on the iris?

@Jaeyoung-Lim
Copy link
Member

Related to #14953

@stale
Copy link

stale bot commented Aug 22, 2020

This issue has been automatically marked as stale because it has not had recent activity. Thank you for your contributions.

@stale stale bot added the stale label Aug 22, 2020
@Jaeyoung-Lim
Copy link
Member

Fixed in #16519

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants