PX4-Autopilot/Tools/linux_run.sh
Mark Charlebois 87a8289a22 Linux: changed adc to adcsim and add barosim
The name of the app was adc but should have been adcsim.
Added a barometer simulator.

This will allow ms56711_linux to depend on real devices and not
simulation.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-04-20 11:35:48 -07:00

27 lines
586 B
Bash
Executable File

#!/bin/bash
if [ ! -c /tmp/ttyS0 ] || [ ! -c /tmp/ttyS1 ]
then
echo "Need to create /tmp/ttyS[01]"
echo "socat PTY,link=/tmp/ttyS0 PTY,link=/tmp/ttyS1"
exit 1
fi
if [ ! -d /fs/msdcard ] && [ ! -w /fs/msdcard ]
then
echo "Need to create/mount writable /fs/microsd"
echo "sudo mkdir -p /fs/msdcard"
echo "sudo chmod 777 /fs/msdcard"
exit 1
fi
if [ ! -d /eeprom ] && [ ! -w /eeprom ]
then
echo "Need to create/mount writable /eeprom"
echo "sudo mkdir -p /eeprom"
echo "sudo chmod 777 /eeprom"
exit 1
fi
Build/linux_default.build/mainapp linux-configs/linuxtest/init/rc.S