#!/bin/bash -xe
# build firmware
./build_v6c.sh
# flash firmware
st-flash write build/px4_fmu-v6c_default/px4_fmu-v6c_default.bin 0x08020000