From 9536bfa3ca239e310be033e8d83a7cc293ebfff6 Mon Sep 17 00:00:00 2001 From: Ivan Ovinnikov Date: Tue, 7 Aug 2012 14:18:09 +0200 Subject: HIL fixed, fixedwing control fixes --- apps/sensors/sensors.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'apps/sensors') diff --git a/apps/sensors/sensors.c b/apps/sensors/sensors.c index 45e7687fd..461b9805d 100644 --- a/apps/sensors/sensors.c +++ b/apps/sensors/sensors.c @@ -432,10 +432,12 @@ int sensors_main(int argc, char *argv[]) orb_copy(ORB_ID(vehicle_status), vstatus_sub, &vstatus); /* switching from non-HIL to HIL mode */ + //printf("[sensors] Vehicle mode: %i \t AND: %i, HIL: %i\n", vstatus.mode, vstatus.mode & VEHICLE_MODE_FLAG_HIL_ENABLED, hil_enabled); if ((vstatus.mode & VEHICLE_MODE_FLAG_HIL_ENABLED) && !hil_enabled) { hil_enabled = true; publishing = false; - close(sensor_pub); + int ret = close(sensor_pub); + printf("[sensors] Closing sensor pub: %i \n", ret); /* switching from HIL to non-HIL mode */ -- cgit v1.2.3