From bd0d364d63cec555936098bc64286b91d6f04558 Mon Sep 17 00:00:00 2001 From: Julian Oes Date: Sun, 27 Apr 2014 02:17:38 +0200 Subject: [PATCH] Revert "include HIL bit, this makes HIL without RC working again" This reverts commit af0589b2f1463746772b6531f9ffaf1008d19b5d. --- src/uas/UAS.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/uas/UAS.cc b/src/uas/UAS.cc index 6d64aad29..c98b84a70 100644 --- a/src/uas/UAS.cc +++ b/src/uas/UAS.cc @@ -1872,10 +1872,10 @@ void UAS::setMode(uint8_t newBaseMode, uint32_t newCustomMode) // Now set current state (request no change) newBaseMode |= this->base_mode & MAV_MODE_FLAG_SAFETY_ARMED; - // Strip HIL part, replace it with current system state - newBaseMode &= (~MAV_MODE_FLAG_HIL_ENABLED); - // Now set current state (request no change) - newBaseMode |= this->base_mode & MAV_MODE_FLAG_HIL_ENABLED; +// // Strip HIL part, replace it with current system state +// newBaseMode &= (~MAV_MODE_FLAG_HIL_ENABLED); +// // Now set current state (request no change) +// newBaseMode |= this->base_mode & MAV_MODE_FLAG_HIL_ENABLED; setModeArm(newBaseMode, newCustomMode); } -- 2.22.0