From 85ec0bb7b235f9d9e248b64de450a6f19d6d62b7 Mon Sep 17 00:00:00 2001
From: roangel <roangel@student.ethz.ch>
Date: Tue, 22 Aug 2017 18:45:26 +0200
Subject: [PATCH] Battery working good, when we disconnect and connect again we
 lose the packages

---
 pps_ws/src/d_fall_pps/GUI_Qt/studentGUI/src/MainWindow.cpp | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

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 e96199a2..85d4e6dd 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
@@ -30,7 +30,7 @@ MainWindow::MainWindow(int argc, char **argv, QWidget *parent) :
     // communication with PPS Client, just to make it possible to communicate through terminal also we use PPSClient's name
     ros::NodeHandle nh_PPSClient(ros_namespace + "/PPSClient");
     crazyRadioCommandPublisher = nh_PPSClient.advertise<std_msgs::Int32>("crazyRadioCommand", 1);
-    PPSClientCommadPublisher = nh_PPSClient.advertise<std_msgs::Int32>("Command", 1);
+    PPSClientCommandPublisher = nh_PPSClient.advertise<std_msgs::Int32>("Command", 1);
 
     disableGUI();
 }
@@ -134,14 +134,14 @@ void MainWindow::on_enable_disable_CF_button_clicked()
     {
         std_msgs::Int32 msg;
         msg.data = CMD_USE_CRAZYFLY_ENABLE;
-        this->PPSClientCommadPublisher.publish(msg);
+        this->PPSClientCommandPublisher.publish(msg);
         ui->enable_disable_CF_button->setText("DisableCF");
     }
     else                        //disabled, enable if success
     {
         std_msgs::Int32 msg;
         msg.data = CMD_USE_CRAZYFLY_DISABLE;
-        this->PPSClientCommadPublisher.publish(msg);
+        this->PPSClientCommandPublisher.publish(msg);
         ui->enable_disable_CF_button->setText("EnableCF");
     }
 }
-- 
GitLab