diff options
author | Thomas Gubler <thomasgubler@gmail.com> | 2015-01-29 10:28:56 +0100 |
---|---|---|
committer | Thomas Gubler <thomasgubler@gmail.com> | 2015-01-29 10:28:56 +0100 |
commit | 8a6b94adbfa58245d13354216168de86e888c782 (patch) | |
tree | 45767357a392ef168a22c668b23146763ab620ba /src/platforms/ros | |
parent | 9245f28fb84e87505c6024121720bbd0776e64a0 (diff) | |
download | px4-firmware-8a6b94adbfa58245d13354216168de86e888c782.tar.gz px4-firmware-8a6b94adbfa58245d13354216168de86e888c782.tar.bz2 px4-firmware-8a6b94adbfa58245d13354216168de86e888c782.zip |
attitude estimator dummy node: add timestamp
Diffstat (limited to 'src/platforms/ros')
-rw-r--r-- | src/platforms/ros/nodes/attitude_estimator/attitude_estimator.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/platforms/ros/nodes/attitude_estimator/attitude_estimator.cpp b/src/platforms/ros/nodes/attitude_estimator/attitude_estimator.cpp index bcee0b479..f744aa11c 100644 --- a/src/platforms/ros/nodes/attitude_estimator/attitude_estimator.cpp +++ b/src/platforms/ros/nodes/attitude_estimator/attitude_estimator.cpp @@ -43,6 +43,7 @@ #include <px4/vehicle_attitude.h> #include <mathlib/mathlib.h> #include <platforms/px4_defines.h> +#include <platforms/px4_middleware.h> AttitudeEstimator::AttitudeEstimator() : _n(), @@ -92,6 +93,7 @@ void AttitudeEstimator::ModelStatesCallback(const gazebo_msgs::ModelStatesConstP // msg_v_att.pitchspeed = -(float)msg->twist[index].angular.y; // msg_v_att.yawspeed = -(float)msg->twist[index].angular.z; + msg_v_att.timestamp = px4::get_time_micros(); _vehicle_attitude_pub.publish(msg_v_att); } |