-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplatformio.ini
More file actions
91 lines (80 loc) · 2.18 KB
/
Copy pathplatformio.ini
File metadata and controls
91 lines (80 loc) · 2.18 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
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
; 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]
default_envs = handheld_controller, drone_flight_controller, base_station
; Common configuration for all ESP32 boards
[env]
platform = espressif32
board = esp32-s3-devkitc-1
framework = arduino
monitor_speed = 115200
; Include paths for custom libraries
lib_extra_dirs =
lib
; Shared library dependencies for all boards
lib_deps =
adafruit/Adafruit GFX Library@^1.12.1
adafruit/Adafruit SSD1306@^2.5.15
marcoschwartz/LiquidCrystal_I2C@^1.1.4
bblanchon/ArduinoJson@^6.21.3
; Common build flags
build_flags =
-D DEBUG=1
-Wall
-Wextra
-std=gnu++14
; Extra script to load .env file
extra_scripts =
pre:scripts/load_env.py
; Native test environment for unit testing
[env:native]
platform = native
test_framework = unity
build_flags =
-std=gnu++14
-D UNIT_TEST
lib_deps =
throwtheswitch/Unity@^2.6.0
; Handheld Controller - Remote control for manual drone operation
[env:handheld_controller]
build_src_filter =
+<handheld_controller/>
+<common/>
build_flags =
${env.build_flags}
-D BOARD_TYPE=HANDHELD_CONTROLLER
-D ARDUINO_USB_MODE=1
-D ARDUINO_USB_CDC_ON_BOOT=1
monitor_rts = 0
monitor_dtr = 0
; Drone Flight Controller - Main processing unit on the quadcopter
[env:drone_flight_controller]
build_src_filter =
+<drone_flight_controller/>
+<common/>
build_flags =
${env.build_flags}
-D BOARD_TYPE=DRONE_FLIGHT_CONTROLLER
; Additional libraries for flight control
lib_deps =
${env.lib_deps}
; Add IMU, GPS, ESC control libraries here as needed
; Base Station - Ground station for telemetry and monitoring
[env:base_station]
build_src_filter =
+<base_station/>
+<common/>
build_flags =
${env.build_flags}
-D BOARD_TYPE=BASE_STATION
-D ARDUINO_USB_MODE=1
-D ARDUINO_USB_CDC_ON_BOOT=1
monitor_rts = 0
monitor_dtr = 0