diff options
author | Lorenz Meier <lm@qgroundcontrol.org> | 2014-12-17 21:51:33 +0100 |
---|---|---|
committer | Lorenz Meier <lm@qgroundcontrol.org> | 2014-12-17 21:51:33 +0100 |
commit | 6e874bed50d6d8a13a3b7f9b883697cb2718d27b (patch) | |
tree | 7123e9fac3c33c41f60e07e10960b6110bb0b2a7 /src/modules/fw_pos_control_l1 | |
parent | 1faab673b2ff30c4f80f99ce212a757aac58e400 (diff) | |
parent | 8fdd694f12cccfe90ed1dbec9bc7892269b3fefa (diff) | |
download | px4-firmware-6e874bed50d6d8a13a3b7f9b883697cb2718d27b.tar.gz px4-firmware-6e874bed50d6d8a13a3b7f9b883697cb2718d27b.tar.bz2 px4-firmware-6e874bed50d6d8a13a3b7f9b883697cb2718d27b.zip |
Merge pull request #1508 from PX4/fwposl1Os
fw pos control: compile with -Os
Diffstat (limited to 'src/modules/fw_pos_control_l1')
-rw-r--r-- | src/modules/fw_pos_control_l1/fw_pos_control_l1_main.cpp | 6 | ||||
-rw-r--r-- | src/modules/fw_pos_control_l1/module.mk | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/modules/fw_pos_control_l1/fw_pos_control_l1_main.cpp b/src/modules/fw_pos_control_l1/fw_pos_control_l1_main.cpp index e7c95cc86..948b29bcb 100644 --- a/src/modules/fw_pos_control_l1/fw_pos_control_l1_main.cpp +++ b/src/modules/fw_pos_control_l1/fw_pos_control_l1_main.cpp @@ -1399,8 +1399,6 @@ FixedwingPositionControl::task_main() continue; } - perf_begin(_loop_perf); - /* check vehicle control mode for changes to publication state */ vehicle_control_mode_poll(); @@ -1419,6 +1417,7 @@ FixedwingPositionControl::task_main() /* only run controller if position changed */ if (fds[1].revents & POLLIN) { + perf_begin(_loop_perf); /* XXX Hack to get mavlink output going */ if (_mavlink_fd < 0) { @@ -1473,10 +1472,9 @@ FixedwingPositionControl::task_main() } } - + perf_end(_loop_perf); } - perf_end(_loop_perf); } _task_running = false; diff --git a/src/modules/fw_pos_control_l1/module.mk b/src/modules/fw_pos_control_l1/module.mk index 15b575b50..440bab2c5 100644 --- a/src/modules/fw_pos_control_l1/module.mk +++ b/src/modules/fw_pos_control_l1/module.mk @@ -45,3 +45,5 @@ SRCS = fw_pos_control_l1_main.cpp \ mtecs/mTecs_params.c MODULE_STACKSIZE = 1200 + +MAXOPTIMIZATION = -Os |