-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathplatformio.ini
110 lines (93 loc) · 3.38 KB
/
platformio.ini
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
;PlatformIO Project Configuration File
;
; Build options: build flags, source filter
; Upload options: custom upload port, speed and extra flags
; Library options: dependencies, extra library storages
; Advanced options: extra scripting
;
; Please visit documentation for the other options and examples
; https://docs.platformio.org/page/projectconf.html
[platformio]
src_dir = avionics
include_dir = avionics/common/include
[env]
platform = ststm32
extra_scripts=pre:custom_tools/get_submodule.py
lib_deps = mikalhart/TinyGPS, arduino-libraries/SD, SdFat, SPI
; Ignore Libraries
; Time.h is ignored because Windows has another Time.h libary that will be loaded instead.
lib_ignore = Time, XBee
src_build_flags = !python3 custom_tools/git_rev_macro.py
[env:BNBStage1]
board = blackpill_f411ce
framework = arduino
upload_protocol = dfu
; Source filter - identify which directories to search
src_filter = +<common/src/> +<common/lib/CalcHelpers> +<rockets/bnb_stage_1/> +<envs/board/>
+<extra/src/altitude_avg.cpp>
; Build Flags
build_flags =
-D PIO_FRAMEWORK_ARDUINO_ENABLE_CDC
-D SERIAL_RX_BUFFER_SIZE=1024 ; Serial RX Buffer size increase to 1024 (Refer to README.md)
-D RADIO_CONFIG_PACKET_ROCKET_ID=0
-D RADIO_CONFIG_PACKET_SIM_ACTIVE=0
-D EIGEN_NO_DEBUG ; for linear algrbra library
-I avionics/common/lib ; Since you can't actually specify more than one common include directory :/
-I avionics/common/lib/RocketScheduler/include
-I avionics/rockets/bnb_stage_1/include
-I avionics/envs/board/include
-I avionics/envs/board/lib
-I avionics/extra
[env:BNBStage2]
board = blackpill_f411ce
framework = arduino
upload_protocol = dfu
src_filter = +<common/src> +<common/lib/CalcHelpers> +<rockets/bnb_stage_2> +<envs/board>
+<extra/src/altitude_avg.cpp>
build_flags =
-D PIO_FRAMEWORK_ARDUINO_ENABLE_CDC
-D SERIAL_RX_BUFFER_SIZE=1024
-D RADIO_CONFIG_PACKET_ROCKET_ID=1
-D RADIO_CONFIG_PACKET_SIM_ACTIVE=0
-D EIGEN_NO_DEBUG ; for linear algrbra library
-D STAGE_2
-I avionics/common/lib
-I avionics/common/lib/RocketScheduler/include
-I avionics/rockets/bnb_stage_2/include
-I avionics/envs/board/include
-I avionics/envs/board/lib
-I avionics/extra
[env:Hollyburn]
board = blackpill_f411ce
framework = arduino
upload_protocol = dfu
src_filter = +<common/src> +<common/lib/CalcHelpers> +<rockets/hollyburn> +<envs/board>
+<extra/src/altitude_avg.cpp>
build_flags =
-D PIO_FRAMEWORK_ARDUINO_ENABLE_CDC
-D SERIAL_RX_BUFFER_SIZE=1024
-D RADIO_CONFIG_PACKET_ROCKET_ID=3
-D RADIO_CONFIG_PACKET_SIM_ACTIVE=0
-D EIGEN_NO_DEBUG ; for linear algrbra library
-I avionics/common/lib
-I avionics/common/lib/RocketScheduler/include
-I avionics/rockets/hollyburn/include
-I avionics/envs/board/include
-I avionics/envs/board/lib
-I avionics/extra
[env:test]
board = nucleo_l476rg
framework = arduino
src_filter = +<common/src> +<common/lib/CalcHelpers> +<rockets/hollyburn> +<envs/board>
+<extra/src/altitude_avg.cpp>
build_flags =
-D SERIAL1_RX_BUFFER_SIZE=1024
-D RADIO_CONFIG_PACKET_ROCKET_ID=3
-D RADIO_CONFIG_PACKET_SIM_ACTIVE=0
-D EIGEN_NO_DEBUG ; for linear algrbra library
-I avionics/common/lib
-I avionics/common/lib/RocketScheduler/include
-I avionics/rockets/hollyburn/include
-I avionics/envs/board/include
-I avionics/envs/board/lib
-I avionics/extra