mirror of
https://gitlab.com/lander-team/lander-cpp.git
synced 2025-07-25 23:51:35 +00:00
Servo rate limiting implemented with a new limit function
This commit is contained in:
10
src/main.cpp
10
src/main.cpp
@@ -28,9 +28,10 @@ int main() {
|
||||
State.vz = 0; // [m/s]
|
||||
|
||||
// Initial YPR
|
||||
State.yaw = 75 * M_PI / 180; // [rad]
|
||||
State.pitch = 35 * M_PI / 180; // [rad]
|
||||
State.roll = 0 * M_PI / 180; // [rad]
|
||||
|
||||
State.yaw = 75 * M_PI / 180; // [rad]
|
||||
State.pitch = 30 * M_PI / 180; // [rad]
|
||||
State.roll = 0 * M_PI / 180; // [rad]
|
||||
|
||||
// Initial YPRdot
|
||||
State.yawdot = 1 * M_PI / 180; // [rad/s]
|
||||
@@ -38,7 +39,8 @@ int main() {
|
||||
State.rolldot = 0 * M_PI / 180; // [rad/s]
|
||||
|
||||
// Servo Limitation
|
||||
State.maxServo = 15; // [degs]
|
||||
State.maxServo = 7; // [degs]
|
||||
State.maxServoRate = 360; // [degs/sec]
|
||||
|
||||
// Vehicle Properties
|
||||
State.massInitial = 1.2; // [kg]
|
||||
|
Reference in New Issue
Block a user