aesirkth / ground-control

All required software to make the Ground Station work
https://aesir.se
1 stars 1 forks source link

Define stored data structure #6

Closed wanysteus closed 4 years ago

wanysteus commented 4 years ago

How to make the saved file easy to read?

wanysteus commented 4 years ago

Proposal :

data.csv :

# Header
TimeReception, Complete, TimeMeasurement, RawData1Sensor1, ..., RawDataNSensorM
# Data
ValueFrame1, True, ValueFrame1, ValueFrame1, ..., ValueFrame1
ValueFrame2, False, ValueFrame2, ValueFrame12 ..., MissingValue
...

(if hardcoded calibration data) calibration.yaml :

board_test:
  BMP280_dig_T1: 27504
  BMP280_dig_T2: 26435
  ...
board_flight:
  BMP280_dig_T1: 26834
  BMP280_dig_T2: 22715
  ...

NB: it is easy to parse a .yaml file as a dict in python with PyYAML

wanysteus commented 4 years ago

See #4