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

EKF3: GSF alignment cannot occur below 5m/s #24183

Closed
rmackay9 opened this issue Jul 1, 2023 · 3 comments
Closed

EKF3: GSF alignment cannot occur below 5m/s #24183

rmackay9 opened this issue Jul 1, 2023 · 3 comments
Assignees

Comments

@rmackay9
Copy link
Contributor

rmackay9 commented Jul 1, 2023

As reported in this discussion it appears that GSF alignment cannot occur unless the vehicle is traveling over 5m/s.

The issue appears to be that a new check was added in PR #23515 that the vehicle is travelling above GPS_VEL_YAW_ALIGN_MIN_SPD (5m/s).

The issue can be replicated in SITL by doing the following with Copter:

  • sim_vehicle.py --map --console -L CMAC2
  • param set EK3_SRC1_YAW 8 (GSF)
  • reboot
  • ALT_HOLD
  • arm throttle
  • rc 3 2000 (wait 5 sec to allow the vehicle to climb)
  • rc 3 1500 (to level out)
  • rc 2 1400
  • rc 2 1600
  • rc 2 1500

At this point a message, "EKF yaw reset to GPS" should appear but it does not. Next change GPS_VEL_YAW_ALIGN_MIN_SPD to 1.0 and repeat the above test.

@priseborough
Copy link
Contributor

As suggested by @rmackay9 the way to resolve this is to use a different value of GPS_VEL_YAW_ALIGN_MIN_SPD for different vehicle types. Maybe it also needs to be smaller for copters (or a parameter) as small copters flying without a magnetometer will not want to fly at 5m/s to complete an in flight yaw alignment.

@rmackay9
Copy link
Contributor Author

This report may also be caused by this issue https://discuss.ardupilot.org/t/copter-4-4-1-released/107005/9

@rmackay9
Copy link
Contributor Author

This has been resolved in master now and the fix is included in Copter-4.5.2.

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

2 participants