Skip to content

Commit 2611cea

Browse files
committed
autotest: Update tests for relay
1 parent b8c2cb4 commit 2611cea

File tree

3 files changed

+5
-8
lines changed

3 files changed

+5
-8
lines changed

Tools/autotest/default_params/rover.parm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ RC1_MAX 2000
2424
RC1_MIN 1000
2525
RC3_MAX 2000
2626
RC3_MIN 1000
27-
RELAY_PIN 1
28-
RELAY_PIN2 2
27+
RELAY1_PIN 1
28+
RELAY2_PIN 2
2929
SERVO1_MIN 1000
3030
SERVO1_MAX 2000
3131
SERVO3_MAX 2000

Tools/autotest/default_params/vee-gull 005.param

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -456,10 +456,7 @@ RCMAP_ROLL,1
456456
RCMAP_THROTTLE,3
457457
RCMAP_YAW,4
458458
RELAY_DEFAULT,0
459-
RELAY_PIN,13
460-
RELAY_PIN2,-1
461-
RELAY_PIN3,-1
462-
RELAY_PIN4,-1
459+
RELAY1_PIN,13
463460
RLL_RATE_D,0.000000
464461
RLL_RATE_FF,0.255000
465462
RLL_RATE_I,0.050000

Tools/autotest/rover.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -603,7 +603,7 @@ def ServoRelayEvents(self):
603603
})
604604

605605
# add another servo:
606-
self.set_parameter("RELAY_PIN6", 14)
606+
self.set_parameter("RELAY6_PIN", 14)
607607
self.assert_received_message_field_values('RELAY_STATUS', {
608608
"present": 35,
609609
"on": 0,
@@ -5369,7 +5369,7 @@ def test_scripting_auxfunc(self):
53695369
self.context_collect("STATUSTEXT")
53705370
self.set_parameters({
53715371
"SCR_ENABLE": 1,
5372-
"RELAY_PIN": 1,
5372+
"RELAY1_PIN": 1,
53735373
})
53745374
self.install_example_script_context("RCIN_test.lua")
53755375
self.reboot_sitl()

0 commit comments

Comments
 (0)