From 9014577aff02233e890d1f8eefc06471fca8b6d2 Mon Sep 17 00:00:00 2001 From: Lorenz Meier Date: Mon, 13 Aug 2012 18:53:37 +0200 Subject: Massive improvements in state machine, still tracing wrong throttle scaling in manual input path --- apps/sensors/Makefile | 2 +- apps/sensors/sensors.c | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'apps/sensors') diff --git a/apps/sensors/Makefile b/apps/sensors/Makefile index 0bc5b52d6..dadc2993d 100644 --- a/apps/sensors/Makefile +++ b/apps/sensors/Makefile @@ -37,6 +37,6 @@ APPNAME = sensors PRIORITY = SCHED_PRIORITY_MAX-5 -STACKSIZE = 2560 +STACKSIZE = 2048 include $(APPDIR)/mk/app.mk diff --git a/apps/sensors/sensors.c b/apps/sensors/sensors.c index 098db4456..d847c4ffc 100644 --- a/apps/sensors/sensors.c +++ b/apps/sensors/sensors.c @@ -398,7 +398,7 @@ int sensors_main(int argc, char *argv[]) int manual_control_pub = orb_advertise(ORB_ID(manual_control_setpoint), &manual_control); if (manual_control_pub < 0) { - printf("[sensors] ERROR: orb_advertise for topic manual_control_setpoint failed.\n"); + fprintf(stderr, "[sensors] ERROR: orb_advertise for topic manual_control_setpoint failed.\n"); } /* advertise the rc topic */ @@ -406,6 +406,10 @@ int sensors_main(int argc, char *argv[]) memset(&rc, 0, sizeof(rc)); int rc_pub = orb_advertise(ORB_ID(rc_channels), &rc); + if (rc_pub < 0) { + fprintf(stderr, "[sensors] ERROR: orb_advertise for topic rc_channels failed.\n"); + } + /* subscribe to system status */ struct vehicle_status_s vstatus; memset(&vstatus, 0, sizeof(vstatus)); -- cgit v1.2.3