From ce106a8324181d08c04afb02122cee96c97612ff Mon Sep 17 00:00:00 2001
From: Lorenz Meier <lorenz@px4.io>
Date: Mon, 26 Dec 2016 19:30:14 +0100
Subject: [PATCH] Disable the safety switch by default on Pixracer

This disables the safety switch when Pixracer is configured. It does not change existing setups and it can be re-enabled after. This might be the more sensible default for a racing board.
---
 ROMFS/px4fmu_common/init.d/rcS | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/ROMFS/px4fmu_common/init.d/rcS b/ROMFS/px4fmu_common/init.d/rcS
index f869f01863..6d7fcbd80f 100644
--- a/ROMFS/px4fmu_common/init.d/rcS
+++ b/ROMFS/px4fmu_common/init.d/rcS
@@ -287,6 +287,11 @@ then
 	#
 	if [ $AUTOCNF == yes ]
 	then
+		# Disable safety switch by default on Pixracer
+		if ver hwcmp PX4FMU_V4
+		then
+			param set CBRK_IO_SAFETY 22027
+		fi
 		param set SYS_AUTOCONFIG 0
 	fi
 	unset AUTOCNF
-- 
GitLab