qgroundcontrol icon indicating copy to clipboard operation
qgroundcontrol copied to clipboard

Corridor scan doesn't properly set camera triggers depending on entry point rotation.

Open mwrightE38 opened this issue 2 years ago • 2 comments

Sorry for not following the format requested but I wanted to get this reported quickly and have a fix posted for whoever needs it rather than not do it at all.

Corridor scans don't properly set entry/exit coordinate types when the vertices are rotated. This currently causes camera triggers to occur around turns instead of inside the missions every other leg due to the improperly set coord types.

Can be reproduced by rotating a corridor scan to position 2 or 3. position 0 and 1 work properly.

image

Add lines 335-340 into corridorscancomplexitem.cc for a fix.

//flip entry and exit coordinates if (reversedVertices.first().coordType == CoordTypeSurveyEntry) { reversedVertices.first().coordType = CoordTypeSurveyExit; } else if (reversedVertices.first().coordType == CoordTypeSurveyExit) { reversedVertices.first().coordType = CoordTypeSurveyEntry; }

mwrightE38 avatar Aug 07 '24 22:08 mwrightE38

Was this on Stable or Daily? Daily already has this fix.

DonLakeFlyer avatar Aug 20 '24 17:08 DonLakeFlyer

@DonLakeFlyer Sorry about that. I did the fix on an older QGC version so my line numbers are off. It needs added at line 324 in stable as well. The fix that's in stable didn't fully fix the issue only half of it. Probably a more elegant solution than doubling the code in two places but the fix above works. If you can't recreate it or still need more info let me know.

https://github.com/mavlink/qgroundcontrol/blob/8a9f99e893aa308808b2f21cecabcf0332142fae/src/MissionManager/CorridorScanComplexItem.cc#L324

mwrightE38 avatar Aug 20 '24 20:08 mwrightE38