add new rotation (#14512)

* add new rotation  ROLL_270_YAW_180

fix compile error

fix rotation

modify roatation

* modify enum to 41
This commit is contained in:
Jin Chengde
2020-04-22 15:03:55 +08:00
committed by GitHub
parent a96bc6a145
commit e82880d6d7
2 changed files with 10 additions and 0 deletions
+8
View File
@@ -294,5 +294,13 @@ rotate_3f(enum Rotation rot, float &x, float &y, float &z)
y = -tmp;
return;
}
case ROTATION_ROLL_270_YAW_180: {
x = -x;
tmp = y;
y = -z;
z = -tmp;
return;
}
}
}