Skip to content

Commit

Permalink
Merge 83fa2da into 884d67f
Browse files Browse the repository at this point in the history
  • Loading branch information
scpeters authored Nov 10, 2021
2 parents 884d67f + 83fa2da commit 72d0cb2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions examples/quaternion_from_euler.cc
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ int main(int argc, char **argv)
if (argc != 4)
{
std::cerr << "Invalid usage\n\n"
<< "Usage (angles specified in radians):\n"
<< "Usage (angles specified in degrees):\n"
<< " quaternion_from_euler "
<< "<float_roll> <float_pitch> <float_yaw>\n\n"
<< "Example\n"
Expand All @@ -53,9 +53,9 @@ int main(int argc, char **argv)
return -1;
}

double roll = strToDouble(argv[1]);
double pitch = strToDouble(argv[2]);
double yaw = strToDouble(argv[3]);
double roll = IGN_DTOR(strToDouble(argv[1]));
double pitch = IGN_DTOR(strToDouble(argv[2]));
double yaw = IGN_DTOR(strToDouble(argv[3]));

std::cout << "Converting Euler angles:\n";
printf(" roll % .6f radians\n"
Expand Down

0 comments on commit 72d0cb2

Please sign in to comment.