Skip to content

Commit

Permalink
see issue #188
Browse files Browse the repository at this point in the history
  • Loading branch information
JacopoPan authored Jan 30, 2024
1 parent 2c2470c commit ec807dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gym_pybullet_drones/envs/BaseAviary.py
Original file line number Diff line number Diff line change
Expand Up @@ -859,7 +859,7 @@ def _dynamics(self,
vel = vel + self.PYB_TIMESTEP * no_pybullet_dyn_accs
rpy_rates = rpy_rates + self.PYB_TIMESTEP * rpy_rates_deriv
pos = pos + self.PYB_TIMESTEP * vel
quat = self._integrateQ(quat, rpy_rates, self.TIMESTEP)
quat = self._integrateQ(quat, rpy_rates, self.PYB_TIMESTEP)
#### Set PyBullet's state ##################################
p.resetBasePositionAndOrientation(self.DRONE_IDS[nth_drone],
pos,
Expand Down Expand Up @@ -1146,4 +1146,4 @@ def _calculateNextStep(self, current_position, destination, step_size=1):
next_step = (
current_position + normalized_direction * step_size
) # Calculate the next step
return next_step
return next_step

0 comments on commit ec807dd

Please sign in to comment.