#!/bin/bash

cd build_posix_sitl_simple/src/firmware/posix
mkdir -p rootfs/fs/microsd
mkdir -p rootfs/eeprom
touch rootfs/eeprom/parameters
./mainapp ../../../../$1

#!/bin/bash

cd build_posix_sitl_simple/src/firmware/posix
mkdir -p rootfs/fs/microsd
mkdir -p rootfs/eeprom
touch rootfs/eeprom/parameters
if [ "$2" == "lldb" ]
then
	lldb -- mainapp ../../../../$1
elif [ "$2" == "gdb" ]
then
	gdb -- mainapp ../../../../$1
else
	./mainapp ../../../../$1
fi

Add debug targets to SITL run
Add debug targets to SITL run
