Skip to content

Commit

Permalink
AP_Math: updated EulerAngles.pdf link
Browse files Browse the repository at this point in the history
  • Loading branch information
tridge committed Jun 22, 2024
1 parent 3734f19 commit 648eb4d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions libraries/AP_Math/matrix3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#include "AP_Math.h"

// create a rotation matrix given some euler angles
// this is based on http://gentlenav.googlecode.com/files/EulerAngles.pdf
// this is based on https://github.com/ArduPilot/Datasheets/blob/main/References/EulerAngles.pdf
template <typename T>
void Matrix3<T>::from_euler(T roll, T pitch, T yaw)
{
Expand All @@ -44,7 +44,7 @@ void Matrix3<T>::from_euler(T roll, T pitch, T yaw)
}

// calculate euler angles from a rotation matrix
// this is based on http://gentlenav.googlecode.com/files/EulerAngles.pdf
// this is based on https://github.com/ArduPilot/Datasheets/blob/main/References/EulerAngles.pdf
template <typename T>
void Matrix3<T>::to_euler(T *roll, T *pitch, T *yaw) const
{
Expand Down
2 changes: 1 addition & 1 deletion libraries/AP_Math/matrix3.h
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ class Matrix3 {
}

/*
create a rotation matrix from Euler angles in 321 euler orderin
create a rotation matrix from Euler angles in 321 euler ordering
*/
void from_euler(T roll, T pitch, T yaw);

Expand Down

0 comments on commit 648eb4d

Please sign in to comment.