From 5e2881ce627f79a2992536551fa9bf5764e1ae30 Mon Sep 17 00:00:00 2001 From: Julian Oes Date: Tue, 24 Jun 2014 11:47:36 +0200 Subject: [PATCH] UAS: send position not velocity --- src/uas/UAS.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/uas/UAS.cc b/src/uas/UAS.cc index 461dd0ba9..0356ee03d 100644 --- a/src/uas/UAS.cc +++ b/src/uas/UAS.cc @@ -2943,7 +2943,7 @@ void UAS::setManualControlCommands(float roll, float pitch, float yaw, float thr const uint16_t thrustCommand = (uint16_t)(thrust * axesScaling); - uint8_t mode = 3; // for velocity setpoint (OFFBOARD_CONTROL_MODE_DIRECT_VELOCITY) + uint8_t mode = 4; // for position setpoint (OFFBOARD_CONTROL_MODE_DIRECT_POSITION) // Send the MANUAL_COMMAND message mavlink_message_t message; -- 2.22.0