diff --git a/examples/quaternion_from_euler.cc b/examples/quaternion_from_euler.cc index cff627101..ffe8fef57 100644 --- a/examples/quaternion_from_euler.cc +++ b/examples/quaternion_from_euler.cc @@ -44,7 +44,7 @@ int main(int argc, char **argv) if (argc != 4) { std::cerr << "Invalid usage\n\n" - << "Usage (angles specified in degrees):\n" + << "Usage (angles specified in radians):\n" << " quaternion_from_euler " << " \n\n" << "Example\n" @@ -53,9 +53,9 @@ int main(int argc, char **argv) return -1; } - double roll = GZ_DTOR(strToDouble(argv[1])); - double pitch = GZ_DTOR(strToDouble(argv[2])); - double yaw = GZ_DTOR(strToDouble(argv[3])); + double roll = strToDouble(argv[1]); + double pitch = strToDouble(argv[2]); + double yaw = strToDouble(argv[3]); std::cout << "Converting Euler angles:\n"; printf(" roll % .6f radians\n"