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

Copter/SITL: Guided mode can produce, "Should not be called on invalid location" #27103

Closed
rmackay9 opened this issue May 20, 2024 · 0 comments · Fixed by #27121
Closed

Copter/SITL: Guided mode can produce, "Should not be called on invalid location" #27103

rmackay9 opened this issue May 20, 2024 · 0 comments · Fixed by #27121

Comments

@rmackay9
Copy link
Contributor

rmackay9 commented May 20, 2024

It is possible to make Copter running in SITL produce the, "PANIC: Should not be called on invalid location".

The steps are:

  1. enable GPS and optical flow
  2. param set SIM_GPS_DISABLE 1
  3. GUIDED
  4. arm throttle force
  5. takeoff 20
  6. right-mouse-button click on the SITL map and select "Fly To" and input any location

image
image
image

I suspect this is related to SIM_GPS_DISABLE=1 not completely disabling the GPS. The vehicle appears on the map (it does not when GPS1_TYPE=0) and this may allow the EKF origin (and home?) to be set. Perhaps we're missing a check in the compulsory arming checks?

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

Successfully merging a pull request may close this issue.

1 participant