mirror of
https://github.com/MoreTore/openpilot.git
synced 2026-08-04 15:56:08 +08:00
camera offsets (#20022)
* camera offsets * runs on pc so is 0 in proc replay
This commit is contained in:
@@ -1,9 +1,17 @@
|
||||
from common.numpy_fast import interp
|
||||
import numpy as np
|
||||
from selfdrive.hardware import EON, TICI
|
||||
from cereal import log
|
||||
|
||||
CAMERA_OFFSET = 0.06 # m from center car to camera
|
||||
|
||||
TRAJECTORY_SIZE = 33
|
||||
# camera offset is meters from center car to camera
|
||||
if EON:
|
||||
CAMERA_OFFSET = 0.06
|
||||
elif TICI:
|
||||
CAMERA_OFFSET = -0.04
|
||||
else:
|
||||
CAMERA_OFFSET = 0.0
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1 +1 @@
|
||||
3d94188da5fdb35c18664d32ac3c720b221a78c7
|
||||
c1740f64ad8a8e789023e062bc1ab125438e6a0a
|
||||
Reference in New Issue
Block a user