Skip to content

Commit

Permalink
AP_DDS: Fixed pep257 error in test script.
Browse files Browse the repository at this point in the history
  • Loading branch information
paul.quillen committed Nov 4, 2024
1 parent 512f656 commit 16245ec
Showing 1 changed file with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@
# along with this program. If not, see <https://www.gnu.org/licenses/>.

"""
Bring up ArduPilot SITL and check that the get_parameters and set_parameters
services are up and running.
Bring up ArduPilot SITL and check that the get/set_parameters services are up and running.
Checks whether a parameter is changed using service call.
Expand Down Expand Up @@ -50,17 +49,17 @@


class ParameterClient(rclpy.node.Node):
"Send GetParameters and SetParameters Requests"
"""Send GetParameters and SetParameters Requests."""

def __init__(self):
"Initialize the node"
"""Initialize the node."""
super().__init__('parameter_client')
self.get_param_event_object = threading.Event()
self.set_param_event_object = threading.Event()
self.set_correct_object = threading.Event()

def start_client(self):
"Start the parameter client"
"""Start the parameter client."""
qos_profile = QoSProfile(
reliability=QoSReliabilityPolicy.BEST_EFFORT,
history=QoSHistoryPolicy.KEEP_LAST,
Expand Down Expand Up @@ -165,7 +164,7 @@ def launch_sitl_copter_dds_udp(sitl_copter_dds_udp):

@pytest.mark.launch(fixture=launch_sitl_copter_dds_udp)
def test_dds_udp_parameter_services(launch_context, launch_sitl_copter_dds_udp):
"Test Get/Set parameter services broadcast by AP_DDS."
"""Test Get/Set parameter services broadcast by AP_DDS."""
_, actions = launch_sitl_copter_dds_udp
micro_ros_agent = actions["micro_ros_agent"].action
mavproxy = actions["mavproxy"].action
Expand Down

0 comments on commit 16245ec

Please sign in to comment.