Skip to content

Commit 879e3b6

Browse files
committed
2 parents 371b23c + 5ad003d commit 879e3b6

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/HL/Autotech_constant.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,6 @@
3636
ANGLE_LOOKUP = np.linspace(-MAX_ANGLE, MAX_ANGLE, 16)
3737
SPEED_LOOKUP = np.linspace(MIN_SOFT_SPEED, MAX_SOFT_SPEED, 16)
3838

39-
Temperature = 0.6 # Temperature parameter for softmax function, used to control the sharpness of the distribution resols around 1
39+
Temperature = 0.7 # Temperature parameter for softmax function, used to control the sharpness of the distribution resols around 1
4040
# the higher the temperature the more unprobalbe actions become probable, the lower the temperature the more probable actions become probable.
4141
# In our case Higher temperature means less agressive driving and lower temperature means more aggressive driving.

src/HL/Driver.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def ai_update_lidar_camera(self, lidar_data, camera_data):
5151
return angle, vitesse
5252

5353
def ai_update_lidar(self, lidar_data):
54-
lidar_data = np.array(lidar_data, dtype=np.float32)
54+
lidar_data = np.array(lidar_data, dtype=np.float32) * 1.6
5555
# 2 vectors direction and speed. direction is between hard left at index 0 and hard right at index 1. speed is between min speed at index 0 and max speed at index 1
5656
vect = self.ai_session.run(None, {'input': lidar_data[None]})[0][0]
5757

0 commit comments

Comments
 (0)