From 7be1cc389e326c6ede1f90faf7fc5d882afbf705 Mon Sep 17 00:00:00 2001
From: romain <romain.chiap@gmail.com>
Date: Wed, 27 Mar 2019 08:54:45 -0400
Subject: [PATCH] removed arguments from constructor

---
 src/modules/sih/sih.cpp | 5 ++---
 src/modules/sih/sih.hpp | 2 +-
 2 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/src/modules/sih/sih.cpp b/src/modules/sih/sih.cpp
index c46ffc2dfa..e04201222b 100644
--- a/src/modules/sih/sih.cpp
+++ b/src/modules/sih/sih.cpp
@@ -85,7 +85,6 @@ Most of the variables are declared global in the .hpp file to avoid stack overfl
 
     PRINT_MODULE_USAGE_NAME("sih", "simulation");
     PRINT_MODULE_USAGE_COMMAND("start");
-    PRINT_MODULE_USAGE_PARAM_INT('p', 0, 0, 1024, "Optional example parameter", true);
     PRINT_MODULE_USAGE_DEFAULT_COMMANDS();
 
     return 0;
@@ -122,7 +121,7 @@ int Sih::task_spawn(int argc, char *argv[])
 
 Sih *Sih::instantiate(int argc, char *argv[])
 {
-    Sih *instance = new Sih(0, false);
+    Sih *instance = new Sih();
 
     if (instance == nullptr) {
         PX4_ERR("alloc failed");
@@ -131,7 +130,7 @@ Sih *Sih::instantiate(int argc, char *argv[])
     return instance;
 }
 
-Sih::Sih(int example_param, bool example_flag)
+Sih::Sih()
     : ModuleParams(nullptr),
     _loop_perf(perf_alloc(PC_ELAPSED, "sih_execution")),
     _sampling_perf(perf_alloc(PC_ELAPSED, "sih_sampling"))
diff --git a/src/modules/sih/sih.hpp b/src/modules/sih/sih.hpp
index a0398c9bc3..6132e88f9e 100644
--- a/src/modules/sih/sih.hpp
+++ b/src/modules/sih/sih.hpp
@@ -58,7 +58,7 @@ extern "C" __EXPORT int sih_main(int argc, char *argv[]);
 class Sih : public ModuleBase<Sih>, public ModuleParams
 {
 public:
-	Sih(int example_param, bool example_flag);
+	Sih();
 
 	virtual ~Sih() = default;
 
-- 
GitLab