Skip to content

Commit

Permalink
test: # Care only 62.5% less about and velocities and reference input…
Browse files Browse the repository at this point in the history
… of the drone

                    # Reference Weighting matrices from the paper
                    # Q = diagcat(1, 1, 1, 0.6, 0.6, 1, 0, 0, 0, 0, 0, 0)
                    # R = diagcat(0.3, 0.3, 0.3, 0.8)

        Q = diagcat(1, 1, 1, 0.375, 0.375, 0.625, 0, 0, 0, 0, 0, 0)
        R = diagcat(0.1875, 0.1875, 0.1875, 0.5)

        # N DISCR LEVEL: 10 -> performs slower than 50%
  • Loading branch information
hedaniel7 committed Feb 16, 2024
1 parent 78aa43c commit 9414999
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions gym_pybullet_drones/control/MPCCasADiControl.py
Original file line number Diff line number Diff line change
Expand Up @@ -386,15 +386,13 @@ def __init__(self,
R = diagcat(0, 0, 0, 0)
# -> Test result: Drone completely goes off the rails and crazyflie flies crazily and fails'''

# Care only 75% less about and velocities and reference input of the drone
# Care only 62.5% less about and velocities and reference input of the drone
# Reference Weighting matrices from the paper
# Q = diagcat(1, 1, 1, 0.6, 0.6, 1, 0, 0, 0, 0, 0, 0)
# R = diagcat(0.3, 0.3, 0.3, 0.8)

Q = diagcat(1, 1, 1, 0.45, 0.45, 0.75, 0, 0, 0, 0, 0, 0)
R = diagcat(0.225, 0.225, 0.225, 0.6)


Q = diagcat(1, 1, 1, 0.375, 0.375, 0.625, 0, 0, 0, 0, 0, 0)
R = diagcat(0.1875, 0.1875, 0.1875, 0.5)



Expand Down

0 comments on commit 9414999

Please sign in to comment.