-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconstants.h
More file actions
66 lines (51 loc) · 1.53 KB
/
constants.h
File metadata and controls
66 lines (51 loc) · 1.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#ifndef _CONSTANTS_H
#define _CONSTANTS_H
#define BOARD_NAME "AltimeterEPS32TFT"
#define BOARD_FIRMWARE "AltimeterEPS32TFT"
#define COPYRIGHT "(C) thZero.com"
#define COPYRIGHT_YEARS "2024-2025"
#define MAJOR_VERSION 0
#define MINOR_VERSION 1
//////////////////////////////////////////////////////////////////////
// Constants
//////////////////////////////////////////////////////////////////////
#define PREFERENCE_KEY "altimeter"
// #define SERIAL_BAUD 38400
#define SERIAL_BAUD 115200
#define STATUS_HEIGHT_BAR 10
// Sample rate is in Hz
// Based on Eggtimer Quantum documentation
// https://eggtimerrocketry.com/wp-content/uploads/2024/02/Eggtimer-Quantum-1_09G.pdf, page 25
#define SAMPLE_RATE_ABORTED 5
#define SAMPLE_RATE_AIRBORNE_ASCENT 50
#define SAMPLE_RATE_AIRBORNE_DESCENT 2
#define SAMPLE_RATE_GROUND 50
#define SAMPLE_RATE_LANDED 5
#define SAMPLE_MEASURES_ABORTED 20
#define SAMPLE_MEASURES_APOGEE 5
#define SAMPLE_MEASURES_LANDED 10
#define SAMPLE_RATE_MONITOR 1
#define ALTITUDE_LIFTOFF 20
// #define USE_SLEEP_MODE
// #define KALMAN
// #define KALMAN_ACCEL
// #define KALMAN_ALTITUDE
// #define KALMAN_GYRO
// #define KALMAN_HUMIDITY
// #define KALMAN_PRESSURE
// #define KALMAN_TEMPERATURE
#define MONITOR_MEMORY;
// #define MONITOR_VOLTAGE;
#define DEBUG
// #define DEBUG_COMMANDS
// #define DEBUG_FLIGHT_LOGGER
#define DEBUG_INTERNAL
// #define DEBUG_ALTIMETER
// #define DEBUG_SENSOR
// #define DEBUG_SIM
// #define DEBUG_SIM_CONFIG
// #define DEBUG_SIM_OUTPUT
#define DEV
// #define DEV_NETWORK_START_ON_BOOTUP
#define DEV_SIM
#endif