Skip to content

Instantly share code, notes, and snippets.

@arrowcircle
Last active November 17, 2017 08:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arrowcircle/88945fbc0b723268eed5c7990371741a to your computer and use it in GitHub Desktop.
Save arrowcircle/88945fbc0b723268eed5c7990371741a to your computer and use it in GitHub Desktop.
COLIBRI_RACE enable GPS
COLIBRI="src/main/target/COLIBRI_RACE/target.h"
cd betaflight
array=(
'#undef USE_DSHOT' \
'#define USE_GPS' \
'#undef USE_SERIALRX_SUMD' \
'#undef USE_SERIALRX_SUMH' \
'#undef USE_SERIALRX_XBUS' \
'#undef USE_SERIALRX_IBUS' \
'#undef USE_SERIALRX_SPEKTRUM' \
'#undef USE_SPEKTRUM_BIND' \
'#undef USE_SPEKTRUM_BIND_PLUG' \
'#undef USE_SPEKTRUM_REAL_RSSI' \
'#undef USE_SPEKTRUM_FAKE_RSSI' \
'#undef USE_SPEKTRUM_RSSI_PERCENT_CONVERSION' \
'#undef USE_SPEKTRUM_VTX_CONTROL' \
'#undef USE_SPEKTRUM_CMS_TELEMETRY' \
'#undef USE_SPEKTRUM_CMS_TELEMETRY' \
'#undef TELEMETRY_IBUS' \
'#undef TELEMETRY_HOTT')
for i in "${array[@]}"
do
grep -q -F "$i" $COLIBRI || echo "$i" >> $COLIBRI
done
docker run -e "PLATFORM=COLIBRI_RACE" --rm -ti -v `pwd`:/opt/betaflight betaflight/betaflight-build
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment