(1)修改了300tc的守护进程(2)创建环境脚本:安装crontab和完善psdk编译

This commit is contained in:
Tangchao
2022-10-05 16:21:25 +00:00
parent fbcde028e9
commit 1f913a150a
2 changed files with 14 additions and 11 deletions

View File

@ -9,6 +9,7 @@ cd /home/300tc
sudo apt update
sudo apt-get -y install build-essential
sudo apt -y install gdb
sudo apt-get install cron
sudo apt -y remove cmake
cd /home/300tc/library_source
@ -104,7 +105,8 @@ sudo apt install unzip
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 #修改文件夹名
cd /home/300tc/projects/Payload_SDK_V2.2.1_300tc/sample/platform/linux/manifold2/project/build/
sudo cmake ..
sudo mkdir /home/300tc/projects/psdk
cd /home/300tc/projects/psdk
sudo cmake /home/300tc/projects_source/Payload_SDK_V2.2.1_300tc/sample/platform/linux/manifold2/project
sudo make

View File

@ -18,14 +18,14 @@ echo "the current directory is " $(pwd)
if [ ! -e /home/rock/programRunLog ]; then
mkdir /home/rock/programRunLog
if [ ! -e /home/programRunLog ]; then
sudo mkdir /home/programRunLog
else
echo directory "~/programRunLog" exist!
echo directory "/home/programRunLog" exist!
fi
cd /home/rock/programRunLog
cd /home/programRunLog
echo "the current directory is " $(pwd)
@ -34,7 +34,7 @@ echo "the current directory is " $(pwd)
# run psdk program
if [ ! -e djiLog ]; then
mkdir djiLog
sudo mkdir djiLog
else
echo directory "djiLog" exist!
fi
@ -49,8 +49,9 @@ bool=`ps -ef | grep psdk_demo | grep -v grep | wc -l`
if [ $bool -eq 0 ] ; then
psdkLogFileName=$(date +%Y%m%d_%H%M_%S).dji_log
sudo /bin/echo $(/bin/date +%F_%T) >> /home/rock/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 /bin/echo $(/bin/date +%F_%T) >> /home/programRunLog/djiLog/runtime.log
sudo /home/300tc/projects/psdk/psdk_demo &> djiLog/$psdkLogFileName &
echo "Now, start run dji program!"
else
@ -61,7 +62,7 @@ fi
# run ximea program
if [ ! -e hyperspectralLog ]; then
mkdir hyperspectralLog
sudo mkdir hyperspectralLog
else
echo directory "hyperspectralLog" exist!
fi
@ -74,7 +75,7 @@ if [ $procnum -eq 0 ] ; then
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!"
else