From dc484c1d21fcb7bc4f4be97853647321e8a147e1 Mon Sep 17 00:00:00 2001 From: Lorenz Meier Date: Sat, 18 Aug 2012 16:48:43 +0200 Subject: State machine cleanup, introduced variable rates for MAVLink depending on the baud rate --- apps/px4/attitude_estimator_bm/attitude_estimator_bm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/px4') diff --git a/apps/px4/attitude_estimator_bm/attitude_estimator_bm.c b/apps/px4/attitude_estimator_bm/attitude_estimator_bm.c index c6869a07e..7385171a2 100644 --- a/apps/px4/attitude_estimator_bm/attitude_estimator_bm.c +++ b/apps/px4/attitude_estimator_bm/attitude_estimator_bm.c @@ -245,7 +245,7 @@ int attitude_estimator_bm_main(int argc, char *argv[]) orb_copy(ORB_ID(vehicle_status), vstatus_sub, &vstatus); /* switching from non-HIL to HIL mode */ //printf("[attitude_estimator_bm] 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(pub_att); -- cgit v1.2.3