Update config.py code (#19609)

* Update config.py

* Update README.md
albatross
Abdul Adhil PK 2020-12-29 05:06:23 +05:30 committed by GitHub
parent b09e5227d0
commit 50d5434a9f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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)