任立新 修改该温控系统的逻辑

This commit is contained in:
xin
2025-05-08 13:52:21 +08:00
parent 455013fa07
commit 030381aa5c
4 changed files with 26 additions and 14 deletions

1
.gitignore vendored
View File

@ -23,3 +23,4 @@
/othersoft/calibration_console/cmake-build-debug/
/othersoft/TemperatureControler/project/cmake-build-debug-towersif/
/othersoft/TemperatureControler/project/cmake-build-debug-towersif/
/DEB/

View File

@ -1,15 +1,17 @@
#!/bin/bash
# 检查是否提供了版本号参数
if [ $# -eq 0 ]; then
echo "错误:请提供版本号参数"
echo "用法: $0 <版本号>"
exit 1
fi
#if [ $# -eq 0 ]; then
# echo "错误:请提供版本号参数"
# echo "用法: $0 <版本号>"
# exit 1
#fi
VERSION=$1
VERSION=2.1
sh install.sh
cd /home/pi/
thispwd=$(pwd)
#cd /home/pi/
DebDirectory=DebpackTowerSif
@ -29,8 +31,11 @@ Architecture: armhf
Maintainer: rlx, tc
Description: test" > control
cd /home/pi/
sudo dpkg -b $DebDirectory TowerSif_${VERSION}.deb
#cd /home/pi/
cd $thispwd
sudo dpkg -b $DebDirectory TowerSif_V${VERSION}.deb
mkdir -p DEB
cp TowerSif_V${VERSION}.deb DEB/
rm -r $DebDirectory
#sudo dpkg -r TowerSif

View File

@ -0,0 +1,6 @@
mkdir -p build
cd build
cmake ../
make -j4
cd ../othersoft
sh install.sh

View File

@ -1,7 +1,7 @@
mkdir build
cd build
mkdir movingliner
mkdir -p movingliner
cd movingliner
cmake ../../movingliner
make -j4
@ -11,14 +11,14 @@ echo beging build shuttercali
cd ../
mkdir shuttercali
mkdir -p shuttercali
cd shuttercali
cmake ../../shuttercali/project/LocationCali
make -j4
cp ./shutter_calibrate /home/pi/bin
cd ../
mkdir TemperatureControler
mkdir -p TemperatureControler
cd TemperatureControler
cmake ../../TemperatureControler/project
make -j4
@ -27,7 +27,7 @@ mkdir -p /home/data/Setting
cp ../../TemperatureControler/Constant_Temperature_Config.json /home/data/Setting
cd ../
mkdir console
mkdir -p console
cd console
cmake ../../calibration_console
make -j4
@ -44,7 +44,7 @@ cd ../
cp ./root/Mywathdog.sh /root
cp ./root/start.sh /root
chmod +x /root/start.sh
mkdir /home/data
mkdir -p /home/data
cd ../
rm -rf ./TowerOptoSifAndSpectral
cd /root/filebrew