1- {{ #if fcKey }} # FC: {{ fcKey }}
2- {{ /if }} {{ #if droneSize }} # Drone Size: {{ droneSize }}
3- {{ /if }} {{ #if manticoreKey }} # Manticore: {{ manticoreKey }}
4- {{ /if }} {{ #if vtxKey }} # VTX : {{ vtxKey }}
5- {{ /if }} {{ #if gpsEnabled }} # GPS: {{ gpsEnabled }}
6- {{ /if }} {{ #if craftName }} # Craft Name: {{ craftName }}
7- {{ /if }}
1+ # FC: {{ fcKey }}
2+ # Drone Size: {{ droneSize }}
3+ # Manticore: {{ manticoreKey }}
4+ # Video : {{ vtxKey }}
5+ # GPS: {{ gpsEnabled }}
6+ # Craft Name: {{ craftName }}
7+ # MB ID: {{ mbId }}
88
99defaults nosave
10-
1110batch start
12-
1311defaults nosave
1412
15- {{!-- Flight Controller Configuration Blocks --}}
16- {{ #if (eq fcKey ' FLASHHOBBYF405' )}}
17- set pid_process_denom = 2
18- {{ /if }}
19-
20- {{ #if (eq fcKey ' SPEEDYBEEF405V3' )}}
21- set pid_process_denom = 1
22- {{ /if }}
23-
24- {{ #if (eq fcKey ' TAKERF722SE' )}}
25- set pid_process_denom = 1
26- set cpu_overclock = ON
13+ {{!-- GPIO Configuration --}}
14+ {{ #if (eq manticoreKey ' GPIO' )}}
15+ # RESOURCES CONFIGURATION
16+ {{!-- FLASHHOBBYF405 specific GPIO resources --}}
17+ {{ #if (eq fcKey ' FLASHHOBBYF405' )}}
18+ resource PINIO 1 A01
19+ resource PINIO 2 A00
20+ {{ /if }}
21+ {{!-- TAKERF722SE specific GPIO resources --}}
22+ {{ #if (eq fcKey ' TAKERF722SE' )}}
23+ resource PINIO 1 A03
24+ resource PINIO 3 A02
25+ {{ /if }}
26+ {{!-- Common GPIO configuration for ALL GPIO setups --}}
27+ set pinio_config = 1,1,1,1
28+ set pinio_box = 58,255,59,255
2729{{ /if }}
2830
29- {{ #if (eq fcKey ' GEPRCF722' )}}
30- set pid_process_denom = 1
31- set cpu_overclock = ON
31+ # FEATURES CONFIGURATION
32+ {{!-- Common features for all configurations --}}
33+ feature TELEMETRY
34+ feature OSD
35+ {{!-- GPS feature --}}
36+ {{ #if gpsEnabled }}
37+ feature GPS
3238{{ /if }}
3339
34- {{!-- Drone Size Configuration Block --}}
35- {{!-- Motor settings optimized for different frame sizes --}}
36- {{ #if droneSize }}
37- # Drone Size: {{ droneSize }} "
38- {{ #if (eq droneSize ' 7' )}}
39- set motor_pwm_rate = 32000
40- set motor_poles = 12
41- {{ /if }}
42- {{ #if (eq droneSize ' 8' )}}
43- set motor_pwm_rate = 24000
44- set motor_poles = 14
45- {{ /if }}
46- {{ #if (eq droneSize ' 9' )}}
47- set motor_pwm_rate = 24000
48- set motor_poles = 16
49- {{ /if }}
50- {{ #if (eq droneSize ' 10' )}}
51- set motor_pwm_rate = 16000
52- set motor_poles = 18
53- {{ /if }}
54- {{ #if (eq droneSize ' 13' )}}
55- set motor_pwm_rate = 12000
56- set motor_poles = 20
40+ # PORTS CONFIGURATION
41+ {{ #if (ne vtxKey ' OPTICA' )}}
42+ serial UART1 8192 115200 57600 0 115200
5743{{ /if }}
58- {{ #if (eq droneSize ' 15' )}}
59- set motor_pwm_rate = 8000
60- set motor_poles = 22
61- {{ /if }}
62- {{ /if }}
63-
64- {{!-- Manticore System Configuration Blocks --}}
44+ {{!-- Manticore UART Configuration --}}
6545{{ #if (eq manticoreKey ' UART' )}}
66- # Manticore UART variant
67- # Configure UART ports for Manticore communication
68- set uart1_function = RX_SERIAL
69- set uart2_function = TELEMETRY
46+ {{ #if (eq fcKey ' FLASHHOBBYF405' )}}
47+ serial UART4 4194304 115200 57600 0 115200
48+ {{ else }}
49+ serial UART2 4194304 115200 57600 0 115200
50+ {{ /if }}
7051{{ /if }}
71-
52+ {{!-- Manticore GPIO Configuration --}}
7253{{ #if (eq manticoreKey ' GPIO' )}}
73- # Manticore GPIO variant
74- # Configure GPIO pins for Manticore interface
75- set gpio_output = ON
76- set gpio_mode = ALTERNATE
77- {{ /if }}
78-
79- {{!-- Video Transmitter (VTX) Configuration Blocks --}}
80- {{ #if (eq vtxKey ' 5.8VTX' )}}
81- # 5.8GHz VTX settings
82- # Standard 5.8GHz video transmitter configuration
83- set vtx_band = A
84- set vtx_channel = 1
85- set vtx_power = 25
86- {{ /if }}
87-
88- {{ #if (eq vtxKey ' 3.3VTX' )}}
89- # 3.3GHz VTX settings
90- # Long-range 3.3GHz video transmitter configuration
91- set vtx_band = B
92- set vtx_channel = 3
93- set vtx_power = 100
94- {{ /if }}
95-
96- {{ #if (eq vtxKey ' OPTICA' )}}
97- # Optica VTX settings
98- # Digital video transmitter configuration
99- set vtx_band = O
100- set vtx_channel = 2
101- set vtx_power = 50
102- {{ /if }}
103-
104- {{!-- GPS Configuration Block --}}
54+ {{ #if (eq fcKey ' FLASHHOBBYF405' )}}
55+ serial UART4 2097152 115200 57600 0 115200
56+ {{ else }}
57+ serial UART2 2097152 115200 57600 0 115200
58+ {{ /if }}
59+ {{ /if }}
60+ serial UART5 64 115200 57600 0 115200
61+ {{!-- GPS Configuration --}}
10562{{ #if gpsEnabled }}
106- # GPS Enabled
107- # Enable GPS functionality with auto baudrate detection
108- feature GPS
109- set gps_baudrate = AUTO
63+ serial UART6 2 115200 57600 0 115200
11064{{ /if }}
111-
112- {{!-- Custom Craft Name Configuration Block --}}
113- {{ #if craftName }}
114- # Craft name
115- # Set custom identification name for the craft
116- set craft_name = {{ craftName }}
117- {{ /if }}
0 commit comments