diff --git a/selfdrive/config.py b/selfdrive/config.py index 2a89580889..511f6126c4 100644 --- a/selfdrive/config.py +++ b/selfdrive/config.py @@ -11,7 +11,7 @@ class Conversions: MS_TO_KNOTS = 1.9438 KNOTS_TO_MS = 1. / MS_TO_KNOTS #Angle - DEG_TO_RAD = np.pi/180. + DEG_TO_RAD = np.pi / 180. RAD_TO_DEG = 1. / DEG_TO_RAD #Mass LB_TO_KG = 0.453592 @@ -22,8 +22,8 @@ RADAR_TO_CAMERA = 1.52 # RADAR is ~ 1.5m ahead from center of mesh frame class UIParams: lidar_x, lidar_y, lidar_zoom = 384, 960, 6 - lidar_car_x, lidar_car_y = lidar_x/2., lidar_y/1.1 - car_hwidth = 1.7272/2 * lidar_zoom + lidar_car_x, lidar_car_y = lidar_x / 2., lidar_y / 1.1 + car_hwidth = 1.7272 / 2 * lidar_zoom car_front = 2.6924 * lidar_zoom car_back = 1.8796 * lidar_zoom car_color = 110 diff --git a/tools/README.md b/tools/README.md index 537aa60d2c..c5033a931f 100644 --- a/tools/README.md +++ b/tools/README.md @@ -28,7 +28,7 @@ openpilot tools and the following setup steps are developed and tested on Ubuntu Setup ============ -1. Run `ubuntu_setup.sh` or `mac_setup.sh`, make sure everything completed correctly +1. Run `ubuntu_setup.sh` or `mac_setup.sh`, and make sure that everything completed correctly 2. Compile openpilot by running ```scons``` in the openpilot directory or alternatively run ```./openpilot_build.sh``` (uses a pre-configured docker container)