mirror of
https://github.com/ArduPilot/ardupilot.git
synced 2026-10-06 19:00:27 +08:00
ArduSub: use enum class for AC breach action enumeration
This commit is contained in:
committed by
Andrew Tridgell
parent
d5da32f1e7
commit
694570b903
+1
-1
@@ -25,7 +25,7 @@ void Sub::fence_checks_async()
|
||||
|
||||
// if the user wants some kind of response and motors are armed
|
||||
if (new_breaches) {
|
||||
if (fence.get_action() != AC_FENCE_ACTION_REPORT_ONLY) {
|
||||
if (fence.get_action() != AC_Fence::Action::REPORT_ONLY) {
|
||||
//
|
||||
// // disarm immediately if we think we are on the ground or in a manual flight mode with zero throttle
|
||||
// // don't disarm if the high-altitude fence has been broken because it's likely the user has pulled their throttle to zero to bring it down
|
||||
|
||||
Reference in New Issue
Block a user