aboutsummaryrefslogtreecommitdiff
path: root/src/modules/segway/segway_main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/segway/segway_main.cpp')
-rw-r--r--src/modules/segway/segway_main.cpp22
1 files changed, 3 insertions, 19 deletions
diff --git a/src/modules/segway/segway_main.cpp b/src/modules/segway/segway_main.cpp
index 8be1cc7aa..061fbf9b9 100644
--- a/src/modules/segway/segway_main.cpp
+++ b/src/modules/segway/segway_main.cpp
@@ -64,12 +64,7 @@ extern "C" __EXPORT int segway_main(int argc, char *argv[]);
/**
* Mainloop of deamon.
*/
-int control_demo_thread_main(int argc, char *argv[]);
-
-/**
- * Test function
- */
-void test();
+int segway_thread_main(int argc, char *argv[]);
/**
* Print the correct usage.
@@ -114,16 +109,11 @@ int segway_main(int argc, char *argv[])
SCHED_DEFAULT,
SCHED_PRIORITY_MAX - 10,
5120,
- control_demo_thread_main,
+ segway_thread_main,
(argv) ? (const char **)&argv[2] : (const char **)NULL);
exit(0);
}
- if (!strcmp(argv[1], "test")) {
- test();
- exit(0);
- }
-
if (!strcmp(argv[1], "stop")) {
thread_should_exit = true;
exit(0);
@@ -144,7 +134,7 @@ int segway_main(int argc, char *argv[])
exit(1);
}
-int control_demo_thread_main(int argc, char *argv[])
+int segway_thread_main(int argc, char *argv[])
{
warnx("starting");
@@ -165,9 +155,3 @@ int control_demo_thread_main(int argc, char *argv[])
return 0;
}
-
-void test()
-{
- warnx("beginning control lib test");
- control::basicBlocksTest();
-}