aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas Gubler <thomasgubler@gmail.com>2014-06-30 21:31:50 +0200
committerThomas Gubler <thomasgubler@gmail.com>2014-06-30 21:31:50 +0200
commitacca14673c4934ea8cdca46286db6d769c4dca40 (patch)
tree95a2dab53dc8216d310b48534842c94ce2f04687 /src
parentc782d5d3796f9f936c30de2b0395ba76b42b8795 (diff)
downloadpx4-firmware-acca14673c4934ea8cdca46286db6d769c4dca40.tar.gz
px4-firmware-acca14673c4934ea8cdca46286db6d769c4dca40.tar.bz2
px4-firmware-acca14673c4934ea8cdca46286db6d769c4dca40.zip
fw pos ctrl l1 main: remove code with no effect
Diffstat (limited to 'src')
-rw-r--r--src/modules/fw_pos_control_l1/fw_pos_control_l1_main.cpp9
1 files changed, 0 insertions, 9 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 38d275eb0..d07258094 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
@@ -592,7 +592,6 @@ FixedwingPositionControl::vehicle_control_mode_poll()
orb_check(_control_mode_sub, &vstatus_updated);
if (vstatus_updated) {
-
orb_copy(ORB_ID(vehicle_control_mode), _control_mode_sub, &_control_mode);
}
}
@@ -1217,14 +1216,6 @@ FixedwingPositionControl::task_main()
_mavlink_fd = open(MAVLINK_LOG_DEVICE, 0);
}
- static uint64_t last_run = 0;
- float deltaT = (hrt_absolute_time() - last_run) / 1000000.0f;
- last_run = hrt_absolute_time();
-
- /* guard against too large deltaT's */
- if (deltaT > 1.0f)
- deltaT = 0.01f;
-
/* load local copies */
orb_copy(ORB_ID(vehicle_global_position), _global_pos_sub, &_global_pos);