diff options
author | Ivan Ovinnikov <oivan@ethz.ch> | 2012-08-07 14:18:09 +0200 |
---|---|---|
committer | Ivan Ovinnikov <oivan@ethz.ch> | 2012-08-07 14:18:09 +0200 |
commit | 9536bfa3ca239e310be033e8d83a7cc293ebfff6 (patch) | |
tree | c4681da8a3d66f7993ae4cebb887ba3103e53029 /apps/sensors | |
parent | 2b09a7914f186831e5a4fca6133355f8aadbe428 (diff) | |
download | px4-firmware-9536bfa3ca239e310be033e8d83a7cc293ebfff6.tar.gz px4-firmware-9536bfa3ca239e310be033e8d83a7cc293ebfff6.tar.bz2 px4-firmware-9536bfa3ca239e310be033e8d83a7cc293ebfff6.zip |
HIL fixed, fixedwing control fixes
Diffstat (limited to 'apps/sensors')
-rw-r--r-- | apps/sensors/sensors.c | 4 |
1 files changed, 3 insertions, 1 deletions
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 */ |