decrease values for moving up and down

This commit is contained in:
Sem van der Hoeven
2023-05-16 13:32:11 +02:00
parent 0935a1b328
commit 40ea450b78

View File

@@ -104,9 +104,9 @@ class TestController(Node):
self.send_attitude_request(pitch=0.0, yaw=0.0,
roll=0.0, thrust=0.05)
elif (self.control_mode == CONTROL_MODE_VELOCITY):
self.send_velocity_request(x=0.0, y=0.0, z=1.0, angle=0.0)
self.send_velocity_request(x=0.0, y=0.0, z=0.5, angle=0.0)
else:
self.send_position_request(x=0.0, y=0.0, z=1.0, angle=0.0)
self.send_position_request(x=0.0, y=0.0, z=0.5, angle=0.0)
def move_right(self):
if (self.control_mode == CONTROL_MODE_ATTITUDE):
@@ -122,9 +122,9 @@ class TestController(Node):
self.send_attitude_request(pitch=0.0, yaw=0.0,
roll=0.0, thrust=-0.05)
elif (self.control_mode == CONTROL_MODE_VELOCITY):
self.send_velocity_request(x=0.0, y=0.0, z=-1.0, angle=0.0)
self.send_velocity_request(x=0.0, y=0.0, z=-0.5, angle=0.0)
else:
self.send_position_request(x=0.0, y=0.0, z=-1.0, angle=0.0)
self.send_position_request(x=0.0, y=0.0, z=-0.5, angle=0.0)
def move_left(self):
if (self.control_mode == CONTROL_MODE_ATTITUDE):
@@ -185,7 +185,7 @@ class TestController(Node):
self.send_attitude_request(pitch=0.0, yaw=0.0,
roll=0.0, thrust=0.01)
elif (self.control_mode == CONTROL_MODE_VELOCITY):
self.send_velocity_request(x=0.0, y=0.0, z=0.5, angle=0.0)
self.send_velocity_request(x=0.0, y=0.0, z=0.2, angle=0.0)
else:
self.send_position_request(x=0.0, y=0.0, z=1.0, angle=0.0)
@@ -194,7 +194,7 @@ class TestController(Node):
self.send_attitude_request(pitch=0.0, yaw=0.0,
roll=0.0, thrust=-0.01)
elif (self.control_mode == CONTROL_MODE_VELOCITY):
self.send_velocity_request(x=0.0, y=0.0, z=-0.5, angle=0.0)
self.send_velocity_request(x=0.0, y=0.0, z=-0.2, angle=0.0)
else:
self.send_position_request(x=0.0, y=0.0, z=-1.0, angle=0.0)