Skip to content

Commit

Permalink
v1.1.2.38 Replaced calibration by sensor objects - Implemented a Rota…
Browse files Browse the repository at this point in the history
…ting raspardas.log file
  • Loading branch information
kaufmanno committed Jan 8, 2018
1 parent 8c553d9 commit 5df1341
Show file tree
Hide file tree
Showing 7 changed files with 224 additions and 208 deletions.
30 changes: 0 additions & 30 deletions ardas/calibration_tools.py

This file was deleted.

50 changes: 0 additions & 50 deletions ardas/commodore64_calibration.py

This file was deleted.

21 changes: 21 additions & 0 deletions ardas/commodore64_sensors_calibration.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
from ardas import sensor_tools as st

# Saves a set of sensors including its calibration in a binary '.ssr' file

sensors = (st.UncalibratedFMSensor(sensor_id='0001', log_output=False),
st.UncalibratedFMSensor(sensor_id='0002', log_output=False),
st.FMSensor(sensor_id='0003', processing_parameters=(-16.9224032438, 0.0041525221, -1.31475837290789E-07,
2.39122208189129E-012, -1.72530800355418E-017),
quantity='temp.', units='°C', output_format='%6.3f', log_output=True),
st.FMSensor(sensor_id='0004', processing_parameters=(-16.9224032438, 0.0041525221, -1.31475837290789E-07,
2.39122208189129E-012, -1.72530800355418E-017),
quantity='temp.', units='°C', output_format='%6.3f', log_output=True)
)

if __name__ == '__main__':
for s in sensors:
print(s.sensor_id + ' - ' + s.quantity + ' : ' + s.output_repr(10000))
s.save()
print('reload sensor...')
s = st.load_sensor('0003')
print(s.sensor_id + ' - ' + s.quantity + ' : ' + s.output_repr(10000))
50 changes: 0 additions & 50 deletions ardas/default_calibration.py

This file was deleted.

12 changes: 12 additions & 0 deletions ardas/default_sensor_calibration.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
from ardas import sensor_tools as st

# Saves a set of sensors including its calibration in a binary '.ssr' file

sensors = (st.UncalibratedFMSensor(sensor_id='0000', log_output=False),
)

if __name__ == '__main__':
for s in sensors:
print(s.sensor_id + ' - ' + s.quantity + ' : ' + s.output_repr(10000))
s.save()

0 comments on commit 5df1341

Please sign in to comment.