Skip to content

Commit

Permalink
autotest: use perfect sim gps to avoid races in frsky test
Browse files Browse the repository at this point in the history
can't get mavlink and frsky to agree on a value!
  • Loading branch information
peterbarker committed Dec 17, 2024
1 parent 31ec6f6 commit 7c084e9
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Tools/autotest/vehicle_test_suite.py
Original file line number Diff line number Diff line change
Expand Up @@ -13738,8 +13738,11 @@ def wait_rpm1(self, min_rpm=None, timeout=10):

def FRSkySPort(self):
'''Test FrSky SPort mode'''
self.set_parameter("SERIAL5_PROTOCOL", 4) # serial5 is FRSky sport
self.set_parameter("RPM1_TYPE", 10) # enable SITL RPM sensor
self.set_parameters({
"SERIAL5_PROTOCOL": 4, # serial5 is FRSky sport
"RPM1_TYPE": 10, # enable SITL RPM sensor
"GPS1_TYPE": 100, # use simulated backend for consistent position
})
port = self.spare_network_port()
self.customise_SITL_commandline([
"--serial5=tcp:%u" % port # serial5 spews to localhost port
Expand Down

0 comments on commit 7c084e9

Please sign in to comment.