ardupilot icon indicating copy to clipboard operation
ardupilot copied to clipboard

AP_NavEKF3: remove takeoff-detection code

Open peterbarker opened this issue 1 year ago • 2 comments

the current implementation pokes data back into the DAL, which is in the not-good category.

This is an alternative to https://github.com/ArduPilot/ardupilot/pull/28376 . Instead of breaking the loop we just remove the offending code.

I'm not sure about this one, but talking with @tridge he thought it a reasonable step. OTOH, this code wasn't added just for fun, it might have solved a real problem. tridge and I both thought the vehicle probably has more information to do this sort of calculation...

peterbarker avatar Oct 12 '24 11:10 peterbarker

I agree that the flight code (and not the EKF) should not be responsible for determining if the vehicle is flying or not. Maybe the flight code needs to tell the EKF but the EKF shouldn't be trying to figure this out on its own

rmackay9 avatar Oct 13 '24 01:10 rmackay9

For reference, I found the PR #15810 in which the feature was added to the mainline AP and the comment that indicates the likely cause of that detection being added in the first place https://github.com/ArduPilot/ardupilot/pull/15810#issuecomment-750650213 and the commit adding the logic https://github.com/ArduPilot/ardupilot/pull/15810/commits/204dff27b3da43cbf0cffed761dd8f97507df779

LupusTheCanine avatar Oct 17 '24 00:10 LupusTheCanine

Ping @Hwurzburg .

I think the information that @LupusTheCanine points out this was added for compass-less Planes to get the GSF working ASAP. Could you confirm that's your recollection, and what the scenario was? It seems like it was something along the lines of "throw a compass-less Plane off in FBWA (with no throttle-up) and expect yaw to start working instantly."

peterbarker avatar Nov 10 '24 03:11 peterbarker

I usually auto takeoff, not FBWA takeoff, but the problem would have occurred in both...without Paul's changes it could veer horribly from throw direction in takeoff....we need to be sure any changes to this area of the code are thoroughly tested in a compass less plane takeoff, both manual and auto

Hwurzburg avatar Nov 10 '24 13:11 Hwurzburg