From a52f38e7196ead25b4de20a66f0b4e9b8a26d831 Mon Sep 17 00:00:00 2001 From: Don Gagne Date: Mon, 28 Dec 2015 11:04:59 -0800 Subject: [PATCH] No communication with vehicle in destructor At that point the vehicle is gone, so need to to clean it up --- src/AutoPilotPlugins/PX4/PowerComponentController.cc | 5 ----- src/AutoPilotPlugins/PX4/PowerComponentController.h | 1 - 2 files changed, 6 deletions(-) diff --git a/src/AutoPilotPlugins/PX4/PowerComponentController.cc b/src/AutoPilotPlugins/PX4/PowerComponentController.cc index 604fee7c2..24dd2faac 100644 --- a/src/AutoPilotPlugins/PX4/PowerComponentController.cc +++ b/src/AutoPilotPlugins/PX4/PowerComponentController.cc @@ -36,11 +36,6 @@ PowerComponentController::PowerComponentController(void) } -PowerComponentController::~PowerComponentController() -{ - _stopCalibration(); -} - void PowerComponentController::calibrateEsc(void) { _warningMessages.clear(); diff --git a/src/AutoPilotPlugins/PX4/PowerComponentController.h b/src/AutoPilotPlugins/PX4/PowerComponentController.h index 5e608c7ca..d6a35c973 100644 --- a/src/AutoPilotPlugins/PX4/PowerComponentController.h +++ b/src/AutoPilotPlugins/PX4/PowerComponentController.h @@ -40,7 +40,6 @@ class PowerComponentController : public FactPanelController public: PowerComponentController(void); - ~PowerComponentController(); Q_INVOKABLE void calibrateEsc(void); Q_INVOKABLE void busConfigureActuators(void); -- 2.22.0