EKF Failsafe - error pos horiz variance 😱

hi everyone
I would love to have some help with my rover, the problem is this:
on auto mode when it close to first waypoint I get error pos horiz variance from the ekf
I saw info here - EKF Failsafe — Copter documentation
if i Set FS_EKF_THRESH = 0 to disable the EKF failsafe the rover lose all direction
sats count is good , hdop good as well

the navigation in auto mode is essential, my project is to draw on the ground large scale using a servo motor attached to a ball valve and some powder

what can I do to solve this?

attaching pic of the problem and my cool rover

also, i have wheel encoders i am using the parameter:

  • EK3_SRC1_POSXY = 3
  • EK3_SRC1_POSZ = 3
  • EK3_SRC1_VELXY = 7
  • EK3_SRC1_VELZ = 3
  • EK3_SRC1_YAW = 1

as mentioned here - Testing between GPS to non-GPS(encoder mode) - #3 by Citeone by @Citeone and @rmackay9

thanks in advance :nerd_face:

Hi @ormoshe111,

Welcome!

By turning off the EKF failsafe you’re essentially just “shooting the messenger”. A much better solution is to figure out which sensor is to blame for the inconsistent position or velocity that leads to the EKF failsafe.

Without a log it is hard to be sure but my guess is that the issue is the wheel encoders. Could you try disabling these and then re-test? If you’re operating outdoors then a good quality GPS will likely be enough anyway, but at least removing the wheel encoders from the setup will keep things simple in the early stages of a vehicle setup

1 Like

Hi
Thanks for the quick reply :pray:
I will try to change the parameters of EK3_SRC1 to cancel the wheel encoder
I’ll update here if that’s the issue

@rmackay9 you were right, after I set * EK3_SRC1_VELXY to 3, the problem was gone :hugs:

I’m debating about the best parameter for EK3_SRC1_YAW, any advice?

and while I am at it another question if I may
after reaching a waypoint the rover positions himself for advancing to the next waypoint, he stops, turn, and then proceed like here:

how can I make him go more smoothly from waypoint to waypoint without stopping?

In any case, I want to thank you, the main problem is fixed :ok_hand:
I have learned a lot from your posts here in the community, thanks for that!

1 Like

Hi @ormoshe111,

Great news and nice video!

The stopping is caused by pivot turns and they can be disabled by setting WP_PIVOT_ANGLE to 0. I’ve been considering turning these off by default for the next release actually.

I think the EK3_SRC1_YAW will need to be left at compass unless you’ve got two high quality GPSs (like UBlox F9, aka Here4, etc) in which case GPS-for-yaw would be a good choice.