aboutsummaryrefslogtreecommitdiff
path: root/src/modules/sensors/sensors.cpp
diff options
context:
space:
mode:
authorLorenz Meier <lm@inf.ethz.ch>2014-03-17 13:33:49 +0100
committerLorenz Meier <lm@inf.ethz.ch>2014-03-17 13:33:49 +0100
commitdbd467fe1f3779b45090f556fd05b056f068cd34 (patch)
tree57c748c49bb6047e09772981a3c894531c798783 /src/modules/sensors/sensors.cpp
parent8cb5a12cc702ac238f4dc79bf1f1cee3fdee005f (diff)
downloadpx4-firmware-dbd467fe1f3779b45090f556fd05b056f068cd34.tar.gz
px4-firmware-dbd467fe1f3779b45090f556fd05b056f068cd34.tar.bz2
px4-firmware-dbd467fe1f3779b45090f556fd05b056f068cd34.zip
sensors: Remove effect-less writing of timestamp - was anyway correctly written by gyro update
Diffstat (limited to 'src/modules/sensors/sensors.cpp')
-rw-r--r--src/modules/sensors/sensors.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/modules/sensors/sensors.cpp b/src/modules/sensors/sensors.cpp
index 76dc262f1..0ed26b54c 100644
--- a/src/modules/sensors/sensors.cpp
+++ b/src/modules/sensors/sensors.cpp
@@ -1592,8 +1592,7 @@ Sensors::task_main()
/* check parameters for updates */
parameter_update_poll();
- /* store the time closest to all measurements (this is bogus, sensor timestamps should be propagated...) */
- raw.timestamp = hrt_absolute_time();
+ /* the timestamp of the raw struct is updated by the gyro_poll() method */
/* copy most recent sensor data */
gyro_poll(raw);