From 7857bb221000c55d479806d48a440e900cce4cc4 Mon Sep 17 00:00:00 2001 From: Leonard Hall Date: Tue, 13 Dec 2022 21:04:33 +1030 Subject: [PATCH] AP_Gripper: Add Neutral state after init --- libraries/AP_Gripper/AP_Gripper.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libraries/AP_Gripper/AP_Gripper.h b/libraries/AP_Gripper/AP_Gripper.h index e1a9087d4d..29a7c24c44 100644 --- a/libraries/AP_Gripper/AP_Gripper.h +++ b/libraries/AP_Gripper/AP_Gripper.h @@ -63,6 +63,7 @@ public: AP_Int8 _enabled; // grabber enable/disable typedef enum { + STATE_NEUTRAL, STATE_GRABBING, STATE_RELEASING, STATE_GRABBED, @@ -78,7 +79,7 @@ public: AP_Float autoclose_time; // Automatic close time (in seconds) AP_Int16 uavcan_hardpoint_id; - gripper_state state = STATE_RELEASED; + gripper_state state = STATE_NEUTRAL; } config; private: