Add files via upload
This commit is contained in:
parent
cd021354d7
commit
2dadb01634
|
@ -9,15 +9,11 @@ bus = smbus.SMBus(1)
|
||||||
DEVICE_ADDRESS = 0x0d
|
DEVICE_ADDRESS = 0x0d
|
||||||
|
|
||||||
def fan(state):
|
def fan(state):
|
||||||
if state == 'off':
|
if state == "false":
|
||||||
bus.write_byte_data(DEVICE_ADDRESS, 0x08, 0x00)
|
bus.write_byte_data(DEVICE_ADDRESS, 0x08, 0x00)
|
||||||
bus.write_byte_data(DEVICE_ADDRESS, 0x08, 0x00)
|
bus.write_byte_data(DEVICE_ADDRESS, 0x08, 0x00)
|
||||||
if state == 'on':
|
if state == "true":
|
||||||
bus.write_byte_data(DEVICE_ADDRESS, 0x08, 0x01)
|
bus.write_byte_data(DEVICE_ADDRESS, 0x08, 0x01)
|
||||||
bus.write_byte_data(DEVICE_ADDRESS, 0x08, 0x01)
|
bus.write_byte_data(DEVICE_ADDRESS, 0x08, 0x01)
|
||||||
|
|
||||||
fan(state)
|
fan(state)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -23,10 +23,10 @@ sample_id = str(sys.argv[3])
|
||||||
acq_id = str(sys.argv[4])
|
acq_id = str(sys.argv[4])
|
||||||
|
|
||||||
#[i] : ex:24ml
|
#[i] : ex:24ml
|
||||||
volume = int(sys.argv[5])
|
volume = 24
|
||||||
|
|
||||||
#[f] : ex:3.2ml/min
|
#[f] : ex:3.2ml/min
|
||||||
flowrate = float(sys.argv[6])
|
flowrate = float(sys.argv[5])
|
||||||
|
|
||||||
warm_up_duration=3
|
warm_up_duration=3
|
||||||
|
|
||||||
|
|
|
@ -3,10 +3,13 @@
|
||||||
#In order to kill an on going acquisition, type this command
|
#In order to kill an on going acquisition, type this command
|
||||||
#bash $HOME/PlanktonScope/scripts/kill_image.sh image.py sample_project sample_id acq_id
|
#bash $HOME/PlanktonScope/scripts/kill_image.sh image.py sample_project sample_id acq_id
|
||||||
|
|
||||||
sample_project=$1
|
in_path=$1
|
||||||
sample_id=$2
|
sample_project=$2
|
||||||
acq_id=$3
|
sample_id=$3
|
||||||
|
acq_id=$4
|
||||||
|
|
||||||
kill -9 `ps ax | grep "image.py" | head -1 | awk '{print $1}'`
|
kill -9 `ps ax | grep "image.py" | head -1 | awk '{print $1}'`
|
||||||
|
|
||||||
rm -r $HOME/PlanktonScope/acquisitions/$sample_project/$sample_id/$acq_id
|
rm -r $in_path/$sample_project/$sample_id/$acq_id
|
||||||
|
bash $HOME/RPi_Cam_Web_Interface/start.sh
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue