Open khancyr opened 3 years ago
I must say that I'm not a fan of interpreting of "0" as the current lat,lon or alt although it could make sense to do that to be consistent with Auto... I guess I would vote for rejecting the command if it is invalid or too far from the current location.
Might be worth dicussing on the devcall if you're planning to add the check.
Yes, I was assuming that we were rejecting (0, 0) waypoint but that isn't always the case. I am also in favor of answering a rejection instead of silently overriding with the current position.
I note this to not forget it and intend that we discuss it on next EU devcall as that is something important.
On Tue, 2 Feb 2021, Pierre Kancir wrote:
Yes, I was assuming that we were rejecting (0, 0) waypoint but that isn't always the case. I am also in favor of answering a rejection instead of silently overriding with the current position.
I note this to not forget it and intend that we discuss it on next EU devcall as that is something important.
FWIW I was looking at whether it was possible to abstract out a method to grab location from a command; lots of places do it ('though not so many _int places... )
Was this discussed on the devcall with an outcome?
I managed to do the same thing with a 0,0,0 position during recent guided testing. I'm guessing rejection is probably the way forward.
discussed on EU dev call, decided we really need an initialised bool on Location rather than assuming 0,0,0 is uninitialised
Bug report
Issue details
On contrary to Auto mode, we don't sanitize WP on Guided mode. Therefore using something like
trigger a Panic on SITL.
What should be the best action ?
This was spotted thanks to the help of Nordluft https://www.nordluftautomation.com/
Version Master at https://github.com/ArduPilot/ardupilot/commit/275c2849cf38d32c46e868e7f3e216c8fee5aee7, should be present on current stable release. Plane should be less impacted as it doesn't support position_target_global_int
Platform [ X ] All [ ] AntennaTracker [ ] Copter [ ] Plane [ ] Rover [ ] Submarine
Airframe type What type of airframe (flying wing, glider, hex, Y6, octa etc)
Hardware type What autopilot hardware was used? (Pixhawk, Cube, Pixracer, Navio2, etc)
Logs Please provide a link to any relevant logs that show the issue