mirror of
http://172.16.0.230/r/SIF/TowerOptoSifAndSpectral.git
synced 2025-10-19 03:49:42 +08:00
html 及install。sh
This commit is contained in:
26
html/config/LocationCali.php
Normal file
26
html/config/LocationCali.php
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
<?php
|
||||||
|
//var_dump($_GET);
|
||||||
|
$sensor=$_GET['sensor'];
|
||||||
|
$number=$_GET['positionnumber'];
|
||||||
|
$shuter=$_GET['shutterTime'];
|
||||||
|
|
||||||
|
set_time_limit(0);
|
||||||
|
ob_end_clean();//清空(擦除)缓冲区并关闭输出缓冲
|
||||||
|
ob_implicit_flush(1);//将打开或关闭绝对(隐式)刷送。绝对(隐式)刷送将导致在每次输出调用后有一次刷送操作,以便不再需要对 flush() 的显式调用
|
||||||
|
system("sudo pkill shutter_calibrate");
|
||||||
|
|
||||||
|
|
||||||
|
$cmd = 'sudo /home/pi/bin/shutter_calibrate '.$sensor." ".$number.' '.$shuter;
|
||||||
|
echo $cmd.'<br>';
|
||||||
|
|
||||||
|
while(@ ob_end_flush());
|
||||||
|
|
||||||
|
$proc = popen($cmd, 'r');
|
||||||
|
|
||||||
|
|
||||||
|
while(!feof($proc)){
|
||||||
|
echo fread($proc, 4096);
|
||||||
|
@ flush();
|
||||||
|
}
|
||||||
|
echo "<br>";
|
||||||
|
echo "finish";
|
@ -11,5 +11,56 @@
|
|||||||
<a href="/fileup/location.php?p=4">位置4</a>
|
<a href="/fileup/location.php?p=4">位置4</a>
|
||||||
<a href="/fileup/location.php?p=5">位置5</a>
|
<a href="/fileup/location.php?p=5">位置5</a>
|
||||||
<a href="/fileup/location.php?p=12">位置try</a>
|
<a href="/fileup/location.php?p=12">位置try</a>
|
||||||
|
|
||||||
|
<form action="LocationCali.php" method="get">
|
||||||
|
<table>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
位置自动计算:
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
|
||||||
|
</td>
|
||||||
|
<td>设备<input id="sensor" name="sensor" type="text" list="typelist" placeholder="请选择">
|
||||||
|
|
||||||
|
<datalist id="typelist">
|
||||||
|
<option>IS1</option>
|
||||||
|
<option>IS2</option>
|
||||||
|
<option>ISIF</option>
|
||||||
|
<option>OSIFAlpha</option>
|
||||||
|
<option>OSIFBeta</option>
|
||||||
|
</datalist>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
预估位置数量
|
||||||
|
<input id="positionnumber" name="positionnumber" type="number" list="positionnumbertypelist" placeholder="请选择">
|
||||||
|
|
||||||
|
<datalist id="positionnumbertypelist">
|
||||||
|
<option>1</option>
|
||||||
|
<option>2</option>
|
||||||
|
<option>3</option>
|
||||||
|
<option>4</option>
|
||||||
|
<option>5</option>
|
||||||
|
<option>6</option>
|
||||||
|
<option>7</option>
|
||||||
|
<option>8</option>
|
||||||
|
<option>9</option>
|
||||||
|
<option>10</option>
|
||||||
|
</datalist>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
曝光事件
|
||||||
|
<input id="shutterTime" name="shutterTime" type="number" value="10">ms
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<input type="submit" value="开始">
|
||||||
|
</td>
|
||||||
|
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
|
||||||
|
</form>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
@ -1,5 +1,6 @@
|
|||||||
mkdir build
|
mkdir build
|
||||||
cd build
|
cd build
|
||||||
|
|
||||||
mkdir movingliner
|
mkdir movingliner
|
||||||
cd movingliner
|
cd movingliner
|
||||||
cmake ../../movingliner
|
cmake ../../movingliner
|
||||||
@ -7,12 +8,24 @@ make -j4
|
|||||||
mkdir /home/pi/bin
|
mkdir /home/pi/bin
|
||||||
cp ./movingliner /home/pi/bin
|
cp ./movingliner /home/pi/bin
|
||||||
echo beging build shuttercali
|
echo beging build shuttercali
|
||||||
|
|
||||||
cd ../
|
cd ../
|
||||||
|
|
||||||
mkdir shuttercali
|
mkdir shuttercali
|
||||||
cd shuttercali
|
cd shuttercali
|
||||||
cmake ../../shuttercali/project/LocationCali
|
cmake ../../shuttercali/project/LocationCali
|
||||||
make -j4
|
make -j4
|
||||||
cp ./shutter_calibrate /home/pi/bin
|
cp ./shutter_calibrate /home/pi/bin
|
||||||
cd ../../../
|
|
||||||
|
cd ../
|
||||||
|
|
||||||
|
mkdir console
|
||||||
|
cd console
|
||||||
|
cmake ../../calibration_console
|
||||||
|
make -j4
|
||||||
|
cp ./ocean_optics_calibration_console /home/pi/bin
|
||||||
|
cd ../
|
||||||
|
|
||||||
|
cd ../../
|
||||||
cp -r ./html/* /var/www/html
|
cp -r ./html/* /var/www/html
|
||||||
chmod +x /var/www/html/php/*.sh
|
chmod +x /var/www/html/php/*.sh
|
||||||
|
Reference in New Issue
Block a user