aboutsummaryrefslogtreecommitdiff
path: root/apps/sensors
diff options
context:
space:
mode:
authorLorenz Meier <lm@inf.ethz.ch>2012-08-18 16:48:43 +0200
committerLorenz Meier <lm@inf.ethz.ch>2012-08-18 16:48:43 +0200
commitdc484c1d21fcb7bc4f4be97853647321e8a147e1 (patch)
tree4b51a2ff911967318d725bf58bed77b1247468b5 /apps/sensors
parente707574f73b8ed0e9103fd999bd43847c657b5e1 (diff)
downloadpx4-firmware-dc484c1d21fcb7bc4f4be97853647321e8a147e1.tar.gz
px4-firmware-dc484c1d21fcb7bc4f4be97853647321e8a147e1.tar.bz2
px4-firmware-dc484c1d21fcb7bc4f4be97853647321e8a147e1.zip
State machine cleanup, introduced variable rates for MAVLink depending on the baud rate
Diffstat (limited to 'apps/sensors')
-rw-r--r--apps/sensors/sensors.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/sensors/sensors.c b/apps/sensors/sensors.c
index aa006f3a6..c44ff8a2a 100644
--- a/apps/sensors/sensors.c
+++ b/apps/sensors/sensors.c
@@ -452,7 +452,7 @@ int sensors_main(int argc, char *argv[])
/* 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) {
+ if (vstatus.flag_hil_enabled && !hil_enabled) {
hil_enabled = true;
publishing = false;
int ret = close(sensor_pub);