From 1e59fb7c43b12116f0fd031b4c99b1ddbbfe4c38 Mon Sep 17 00:00:00 2001 From: Paul Beuchat <beuchatp@control.ee.ethz.ch> Date: Mon, 9 Apr 2018 14:49:09 +0200 Subject: [PATCH] check for small bug, fixed? --- pps_ws/src/d_fall_pps/GUI_Qt/studentGUI/src/MainWindow.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pps_ws/src/d_fall_pps/GUI_Qt/studentGUI/src/MainWindow.cpp b/pps_ws/src/d_fall_pps/GUI_Qt/studentGUI/src/MainWindow.cpp index 16e46603..23fc2e7c 100644 --- a/pps_ws/src/d_fall_pps/GUI_Qt/studentGUI/src/MainWindow.cpp +++ b/pps_ws/src/d_fall_pps/GUI_Qt/studentGUI/src/MainWindow.cpp @@ -709,7 +709,10 @@ void MainWindow::on_customButton_3_clicked() Setpoint MainWindow::correctSetpointBox(Setpoint setpoint, CrazyflieContext context) { Setpoint corrected_setpoint; - corrected_setpoint = setpoint; + corrected_setpoint.x = setpoint.x; + corrected_setpoint.y = setpoint.y; + corrected_setpoint.z = setpoint.z; + corrected_setpoint.yaw = setpoint.yaw; if(setpoint.x > context.localArea.xmax) corrected_setpoint.x = context.localArea.xmax; -- GitLab