Skip to content

Commit

Permalink
uas_sensor_orientation: remove static prefix from sensor_orientation …
Browse files Browse the repository at this point in the history
…array
  • Loading branch information
TSC21 committed Jul 16, 2015
1 parent 6ce849f commit 5003940
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mavros/src/lib/uas_sensor_orientation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ using namespace mavros;

/** @todo Combine the bellow with string representation */

static const std::array<const Eigen::Vector3d, 39> sensor_orientation = {
const std::array<const Eigen::Vector3d, 39> sensor_orientation = {
/* 0 */ Eigen::Vector3d(0.0, 0.0, 0.0),
/* 1 */ Eigen::Vector3d(0.0, 0.0, 45.0),
/* 2 */ Eigen::Vector3d(0.0, 0.0, 90.0),
Expand Down Expand Up @@ -74,6 +74,6 @@ Eigen::Quaterniond UAS::sensor_orientation_matching(MAV_SENSOR_ORIENTATION orien
}

return UAS::quaternion_from_rpy(Eigen::Vector3d(sensor_orientation[idx].x(),
sensor_orientation[idx].y(),
sensor_orientation[idx].z()) * DEG_TO_RAD);
sensor_orientation[idx].y(),
sensor_orientation[idx].z()) * DEG_TO_RAD);
};

0 comments on commit 5003940

Please sign in to comment.