Last active
November 17, 2017 08:13
-
-
Save arrowcircle/88945fbc0b723268eed5c7990371741a to your computer and use it in GitHub Desktop.
COLIBRI_RACE enable GPS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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