#!/bin/sh
#
# Bitcraze Crazyflie specific board sensors init
#------------------------------------------------------------------------------

# system_power unavailable
param set CBRK_SUPPLY_CHK 894281

if param compare SYS_AUTOSTART 0
then
	param set SYS_AUTOSTART 4900
	set AUTOCNF yes
fi

if [ $AUTOCNF = yes ]
then
	# don't probe external I2C
	param set SENS_EXT_I2C_PRB 0
fi
