comparison Small_CPU/Src/pressure.c @ 341:591c03a1e68d

change max. allowed surface pressure to 1030hPa (As in the small OSTC) Change Firmware to 1.5.1 Change RTE to 2.0 Create install file for testing and release
author heinrichsweikamp
date Sun, 06 Oct 2019 14:07:51 +0200
parents 37f45300bc2e
children ba53ab77f059
comparison
equal deleted inserted replaced
340:0756013e43b3 341:591c03a1e68d
44 #define CMD_ADC_1024 0x04 // ADC OSR=1024 44 #define CMD_ADC_1024 0x04 // ADC OSR=1024
45 #define CMD_ADC_2048 0x06 // ADC OSR=2056 45 #define CMD_ADC_2048 0x06 // ADC OSR=2056
46 #define CMD_ADC_4096 0x08 // ADC OSR=4096 46 #define CMD_ADC_4096 0x08 // ADC OSR=4096
47 #define CMD_PROM_RD 0xA0 // Prom read command 47 #define CMD_PROM_RD 0xA0 // Prom read command
48 48
49 #define PRESSURE_SURFACE_MAX_MBAR (1070.0f) /* It is very unlikely that pressure at surface is greater than this value => clip to it */ 49 #define PRESSURE_SURFACE_MAX_MBAR (1030.0f) /* It is unlikely that pressure at surface is greater than this value => clip to it */
50 #define PRESSURE_HISTORY_SIZE (8u) 50 #define PRESSURE_HISTORY_SIZE (8u)
51 #define PRESSURE_JUMP_VALID_MBAR (500.0f) /* values are measure several times a second => jumps > 5m very unlikely */ 51 #define PRESSURE_JUMP_VALID_MBAR (500.0f) /* values are measure several times a second => jumps > 5m very unlikely */
52 52
53 #define PRESSURE_SURFACE_QUE (30u) /* history buffer [minutes] for past pressure measurements */ 53 #define PRESSURE_SURFACE_QUE (30u) /* history buffer [minutes] for past pressure measurements */
54 54