Skip to content

Commit

Permalink
Fix integer only values for odom.pose.z (fixes #155)
Browse files Browse the repository at this point in the history
(hattip to @alexjung)
  • Loading branch information
autolab committed Aug 11, 2015
1 parent c8665fd commit 2e3b75a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ardrone_driver.cpp
Expand Up @@ -702,7 +702,7 @@ void ARDroneDriver::PublishOdometry(const navdata_unpacked_t &navdata_raw, const

odo_msg.pose.pose.position.x = odometry[0];
odo_msg.pose.pose.position.y = odometry[1];
odo_msg.pose.pose.position.z = navdata_raw.navdata_demo.altitude / 1000;
odo_msg.pose.pose.position.z = navdata_raw.navdata_demo.altitude / 1000.0;
odo_msg.pose.pose.orientation = tf::createQuaternionMsgFromRollPitchYaw(
navdata_raw.navdata_demo.phi / 180000.0 * M_PI,
-navdata_raw.navdata_demo.theta / 180000.0 * M_PI,
Expand Down

0 comments on commit 2e3b75a

Please sign in to comment.