Skip to content

Commit a0ebb78

Browse files
authored
Merge pull request #85 from jjshoots/fix_fixedwing_yaw
Fix fixedwing yaw
2 parents 0ac436c + ad757d0 commit a0ebb78

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

PyFlyt/core/drones/fixedwing.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,8 @@ def __init__(
140140

141141
# mapping for RPYT -> LeftAil, RightAil, HorStab, VertStab, MainWing, Motor
142142
# signs for each control surface when under assist
143-
self.surface_assist_ids = np.array([0, 0, 1, 1, 2, 3])
144-
self.surface_assist_signs = np.array([1.0, -1.0, 1.0, -1.0, 0.0, 1.0])
143+
self.surface_assist_ids = np.array([0, 0, 1, 2, 1, 3])
144+
self.surface_assist_signs = np.array([1.0, -1.0, 1.0, -1.0, -1.0, 1.0])
145145

146146
# motor
147147
motor_params = all_params["motor_params"]

PyFlyt/gym_envs/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232

3333
# Fixedwing Envs
3434
register(
35-
id="PyFlyt/Fixedwing-Waypoints-v3",
35+
id="PyFlyt/Fixedwing-Waypoints-v4",
3636
entry_point="PyFlyt.gym_envs.fixedwing_envs.fixedwing_waypoints_env:FixedwingWaypointsEnv",
3737
)
3838

tests/test_gym_envs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
[
1919
"PyFlyt/QuadX-Waypoints-v4",
2020
"PyFlyt/QuadX-Pole-Waypoints-v4",
21-
"PyFlyt/Fixedwing-Waypoints-v3",
21+
"PyFlyt/Fixedwing-Waypoints-v4",
2222
],
2323
["euler", "quaternion"],
2424
[True, False],

0 commit comments

Comments
 (0)