diff options
author | Thomas Gubler <thomasgubler@gmail.com> | 2014-12-29 10:35:46 +0100 |
---|---|---|
committer | Thomas Gubler <thomasgubler@gmail.com> | 2014-12-29 10:35:46 +0100 |
commit | b04c80aec7ee91820e5ffa5a09e40aa30b285bc7 (patch) | |
tree | bae746abc1c40bd53e2f13f7d66505d6c7924b05 /src/modules/mc_att_control | |
parent | 9d30c297f40b06779db12e44f2068b482a7fae64 (diff) | |
download | px4-firmware-b04c80aec7ee91820e5ffa5a09e40aa30b285bc7.tar.gz px4-firmware-b04c80aec7ee91820e5ffa5a09e40aa30b285bc7.tar.bz2 px4-firmware-b04c80aec7ee91820e5ffa5a09e40aa30b285bc7.zip |
mc att: fix init call
Diffstat (limited to 'src/modules/mc_att_control')
-rw-r--r-- | src/modules/mc_att_control/mc_att_control_main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/mc_att_control/mc_att_control_main.cpp b/src/modules/mc_att_control/mc_att_control_main.cpp index 4188c7880..080f0ed65 100644 --- a/src/modules/mc_att_control/mc_att_control_main.cpp +++ b/src/modules/mc_att_control/mc_att_control_main.cpp @@ -80,8 +80,6 @@ void handle_vehicle_attitude2(const PX4_TOPIC_T(rc_channels) &msg) { extern "C" __EXPORT int mc_att_control_main(int argc, char *argv[]) { - px4::init(argc, argv, "mc_att_control"); - if (argc < 1) { errx(1, "usage: mc_att_control {start|stop|status}"); } @@ -129,6 +127,8 @@ extern "C" __EXPORT int mc_att_control_main(int argc, char *argv[]) PX4_MAIN_FUNCTION(mc_att_control) { + px4::init(argc, argv, "mc_att_control"); + PX4_INFO("starting"); MulticopterAttitudeControl attctl; thread_running = true; |