Commit 5e2881ce authored by Julian Oes's avatar Julian Oes

UAS: send position not velocity

parent ce4ca598
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment