Merge branch 'devel-en' into devel-zhs

# Conflicts:
#	apk/ai.comma.plus.offroad.apk
This commit is contained in:
dragonpilot
2019-08-22 16:27:24 +10:00
4 changed files with 5 additions and 1 deletions
Binary file not shown.
+1
View File
@@ -116,6 +116,7 @@ keys = {
"DragonEnableMixplorer": [TxType.PERSISTENT],
"DragonRunMixplorer": [TxType.PERSISTENT],
"DragonSteeringMonitorTimer": [TxType.PERSISTENT],
"DragonCameraOffset": [TxType.PERSISTENT],
}
+3 -1
View File
@@ -1,8 +1,10 @@
from common.numpy_fast import interp
import numpy as np
from selfdrive.controls.lib.latcontrol_helpers import model_polyfit, compute_path_pinv
from common.params import Params
params = Params()
CAMERA_OFFSET = 0.06 # m from center car to camera
CAMERA_OFFSET = int(params.get("DragonCameraOffset"))
def calc_d_poly(l_poly, r_poly, p_poly, l_prob, r_prob, lane_width):
@@ -36,6 +36,7 @@ default_conf = {
'DragonEnableMixplorer': '0',
'DragonRunMixplorer': '0',
'DragonSteeringMonitorTimer': '3',
'DragonCameraOffset': '6',
}
deprecated_conf = {