aerosense-ai / data-gateway

Data influx for Aerosense.
https://www.aerosense.ai/
Other
3 stars 1 forks source link

Update sensor conversion constants in configuration #115

Open cortadocodes opened 1 year ago

cortadocodes commented 1 year ago

We can put the defaults from aerosense-tools: https://github.com/aerosense-ai/aerosense-tools/blob/5ecf712628e294ae9f00f1982ed8192e45283c03/aerosense_tools/preprocess.py#L63

For differential pressure it can be a nested dict :

"differential_barometer":{
      "constant":[ const_1, const_2, const_3, const_4, const_5],
     "offset": [32767, 32767, 32767, 32767, 32767]
}

_Originally posted by @time-trader in https://github.com/aerosense-ai/data-gateway/pull/108#discussion_r1129739202_

time-trader commented 1 year ago

Actually, lets not make it nested. It will break the flow. Lets have

"differential_barometer":[ const_1, const_2, const_3, const_4, const_5],
"differential_barometer_offset": [32767, 32767, 32767, 32767, 32767]