diff --git a/src/px4_connection/test/test_heartbeat_control_mode.py b/src/px4_connection/test/test_heartbeat_control_mode.py index 72c6fe9a..a2947542 100644 --- a/src/px4_connection/test/test_heartbeat_control_mode.py +++ b/src/px4_connection/test/test_heartbeat_control_mode.py @@ -67,7 +67,7 @@ class TestHeartbeatControlMode(unittest.TestCase): self.node.get_logger().info('heartbeat service not available, waiting again...') heartbeat_sub = self.node.create_subscription(DroneControlMode,"/drone/control_mode",self.control_mode_callback,10) request = SetVehicleControl.Request() - request.control_mode = 4 # attitude control + request.control= 4 # attitude control try: while True: @@ -89,7 +89,7 @@ class TestHeartbeatControlMode(unittest.TestCase): while not heartbeat_client.wait_for_service(timeout_sec=1.0): self.node.get_logger().info('heartbeat service not available, waiting again...') request = SetVehicleControl.Request() - request.control_mode = 33 # wrong control mode + request.control = 33 # wrong control mode try: while True: