Merge pull request #8 from PX4/cast_fix

added missing cast
This commit is contained in:
James Goppert
2016-01-12 01:09:56 -06:00
+3 -3
View File
@@ -56,13 +56,13 @@ public:
psi() = 0;
theta() = 0;
phi() = 0;
if (psi() >= -M_PI_2 && psi() <= M_PI_2) {
if (psi() >= -(Type)M_PI_2 && psi() <= (Type)M_PI_2) {
psi() = psi_val;
}
if (theta() >= -M_PI_2 && theta() <= M_PI_2) {
if (theta() >= -(Type)M_PI_2 && theta() <= (Type)M_PI_2) {
theta() = theta_val;
}
if (phi() >= -M_PI_2 && phi() <= M_PI_2) {
if (phi() >= -(Type)M_PI_2 && phi() <= (Type)M_PI_2) {
phi() = phi_val;
}
}