diff --git a/CreateEnvironment.sh b/CreateEnvironment.sh index 0a9f231..90232a3 100755 --- a/CreateEnvironment.sh +++ b/CreateEnvironment.sh @@ -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 diff --git a/finger_daemon.sh b/finger_daemon.sh index 8ac0834..945e465 100755 --- a/finger_daemon.sh +++ b/finger_daemon.sh @@ -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