navigator: check distances between waypoints
Instead of just checking whether the first waypoint is too far away from home it makes sense to also check between waypoints. This can prevent - flyaways due to user errors, or - catch the corner case where a takeoff waypoint is added to a mission and therefore the first waypoint is not too far away, however, the subsequent waypoints are still too far away.
Showing
- src/modules/navigator/mission.cpp 5 additions, 1 deletionsrc/modules/navigator/mission.cpp
- src/modules/navigator/mission.h 1 addition, 0 deletionssrc/modules/navigator/mission.h
- src/modules/navigator/mission_feasibility_checker.cpp 110 additions, 41 deletionssrc/modules/navigator/mission_feasibility_checker.cpp
- src/modules/navigator/mission_feasibility_checker.h 6 additions, 3 deletionssrc/modules/navigator/mission_feasibility_checker.h
- src/modules/navigator/mission_params.c 16 additions, 0 deletionssrc/modules/navigator/mission_params.c
Please register or sign in to comment