Skip to content

Commit bbc962b

Browse files
committed
Add MAVLink SITL sanity harness
Standalone 8-check pass/fail rig against a self-started SITL with the known-good multiport serial layout: MSP on UART1, MAVLink receiver telemetry and RC override on UART2, GCS heartbeat, mission upload and readback, stream-rate and message-rate control on UART3. Previously lived only in the development workspace and was never committed.
1 parent b30ca6e commit bbc962b

6 files changed

Lines changed: 1306 additions & 0 deletions

File tree

Lines changed: 231 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,231 @@
1+
# Building AutoComplete Cache ... Done!
2+
#
3+
# diff all
4+
5+
# version
6+
# INAV/SITL 9.1.0 Jul 10 2026 / 12:06:40 (abfc1f39)
7+
# GCC-13.4.0
8+
9+
# start the command batch
10+
batch start
11+
12+
# reset configuration to default settings
13+
defaults noreboot
14+
15+
# resources
16+
17+
# Timer overrides
18+
19+
# Outputs [servo]
20+
21+
# safehome
22+
23+
# Fixed Wing Approach
24+
25+
# geozone
26+
27+
# geozone vertices
28+
29+
# features
30+
feature TELEMETRY
31+
feature BLACKBOX
32+
feature PWM_OUTPUT_ENABLE
33+
34+
# blackbox
35+
blackbox -NAV_ACC
36+
blackbox NAV_POS
37+
blackbox NAV_PID
38+
blackbox MAG
39+
blackbox ACC
40+
blackbox ATTI
41+
blackbox RC_DATA
42+
blackbox RC_COMMAND
43+
blackbox MOTORS
44+
blackbox -GYRO_RAW
45+
blackbox -PEAKS_R
46+
blackbox -PEAKS_P
47+
blackbox -PEAKS_Y
48+
blackbox SERVOS
49+
50+
# Receiver: Channel map
51+
52+
# Ports
53+
serial 1 1 115200 115200 0 2470000
54+
serial 2 256 115200 115200 460800 115200
55+
serial 3 256 115200 115200 115200 115200
56+
serial 6 33554432 115200 115200 0 115200
57+
serial 7 2 115200 115200 0 115200
58+
59+
# Modes [aux]
60+
aux 0 0 0 1300 2100
61+
aux 1 1 1 1300 1700
62+
aux 2 53 3 1325 1725
63+
aux 3 11 1 1700 2100
64+
aux 4 10 2 1700 2100
65+
aux 5 28 3 1700 2100
66+
aux 6 31 2 1300 1700
67+
aux 7 3 6 1700 2100
68+
aux 8 27 4 1300 2100
69+
70+
# Adjustments [adjrange]
71+
72+
# Receiver rxrange
73+
74+
# temp_sensor
75+
76+
# Mission Control Waypoints [wp]
77+
#wp 7 valid
78+
wp 0 1 456392480 -743752489 5000 0 0 0 0
79+
wp 1 1 456445849 -743652167 5000 0 0 0 0
80+
wp 2 1 456443268 -743791597 5000 2100 0 0 0
81+
wp 3 1 456412128 -743773235 5000 1500 0 0 0
82+
wp 4 3 456400630 -743818396 15000 30 1500 0 0
83+
wp 5 1 456392518 -743756609 15000 1500 0 0 0
84+
wp 6 4 0 0 0 0 0 0 165
85+
86+
# OSD [osd_layout]
87+
osd_layout 0 0 0 12 V
88+
osd_layout 0 1 2 1 V
89+
osd_layout 0 2 0 0 V
90+
osd_layout 0 3 8 6 V
91+
osd_layout 0 9 2 5 V
92+
osd_layout 0 13 23 7 V
93+
osd_layout 0 15 22 6 V
94+
osd_layout 0 23 24 1 V
95+
osd_layout 0 26 23 8 V
96+
osd_layout 0 32 2 2 V
97+
osd_layout 0 110 0 9 V
98+
osd_layout 0 129 10 1 V
99+
osd_layout 0 144 11 14 V
100+
osd_layout 0 145 22 2 V
101+
osd_layout 0 159 0 10 V
102+
103+
# Programming: logic
104+
105+
# Programming: global variables
106+
107+
# Programming: PID controllers
108+
109+
# OSD: custom elements
110+
111+
# master
112+
set gyro_main_lpf_hz = 25
113+
set ins_gravity_cmss = 980.443
114+
set acc_hardware = FAKE
115+
set align_mag = CW270FLIP
116+
set mag_hardware = FAKE
117+
set baro_hardware = FAKE
118+
set pitot_hardware = VIRTUAL
119+
set receiver_type = SERIAL
120+
set serialrx_provider = MAVLINK
121+
set blackbox_rate_denom = 2
122+
set motor_pwm_protocol = STANDARD
123+
set small_angle = 180
124+
set applied_defaults = 3
125+
set airmode_type = STICK_CENTER_ONCE
126+
set nav_wp_radius = 800
127+
set nav_wp_max_safe_distance = 500
128+
set nav_rth_altitude = 5000
129+
set nav_fw_control_smoothness = 2
130+
set nav_fw_launch_motor_delay = 100
131+
set nav_fw_launch_max_altitude = 5000
132+
set nav_fw_launch_climb_angle = 25
133+
set mavlink_port1_ext_status_rate = 0
134+
set mavlink_autopilot_type = ARDUPILOT
135+
set mavlink_port1_rc_chan_rate = 0
136+
set mavlink_port1_pos_rate = 0
137+
set mavlink_port1_extra1_rate = 0
138+
set mavlink_port1_extra2_rate = 0
139+
set mavlink_port1_extra3_rate = 0
140+
set mavlink_port1_min_txbuffer = 0
141+
set mavlink_port2_min_txbuffer = 0
142+
set mavlink_port3_min_txbuffer = 0
143+
set mavlink_port4_min_txbuffer = 0
144+
set osd_video_system = PAL
145+
146+
# control_profile
147+
control_profile 1
148+
149+
set fw_p_pitch = 15
150+
set fw_i_pitch = 5
151+
set fw_d_pitch = 5
152+
set fw_ff_pitch = 80
153+
set fw_p_roll = 15
154+
set fw_i_roll = 3
155+
set fw_d_roll = 7
156+
set fw_p_yaw = 50
157+
set fw_i_yaw = 0
158+
set fw_d_yaw = 20
159+
set fw_ff_yaw = 255
160+
set dterm_lpf_hz = 10
161+
set fw_turn_assist_pitch_gain = 0.400
162+
set nav_fw_pos_z_p = 22
163+
set nav_fw_pos_z_i = 6
164+
set nav_fw_pos_z_d = 2
165+
set nav_fw_pos_xy_p = 55
166+
set d_boost_min = 1.000
167+
set d_boost_max = 1.000
168+
set tpa_rate = 80
169+
set rc_expo = 30
170+
set rc_yaw_expo = 30
171+
set roll_rate = 18
172+
set pitch_rate = 9
173+
set yaw_rate = 3
174+
175+
# control_profile
176+
control_profile 2
177+
178+
179+
# control_profile
180+
control_profile 3
181+
182+
183+
# mixer_profile
184+
mixer_profile 1
185+
186+
set platform_type = AIRPLANE
187+
set has_flaps = ON
188+
set model_preview_type = 14
189+
190+
# Mixer: motor mixer
191+
192+
mmix reset
193+
194+
mmix 0 1.000 0.000 0.000 0.000
195+
196+
# Mixer: servo mixer
197+
smix reset
198+
199+
smix 0 1 1 100 0 -1
200+
smix 1 2 0 100 0 -1
201+
smix 2 3 0 100 0 -1
202+
smix 3 4 2 100 0 -1
203+
204+
# mixer_profile
205+
mixer_profile 2
206+
207+
208+
# Mixer: motor mixer
209+
210+
# Mixer: servo mixer
211+
212+
# battery_profile
213+
battery_profile 1
214+
215+
set throttle_idle = 5.000
216+
217+
# battery_profile
218+
battery_profile 2
219+
220+
221+
# battery_profile
222+
battery_profile 3
223+
224+
225+
# restore original profile selection
226+
control_profile 1
227+
mixer_profile 1
228+
battery_profile 1
229+
230+
# save configuration
231+
save

0 commit comments

Comments
 (0)