(1)修改了300tc的守护进程(2)创建环境脚本:安装crontab和完善psdk编译
This commit is contained in:
@ -9,6 +9,7 @@ cd /home/300tc
|
|||||||
sudo apt update
|
sudo apt update
|
||||||
sudo apt-get -y install build-essential
|
sudo apt-get -y install build-essential
|
||||||
sudo apt -y install gdb
|
sudo apt -y install gdb
|
||||||
|
sudo apt-get install cron
|
||||||
|
|
||||||
sudo apt -y remove cmake
|
sudo apt -y remove cmake
|
||||||
cd /home/300tc/library_source
|
cd /home/300tc/library_source
|
||||||
@ -104,7 +105,8 @@ sudo apt install unzip
|
|||||||
sudo unzip Payload_SDK_V2.2.1-build.315.zip
|
sudo unzip Payload_SDK_V2.2.1-build.315.zip
|
||||||
sudo mv Payload_SDK_V2.2.1-build.315 Payload_SDK_V2.2.1_300tc #修改文件夹名
|
sudo mv Payload_SDK_V2.2.1-build.315 Payload_SDK_V2.2.1_300tc #修改文件夹名
|
||||||
|
|
||||||
cd /home/300tc/projects/Payload_SDK_V2.2.1_300tc/sample/platform/linux/manifold2/project/build/
|
sudo mkdir /home/300tc/projects/psdk
|
||||||
sudo cmake ..
|
cd /home/300tc/projects/psdk
|
||||||
|
sudo cmake /home/300tc/projects_source/Payload_SDK_V2.2.1_300tc/sample/platform/linux/manifold2/project
|
||||||
sudo make
|
sudo make
|
||||||
|
|
||||||
|
@ -18,14 +18,14 @@ echo "the current directory is " $(pwd)
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
if [ ! -e /home/rock/programRunLog ]; then
|
if [ ! -e /home/programRunLog ]; then
|
||||||
mkdir /home/rock/programRunLog
|
sudo mkdir /home/programRunLog
|
||||||
else
|
else
|
||||||
echo directory "~/programRunLog" exist!
|
echo directory "/home/programRunLog" exist!
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
cd /home/rock/programRunLog
|
cd /home/programRunLog
|
||||||
|
|
||||||
echo "the current directory is " $(pwd)
|
echo "the current directory is " $(pwd)
|
||||||
|
|
||||||
@ -34,7 +34,7 @@ echo "the current directory is " $(pwd)
|
|||||||
|
|
||||||
# run psdk program
|
# run psdk program
|
||||||
if [ ! -e djiLog ]; then
|
if [ ! -e djiLog ]; then
|
||||||
mkdir djiLog
|
sudo mkdir djiLog
|
||||||
else
|
else
|
||||||
echo directory "djiLog" exist!
|
echo directory "djiLog" exist!
|
||||||
fi
|
fi
|
||||||
@ -49,8 +49,9 @@ bool=`ps -ef | grep psdk_demo | grep -v grep | wc -l`
|
|||||||
|
|
||||||
if [ $bool -eq 0 ] ; then
|
if [ $bool -eq 0 ] ; then
|
||||||
psdkLogFileName=$(date +%Y%m%d_%H%M_%S).dji_log
|
psdkLogFileName=$(date +%Y%m%d_%H%M_%S).dji_log
|
||||||
sudo /bin/echo $(/bin/date +%F_%T) >> /home/rock/programRunLog/djiLog/runtime.log
|
sudo /bin/echo $(/bin/date +%F_%T) >> /home/programRunLog/djiLog/runtime.log
|
||||||
sudo /home/rock/tc_projects/Payload_SDK_V2.2.1_300tc/sample/platform/linux/manifold2/project/build/psdk_demo &> djiLog/$psdkLogFileName &
|
|
||||||
|
sudo /home/300tc/projects/psdk/psdk_demo &> djiLog/$psdkLogFileName &
|
||||||
|
|
||||||
echo "Now, start run dji program!"
|
echo "Now, start run dji program!"
|
||||||
else
|
else
|
||||||
@ -61,7 +62,7 @@ fi
|
|||||||
|
|
||||||
# run ximea program
|
# run ximea program
|
||||||
if [ ! -e hyperspectralLog ]; then
|
if [ ! -e hyperspectralLog ]; then
|
||||||
mkdir hyperspectralLog
|
sudo mkdir hyperspectralLog
|
||||||
else
|
else
|
||||||
echo directory "hyperspectralLog" exist!
|
echo directory "hyperspectralLog" exist!
|
||||||
fi
|
fi
|
||||||
@ -74,7 +75,7 @@ if [ $procnum -eq 0 ] ; then
|
|||||||
|
|
||||||
echo $fileName
|
echo $fileName
|
||||||
|
|
||||||
sudo /home/rock/tc_projects/ximeaImageRecorder/build/ximeaImageRecorder &> hyperspectralLog/$fileName &
|
sudo /home/300tc/projects/ximeaAirborneSystem/ximeaAirborneSystem &> hyperspectralLog/$fileName &
|
||||||
|
|
||||||
echo "Now, start run hyperspectral program!"
|
echo "Now, start run hyperspectral program!"
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user