From 5ca377c3293447b91ad37eb18cc7e7fc1aa5a023 Mon Sep 17 00:00:00 2001 From: Julian Oes Date: Tue, 24 Jun 2014 15:18:00 +0200 Subject: [PATCH] Revert "UAS: send position not velocity" This reverts commit 5e2881ce627f79a2992536551fa9bf5764e1ae30. --- 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 0356ee03d..461dd0ba9 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 = 4; // for position setpoint (OFFBOARD_CONTROL_MODE_DIRECT_POSITION) + uint8_t mode = 3; // for velocity setpoint (OFFBOARD_CONTROL_MODE_DIRECT_VELOCITY) // Send the MANUAL_COMMAND message mavlink_message_t message; -- 2.22.0