Skip to content

Commit

Permalink
Middle sprint jjshoots#5
Browse files Browse the repository at this point in the history
  • Loading branch information
LFL077 committed Jun 22, 2023
1 parent 489003c commit eabfb93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PyFlyt/gym_envs/rocket_envs/rocket_landing_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ def compute_term_trunc_reward(self):
- (self.reward_options[5] * angular_velocity) # not spinning
- (self.reward_options[6] * angular_position) # and upright
- (self.reward_options[7] * linear_velocity) # basically stopped
+ (self.reward_options[8] / (distance_to_pad + 0.001)) # we want to be at the pad
- (self.reward_options[8] * (distance_to_pad + 0.001)) # we want to be at the pad
)


Expand Down

0 comments on commit eabfb93

Please sign in to comment.