1
0
mirror of https://gitlab.com/lander-team/lander-cpp.git synced 2025-07-25 23:51:35 +00:00

use M_PI constant instead of hard coding

This commit is contained in:
2021-09-13 08:28:07 -07:00
parent 7a31ed04a9
commit 9050658199
2 changed files with 19 additions and 19 deletions

View File

@@ -17,14 +17,14 @@ int main() {
Vars.vz = 0; // [m/s]
// Initial YPR
Vars.yaw = 0 * 3.1416 / 180; // [rad]
Vars.pitch = 0 * 3.1416 / 180; // [rad]
Vars.roll = 0 * 3.1416 / 180; // [rad]
Vars.yaw = 0 * M_PI / 180; // [rad]
Vars.pitch = 0 * M_PI / 180; // [rad]
Vars.roll = 0 * M_PI / 180; // [rad]
// Initial YPRdot
Vars.yawdot = 0 * 3.1416 / 180; // [rad/s]
Vars.pitchdot = 0 * 3.1416 / 180; // [rad/s]
Vars.rolldot = 0 * 3.1416 / 180; // [rad/s]
Vars.yawdot = 0 * M_PI / 180; // [rad/s]
Vars.pitchdot = 0 * M_PI / 180; // [rad/s]
Vars.rolldot = 0 * M_PI / 180; // [rad/s]
// Servo Limitation
Vars.maxServo = 15; // [degs]