mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
Dcm2: Use std::sin with overloaded types
This commit is contained in:
parent
d1b8a2e8d5
commit
df46ad7774
@ -102,8 +102,8 @@ public:
|
||||
Dcm2(const Type angle)
|
||||
{
|
||||
Dcm2 &dcm = *this;
|
||||
Type sin_angle = sin(angle);
|
||||
Type cos_angle = cos(angle);
|
||||
Type sin_angle = std::sin(angle);
|
||||
Type cos_angle = std::cos(angle);
|
||||
|
||||
dcm(0, 0) = cos_angle;
|
||||
dcm(0, 1) = -sin_angle;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user