mc att: fix init call

This commit is contained in:
Thomas Gubler 2014-12-29 10:35:46 +01:00
parent 9d30c297f4
commit b04c80aec7
1 changed files with 2 additions and 2 deletions

View File

@ -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;