Add files via upload

This commit is contained in:
tpollina 2019-12-14 01:33:17 -08:00 committed by GitHub
parent cd021354d7
commit 2dadb01634
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 13 deletions

View file

@ -9,15 +9,11 @@ bus = smbus.SMBus(1)
DEVICE_ADDRESS = 0x0d
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)
if state == 'on':
if state == "true":
bus.write_byte_data(DEVICE_ADDRESS, 0x08, 0x01)
bus.write_byte_data(DEVICE_ADDRESS, 0x08, 0x01)
fan(state)

View file

@ -23,10 +23,10 @@ sample_id = str(sys.argv[3])
acq_id = str(sys.argv[4])
#[i] : ex:24ml
volume = int(sys.argv[5])
volume = 24
#[f] : ex:3.2ml/min
flowrate = float(sys.argv[6])
flowrate = float(sys.argv[5])
warm_up_duration=3

View file

@ -3,10 +3,13 @@
#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
sample_project=$1
sample_id=$2
acq_id=$3
in_path=$1
sample_project=$2
sample_id=$3
acq_id=$4
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