Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9fa31de64c | ||
|
|
43f1253b9c | ||
|
|
6c9fbb788a |
1
.gitignore
vendored
@@ -41,7 +41,6 @@ selfdrive/boardd/boardd
|
||||
selfdrive/logcatd/logcatd
|
||||
selfdrive/mapd/default_speeds_by_region.json
|
||||
selfdrive/proclogd/proclogd
|
||||
selfdrive/ui/_ui
|
||||
selfdrive/test/longitudinal_maneuvers/out
|
||||
selfdrive/visiond/visiond
|
||||
selfdrive/loggerd/loggerd
|
||||
|
||||
670
CHANGELOGS-DEV.md
Normal file
@@ -0,0 +1,670 @@
|
||||
dragonpilot 0.8.6-1
|
||||
========================
|
||||
* Based on openpilot 0.8.6 devel.
|
||||
* Support 1+3t / C2 / Jetson Xavier NX.
|
||||
* Support White / Grey Panda.
|
||||
|
||||
dragonpilot 0.8.5-4
|
||||
========================
|
||||
* Added multiple toggles.
|
||||
* Code clean up.
|
||||
* Android app support. (see selfdrive/dragonpilot/HOWTO-APPD.md)
|
||||
* Better support for VW MPQ (Thanks to @Saber)
|
||||
|
||||
dragonpilot 0.8.5-3
|
||||
========================
|
||||
* Added Jetson support toggle.
|
||||
* Added Steering Ratio controller.
|
||||
* Reduce Following Profile to 3 modes only. (1.8s / 1.5s / 1.2s)
|
||||
* Bug fixes.
|
||||
|
||||
dragonpilot 0.8.5-2
|
||||
========================
|
||||
* Added black panda simulation toggle.
|
||||
* Added No GPS toggle.
|
||||
* Added No Battery Toggle.
|
||||
* Bug fixes.
|
||||
|
||||
dragonpilot 0.8.5-1
|
||||
========================
|
||||
* Based on openpilot 0.8.5 devel.
|
||||
* 基於 openpilot 0.8.5 devel.
|
||||
* Support 1+3t / C2 / Jetson Xavier NX.
|
||||
* 支持 1+3t / C2 / Jetson Xavier NX.
|
||||
* No White/Grey Panda Support.
|
||||
* 不支持白灰熊.
|
||||
|
||||
dragonpilot 0.8.4-3
|
||||
========================
|
||||
* 簡化 1+3t 安裝方法. (請查閱 HOWTO-ONEPLUS.md)
|
||||
* Simplied 1+3t installation. (See HOWTO-ONEPLUS.md)
|
||||
* 加回舊 ssh 登錄.
|
||||
* Good old ssh key.
|
||||
* 修復本田錯誤. (感謝 @loveloveses)
|
||||
* Fixed Honda bug. (Thanks to @loveloveses)
|
||||
|
||||
dragonpilot 0.8.4-2
|
||||
========================
|
||||
* 加回可調整加速/跟車設定.
|
||||
* Added back Accel/Following Profile.
|
||||
* 支持 Headless Jetson Xavier NX (https://github.com/efinilan/xnxpilot.git)
|
||||
* Support Headless Jetson Xavier NX (https://github.com/efinilan/xnxpilot.git)
|
||||
* 支持 1+3t (需額外安裝手續)
|
||||
* Support 1+3t (Require additional install procedure)
|
||||
* 支持白/灰熊
|
||||
* Support White/Grey Panda.
|
||||
|
||||
dragonpilot 0.8.4-1
|
||||
========================
|
||||
* 基於 openpilot 0.8.4 devel.
|
||||
* Based on openpilot 0.8.4 devel.
|
||||
|
||||
dragonpilot 0.8.1
|
||||
========================
|
||||
* 基於最新 openpilot 0.8.1 devel.
|
||||
* Based on latest openpilot 0.8.1 devel.
|
||||
* 加入行車記錄按鈕。(感謝 @toyboxZ 提供)
|
||||
* Added REC screen button. (Thanks to @toyboxZ)
|
||||
|
||||
dragonpilot 0.8.0
|
||||
========================
|
||||
* 基於最新 openpilot 0.8.0 devel.
|
||||
* Based on latest openpilot 0.8.0 devel.
|
||||
* 加入 git 錯誤修正。(感謝 @toyboxZ 提供)
|
||||
* Added git error fix. (Thanks to @toyboxZ)
|
||||
|
||||
dragonpilot 0.7.10.1
|
||||
========================
|
||||
* HYUNDAI_GENESIS 使用 INDI 控制器。(感謝 @donfyffe 提供)
|
||||
* HYUNDAI_GENESIS uses INDI controller. (Thanks to @donfyffe)
|
||||
* HYUNDAI_GENESIS 加入 Cruise 按紐 和 lkMode 支援。(感謝 @donfyffe 建議)
|
||||
* HYUNDAI_GENESIS added Cruise button event and lkMode feature. (Thanks to @donfyffe)
|
||||
* 支援台灣版 2018 Huyndai IONIQ + smart MDPS (dp_hkg_smart_mdps) (感謝 @andy741217 提供)
|
||||
* Support 2018 Taiwan Hyundai IONIQ + smart MDPS (dp_hkg_smart_mdps) (Thanks to @andy741217)
|
||||
* 使用 openpilot v0.8 的模型。(感謝 @eisenheim)
|
||||
* Use openpilot v0.8 model. (Thanks to @eisenheim)
|
||||
* 加入 0.8 測試版的部分優化。
|
||||
* Added optimizations from pre-0.8.
|
||||
* 加入 dp_honda_eps_mod 設定來使用更高的扭力 (需 eps mod)。(感謝 @Wuxl_369 提供)
|
||||
* Added dp_honda_eps_mod setting to enable higher torque (eps mod required). (Thanks to @Wuxl_369)
|
||||
* 修正 VW 對白/灰熊的支援 (感謝 @lirudy 提供)
|
||||
* Fixed issue with white/grey panda support for VW (Thanks to @lirudy)
|
||||
* GENESIS_G70 優化 (感謝 @sebastian4k 提供)
|
||||
* GENESIS_G70 Optimisation (Thanks to @sebastian4k)
|
||||
* HYUNDAI_GENESIS 優化 (感謝 @donfyffe 提供)
|
||||
* HYUNDAI_GENESIS Optimisation (Thanks to @donfyffe)
|
||||
* 加入 Dynamic gas Lite。(感謝 @toyboxZ 提供)
|
||||
* Added Dynamic Gas Lite. (Thanks to @toyboxZ)
|
||||
* 加入來自 afa 的 Honda inspire, accord, crv SnG 優化。(感謝 @menwenliang 提供)
|
||||
* Added Honda inspire, accord, crv SnG optimisation from afa fork. (Thanks to @menwenliang)
|
||||
* 加入 dp_toyota_lowest_cruise_override_vego。(感謝 @toyboxZ 提供)
|
||||
* Added dp_toyota_lowest_cruise_override_vego. (Thanks to @toyboxZ)
|
||||
|
||||
dragonpilot 0.7.10.0
|
||||
========================
|
||||
* 基於最新 openpilot 0.7.10 devel.
|
||||
* Based on latest openpilot 0.7.10 devel.
|
||||
* 修正 Prius 特定情況下無法操控方向盤的問題。
|
||||
* Fixed unable to regain Prius steering control under certain condition.
|
||||
* 更新 VW MQB 的支援。(需執行 scripts/vw.sh 腳本)
|
||||
* Updated support of VW MQB. (scripts/vw.sh script required)
|
||||
* 新增 2018 China Toyota CHR 指紋v2。(感謝 @xiaohongcheung 提供)
|
||||
* Added 2018 China Toyota CHR FPv2. (Thanks to @xiaohongcheung)
|
||||
* 加入 Headunit Reloaded Android Auto App 支援。(感謝 @Ninjaa 提供)
|
||||
* Added Headunit Reloaded Android Auto App Support. (Thanks to @Ninjaa)
|
||||
* 優化 nanovg。(感謝 @piggy 提供)
|
||||
* Optomized nanovg. (Thanks to @piggy)
|
||||
* 加入 complete_setup.sh (感謝 @深鲸希西 提供)
|
||||
* Added complete_setup.sh (Thanks to @深鲸希西)
|
||||
* Based on latest openpilot 0.7.10 devel.
|
||||
* 修正 EON 接 PC/USB 充電器時仍會自動關機的錯誤。(感謝 @小愛 回報)
|
||||
* Fixed auto shutdown issue when EON connect to PC/USB Charger. (Thanks to @LOVEChen)
|
||||
* HYUNDAI_GENESIS 使用 INDI 控制器。(感謝 @donfyffe 提供)
|
||||
* HYUNDAI_GENESIS uses INDI controller. (Thanks to @donfyffe)
|
||||
|
||||
dragonpilot 0.7.8.3
|
||||
========================
|
||||
* VW 加入 6 分鐘時間方向盤控制限制輔助方案。(特別感謝 @actuallylemoncurd 提供代碼)
|
||||
* VW added 6 minutes timebomb assist. (dp_timebomb_assist, special thanks to @actuallylemoncurd)
|
||||
|
||||
dragonpilot 0.7.8.2
|
||||
========================
|
||||
* 修正在沒網路的情況下,開機超過五分鐘的問題。
|
||||
* Fixed 5+ minutes boot time issue when there is no internet connection.
|
||||
* 錯誤回傳改使用 dp 的主機。
|
||||
* Used dp server for error reporting.
|
||||
* 更新服務改使用 gitee 的 IP 檢查連線狀態。
|
||||
* updated service uses gitee IP address instead.
|
||||
|
||||
dragonpilot 0.7.8.1
|
||||
========================
|
||||
* 加入 ko-KR 翻譯。
|
||||
* Added ko-KR translation.
|
||||
* 加入 Honda Jade 支援。(感謝 @李俊灝)
|
||||
* Added Honda Jade support. (Thanks to @lijunhao731)
|
||||
* 修正 ui.cc 內存越界的問題。(感謝 @piggy 提供)
|
||||
* Fixed ui.cc memory out of bound issue. (Thanks to @piggy)
|
||||
* gpxd 記錄改自動存成 zip 格式。
|
||||
* gpxd now store in zip format.
|
||||
* 強制關閉 panda 檢查 DOS 硬體。
|
||||
* Force disabled DOS hardware check in panda.
|
||||
|
||||
dragonpilot 0.7.8.0
|
||||
========================
|
||||
* 基於最新 openpilot 0.7.8 devel.
|
||||
* Based on latest openpilot 0.7.8 devel.
|
||||
* 加入重置 DP 設定按鈕。(感謝 @LOVEChen 建議)
|
||||
* Added "Reset DP Settings" button. (Thanks to @LOVEChen)
|
||||
* 將警示訊息更改為類似於概念 UI 的設計。
|
||||
* Alert messages changed to concept UI alike design.
|
||||
* 當 manager 出現錯誤後,按 Exit 按鈕會執行 reset_update 腳本。
|
||||
* Added ability to execute reset_update.sh when press "Exit" button once manager returned errors.
|
||||
|
||||
dragonpilot 0.7.7.3
|
||||
========================
|
||||
* 修正方向盤監控。
|
||||
* Fixed steering monitor timer param.
|
||||
* 修正行駛時關閉畫面導致當機的錯誤。(感謝 @salmankhan, @stevej99, @bobbydough 回報)
|
||||
* Fixed screen frozen issue when "screen off while driving" toggle is enabled. (Thanks to @salmankhan, @stevej99, @bobbydough)
|
||||
* 加回 Dev Mini UI 開關。(感謝 @Ninjaa 建議)
|
||||
* Re-added Dev Mini UI. (Thanks to @Ninjaa)
|
||||
* 新增 (dp_reset_live_parameters_on_start) 每次發車重設 LiveParameters 值。(感謝 @eisenheim)
|
||||
* Added ability (dp_reset_live_param_on_start) to reset LiveParameters on each start. (Thanks @eisenheim)
|
||||
* 修正同時開啟 dp_toyota_zss 和 dp_lqr 產生的錯誤。(感謝 @bobbydough)
|
||||
* Fixed error cuased by enabling both dp_toyota_zss and dp_lqr at the same time. (Thanks to @bobbydough)
|
||||
* 新增 (dp_gpxd) 將 GPS 軌跡導出至 GPX 格式 (/sdcard/gpx_logs/)的功能。 (感謝 @mageymoo1)
|
||||
* Added ability (dp_gpxd) to export GPS track into GPX files (/sdcard/gpx_logs/). (Thanks to @mageymoo1)
|
||||
* 使用德國的車道寬度估算值。 (感謝 @arne182)
|
||||
* Used lane width estimate value from Germany. (Thanks to @arne182)
|
||||
|
||||
dragonpilot 0.7.7.2
|
||||
========================
|
||||
* 加入 d_poly offset。 (感謝 @ShaneSmiskol)
|
||||
* Added d_poly offset. (Thanks to @ShaneSmiskol)
|
||||
* 加入 ZSS 支援。(感謝 @bobbydough, @WilliamPrius 建議, @bobbydough 測試)
|
||||
* Added ZSS support. (Thanks to @bobbydough, @WilliamPrius for recommendation, @bobbydough for testing)
|
||||
* 加入錯誤記錄至 /sdcard/crash_logs/ (感謝 @ShaneSmiskol 提供代碼)
|
||||
* Added error logs to /sdcard/crash_logs/ (Special Thanks to @ShaneSmiskol)
|
||||
* 加入 LQR 控制器開關進設定畫面。
|
||||
* Added LQR Controller toggle to settings.
|
||||
|
||||
dragonpilot 0.7.7.1
|
||||
========================
|
||||
* 加入 C2 風扇靜音模式。(感謝 @dingliangxue)
|
||||
* Added C2 quiet fan mode. (Thanks to @dingliangxue)
|
||||
* 加入「輔助換道最低啟動速度」、「自動換道最低啟動速度」設定。
|
||||
* Added "Assisted Lane Change Min Engage Speed" and "Auto Lane Change Min Engage Speed" settings.
|
||||
* 加入回調校介面。(感謝 @Kent)
|
||||
* Re-added Dev UI. (Thanks to @Kent)
|
||||
* 加入 "dp_lqr" 設定來強制使用 RAV4 的 lqr 調校。(感謝 @eisenheim)
|
||||
* Added "dp_lqr" setting to force enable lqr tuning from RAV4. (Thanks to eisenheim)
|
||||
|
||||
dragonpilot 0.7.7.0
|
||||
========================
|
||||
* 基於最新 openpilot 0.7.7 devel.
|
||||
* Based on latest openpilot 0.7.7 devel.
|
||||
* 當 Manager 出現錯誤時,顯示 IP 位置。(感謝 @dingliangxue)
|
||||
* When Manager failed, display IP address. (Thanks to @dingliangxue)
|
||||
* 加回 sr learner 開關。
|
||||
* Re-added sr learner toggle.
|
||||
* 加回 加速模式 開關。
|
||||
* Re-added Accel Profile toggle.
|
||||
* Toyota 加入改寫最低巡航速度功能。(感謝 @Mojo)
|
||||
* Added Toyota to override lowerest cruise speed. (Thanks to @Mojo)
|
||||
* 介面加入盲點偵測顯示。(感謝 @wabes)
|
||||
* Added BSM indicator to UI. (Thanks to @wabes)
|
||||
* 加回彎道減速功能。(感謝 @Mojo)
|
||||
* re-added Slow On Curve functionality. (Thanks to @Mojo)
|
||||
|
||||
dragonpilot 0.7.6.2
|
||||
========================
|
||||
* 修正無法正確關閉駕駛監控的問題。
|
||||
* Fixed unable to properly turn off driver monitor issue.
|
||||
|
||||
dragonpilot 0.7.6.1
|
||||
========================
|
||||
* 基於最新 openpilot 0.7.6.1 devel.
|
||||
* Based on latest openpilot 0.7.6.1 devel.
|
||||
* 優化並整合 dp 服務。 (所有的設定檔已改名,請重新設定所有的功能)
|
||||
* Optimized and integrated several dp services. (Settings have been renamed, please re-config all settings)
|
||||
* 完全關閉 steer ratio learner。
|
||||
* Completely disabled steer ratio learner.
|
||||
* 移除「加速模式」。
|
||||
* Removed Accel Profile.
|
||||
* 加入本田皓影混電版指紋v1。(感謝 @劉駿)
|
||||
* Added Honda Breeze Hybrid FPv1. (Thanks to @劉駿)
|
||||
* 加入台灣版 Toyota Prius 4.5 指紋v1。(感謝 @jeekid)
|
||||
* Added Taiwan Toyota Prius 4.5 FPv1. (Thanks to @jeekid)
|
||||
|
||||
dragonpilot 0.7.5.4
|
||||
========================
|
||||
* Dynamic Follow 更新模型。(感謝 @ShaneSmiskol 提供代碼、 @cgw1968 測試)
|
||||
* Updated Dynamic Follow model. (Special Thanks to @ShaneSmiskol for the feature and @cgw1968 for testing)
|
||||
|
||||
dragonpilot 0.7.5.3
|
||||
========================
|
||||
* Dynamic Follow 更新至 ShaneSmiskol:stock_additions 0.7.5 版。(感謝 @ShaneSmiskol 提供代碼、 @Wei 測試)
|
||||
* Updated Dynamic Follow to ShaneSmiskol:stock_additions 0.7.5. (Special Thanks to @ShaneSmiskol for the feature and @Wei for testing)
|
||||
* 優化 Lexus GSH 轉向。(感謝 @簡銘佑 測試)
|
||||
* Optimize Lexus GSH steering. (Thanks to @簡銘佑)
|
||||
* C2 支援自動關機「DragonAutoShutdownAt」參數。(感謝 @cgw1968 建議)
|
||||
* C2 to support auto shutdown "DragonAutoShutDownAt" param. (Thanks to @cgw1968)
|
||||
* 修正出現「pedalPressed」的錯誤。(感謝 @Wei 回報)
|
||||
* Fixed issue showing "pedalPressed" error. (Thanks to @Wei)
|
||||
* 將剎車狀熊顯示於 dp 資訊欄。
|
||||
* Added brake indicator to dp infobar.
|
||||
* 修正「溫度監控」燈示。
|
||||
* Fixed "Temp monitor" indicator.
|
||||
* 加入「方向燈取消控制」延遲控制設。(感謝 @wabes 建議)
|
||||
* Added delay config to "Disable Lat Control on Blinker". (Thanks to @wabes)
|
||||
* 加入巴西版 2020 Corolla Hybrid 指紋v2。(感謝 @berno22 提供)
|
||||
* Added Brazil 2020 Corolla Hybrid FPv2. (Thanks to @berno22)
|
||||
|
||||
dragonpilot 0.7.5.2
|
||||
========================
|
||||
* 加入對 VW MQB/PQ 的支援。(感謝 @dingliangxue 移植)
|
||||
* Added support to VW MQB/PQ platform. (Thanks to @dingliangxue)
|
||||
* 修改成 3 小時後停止供電。(感謝 @Wei 建議)
|
||||
* Updated to stop charging after 3 hrs. (Thanks to @Wei)
|
||||
* 移除行車記錄下的「碰撞偵測」功能。
|
||||
* Removed Impact Detection in Dashcam.
|
||||
* 修正開啟「Noctua 風扇」模式導致的錯誤。(感謝 @阿濤 回報)
|
||||
* Fixed a bug caused by enabling "Noctua Mod". (Thanks to @阿濤)
|
||||
* 修正「位智模式」無法顯示警示的問題。(感謝 @axandres 回報)
|
||||
* Fixed alert issue in waze mode. (Thanks to @axandres)
|
||||
* 修正無法顯示更新中圖示的問題。
|
||||
* Fixed unable to display "UPDATING" icon issue.
|
||||
* 加入「允許多次自動換道」功能。(感謝 @阿濤 建議)
|
||||
* Added "Allow Continuous Auto Lane Change" Toggle. (Thanks to @阿濤)
|
||||
* 修正開機後設定頁面有時會錯誤的問題。(感謝 @salmankhan、@Wei 回報)
|
||||
* Fixed setting page crash issue. (Thanks to @salmankhan, @Wei)
|
||||
* 修正熄火後一直出現更新訊息的錯誤。(感謝 @Sky Chang 回報)
|
||||
* Fixed issue that keep showing update prompt. (Thanks to @Sky Chang)
|
||||
|
||||
dragonpilot 0.7.5.1
|
||||
========================
|
||||
* 修正因同時使用「社群功能」和「自定車型」造成的加減速問題。(特別感謝 @Wei、@Sky Chang、@Han9365、@鄧育林 的測試以及回報。)
|
||||
* Fixed acceleration issue caused by used of both "Community Maintain Feature" and "Custom Car Model". (Special Thanks to @Wei, @Sky Chang, @Han9365, @鄧育林)
|
||||
* 新增 DragonMaxSpeedLimit 設定值 (mph),當如果車速高於此值 op 將會停止操控。(感謝 @Anthony 建議)
|
||||
* Added DragonMaxSpeedLimit parameter (mph), op will stop controlling when car speed is high than the value. (Thanks to @Anthony)
|
||||
* 更新 appd 使用 cnpmjs 來下載 APKs。
|
||||
* Updated appd to use cnpmjs to download APKs.
|
||||
* 修正更新服務。(感謝 @Wei)
|
||||
* Fixed Update Service. (Thanks to @Wei)
|
||||
* 新增加拿大版 2018 Toyota Sienna LTD 指紋(v2)。(感謝 明峰 提供)
|
||||
* Added Canada 2018 Toyota Sienna LTD fingerprint (v2). (Thanks to 明峰)
|
||||
* 新增「通過移動網路上傳」開關
|
||||
* Added Upload Over Mobile Network toggle.
|
||||
* 新增「通過熱點上傳」開關
|
||||
* Added Upload Over Hotspot toggle.
|
||||
* 新增加拿大版 2018 Toyota Sienna LTD 指紋(v1)。(感謝 明峰 提供)
|
||||
* Added Canada 2018 Toyota Sienna LTD fingerprint (v1). (Thanks to 明峰)
|
||||
* 新增大陸版 Volkswagen Golf GTI 指紋 (v1)。(感謝 easyeiji 提供)
|
||||
* Added China Volkswagen Golf GTI fingerprint (v1). (Thanks to easyeiji)
|
||||
|
||||
dragonpilot 0.7.5.0
|
||||
========================
|
||||
* 基於最新 openpilot 0.7.5 devel-staging.
|
||||
* Based on latest openpilot 0.7.5 devel-staging.
|
||||
* 更新 dp 圖示 (特別感謝 @wabes 的設計與提供)。
|
||||
* Updated dp logo, special thanks to @wabes for the design.
|
||||
* 簡/繁中文版和 i18n 整合成為單一版本。
|
||||
* Merged zhs/zht/i18n versions into one.
|
||||
* 新增大陸版 CAMRY HYBRID 指紋v2。(感謝 @杜子腾)
|
||||
* Added China Camery Hybrid FPv2. (Thanks to @杜子腾)
|
||||
* 新增台灣版 Altis HYBRID 指紋v1。(感謝 @Fish)
|
||||
* Added Taiwan Altis Hybrid FPv1. (Thanks to @Fish)
|
||||
* 新增行駛時關閉畫面功能。
|
||||
* Added Screen off while driving feature.
|
||||
* 新增倒車時關閉畫面功能。
|
||||
* Added Screen off while reversing feature.
|
||||
* 新增駕駛介面加入「加速模式」切換鈕。
|
||||
* Added acceleration profile toggle onto driving UI.
|
||||
* 新增自定車型功能,取代指紋暫存功能。
|
||||
* Replaced fingerprint cache with custom car model selector.
|
||||
* 新增可調亮度。
|
||||
* Added Brightness changer.
|
||||
* 新增部分德語支持。(特別感謝 @arne182 提供)
|
||||
* Added partial de_DE language support (Thanks to @arne182)
|
||||
* 新增停車碰撞偵測記錄功能。
|
||||
* Added off road impact detection to dashcam.
|
||||
|
||||
2020-05-06
|
||||
========================
|
||||
* 更新 dp 圖示 (特別感謝 @wabes 的設計與提供)。
|
||||
* 中文版整合進 i18n 版。
|
||||
* 刪除指紋暫存功能。
|
||||
* 新增 CAMERY HIBRID 指紋。(感謝 @杜子腾)
|
||||
* 新增行駛時關閉畫面功能。
|
||||
* 新增倒車時關閉畫面功能。
|
||||
* 新增駕駛介面加入「加速模式」切換鈕。
|
||||
* 新增自定義車型。
|
||||
|
||||
2020-04-16
|
||||
========================
|
||||
* [DEVEL] 加入台灣版 2016 Lexus IS200t 指紋。(感謝 Philip / Cody Dai)
|
||||
* [DEVEL] 加入台灣版 2016 Toyota Prius 4.5 代指紋。(感謝 Philip)
|
||||
* [DEVEL] 加入台灣版 201x Toyota RAV4 4WD 指紋。(感謝 Philip)
|
||||
* [DEVEL] 加入台灣版 2020 Toyota Auris w/ LTA 指紋。(感謝 Philip)
|
||||
* [DEVEL] 修正 commIssue 錯誤。(感謝 Kent 協助)
|
||||
|
||||
2020-04-13
|
||||
========================
|
||||
* [DEVEL] 加入可調整 Toyota Sng 起步反應值 (DragonToyotaSngResponse)。 (特別感謝 @Wei 提供 PR)
|
||||
* [DEVEL] 駕駛介面加入「動態調整車距」按鈕。(感謝 @cgw1968-5779 建議)
|
||||
* [DEVEL] 更新 update script。(感謝 深鯨希西 回報)
|
||||
|
||||
2020-04-10
|
||||
========================
|
||||
* [DEVEL] 更新 panda 至最新的 comma:master 分支。
|
||||
* [DEVEL] 移除所有的第三方應用改為自動下載。
|
||||
* [DEVEL] 移除「啟用原廠 DSU 模式」、「安全帶檢查」、「車門檢查」開關。
|
||||
|
||||
2020-03-31
|
||||
========================
|
||||
* [DEVEL] 更新至 2020-03-31 testing 分支。
|
||||
|
||||
2020-03-27
|
||||
========================
|
||||
* [DEVEL] 更新至最新的 testing 分支:
|
||||
* 加入波蘭版 2015 Lexus NX200T 支援。(感謝 wabes 提供)
|
||||
* 調整「啟用原廠 DSU 模式」為不再需要 AHB 。(Enable Stock DSU Mode no longer requires "AHB" toggle)
|
||||
* 加入「安全帶檢查」、「車門檢查」、「檔位檢查」、「溫度檢查」開關。
|
||||
* 加入曲率學習功能 - Curvature Learner 。(感謝 zorrobyte 提供)
|
||||
* 加入大陸版 2018 Toyota Highlander 支援。(感謝 toyboxZ 提供)
|
||||
* 加入大陸版 2018 Toyota Camry 2.0 支援。(感謝 Rming 提供)
|
||||
* 加入韓文支持。(感謝 crwusiz 提供)
|
||||
* 調整 OFFROAD 主頁翻譯將 "dragonpilot" 改回 "openpilot"。
|
||||
|
||||
2020-03-22
|
||||
========================
|
||||
* [DEVEL] 更新至最新的 testing 分支。
|
||||
|
||||
2020-03-17
|
||||
========================
|
||||
* [DEVEL] 更新至最新的 testing 分支 (commaai:devel-staging 0.7.4)。
|
||||
* [DEVEL] 加入動態調整車距功能。(特別感謝 @ShaneSmiskol 提供 PR)
|
||||
|
||||
2020-03-14
|
||||
========================
|
||||
* [DEVEL] 更新 pt-Br (葡萄牙語) 翻譯。(感謝 berno22 提供)
|
||||
* [DEVEL] 加入自動關機開關。(感謝 Rzxd 建議)
|
||||
* [DEVEL] 調高 Toyota 扭力容錯值。
|
||||
* [DEVEL] 優化讀取 dp 設定值。
|
||||
* [DEVEL] 加入 2019 手動 Civic 指紋。感謝 (AlexNoop 提供)
|
||||
* [DEVEL] dp 功能加入對 Subaru 車系的支援。
|
||||
|
||||
2020-03-06
|
||||
========================
|
||||
* [DEVEL] 加入葡萄牙語支持。(感謝 berno22 提供)
|
||||
* [DEVEL] 加入大陸 2018 Camry、2020 RAV4 指紋。(感謝 笨木匠 提供)
|
||||
* [DEVEL] 建立 devel-i18n 取代 devel-en。
|
||||
* [DEVEL] devel-en is deprecated, please switch to devel-i18n instead.
|
||||
|
||||
2020-03-04
|
||||
========================
|
||||
* [DEVEL] 加入顯示駕駛監控畫面。
|
||||
* [DEVEL] 加入加速模式選項。(特別感謝 @arne182, @cgw1968-5779 提供 PR)
|
||||
* [DEVEL] 修正 shutdownd 在 comma two 可能會不正常關機的錯誤。(感謝 @Wei, @Rzxd 回報)
|
||||
|
||||
2020-02-25
|
||||
========================
|
||||
* [DEVEL] 更新至最新的 commaai:devel (0.7.3)。
|
||||
|
||||
2020-02-21
|
||||
========================
|
||||
* [DEVEL] 更新至最新的 commaai:devel (0.7.3)。
|
||||
|
||||
2020-02-14
|
||||
========================
|
||||
* [DEVEL] 更新至最新的 commaai:devel (0.7.2)。
|
||||
* [DEVEL] 修正錯誤。
|
||||
|
||||
2020-02-08
|
||||
========================
|
||||
* [DEVEL] 更新至最新的 commaai:devel (0.7.2)。
|
||||
* [DEVEL] dp 功能加入對現代 (Hyundai) 車系的支援。
|
||||
* [DEVEL] 加入神盾測速照相自動啟動的開關。
|
||||
* [DEVEL] 更新高德地圖至 v4.5.0.600053。
|
||||
* [DEVEL] 使用 0.6.6 版的更新系統。
|
||||
* [DEVEL] 修正急剎問題。(感謝 kumar 提供)
|
||||
|
||||
2020-01-31
|
||||
========================
|
||||
* [DEVEL] 移除行車介面電量、溫度顯示,(修正畫面當機、黑屏問題)
|
||||
|
||||
2020-01-29
|
||||
========================
|
||||
* [DEVEL] 修正行車介面錯誤。(感謝 深鲸希西 測試;eisenheim、HeatNation 反應)
|
||||
|
||||
2020-01-23
|
||||
========================
|
||||
* [DEVEL] 加入 Steer Ratio Learner 關閉。(感謝 eisenheim 建議)
|
||||
* [DEVEL] 行車介面加入電量、溫度。(感謝 eisenheim 建議)
|
||||
* [DEVEL] 優化 appd。
|
||||
|
||||
2020-01-19
|
||||
========================
|
||||
* [DEVEL] 更新至最新的 commaai:devel (0.7.1)。
|
||||
* [DEVEL] 調整 appd 和 ALC 邏輯。
|
||||
|
||||
2020-01-14
|
||||
========================
|
||||
* [DEVEL] 加入開機啟動個人熱點。(感謝 eisenheim 建議)
|
||||
|
||||
2020-01-08
|
||||
========================
|
||||
* [DEVEL] 加入大陸版 2018 Lexus RX300 支援。(感謝 cafe 提供)
|
||||
* [DEVEL] 加入 DragonBTG 設定。(感謝 CloudJ、低調哥、歐姓Altis車主 提供)
|
||||
|
||||
2019-12-31
|
||||
========================
|
||||
* [DEVEL-ZHS] 加回第三方應用。
|
||||
|
||||
2019-12-29
|
||||
========================
|
||||
* [DEVEL] 更新至最新的 commaai:devel (0.7.0)。
|
||||
* [DEVEL] 輔助/自動變道改為可調整參數 (進階用戶)。(DragonAssistedLCMinMPH、DragonAutoLCMinMPH、DragonAutoLCDelay)
|
||||
* [DEVEL-ZHS] 修正無法運行第三方應用錯誤。(感謝 深鲸希西 反應)
|
||||
|
||||
2019-12-18
|
||||
========================
|
||||
* [DEVEL] 修正自動換道邏輯。
|
||||
* [DEVEL] 更新 offroad 翻譯。
|
||||
* [DEVEL] 錯誤修正。
|
||||
* [DEVEL] 移除美版 2017 Civic Hatchback 指紋。(與其它車型衝突)
|
||||
|
||||
2019-12-17
|
||||
========================
|
||||
* [DEVEL] 更新至最新的 commaai:devel (0.7.0)。
|
||||
* [DEVEL] 加入輔助換道開關。(24mph / 40kph 以上)
|
||||
* [DEVEL] 加入自動換道開關。(40mph / 65kph 以上)
|
||||
* [DEVEL] 加入大陸版 2019 雷凌汽油版指紋。 (感謝 Shell 提供)
|
||||
* [DEVEL] 加入大陸版 2019 卡羅拉汽油版指紋。 (感謝 Shell 提供)
|
||||
* [DEVEL] 加入美版 2017 Civic Hatchback 指紋。(感謝 CFranHonda 提供)
|
||||
|
||||
2019-12-10
|
||||
========================
|
||||
* [DEVEL] 加入位智車機模式。 (Waze Mode)
|
||||
|
||||
2019-11-21
|
||||
========================
|
||||
* [DEVEL] 修正 offroad 翻譯。(感謝 鄧育林 回報)
|
||||
* [DEVEL] 調整前車靜止移動偵測參數。
|
||||
* [DEVEL] 前車靜止移動偵測可在未啟用 dp 時運作。
|
||||
|
||||
2019-11-18
|
||||
========================
|
||||
* [DEVEL] 修正 offroad 翻譯。(感謝 Cody、鄧育林 回報)
|
||||
|
||||
2019-11-18
|
||||
========================
|
||||
* [DEVEL] 修正 frame 翻譯。
|
||||
|
||||
2019-11-15
|
||||
========================
|
||||
* [DEVEL] 修正不會充電的錯誤。 (感謝 袁昊 反應)
|
||||
|
||||
2019-11-15
|
||||
========================
|
||||
* [DEVEL] 修正充電控制。 (感謝 KT 反應)
|
||||
* [DEVEL] 更新 frame 翻譯,改為多語言版。 (感謝 深鲸希西、shaoching885、鄧育林 反應)
|
||||
* [DEVEL] 更新至最新的 commaai:devel (0.6.6)。
|
||||
|
||||
2019-11-12
|
||||
========================
|
||||
* [DEVEL] 只顯示電量文字 (注意:有時不會更新,需要拔插 USB 線)
|
||||
* [DEVEL] 自動偵測並鎖定硬體 (EON / UNO)。
|
||||
|
||||
2019-11-12
|
||||
========================
|
||||
* [DEVEL] 加入鎖定硬體 (EON / UNO) 的程式碼。
|
||||
|
||||
2019-11-11
|
||||
========================
|
||||
* [DEVEL] 更新高德地圖至 v4.3.0.600310 R2098NSLAE
|
||||
* [DEVEL] 更新 MiXplorer 至 v6.40.3
|
||||
* [DEVEL] 更新至最新的 commaai:devel (0.6.6)。
|
||||
* [DEVEL] 前車靜止移動偵測加入偵測警示。
|
||||
|
||||
2019-11-07
|
||||
========================
|
||||
* [DEVEL] 讓 Bosch 系統顯示三角。 (感謝 ching885 回報)
|
||||
* [DEVEL] 更新 offroad 多語言版簡體中文翻譯 (感謝 Rming 提供)
|
||||
|
||||
2019-11-06
|
||||
========================
|
||||
* [DEVEL] 修正 0.6.6 appd 和 dashcamd 錯誤。 (感謝 鄧育林 回報)
|
||||
* [DEVEL] 更新至最新的 commaai:devel (0.6.6)。
|
||||
|
||||
2019-11-05
|
||||
========================
|
||||
* [DEVEL] 加入台灣 Lexus 2017 GS450h 支援。 (感謝 簡銘佑 提供指紋)
|
||||
|
||||
2019-11-01
|
||||
========================
|
||||
* [DEVEL] 新增神盾測速照相。 (感謝 Sky Chang 和 Wei Yi Chen)
|
||||
* [DEVEL] 修正 offroad 翻譯。 (感謝 Leo Hsieh)
|
||||
|
||||
2019-11-01
|
||||
========================
|
||||
* [DEVEL] 移除 Miui 字型,縮小 dp 使用空間。
|
||||
* [DEVEL] 更新 offroad 為多語言版
|
||||
* [DEVEL] 更新至最新的 commaai:devel (0.6.5)。
|
||||
|
||||
2019-10-29
|
||||
========================
|
||||
* [DEVEL] 加入 SnG 補丁。(感謝 楊雅智)
|
||||
|
||||
2019-10-28
|
||||
========================
|
||||
* [DEVEL] 更新至最新的 commaai:devel (0.6.5)。
|
||||
* [DEVEL] 調整 dragon_allow_gas 邏輯 (請回報任何問題,需更新 Panda 韌體)
|
||||
|
||||
2019-10-18
|
||||
========================
|
||||
* [DEVEL] 加入前車靜止移動偵測。(測試版,感謝 ucolchen)
|
||||
* [DEVEL] 移除強迫網路連線提示。(感謝 Shell)
|
||||
* [DEVEL] 修正 allow_gas 功能。
|
||||
|
||||
2019-10-18
|
||||
========================
|
||||
* [DEVEL] 加入彎道減速功能開關。
|
||||
* [DEVEL] 強迫使用 dp 版 Panda 韌體。
|
||||
* [DEVEL] 更新至最新的 commaai:devel (0.6.5)。
|
||||
|
||||
2019-10-17
|
||||
========================
|
||||
* [DEVEL] 加入「車型」顯示於 dp 設定畫面。
|
||||
* [DEVEL] 修正充電控制讀取預設值的錯誤。
|
||||
* [DEVEL] 修正無法顯示更新記錄的錯誤。
|
||||
|
||||
2019-10-16
|
||||
========================
|
||||
* [DEVEL] 刷新 Panda 韌體按鈕將會自動重啟 EON。(感謝 鄧育林 建議)
|
||||
* [DEVEL] 下載更新記錄時使用 "no-cache" 標頭。
|
||||
* [DEVEL] 更新高德地圖至 v4.3.0
|
||||
* [DEVEL] 刪除 bs (Branch Switcher)
|
||||
|
||||
2019-10-14
|
||||
========================
|
||||
* [DEVEL] 啟用自動更新功能。(感謝 鄧育林 提供)
|
||||
* [DEVEL] 清除不再使用的 dp params。
|
||||
* [DEVEL] 加入數字電量指示。(感謝 鄧育林 建議)
|
||||
* [DEVEL] 加入刷新 Panda 韌體按鈕。
|
||||
|
||||
2019-10-11
|
||||
========================
|
||||
* [DEVEL] 更新至最新的 commaai:devel (0.6.5)。
|
||||
* [DEVEL] 加入台灣 2019 RAV4 汽油版指紋。 (感謝 Max Duan / CloudJ 提供)
|
||||
|
||||
2019-10-09
|
||||
========================
|
||||
* [DEVEL] 加入當 LatCtrl 關閉時,畫面顯示提示訊息。
|
||||
|
||||
2019-10-08
|
||||
========================
|
||||
* [DEVEL] 加回駕駛監控開關。
|
||||
* [DEVEL] 加入 bs (branch switcher) 程式。
|
||||
|
||||
2019-10-07
|
||||
========================
|
||||
* [DEVEL] 加入台灣版 2019 RAV4H 油電版指紋。(感謝 Max Duan 提供)
|
||||
|
||||
2019-10-05
|
||||
========================
|
||||
* [DEVEL] 移除 curvature learner: 轉角明顯比原廠小。
|
||||
* [DEVEL] 更新至最新的 commaai:devel (0.6.4)。
|
||||
|
||||
2019-09-30
|
||||
========================
|
||||
* [DEVEL] 更新 curvature learner 版本至 v4。
|
||||
* [DEVEL] Lexus ISH 使用更精確的 EPS Steering Angle Sensor
|
||||
|
||||
2019-09-27
|
||||
========================
|
||||
* [DEVEL] 加入 Zorrobyte 的 curvature learner (https://github.com/zorrobyte/openpilot)
|
||||
* [DEVEL] 加入可開關駕駛監控的程式碼。
|
||||
* [DEVEL] 取消當 steering 出現錯誤時,自動切斷方向控制 2 秒的機制。
|
||||
* [DEVEL] 讓行車介面的「方向盤」/「轉彎」圖示半透明化。
|
||||
|
||||
2019-09-26
|
||||
========================
|
||||
* [DEVEL] 修正當「啟用記錄服務」關閉時,make 會有問題的錯誤。 (感謝 shaoching885 和 afa 回報)
|
||||
|
||||
2019-09-24
|
||||
========================
|
||||
* [DEVEL] 行車介面加入可開關的「前車」、「路線」、「車道」設定。
|
||||
* [DEVEL] 行車介面加入可開關的「方向燈號」提示。 (感謝 CloudJ 建議,程式碼來源: https://github.com/kegman/openpilot)
|
||||
|
||||
2019-09-23
|
||||
========================
|
||||
* [DEVEL] 優化讀取 params 的次數。
|
||||
* [DEVEL] 加入可開關的車道偏移警示。
|
||||
* [DEVEL] 修正充電控制邏輯。
|
||||
* [DEVEL] 加入台灣 Prius 4.5 指紋。 (感謝 Lin Hsin Hung 提供)
|
||||
|
||||
2019-09-20
|
||||
========================
|
||||
* [DEVEL] 加入充電控制功能。 (感謝 loveloveses 和 KT 建議)
|
||||
|
||||
2019-09-16
|
||||
========================
|
||||
* [DEVEL] 加入台灣 CT200h 指紋。 (感謝 CloudJ 提供)
|
||||
* [DEVEL] 加入美版 CT200h 移植。 (感謝 thomaspich 提供)
|
||||
|
||||
2019-09-13
|
||||
========================
|
||||
* [DEVEL] 行車介面加入可開關的「速度顯示」設定。
|
||||
|
||||
2019-09-09
|
||||
========================
|
||||
* [DEVEL] 加入 GreyPanda 模式。
|
||||
|
||||
2019-08-28
|
||||
========================
|
||||
* [DEVEL] 加入可調警示音量。
|
||||
|
||||
2019-08-27
|
||||
========================
|
||||
* [DEVEL] 自動關機改為可調時長。
|
||||
28
CONTRIBUTORS.md
Normal file
@@ -0,0 +1,28 @@
|
||||
# CONTRIBUTORS
|
||||
|
||||
Due to the way we manage the source code, it is not possible to see all the contributors info, hence we create a list here.
|
||||
|
||||
If you have contributed to DP project before and your name is not listed here, feel free to send us a PR to update this!
|
||||
|
||||
name | github | contribution
|
||||
------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------
|
||||
andy741217 | [andy741217](https://github.com/andy741217) | New features, bug fixes
|
||||
Arne Schwarck | [arne182](https://github.com/arne182) | New features, bug fixes
|
||||
berno22 | [berno22](https://github.com/berno22) | New car fingerprint
|
||||
Bobbydough | [Bobbydough](https://github.com/bobbydough) | Bug fixes
|
||||
Curtis Jenkins | [actuallylemoncurd](https://github.com/actuallylemoncurd) | New Features
|
||||
DFyffe | [donfyffe](https://github.com/donfyffe) | New features, bug fixes
|
||||
dinglx | [dingliangxue](https://github.com/dingliangxue) | New features, bug fixes
|
||||
eyezenheim | [eyezenheim](https://github.com/eyezenheim) | Tester
|
||||
kegman | [kegman](https://github.com/kegman) | New features, bug fixes
|
||||
kumar | [rav4kumar](https://github.com/rav4kumar) | DP main maintainer, New features, bug fixes
|
||||
lijunhao731 | [lijunhao731](https://github.com/lijunhao731) | New car fingerprint
|
||||
lirudy | [lirudy](https://github.com/lirudy) | Bug fixes
|
||||
LOVEChen | [LOVEChen](https://github.com/LOVEChen) | Bug fixes
|
||||
loveloveses | [loveloveses](https://github.com/loveloveses) | Bug fixes, DP wiki main maintainer
|
||||
menwenliang | [menwenliang](https://github.com/menwenliang) | New features
|
||||
Rick Lan | [efinilan](https://github.com/efinilan) | Project lead
|
||||
rming | [Rming](https://github.com/rming) | Bug fixes, wiki contributor
|
||||
sebastian4k | [sebastian4k](https://github.com/sebastian4k) | Bug fixes
|
||||
Shane Smiskol | [sshane](https://github.com/sshane) | New features, bug fixes
|
||||
toyboxZ | [toyboxZ](https://github.com/toyboxZ) | New features, bug fixes
|
||||
25
HOWTO-ONEPLUS.md
Normal file
@@ -0,0 +1,25 @@
|
||||
How to install on Oneplus 3t?
|
||||
------
|
||||
1. clone dragonpilot to /data/ and make sure it's named openpilot:
|
||||
(手動安裝切換至 dragonpilot 0.8.6 branch)
|
||||
```
|
||||
cd /data/ && rm -fr openpilot; && git clone https://github.com/dragonpilot-community/dragonpilot.git -b 0.8.4
|
||||
```
|
||||
|
||||
2. run command:
|
||||
(在 ssh 畫面下,輸入)
|
||||
```
|
||||
cd /data/openpilot/scripts/ && ./oneplus_update_neos.sh
|
||||
```
|
||||
|
||||
3. Let it download and complete it update, after a couple of reboot, your screen will then stay in fastboot mode.
|
||||
(等待下載並讓它重新開機,沒錯誤的話會進入 Android 機器人更新畫面,等自動重新開機)
|
||||
|
||||
4. In fastboot mode, select use volume button to select to `Recovery mode` then press power button.
|
||||
(在 fastboot 模式,用音量鍵上下選到 Recovery mode 再按下電源鍵)
|
||||
|
||||
5. In Recovery mode, tap `apply update` -> `Choose from emulated` -> `0/` -> `update.zip` -> `Reboot system now`
|
||||
(在 Recovery mode,點選 `apply update` -> `Choose from emulated` -> `0/` -> `update.zip` -> `Reboot system now`)
|
||||
|
||||
6. You should be able to boot into openpilot, if touch screen is not working, try to reboot again.
|
||||
(你現在應該可以進入 openpilot 畫面,如果點擊畫面沒有反應,請再重新開機一次)
|
||||
29
SConstruct
@@ -7,6 +7,8 @@ import platform
|
||||
import numpy as np
|
||||
|
||||
TICI = os.path.isfile('/TICI')
|
||||
JETSON = os.path.isfile('/JETSON')
|
||||
|
||||
Decider('MD5-timestamp')
|
||||
|
||||
AddOption('--test',
|
||||
@@ -65,6 +67,10 @@ if arch == "aarch64" and TICI:
|
||||
|
||||
USE_WEBCAM = os.getenv("USE_WEBCAM") is not None
|
||||
|
||||
USE_MIPI = os.getenv("USE_MIPI") is not None
|
||||
if arch == "aarch64" and JETSON:
|
||||
arch = "jarch64"
|
||||
|
||||
lenv = {
|
||||
"PATH": os.environ['PATH'],
|
||||
}
|
||||
@@ -114,8 +120,19 @@ else:
|
||||
cflags = []
|
||||
cxxflags = []
|
||||
cpppath = []
|
||||
rpath = []
|
||||
|
||||
if arch == "Darwin":
|
||||
if arch == "jarch64":
|
||||
libpath = [
|
||||
"#phonelibs/libyuv/larch64/lib",
|
||||
"#selfdrive/common",
|
||||
"/usr/lib",
|
||||
"/usr/local/lib",
|
||||
]
|
||||
cflags = ["-DXNX", "-march=armv8.2-a"]
|
||||
cxxflags = ["-DXNX", "-march=armv8.2-a"]
|
||||
rpath += ["/usr/local/lib"]
|
||||
elif arch == "Darwin":
|
||||
yuv_dir = "mac" if real_arch != "arm64" else "mac_arm64"
|
||||
libpath = [
|
||||
f"#phonelibs/libyuv/{yuv_dir}/lib",
|
||||
@@ -143,8 +160,9 @@ else:
|
||||
"/usr/local/lib",
|
||||
]
|
||||
|
||||
rpath = [
|
||||
"phonelibs/snpe/x86_64-linux-clang",
|
||||
if arch != "jarch64":
|
||||
rpath += ["phonelibs/snpe/x86_64-linux-clang"]
|
||||
rpath += [
|
||||
"cereal",
|
||||
"selfdrive/common"
|
||||
]
|
||||
@@ -309,7 +327,7 @@ else:
|
||||
qt_dirs += [f"/usr/include/{real_arch}-linux-gnu/qt5/Qt{m}" for m in qt_modules]
|
||||
|
||||
qt_libs = [f"Qt5{m}" for m in qt_modules]
|
||||
if arch == "larch64":
|
||||
if arch == "larch64" or arch == "jarch64":
|
||||
qt_libs += ["GLESv2", "wayland-client"]
|
||||
elif arch != "Darwin":
|
||||
qt_libs += ["GL"]
|
||||
@@ -342,7 +360,8 @@ if GetOption("clazy"):
|
||||
qt_env['ENV']['CLAZY_IGNORE_DIRS'] = qt_dirs[0]
|
||||
qt_env['ENV']['CLAZY_CHECKS'] = ','.join(checks)
|
||||
|
||||
Export('env', 'qt_env', 'arch', 'real_arch', 'SHARED', 'USE_WEBCAM')
|
||||
zmq = 'zmq'
|
||||
Export('env', 'qt_env', 'arch', 'real_arch', 'SHARED', 'USE_WEBCAM', 'zmq', 'USE_MIPI')
|
||||
|
||||
# cereal and messaging are shared with the system
|
||||
SConscript(['cereal/SConscript'])
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
Import('env', 'envCython', 'arch')
|
||||
Import('env', 'envCython', 'arch', 'zmq')
|
||||
|
||||
import shutil
|
||||
|
||||
@@ -8,7 +8,7 @@ messaging_dir = Dir('messaging')
|
||||
|
||||
# Build cereal
|
||||
|
||||
schema_files = ['log.capnp', 'car.capnp', 'legacy.capnp']
|
||||
schema_files = ['log.capnp', 'car.capnp', 'legacy.capnp', 'dp.capnp']
|
||||
env.Command(["gen/c/include/c++.capnp.h", "gen/c/include/java.capnp.h"], [], "mkdir -p " + gen_dir.path + "/c/include && touch $TARGETS")
|
||||
env.Command([f'gen/cpp/{s}.c++' for s in schema_files] + [f'gen/cpp/{s}.h' for s in schema_files],
|
||||
schema_files,
|
||||
@@ -40,6 +40,13 @@ messaging_objects = env.SharedObject([
|
||||
messaging_lib = env.Library('messaging', messaging_objects)
|
||||
Depends('messaging/impl_zmq.cc', services_h)
|
||||
|
||||
# note, this rebuilds the deps shared, zmq is statically linked to make APK happy
|
||||
# TODO: get APK to load system zmq to remove the static link
|
||||
if arch == "aarch64":
|
||||
zmq_static = FindFile("libzmq.a", "/usr/lib")
|
||||
shared_lib_shared_lib = [zmq_static, 'm', 'stdc++', "gnustl_shared", "kj", "capnp"]
|
||||
env.SharedLibrary('messaging_shared', messaging_objects, LIBS=shared_lib_shared_lib)
|
||||
|
||||
env.Program('messaging/bridge', ['messaging/bridge.cc'], LIBS=[messaging_lib, 'zmq'])
|
||||
Depends('messaging/bridge.cc', services_h)
|
||||
|
||||
|
||||
73
cereal/_SConstruct
Normal file
@@ -0,0 +1,73 @@
|
||||
import os
|
||||
import platform
|
||||
import subprocess
|
||||
import sysconfig
|
||||
|
||||
arch = subprocess.check_output(["uname", "-m"], encoding='utf8').rstrip()
|
||||
if platform.system() == "Darwin":
|
||||
arch = "Darwin"
|
||||
|
||||
cereal_dir = Dir('.')
|
||||
messaging_dir = Dir('./messaging')
|
||||
|
||||
cpppath = [
|
||||
cereal_dir,
|
||||
messaging_dir,
|
||||
'/usr/lib/include',
|
||||
'/opt/homebrew/include',
|
||||
sysconfig.get_paths()['include'],
|
||||
]
|
||||
|
||||
libpath = [
|
||||
'/opt/homebrew/lib',
|
||||
]
|
||||
|
||||
AddOption('--test',
|
||||
action='store_true',
|
||||
help='build test files')
|
||||
|
||||
AddOption('--asan',
|
||||
action='store_true',
|
||||
help='turn on ASAN')
|
||||
|
||||
ccflags_asan = ["-fsanitize=address", "-fno-omit-frame-pointer"] if GetOption('asan') else []
|
||||
ldflags_asan = ["-fsanitize=address"] if GetOption('asan') else []
|
||||
|
||||
env = Environment(
|
||||
ENV=os.environ,
|
||||
CC='clang',
|
||||
CXX='clang++',
|
||||
CCFLAGS=[
|
||||
"-g",
|
||||
"-fPIC",
|
||||
"-O2",
|
||||
"-Wunused",
|
||||
"-Werror",
|
||||
] + ccflags_asan,
|
||||
LDFLAGS=ldflags_asan,
|
||||
LINKFLAGS=ldflags_asan,
|
||||
|
||||
CFLAGS="-std=gnu11",
|
||||
CXXFLAGS="-std=c++1z",
|
||||
CPPPATH=cpppath,
|
||||
LIBPATH=libpath,
|
||||
CYTHONCFILESUFFIX=".cpp",
|
||||
tools=["default", "cython"]
|
||||
)
|
||||
|
||||
Export('env', 'arch')
|
||||
|
||||
envCython = env.Clone(LIBS=[])
|
||||
envCython["CCFLAGS"] += ["-Wno-#warnings", "-Wno-deprecated-declarations"]
|
||||
if arch == "Darwin":
|
||||
envCython["LINKFLAGS"] = ["-bundle", "-undefined", "dynamic_lookup"]
|
||||
elif arch == "aarch64":
|
||||
envCython["LINKFLAGS"] = ["-shared"]
|
||||
envCython["LIBS"] = [os.path.basename(sysconfig.get_paths()['include'])]
|
||||
else:
|
||||
envCython["LINKFLAGS"] = ["-pthread", "-shared"]
|
||||
|
||||
Export('envCython')
|
||||
|
||||
|
||||
SConscript(['SConscript'])
|
||||
@@ -129,6 +129,18 @@ struct CarEvent @0x9b1657f34caf3ad3 {
|
||||
neosUpdateRequiredDEPRECATED @88;
|
||||
modelLagWarningDEPRECATED @93;
|
||||
startupOneplusDEPRECATED @82;
|
||||
|
||||
#dp
|
||||
preLaneChangeLeftALC @105;
|
||||
preLaneChangeRightALC @106;
|
||||
manualSteeringRequired @107;
|
||||
manualSteeringRequiredBlinkersOn @108;
|
||||
leadCarMoving @109;
|
||||
|
||||
# timebomb assist
|
||||
timebombWarn @110;
|
||||
timebombBypassing @111;
|
||||
timebombBypassed @112;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -194,6 +206,10 @@ struct CarState {
|
||||
leftBlindspot @33 :Bool; # Is there something blocking the left lane change
|
||||
rightBlindspot @34 :Bool; # Is there something blocking the right lane change
|
||||
|
||||
# dp
|
||||
lkMode @37 :Bool;
|
||||
stopSteering @38 :Bool; # timebomb - stopSteering
|
||||
|
||||
struct WheelSpeeds {
|
||||
# optional wheel speeds
|
||||
fl @0 :Float32;
|
||||
@@ -246,7 +262,7 @@ struct CarState {
|
||||
}
|
||||
|
||||
errorsDEPRECATED @0 :List(CarEvent.EventName);
|
||||
brakeLightsDEPRECATED @19 :Bool;
|
||||
brakeLights @19 :Bool;
|
||||
}
|
||||
|
||||
# ******* radar state @ 20hz *******
|
||||
|
||||
57
cereal/dp.capnp
Normal file
@@ -0,0 +1,57 @@
|
||||
using Cxx = import "./include/c++.capnp";
|
||||
$Cxx.namespace("cereal");
|
||||
|
||||
using Java = import "./include/java.capnp";
|
||||
$Java.package("ai.comma.openpilot.cereal");
|
||||
$Java.outerClassname("dp");
|
||||
|
||||
@0xbfa7e645486440c7;
|
||||
|
||||
# dp.capnp: a home for deprecated structs
|
||||
|
||||
# dp
|
||||
struct DragonConf {
|
||||
dpThermalStarted @0 :Bool;
|
||||
dpThermalOverheat @1 :Bool;
|
||||
dpAtl @2 :Bool;
|
||||
dpDashcamd @3 :Bool;
|
||||
dpAutoShutdown @4 :Bool;
|
||||
dpAthenad @5 :Bool;
|
||||
dpUploader @6 :Bool;
|
||||
dpLateralMode @7 :UInt8;
|
||||
dpSignalOffDelay @8 :Float32;
|
||||
dpLcMinMph @9 :UInt8;
|
||||
dpLcAutoCont @10 :Bool;
|
||||
dpLcAutoMinMph @11 :UInt8;
|
||||
dpLcAutoDelay @12 :Float32;
|
||||
dpAllowGas @13 :Bool;
|
||||
dpFollowingProfileCtrl @14 :Bool;
|
||||
dpFollowingProfile @15 :UInt8;
|
||||
dpAccelProfileCtrl @16 :Bool;
|
||||
dpAccelProfile @17 :UInt8;
|
||||
dpGearCheck @18 :Bool;
|
||||
dpSpeedCheck @19 :Bool;
|
||||
dpUiDisplayMode @20 :UInt8;
|
||||
dpUiSpeed @21 :Bool;
|
||||
dpUiEvent @22 :Bool;
|
||||
dpUiMaxSpeed @23 :Bool;
|
||||
dpUiFace @24 :Bool;
|
||||
dpUiLane @25 :Bool;
|
||||
dpUiLead @26 :Bool;
|
||||
dpUiDev @27 :Bool;
|
||||
dpUiDevMini @28 :Bool;
|
||||
dpUiBlinker @29 :Bool;
|
||||
dpUiBrightness @30 :UInt8;
|
||||
dpUiVolume @31 :Int8;
|
||||
dpToyotaLdw @32 :Bool;
|
||||
dpToyotaSng @33 :Bool;
|
||||
dpVwTimebombAssist @34 :Bool;
|
||||
dpIpAddr @35 :Text;
|
||||
dpCameraOffset @36 :Int8;
|
||||
dpPathOffset @37 :Int8;
|
||||
dpLocale @38 :Text;
|
||||
dpSrLearner @39 :Bool;
|
||||
dpSrCustom @40 :Float32;
|
||||
dpAppd @41 :Bool;
|
||||
dpDebug @42 :Bool;
|
||||
}
|
||||
@@ -7,6 +7,7 @@ $Java.outerClassname("Log");
|
||||
|
||||
using Car = import "car.capnp";
|
||||
using Legacy = import "legacy.capnp";
|
||||
using Dp = import "dp.capnp";
|
||||
|
||||
@0xf3b1f17e25a4285b;
|
||||
|
||||
@@ -49,6 +50,7 @@ struct InitData {
|
||||
chffrIos @3;
|
||||
tici @4;
|
||||
pc @5;
|
||||
jetson @6;
|
||||
}
|
||||
|
||||
struct PandaInfo {
|
||||
@@ -660,12 +662,12 @@ struct ControlsState @0x97ff69c53601abf1 {
|
||||
decelForTurnDEPRECATED @47 :Bool;
|
||||
decelForModelDEPRECATED @54 :Bool;
|
||||
awarenessStatusDEPRECATED @26 :Float32;
|
||||
angleSteersDEPRECATED @13 :Float32;
|
||||
angleSteers @13 :Float32; # dp
|
||||
vCurvatureDEPRECATED @46 :Float32;
|
||||
mapValidDEPRECATED @49 :Bool;
|
||||
jerkFactorDEPRECATED @12 :Float32;
|
||||
steerOverrideDEPRECATED @20 :Bool;
|
||||
steeringAngleDesiredDegDEPRECATED @29 :Float32;
|
||||
steeringAngleDesiredDeg @29 :Float32; # dp
|
||||
}
|
||||
|
||||
struct ModelDataV2 {
|
||||
@@ -869,6 +871,9 @@ struct LateralPlan @0xe1e9318e2ae8b51e {
|
||||
curvatures @27 :List(Float32);
|
||||
curvatureRates @28 :List(Float32);
|
||||
|
||||
# dp
|
||||
dpALCAllowed @29 :Bool;
|
||||
|
||||
enum Desire {
|
||||
none @0;
|
||||
turnLeft @1;
|
||||
@@ -1460,5 +1465,6 @@ struct Event {
|
||||
kalmanOdometryDEPRECATED @65 :Legacy.KalmanOdometry;
|
||||
gpsLocationDEPRECATED @21 :GpsLocationData;
|
||||
uiLayoutStateDEPRECATED @57 :Legacy.UiLayoutState;
|
||||
dragonConf @80 :Dp.DragonConf;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -61,6 +61,10 @@ services = {
|
||||
"modelV2": (True, 20., 40),
|
||||
"managerState": (True, 2., 1),
|
||||
"uploaderState": (True, 0., 1),
|
||||
|
||||
# dp
|
||||
"thermal": (True, 2., 1),
|
||||
"dragonConf": (False, 2.),
|
||||
}
|
||||
service_list = {name: Service(new_port(idx), *vals) for # type: ignore
|
||||
idx, (name, vals) in enumerate(services.items())}
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import os
|
||||
from pathlib import Path
|
||||
|
||||
from selfdrive.hardware import PC
|
||||
from selfdrive.hardware import PC, JETSON
|
||||
|
||||
BASEDIR = os.path.abspath(os.path.join(os.path.dirname(os.path.realpath(__file__)), "../"))
|
||||
|
||||
if PC:
|
||||
if PC or JETSON:
|
||||
PERSIST = os.path.join(str(Path.home()), ".comma", "persist")
|
||||
else:
|
||||
PERSIST = "/persist"
|
||||
|
||||
80
common/dp_common.py
Normal file
@@ -0,0 +1,80 @@
|
||||
#!/usr/bin/env python3.7
|
||||
import subprocess
|
||||
from cereal import car
|
||||
from common.params import Params
|
||||
from common.realtime import sec_since_boot
|
||||
import os
|
||||
params = Params()
|
||||
PARAM_PATH = params.get_params_path() + '/d/'
|
||||
LAST_MODIFIED = PARAM_PATH + "dp_last_modified"
|
||||
|
||||
def is_online():
|
||||
try:
|
||||
return not subprocess.call(["ping", "-W", "4", "-c", "1", "117.28.245.92"])
|
||||
except ProcessLookupError:
|
||||
return False
|
||||
|
||||
def common_controller_ctrl(enabled, dragonconf, blinker_on, steer_req, v_ego):
|
||||
if enabled:
|
||||
if dragonconf.dpLateralMode == 0 and blinker_on:
|
||||
steer_req = 0 if isinstance(steer_req, int) else False
|
||||
return steer_req
|
||||
|
||||
def common_interface_atl(ret, atl):
|
||||
# dp
|
||||
enable_acc = ret.cruiseState.enabled
|
||||
if atl and ret.cruiseState.available:
|
||||
enable_acc = True
|
||||
if ret.gearShifter in [car.CarState.GearShifter.reverse, car.CarState.GearShifter.park]:
|
||||
enable_acc = False
|
||||
if ret.seatbeltUnlatched or ret.doorOpen:
|
||||
enable_acc = False
|
||||
return enable_acc
|
||||
|
||||
def common_interface_get_params_lqr(ret):
|
||||
if params.get_bool('dp_lqr'):
|
||||
ret.lateralTuning.init('lqr')
|
||||
ret.lateralTuning.lqr.scale = 1500.0
|
||||
ret.lateralTuning.lqr.ki = 0.05
|
||||
|
||||
ret.lateralTuning.lqr.a = [0., 1., -0.22619643, 1.21822268]
|
||||
ret.lateralTuning.lqr.b = [-1.92006585e-04, 3.95603032e-05]
|
||||
ret.lateralTuning.lqr.c = [1., 0.]
|
||||
ret.lateralTuning.lqr.k = [-110.73572306, 451.22718255]
|
||||
ret.lateralTuning.lqr.l = [0.3233671, 0.3185757]
|
||||
ret.lateralTuning.lqr.dcGain = 0.002237852961363602
|
||||
return ret
|
||||
|
||||
|
||||
def get_last_modified(delay, old_check, old_modified):
|
||||
new_check = sec_since_boot()
|
||||
if old_check is None or new_check - old_check >= delay:
|
||||
return new_check, os.stat(LAST_MODIFIED).st_mtime
|
||||
else:
|
||||
return old_check, old_modified
|
||||
|
||||
def param_get_if_updated(param, type, old_val, old_modified):
|
||||
try:
|
||||
modified = os.stat(PARAM_PATH + param).st_mtime
|
||||
except OSError:
|
||||
return old_val, old_modified
|
||||
if old_modified != modified:
|
||||
new_val = param_get(param, type, old_val)
|
||||
new_modified = modified
|
||||
else:
|
||||
new_val = old_val
|
||||
new_modified = old_modified
|
||||
return new_val, new_modified
|
||||
|
||||
def param_get(param_name, type, default):
|
||||
try:
|
||||
val = params.get(param_name, encoding='utf8').rstrip('\x00')
|
||||
if type == 'bool':
|
||||
val = val == '1'
|
||||
elif type == 'int':
|
||||
val = int(val)
|
||||
elif type == 'float':
|
||||
val = float(val)
|
||||
except (TypeError, ValueError):
|
||||
val = default
|
||||
return val
|
||||
214
common/dp_conf.py
Normal file
@@ -0,0 +1,214 @@
|
||||
#!/usr/bin/env python3.7
|
||||
import os
|
||||
import sys
|
||||
import json
|
||||
import time
|
||||
from math import floor
|
||||
|
||||
'''
|
||||
* type: Bool, Int8, UInt8, UInt16, Float32
|
||||
* conf_type: param, struct
|
||||
* dependencies needs to use struct and loaded prior so we don't have to read the param multiple times.
|
||||
* update_once: True, False (the param will only load up once, need both param and struct defined)
|
||||
'''
|
||||
confs = [
|
||||
# thermald data
|
||||
{'name': 'dp_thermal_started', 'default': False, 'type': 'Bool', 'conf_type': ['struct']},
|
||||
{'name': 'dp_thermal_overheat', 'default': False, 'type': 'Bool', 'conf_type': ['struct']},
|
||||
|
||||
{'name': 'dp_atl', 'default': False, 'type': 'Bool', 'conf_type': ['param', 'struct'], 'update_once': True},
|
||||
# dashcam related
|
||||
{'name': 'dp_dashcamd', 'default': False, 'type': 'Bool', 'conf_type': ['param', 'struct']},
|
||||
# auto shutdown
|
||||
{'name': 'dp_auto_shutdown', 'default': False, 'type': 'Bool', 'conf_type': ['param', 'struct']},
|
||||
{'name': 'dp_auto_shutdown_in', 'default': 90, 'type': 'UInt16', 'min': 0, 'max': 600, 'depends': [{'name': 'dp_auto_shutdown', 'vals': [True]}], 'conf_type': ['param']},
|
||||
# service
|
||||
{'name': 'dp_updated', 'default': False, 'type': 'Bool', 'conf_type': ['param']},
|
||||
{'name': 'dp_logger', 'default': False, 'type': 'Bool', 'conf_type': ['param']},
|
||||
{'name': 'dp_athenad', 'default': False, 'type': 'Bool', 'depends': [{'name': 'dp_atl', 'vals': [False]}], 'conf_type': ['param', 'struct'], 'update_once': True},
|
||||
{'name': 'dp_uploader', 'default': False, 'type': 'Bool', 'depends': [{'name': 'dp_atl', 'vals': [False]}], 'conf_type': ['param', 'struct'], 'update_once': True},
|
||||
# {'name': 'dp_gpxd', 'default': False, 'type': 'Bool', 'conf_type': ['param']},
|
||||
{'name': 'dp_hotspot_on_boot', 'default': False, 'type': 'Bool', 'conf_type': ['param']},
|
||||
# lat ctrl
|
||||
{'name': 'dp_lateral_mode', 'default': 1, 'type': 'UInt8', 'min': 0, 'max': 2, 'conf_type': ['param', 'struct']},
|
||||
{'name': 'dp_signal_off_delay', 'default': 3., 'type': 'Float32', 'min': 0., 'max': 10., 'depends': [{'name': 'dp_lateral_mode', 'vals': [0]}], 'conf_type': ['param', 'struct']},
|
||||
{'name': 'dp_lc_min_mph', 'default': 45, 'type': 'UInt8', 'min': 0, 'max': 255, 'depends': [{'name': 'dp_lateral_mode', 'vals': [1,2]}], 'conf_type': ['param', 'struct']},
|
||||
{'name': 'dp_lc_auto_cont', 'default': False, 'type': 'Bool', 'depends': [{'name': 'dp_lateral_mode', 'vals': [2]}], 'conf_type': ['param', 'struct']},
|
||||
{'name': 'dp_lc_auto_min_mph', 'default': 60, 'type': 'UInt8', 'min': 0, 'max': 255, 'depends': [{'name': 'dp_lateral_mode', 'vals': [2]}], 'conf_type': ['param', 'struct']},
|
||||
{'name': 'dp_lc_auto_delay', 'default': 3., 'type': 'Float32', 'min': 0., 'max': 10., 'depends': [{'name': 'dp_lateral_mode', 'vals': [2]}], 'conf_type': ['param', 'struct']},
|
||||
# long ctrl
|
||||
{'name': 'dp_allow_gas', 'default': False, 'type': 'Bool', 'depends': [{'name': 'dp_atl', 'vals': [False]}], 'conf_type': ['param', 'struct']},
|
||||
{'name': 'dp_following_profile_ctrl', 'default': False, 'type': 'Bool', 'depends': [{'name': 'dp_atl', 'vals': [False]}], 'conf_type': ['param', 'struct']},
|
||||
{'name': 'dp_following_profile', 'default': 0, 'type': 'UInt8', 'min': 0, 'max': 2, 'depends': [{'name': 'dp_atl', 'vals': [False]}, {'name': 'dp_following_profile_ctrl', 'vals': [True]}], 'conf_type': ['param', 'struct']},
|
||||
{'name': 'dp_accel_profile_ctrl', 'default': False, 'type': 'Bool', 'depends': [{'name': 'dp_atl', 'vals': [False]}], 'conf_type': ['param', 'struct']},
|
||||
{'name': 'dp_accel_profile', 'default': 0, 'type': 'UInt8', 'min': 0, 'max': 2, 'depends': [{'name': 'dp_atl', 'vals': [False]}, {'name': 'dp_accel_profile_ctrl', 'vals': [True]}], 'conf_type': ['param', 'struct']},
|
||||
# safety
|
||||
{'name': 'dp_gear_check', 'default': True, 'type': 'Bool', 'depends': [{'name': 'dp_atl', 'vals': [False]}], 'conf_type': ['param', 'struct']},
|
||||
{'name': 'dp_speed_check', 'default': True, 'type': 'Bool', 'conf_type': ['param', 'struct']},
|
||||
{'name': 'dp_temp_monitor', 'default': True, 'type': 'Bool', 'conf_type': ['param']},
|
||||
# UIs
|
||||
{'name': 'dp_ui_display_mode', 'default': 0, 'type': 'UInt8', 'min': 0, 'max': 2, 'conf_type': ['param', 'struct']},
|
||||
{'name': 'dp_ui_speed', 'default': True, 'type': 'Bool', 'conf_type': ['param', 'struct']},
|
||||
{'name': 'dp_ui_event', 'default': True, 'type': 'Bool', 'conf_type': ['param', 'struct']},
|
||||
{'name': 'dp_ui_max_speed', 'default': True, 'type': 'Bool', 'conf_type': ['param', 'struct']},
|
||||
{'name': 'dp_ui_face', 'default': True, 'type': 'Bool', 'conf_type': ['param', 'struct']},
|
||||
{'name': 'dp_ui_lane', 'default': True, 'type': 'Bool', 'conf_type': ['param', 'struct']},
|
||||
{'name': 'dp_ui_lead', 'default': True, 'type': 'Bool', 'conf_type': ['param', 'struct']},
|
||||
{'name': 'dp_ui_dev', 'default': False, 'type': 'Bool', 'conf_type': ['param', 'struct']},
|
||||
{'name': 'dp_ui_dev_mini', 'default': False, 'type': 'Bool', 'conf_type': ['param', 'struct']},
|
||||
{'name': 'dp_ui_blinker', 'default': False, 'type': 'Bool', 'conf_type': ['param', 'struct']},
|
||||
{'name': 'dp_ui_brightness', 'default': 0, 'type': 'UInt8', 'min': 0, 'max': 100, 'conf_type': ['param', 'struct']},
|
||||
{'name': 'dp_ui_volume', 'default': -5, 'type': 'Int8', 'min': -5, 'max': 100, 'conf_type': ['param', 'struct']},
|
||||
# toyota
|
||||
{'name': 'dp_toyota_ldw', 'default': True, 'type': 'Bool', 'conf_type': ['param', 'struct']},
|
||||
{'name': 'dp_toyota_sng', 'default': False, 'type': 'Bool', 'depends': [{'name': 'dp_atl', 'vals': [False]}], 'conf_type': ['param', 'struct']},
|
||||
{'name': 'dp_toyota_zss', 'default': False, 'type': 'Bool', 'conf_type': ['param']},
|
||||
{'name': 'dp_toyota_disable_relay', 'default': False, 'type': 'Bool', 'conf_type': ['param']},
|
||||
# hyundai
|
||||
{'name': 'dp_hkg_smart_mdps', 'default': False, 'type': 'Bool', 'conf_type': ['param']},
|
||||
# honda
|
||||
{'name': 'dp_honda_eps_mod', 'default': False, 'type': 'Bool', 'conf_type': ['param']},
|
||||
# volkswagen
|
||||
{'name': 'dp_vw_panda', 'default': False, 'type': 'Bool', 'conf_type': ['param']},
|
||||
{'name': 'dp_vw_timebomb_assist', 'default': False, 'type': 'Bool', 'conf_type': ['param', 'struct']},
|
||||
#misc
|
||||
{'name': 'dp_ip_addr', 'default': '', 'type': 'Text', 'conf_type': ['struct']},
|
||||
{'name': 'dp_fan_mode', 'default': 0, 'type': 'UInt8', 'min': 0, 'max': 2, 'conf_type': ['param']},
|
||||
{'name': 'dp_last_modified', 'default': str(floor(time.time())), 'type': 'Text', 'conf_type': ['param']},
|
||||
{'name': 'dp_camera_offset', 'default': 6, 'type': 'Int8', 'min': -100, 'max': 100, 'conf_type': ['param', 'struct']},
|
||||
{'name': 'dp_path_offset', 'default': 0, 'type': 'Int8', 'min': -100, 'max': 100, 'conf_type': ['param', 'struct']},
|
||||
|
||||
{'name': 'dp_locale', 'default': 'en-US', 'type': 'Text', 'conf_type': ['param', 'struct'], 'update_once': True},
|
||||
{'name': 'dp_reg', 'default': True, 'type': 'Bool', 'conf_type': ['param']},
|
||||
# sr learner related
|
||||
{'name': 'dp_sr_learner', 'default': True, 'type': 'Bool', 'conf_type': ['param', 'struct']},
|
||||
{'name': 'dp_sr_custom', 'default': 9.99, 'min': 9.99, 'max': 30., 'type': 'Float32', 'depends': [{'name': 'dp_sr_learner', 'vals': [False]}], 'conf_type': ['param', 'struct']},
|
||||
{'name': 'dp_sr_stock', 'default': 9.99, 'min': 9.99, 'max': 100., 'type': 'Float32', 'conf_type': ['param']},
|
||||
|
||||
{'name': 'dp_lqr', 'default': False, 'type': 'Bool', 'conf_type': ['param']},
|
||||
{'name': 'dp_reset_live_param_on_start', 'default': False, 'type': 'Bool', 'conf_type': ['param']},
|
||||
|
||||
{'name': 'dp_appd', 'default': False, 'type': 'Bool', 'conf_type': ['param', 'struct']},
|
||||
{'name': 'dp_jetson', 'default': False, 'type': 'Bool', 'conf_type': ['param']},
|
||||
{'name': 'dp_car_assigned', 'default': '', 'type': 'Text', 'conf_type': ['param']},
|
||||
{'name': 'dp_car_list', 'default': '', 'type': 'Text', 'conf_type': ['param']},
|
||||
{'name': 'dp_no_batt', 'default': False, 'type': 'Bool', 'conf_type': ['param']},
|
||||
{'name': 'dp_panda_fake_black', 'default': False, 'type': 'Bool', 'conf_type': ['param']},
|
||||
{'name': 'dp_panda_no_gps', 'default': False, 'type': 'Bool', 'conf_type': ['param']},
|
||||
{'name': 'dp_last_candidate', 'default': '', 'type': 'Text', 'conf_type': ['param']},
|
||||
{'name': 'dp_debug', 'default': False, 'type': 'Bool', 'conf_type': ['param', 'struct']},
|
||||
]
|
||||
|
||||
def get_definition(name):
|
||||
for conf in confs:
|
||||
if conf['name'] == name:
|
||||
return conf
|
||||
return None
|
||||
|
||||
def to_param_val(name, val):
|
||||
conf = get_definition(name)
|
||||
if conf is not None:
|
||||
type = conf['type'].lower()
|
||||
try:
|
||||
if 'bool' in type:
|
||||
val = '1' if val else '0'
|
||||
elif 'int' in type:
|
||||
val = int(val)
|
||||
elif 'float' in type:
|
||||
val = float(val)
|
||||
return str(val)
|
||||
except (ValueError, TypeError):
|
||||
return ''
|
||||
return ''
|
||||
|
||||
def to_struct_val(name, val):
|
||||
conf = get_definition(name)
|
||||
if conf is not None:
|
||||
try:
|
||||
type = conf['type'].lower()
|
||||
if 'bool' in type:
|
||||
val = True if val == '1' else False
|
||||
elif 'int' in type:
|
||||
val = int(val)
|
||||
elif 'float' in type:
|
||||
val = float(val)
|
||||
return val
|
||||
except (ValueError, TypeError):
|
||||
return None
|
||||
return None
|
||||
|
||||
'''
|
||||
function to convert param name into struct name.
|
||||
'''
|
||||
def get_struct_name(snake_str):
|
||||
components = snake_str.split('_')
|
||||
# We capitalize the first letter of each component except the first one
|
||||
# with the 'title' method and join them together.
|
||||
return components[0] + ''.join(x.title() for x in components[1:])
|
||||
|
||||
'''
|
||||
function to generate struct for log.capnp
|
||||
'''
|
||||
def gen_log_struct():
|
||||
count = 0
|
||||
str = "# dp\n"
|
||||
str += "struct DragonConf {\n"
|
||||
for conf in confs:
|
||||
name = get_struct_name(conf['name'])
|
||||
if 'struct' in conf['conf_type']:
|
||||
str += f" {name} @{count} :{conf['type']};\n"
|
||||
count += 1
|
||||
str += "}"
|
||||
print(str)
|
||||
|
||||
'''
|
||||
function to generate support car list
|
||||
'''
|
||||
def get_support_car_list():
|
||||
attrs = ['FINGERPRINTS', 'FW_VERSIONS']
|
||||
cars = dict({"cars": []})
|
||||
for car_folder in [x[0] for x in os.walk('/data/openpilot/selfdrive/car')]:
|
||||
try:
|
||||
car_name = car_folder.split('/')[-1]
|
||||
if car_name != "mock":
|
||||
names = []
|
||||
for attr in attrs:
|
||||
values = __import__('selfdrive.car.%s.values' % car_name, fromlist=[attr])
|
||||
if hasattr(values, attr):
|
||||
attr_values = getattr(values, attr)
|
||||
else:
|
||||
continue
|
||||
if isinstance(attr_values, dict):
|
||||
for f, v in attr_values.items():
|
||||
if f not in names:
|
||||
names.append(f)
|
||||
names.sort()
|
||||
brand_models = {"brand": car_name.upper(), "models": names }
|
||||
cars["cars"].append(brand_models)
|
||||
except (ImportError, IOError, ValueError):
|
||||
pass
|
||||
return json.dumps(cars)
|
||||
|
||||
'''
|
||||
function to init param value.
|
||||
should add this into manager.py
|
||||
'''
|
||||
def init_params_vals(params):
|
||||
for conf in confs:
|
||||
if 'param' in conf['conf_type']:
|
||||
if conf['name'] == 'dp_car_list':
|
||||
params.put(conf['name'], get_support_car_list())
|
||||
elif params.get(conf['name']) is None:
|
||||
params.put(conf['name'], to_param_val(conf['name'], conf['default']))
|
||||
|
||||
def gen_params_cc_keys():
|
||||
for conf in confs:
|
||||
if 'param' in conf['conf_type']:
|
||||
print(" {\"%s\", PERSISTENT}," % conf['name'])
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
if (len(sys.argv) > 1) and sys.argv[1] == 'cc':
|
||||
gen_params_cc_keys()
|
||||
else:
|
||||
gen_log_struct()
|
||||
7
common/dp_time.py
Normal file
@@ -0,0 +1,7 @@
|
||||
#!/usr/bin/env python3.7
|
||||
|
||||
# delay of reading last modified
|
||||
LAST_MODIFIED_THERMALD = 10.
|
||||
LAST_MODIFIED_SYSTEMD = 1.
|
||||
LAST_MODIFIED_LANE_PLANNER = 3.
|
||||
LAST_MODIFIED_UPLOADER = 10.
|
||||
14
common/i18n.py
Normal file
@@ -0,0 +1,14 @@
|
||||
import gettext
|
||||
from selfdrive.hardware import EON
|
||||
from selfdrive.hardware.eon.hardware import getprop
|
||||
|
||||
locale_dir = '/data/openpilot/selfdrive/assets/locales'
|
||||
supported_language = ['en-US', 'zh-TW', 'zh-CN', 'ja-JP', 'ko-KR']
|
||||
|
||||
def get_locale():
|
||||
return getprop("persist.sys.locale") if EON else 'en-US'
|
||||
|
||||
def events():
|
||||
i18n = gettext.translation('events', localedir=locale_dir, fallback=True, languages=[get_locale()])
|
||||
i18n.install()
|
||||
return i18n.gettext
|
||||
@@ -26,3 +26,5 @@ cdef extern from "selfdrive/common/params.h":
|
||||
int putBool(string, bool) nogil
|
||||
bool checkKey(string) nogil
|
||||
void clearAll(ParamKeyType)
|
||||
|
||||
string get_params_path()
|
||||
|
||||
@@ -106,6 +106,8 @@ cdef class Params:
|
||||
with nogil:
|
||||
self.p.remove(k)
|
||||
|
||||
def get_params_path(self):
|
||||
return self.p.get_params_path().decode("utf-8")
|
||||
|
||||
def put_nonblocking(key, val, d=None):
|
||||
def f(key, val):
|
||||
|
||||
@@ -6,7 +6,7 @@ import multiprocessing
|
||||
from typing import Optional
|
||||
|
||||
from common.clock import sec_since_boot # pylint: disable=no-name-in-module, import-error
|
||||
from selfdrive.hardware import PC, TICI
|
||||
from selfdrive.hardware import PC, TICI, JETSON
|
||||
|
||||
|
||||
# time step for each process
|
||||
@@ -33,12 +33,12 @@ class Priority:
|
||||
|
||||
|
||||
def set_realtime_priority(level: int) -> None:
|
||||
if not PC:
|
||||
if JETSON or not PC:
|
||||
os.sched_setscheduler(0, os.SCHED_FIFO, os.sched_param(level)) # type: ignore[attr-defined]
|
||||
|
||||
|
||||
def set_core_affinity(core: int) -> None:
|
||||
if not PC:
|
||||
if JETSON or not PC:
|
||||
os.sched_setaffinity(0, [core,])
|
||||
|
||||
|
||||
|
||||
@@ -33,6 +33,7 @@ class TextWindow:
|
||||
if self.text_proc is not None:
|
||||
while True:
|
||||
if self.get_status() == 1:
|
||||
os.system('/data/openpilot/scripts/reset_update.sh')
|
||||
return
|
||||
time.sleep(0.1)
|
||||
|
||||
|
||||
@@ -5,12 +5,14 @@ from selfdrive.hardware import TICI
|
||||
|
||||
## -- hardcoded hardware params --
|
||||
eon_f_focal_length = 910.0
|
||||
eon_d_focal_length = 650.0
|
||||
eon_d_focal_length = 860.0
|
||||
leon_d_focal_length = 650.0
|
||||
tici_f_focal_length = 2648.0
|
||||
tici_e_focal_length = tici_d_focal_length = 567.0 # probably wrong? magnification is not consistent across frame
|
||||
|
||||
eon_f_frame_size = (1164, 874)
|
||||
eon_d_frame_size = (816, 612)
|
||||
eon_d_frame_size = (1152, 864)
|
||||
leon_d_frame_size = (816, 612)
|
||||
tici_f_frame_size = tici_e_frame_size = tici_d_frame_size = (1928, 1208)
|
||||
|
||||
# aka 'K' aka camera_frame_from_view_frame
|
||||
@@ -20,6 +22,11 @@ eon_fcam_intrinsics = np.array([
|
||||
[0.0, 0.0, 1.0]])
|
||||
eon_intrinsics = eon_fcam_intrinsics # xx
|
||||
|
||||
leon_dcam_intrinsics = np.array([
|
||||
[leon_d_focal_length, 0.0, float(leon_d_frame_size[0])/2],
|
||||
[0.0, leon_d_focal_length, float(leon_d_frame_size[1])/2],
|
||||
[0.0, 0.0, 1.0]])
|
||||
|
||||
eon_dcam_intrinsics = np.array([
|
||||
[eon_d_focal_length, 0.0, float(eon_d_frame_size[0])/2],
|
||||
[0.0, eon_d_focal_length, float(eon_d_frame_size[1])/2],
|
||||
|
||||
7
installer/updater/oneplus.json
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"ota_url": "https://commadist.azureedge.net/neosupdate/ota-signed-c4f56c62c5603c86e2ae9d83008a8d42a91319979661d0c42fb97b85d9112266.zip",
|
||||
"ota_hash": "c4f56c62c5603c86e2ae9d83008a8d42a91319979661d0c42fb97b85d9112266",
|
||||
"recovery_url": "https://commadist.azureedge.net/neosupdate/recovery-db31ffe79dfd60be966fba6d1525a5081a920062b883644dc8f5734bcc6806bb.img",
|
||||
"recovery_len": 15926572,
|
||||
"recovery_hash": "db31ffe79dfd60be966fba6d1525a5081a920062b883644dc8f5734bcc6806bb"
|
||||
}
|
||||
BIN
installer/updater/update.zip
Normal file
@@ -125,10 +125,20 @@ int battery_current() {
|
||||
return atoi(current_now_s.c_str());
|
||||
}
|
||||
|
||||
bool has_no_battery() {
|
||||
if (FILE *file = fopen("/data/params/d/dp_no_batt", "r")) {
|
||||
fclose(file);
|
||||
std::string has_no_batt = util::read_file("/data/params/d/dp_no_batt");
|
||||
return atoi(has_no_batt.c_str()) == 1;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
bool check_battery() {
|
||||
int bat_cap = battery_capacity();
|
||||
int current_now = battery_current();
|
||||
return bat_cap > 35 || (current_now < 0 && bat_cap > 10);
|
||||
return (has_no_battery())? true : bat_cap > 35 || (current_now < 0 && bat_cap > 10);
|
||||
}
|
||||
|
||||
bool check_space() {
|
||||
|
||||
@@ -6,6 +6,13 @@ fi
|
||||
|
||||
source "$BASEDIR/launch_env.sh"
|
||||
|
||||
if ! $(grep -q "letv" /proc/cmdline); then
|
||||
mount -o remount,rw /system
|
||||
sed -i -e 's#/dev/input/event1#/dev/input/event2#g' ~/.bash_profile
|
||||
touch /ONEPLUS
|
||||
mount -o remount,r /system
|
||||
fi
|
||||
|
||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"
|
||||
|
||||
function two_init {
|
||||
@@ -56,6 +63,7 @@ function two_init {
|
||||
|
||||
# USB traffic needs realtime handling on cpu 3
|
||||
[ -d "/proc/irq/733" ] && echo 3 > /proc/irq/733/smp_affinity_list
|
||||
[ -d "/proc/irq/736" ] && echo 3 > /proc/irq/736/smp_affinity_list # USB for OP3T
|
||||
|
||||
# GPU and camera get cpu 2
|
||||
CAM_IRQS="177 178 179 180 181 182 183 184 185 186 192"
|
||||
@@ -76,19 +84,35 @@ function two_init {
|
||||
service call bluetooth_manager 8
|
||||
|
||||
# Check for NEOS update
|
||||
if [ $(< /VERSION) != "$REQUIRED_NEOS_VERSION" ]; then
|
||||
if [ -f "$DIR/scripts/continue.sh" ]; then
|
||||
cp "$DIR/scripts/continue.sh" "/data/data/com.termux/files/continue.sh"
|
||||
fi
|
||||
if $(grep -q "letv" /proc/cmdline); then
|
||||
if [ $(< /VERSION) != "$REQUIRED_NEOS_VERSION" ]; then
|
||||
if [ -f "$DIR/scripts/continue.sh" ]; then
|
||||
cp "$DIR/scripts/continue.sh" "/data/data/com.termux/files/continue.sh"
|
||||
fi
|
||||
|
||||
if [ ! -f "$BASEDIR/prebuilt" ]; then
|
||||
# Clean old build products, but preserve the scons cache
|
||||
cd $DIR
|
||||
git clean -xdf
|
||||
git submodule foreach --recursive git clean -xdf
|
||||
fi
|
||||
if [ ! -f "$BASEDIR/prebuilt" ]; then
|
||||
# Clean old build products, but preserve the scons cache
|
||||
cd $DIR
|
||||
git clean -xdf
|
||||
git submodule foreach --recursive git clean -xdf
|
||||
fi
|
||||
|
||||
"$DIR/installer/updater/updater" "file://$DIR/installer/updater/update.json"
|
||||
"$DIR/installer/updater/updater" "file://$DIR/installer/updater/update.json"
|
||||
fi
|
||||
else
|
||||
echo -n 0 > /data/params/d/DisableUpdates
|
||||
fi
|
||||
|
||||
# One-time fix for a subset of OP3T with gyro orientation offsets.
|
||||
# Remove and regenerate qcom sensor registry. Only done on OP3T mainboards.
|
||||
# Performed exactly once. The old registry is preserved just-in-case, and
|
||||
# doubles as a flag denoting we've already done the reset.
|
||||
if ! $(grep -q "letv" /proc/cmdline) && [ ! -f "/persist/comma/op3t-sns-reg-backup" ]; then
|
||||
echo "Performing OP3T sensor registry reset"
|
||||
mv /persist/sensors/sns.reg /persist/comma/op3t-sns-reg-backup &&
|
||||
rm -f /persist/sensors/sensors_settings /persist/sensors/error_log /persist/sensors/gyro_sensitity_cal &&
|
||||
echo "restart" > /sys/kernel/debug/msm_subsys/slpi &&
|
||||
sleep 5 # Give Android sensor subsystem a moment to recover
|
||||
fi
|
||||
}
|
||||
|
||||
@@ -128,10 +152,10 @@ function launch {
|
||||
# that completed successfully and synced to disk.
|
||||
|
||||
if [ -f "${BASEDIR}/.overlay_init" ]; then
|
||||
find ${BASEDIR}/.git -newer ${BASEDIR}/.overlay_init | grep -q '.' 2> /dev/null
|
||||
if [ $? -eq 0 ]; then
|
||||
echo "${BASEDIR} has been modified, skipping overlay update installation"
|
||||
else
|
||||
# find ${BASEDIR}/.git -newer ${BASEDIR}/.overlay_init | grep -q '.' 2> /dev/null
|
||||
# if [ $? -eq 0 ]; then
|
||||
# echo "${BASEDIR} has been modified, skipping overlay update installation"
|
||||
# else
|
||||
if [ -f "${STAGING_ROOT}/finalized/.overlay_consistent" ]; then
|
||||
if [ ! -d /data/safe_staging/old_openpilot ]; then
|
||||
echo "Valid overlay update found, installing"
|
||||
@@ -155,13 +179,16 @@ function launch {
|
||||
# TODO: restore backup? This means the updater didn't start after swapping
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
# fi
|
||||
fi
|
||||
|
||||
# handle pythonpath
|
||||
ln -sfn $(pwd) /data/pythonpath
|
||||
export PYTHONPATH="$PWD:$PWD/pyextra"
|
||||
|
||||
# dp - ignore chmod changes
|
||||
git -C $DIR config core.fileMode false
|
||||
|
||||
# hardware specific init
|
||||
if [ -f /EON ]; then
|
||||
two_init
|
||||
@@ -169,6 +196,10 @@ function launch {
|
||||
tici_init
|
||||
fi
|
||||
|
||||
if [ -f "/sdcard/dp_patcher.py" ]; then
|
||||
/data/data/com.termux/files/usr/bin/python /sdcard/dp_patcher.py
|
||||
fi
|
||||
|
||||
# write tmux scrollback to a file
|
||||
tmux capture-pane -pq -S-1000 > /tmp/launch_log
|
||||
|
||||
|
||||
@@ -1,4 +1,10 @@
|
||||
#!/usr/bin/bash
|
||||
size=$(du -sb .git/index 2>/dev/null|awk '{print $1}')
|
||||
echo $size|grep -E '^[0-9]+$' >/dev/null || size=0
|
||||
if [ $size -le 1024 ];then
|
||||
rm .git/index 2>/dev/null
|
||||
git reset
|
||||
fi
|
||||
|
||||
export PASSIVE="0"
|
||||
exec ./launch_chffrplus.sh
|
||||
|
||||
@@ -36,6 +36,8 @@ cdef class CANParser:
|
||||
def __init__(self, dbc_name, signals, checks=None, bus=0, enforce_checks=True):
|
||||
if checks is None:
|
||||
checks = []
|
||||
checks = []
|
||||
enforce_checks = False
|
||||
self.can_valid = True
|
||||
self.dbc_name = dbc_name
|
||||
self.dbc = dbc_lookup(dbc_name)
|
||||
|
||||
@@ -461,13 +461,15 @@ BO_ 892 CRUISE_PARAMS: 8 PCM
|
||||
BO_ 927 RADAR_HUD: 8 RADAR
|
||||
SG_ ZEROS_BOH : 7|10@0+ (1,0) [0|127] "" BDY
|
||||
SG_ CMBS_OFF : 12|1@0+ (1,0) [0|1] "" BDY
|
||||
SG_ ZEROS_BOH3 : 31|32@0+ (1,0) [0|4294967295] "" XXX
|
||||
SG_ RESUME_INSTRUCTION : 21|1@0+ (1,0) [0|1] "" XXX
|
||||
SG_ SET_TO_1 : 13|1@0+ (1,0) [0|1] "" BDY
|
||||
SG_ ZEROS_BOH2 : 11|4@0+ (1,0) [0|1] "" XXX
|
||||
SG_ APPLY_BRAKES_FOR_CANC : 23|1@0+ (1,0) [0|1] "" XXX
|
||||
SG_ ACC_ALERTS : 20|5@0+ (1,0) [0|1] "" BDY
|
||||
SG_ SET_TO_0 : 22|1@0+ (1,0) [0|1] "" XXX
|
||||
SG_ LEAD_DISTANCE : 39|8@0+ (1,0) [0|255] "" XXX
|
||||
SG_ BOH : 40|1@0+ (1,0) [0|1] "" XXX
|
||||
SG_ BOH_2 : 30|1@0+ (1,0) [0|1] "" XXX
|
||||
SG_ COUNTER : 61|2@0+ (1,0) [0|3] "" XXX
|
||||
SG_ CHECKSUM : 59|4@0+ (1,0) [0|15] "" XXX
|
||||
|
||||
|
||||
@@ -448,13 +448,15 @@ BO_ 432 STANDSTILL: 7 VSA
|
||||
BO_ 927 RADAR_HUD: 8 RADAR
|
||||
SG_ ZEROS_BOH : 7|10@0+ (1,0) [0|127] "" BDY
|
||||
SG_ CMBS_OFF : 12|1@0+ (1,0) [0|1] "" BDY
|
||||
SG_ ZEROS_BOH3 : 31|32@0+ (1,0) [0|4294967295] "" XXX
|
||||
SG_ RESUME_INSTRUCTION : 21|1@0+ (1,0) [0|1] "" XXX
|
||||
SG_ SET_TO_1 : 13|1@0+ (1,0) [0|1] "" BDY
|
||||
SG_ ZEROS_BOH2 : 11|4@0+ (1,0) [0|1] "" XXX
|
||||
SG_ APPLY_BRAKES_FOR_CANC : 23|1@0+ (1,0) [0|1] "" XXX
|
||||
SG_ ACC_ALERTS : 20|5@0+ (1,0) [0|1] "" BDY
|
||||
SG_ SET_TO_0 : 22|1@0+ (1,0) [0|1] "" XXX
|
||||
SG_ LEAD_DISTANCE : 39|8@0+ (1,0) [0|255] "" XXX
|
||||
SG_ BOH : 40|1@0+ (1,0) [0|1] "" XXX
|
||||
SG_ BOH_2 : 30|1@0+ (1,0) [0|1] "" XXX
|
||||
SG_ COUNTER : 61|2@0+ (1,0) [0|3] "" XXX
|
||||
SG_ CHECKSUM : 59|4@0+ (1,0) [0|15] "" XXX
|
||||
|
||||
|
||||
414
opendbc/lexus_is300h_2017_pt_generated.dbc
Normal file
@@ -0,0 +1,414 @@
|
||||
CM_ "AUTOGENERATED FILE, DO NOT EDIT"
|
||||
|
||||
|
||||
CM_ "Imported file _comma.dbc starts here"
|
||||
BO_ 359 STEERING_IPAS_COMMA: 8 IPAS
|
||||
SG_ STATE : 7|4@0+ (1,0) [0|15] "" XXX
|
||||
SG_ ANGLE : 3|12@0- (1.5,0) [-510|510] "deg" XXX
|
||||
SG_ SET_ME_X10 : 23|8@0+ (1,0) [0|255] "" XXX
|
||||
SG_ SET_ME_X00 : 31|8@0+ (1,0) [0|255] "" XXX
|
||||
SG_ DIRECTION_CMD : 38|2@0+ (1,0) [0|3] "" XXX
|
||||
SG_ SET_ME_X40 : 47|8@0+ (1,0) [0|255] "" XXX
|
||||
SG_ SET_ME_X00 : 55|8@0+ (1,0) [0|255] "" XXX
|
||||
SG_ CHECKSUM : 63|8@0+ (1,0) [0|255] "" XXX
|
||||
|
||||
CM BO_ STEERING_IPAS_COMMA "Copy of msg 614 so we can do angle control while the Park Assist ECU is connected (Panda spoofs 614 with 359 on connector J70). Note that addresses 0x266 and 0x167 are checksum-invariant";
|
||||
|
||||
BO_ 512 GAS_COMMAND: 6 EON
|
||||
SG_ GAS_COMMAND : 7|16@0+ (0.159375,-75.555) [0|1] "" INTERCEPTOR
|
||||
SG_ GAS_COMMAND2 : 23|16@0+ (0.159375,-151.111) [0|1] "" INTERCEPTOR
|
||||
SG_ ENABLE : 39|1@0+ (1,0) [0|1] "" INTERCEPTOR
|
||||
SG_ COUNTER_PEDAL : 35|4@0+ (1,0) [0|15] "" INTERCEPTOR
|
||||
SG_ CHECKSUM_PEDAL : 47|8@0+ (1,0) [0|255] "" INTERCEPTOR
|
||||
|
||||
BO_ 513 GAS_SENSOR: 6 INTERCEPTOR
|
||||
SG_ INTERCEPTOR_GAS : 7|16@0+ (0.159375,-75.555) [0|1] "" EON
|
||||
SG_ INTERCEPTOR_GAS2 : 23|16@0+ (0.159375,-151.111) [0|1] "" EON
|
||||
SG_ STATE : 39|4@0+ (1,0) [0|15] "" EON
|
||||
SG_ COUNTER_PEDAL : 35|4@0+ (1,0) [0|15] "" EON
|
||||
SG_ CHECKSUM_PEDAL : 47|8@0+ (1,0) [0|255] "" EON
|
||||
|
||||
VAL_ 513 STATE 5 "FAULT_TIMEOUT" 4 "FAULT_STARTUP" 3 "FAULT_SCE" 2 "FAULT_SEND" 1 "FAULT_BAD_CHECKSUM" 0 "NO_FAULT" ;
|
||||
|
||||
|
||||
CM_ "Imported file _toyota_2017.dbc starts here"
|
||||
VERSION ""
|
||||
|
||||
|
||||
NS_ :
|
||||
NS_DESC_
|
||||
CM_
|
||||
BA_DEF_
|
||||
BA_
|
||||
VAL_
|
||||
CAT_DEF_
|
||||
CAT_
|
||||
FILTER
|
||||
BA_DEF_DEF_
|
||||
EV_DATA_
|
||||
ENVVAR_DATA_
|
||||
SGTYPE_
|
||||
SGTYPE_VAL_
|
||||
BA_DEF_SGTYPE_
|
||||
BA_SGTYPE_
|
||||
SIG_TYPE_REF_
|
||||
VAL_TABLE_
|
||||
SIG_GROUP_
|
||||
SIG_VALTYPE_
|
||||
SIGTYPE_VALTYPE_
|
||||
BO_TX_BU_
|
||||
BA_DEF_REL_
|
||||
BA_REL_
|
||||
BA_DEF_DEF_REL_
|
||||
BU_SG_REL_
|
||||
BU_EV_REL_
|
||||
BU_BO_REL_
|
||||
SG_MUL_VAL_
|
||||
|
||||
BS_:
|
||||
|
||||
BU_: XXX DSU HCU EPS IPAS CGW
|
||||
|
||||
BO_ 36 KINEMATICS: 8 XXX
|
||||
SG_ ACCEL_Y : 33|10@0+ (0.03589,-18.375) [0|65535] "m/s^2" XXX
|
||||
SG_ YAW_RATE : 1|10@0+ (0.244,-125) [0|65535] "deg/sec" XXX
|
||||
SG_ STEERING_TORQUE : 17|10@0+ (1,-512) [0|65535] "" XXX
|
||||
|
||||
BO_ 37 STEER_ANGLE_SENSOR: 8 XXX
|
||||
SG_ STEER_ANGLE : 3|12@0- (1.5,0) [-500|500] "deg" XXX
|
||||
SG_ STEER_FRACTION : 39|4@0- (0.1,0) [-0.7|0.7] "deg" XXX
|
||||
SG_ STEER_RATE : 35|12@0- (1,0) [-2000|2000] "deg/s" XXX
|
||||
|
||||
BO_ 166 BRAKE: 8 XXX
|
||||
SG_ BRAKE_AMOUNT : 7|8@0+ (1,0) [0|255] "" XXX
|
||||
SG_ BRAKE_PEDAL : 23|8@0+ (1,0) [0|255] "" XXX
|
||||
|
||||
BO_ 170 WHEEL_SPEEDS: 8 XXX
|
||||
SG_ WHEEL_SPEED_FR : 7|16@0+ (0.01,-67.67) [0|250] "kph" XXX
|
||||
SG_ WHEEL_SPEED_FL : 23|16@0+ (0.01,-67.67) [0|250] "kph" XXX
|
||||
SG_ WHEEL_SPEED_RR : 39|16@0+ (0.01,-67.67) [0|250] "kph" XXX
|
||||
SG_ WHEEL_SPEED_RL : 55|16@0+ (0.01,-67.67) [0|250] "kph" XXX
|
||||
|
||||
BO_ 180 SPEED: 8 XXX
|
||||
SG_ ENCODER : 39|8@0+ (1,0) [0|255] "" XXX
|
||||
SG_ SPEED : 47|16@0+ (0.01,0) [0|250] "kph" XXX
|
||||
SG_ CHECKSUM : 63|8@0+ (1,0) [0|255] "" XXX
|
||||
|
||||
BO_ 353 DSU_SPEED: 7 XXX
|
||||
SG_ FORWARD_SPEED : 15|16@0- (0.00390625,-30) [0|255] "kph" XXX
|
||||
|
||||
BO_ 452 ENGINE_RPM: 8 CGW
|
||||
SG_ RPM : 7|16@0- (0.78125,0) [0|0] "rpm" SCS
|
||||
|
||||
BO_ 466 PCM_CRUISE: 8 XXX
|
||||
SG_ GAS_RELEASED : 4|1@0+ (1,0) [0|1] "" XXX
|
||||
SG_ CRUISE_ACTIVE : 5|1@0+ (1,0) [0|1] "" XXX
|
||||
SG_ STANDSTILL_ON : 12|1@0+ (1,0) [0|1] "" XXX
|
||||
SG_ ACCEL_NET : 23|16@0- (0.001,0) [-20|20] "m/s2" XXX
|
||||
SG_ CRUISE_STATE : 55|4@0+ (1,0) [0|15] "" XXX
|
||||
SG_ CANCEL_REQ : 49|1@1+ (1,0) [0|1] "" XXX
|
||||
SG_ CHECKSUM : 63|8@0+ (1,0) [0|255] "" XXX
|
||||
|
||||
BO_ 467 PCM_CRUISE_2: 8 XXX
|
||||
SG_ MAIN_ON : 15|1@0+ (1,0) [0|1] "" XXX
|
||||
SG_ LOW_SPEED_LOCKOUT : 14|2@0+ (1,0) [0|3] "kph" XXX
|
||||
SG_ SET_SPEED : 23|8@0+ (1,0) [0|255] "kph" XXX
|
||||
SG_ CHECKSUM : 63|8@0+ (1,0) [0|255] "" XXX
|
||||
|
||||
BO_ 552 ACCELEROMETER: 8 XXX
|
||||
SG_ ACCEL_Z : 22|15@0- (1,0) [0|32767] "" XXX
|
||||
SG_ ACCEL_X : 6|15@0- (0.001,0) [-20|20] "m/s2" XXX
|
||||
|
||||
BO_ 560 BRAKE_MODULE2: 7 XXX
|
||||
SG_ BRAKE_PRESSED : 26|1@0+ (1,0) [0|1] "" XXX
|
||||
|
||||
BO_ 614 STEERING_IPAS: 8 IPAS
|
||||
SG_ STATE : 7|4@0+ (1,0) [0|15] "" XXX
|
||||
SG_ ANGLE : 3|12@0- (1.5,0) [-510|510] "deg" XXX
|
||||
SG_ SET_ME_X10 : 23|8@0+ (1,0) [0|255] "" XXX
|
||||
SG_ SET_ME_X00 : 31|8@0+ (1,0) [0|255] "" XXX
|
||||
SG_ DIRECTION_CMD : 38|2@0+ (1,0) [0|3] "" XXX
|
||||
SG_ SET_ME_X40 : 47|8@0+ (1,0) [0|255] "" XXX
|
||||
SG_ SET_ME_X00_1 : 55|8@0+ (1,0) [0|255] "" XXX
|
||||
SG_ CHECKSUM : 63|8@0+ (1,0) [0|255] "" XXX
|
||||
|
||||
BO_ 643 PRE_COLLISION: 7 DSU
|
||||
SG_ COUNTER : 7|8@0+ (1,0) [0|255] "" XXX
|
||||
SG_ SET_ME_X00 : 15|8@0+ (1,0) [0|255] "" XXX
|
||||
SG_ FORCE : 23|16@0- (2,0) [0|255] "N" XXX
|
||||
SG_ SET_ME_X002 : 33|8@0+ (1,0) [0|3] "" XXX
|
||||
SG_ BRAKE_STATUS : 39|3@0+ (1,0) [0|255] "" XXX
|
||||
SG_ STATE : 36|3@0+ (1,0) [0|255] "" XXX
|
||||
SG_ SET_ME_X003 : 40|1@0+ (1,0) [0|1] "" XXX
|
||||
SG_ PRECOLLISION_ACTIVE : 41|1@0+ (1,0) [0|255] "" XXX
|
||||
SG_ CHECKSUM : 55|8@0+ (1,0) [0|255] "" XXX
|
||||
|
||||
BO_ 740 STEERING_LKA: 5 XXX
|
||||
SG_ LKA_STATE : 31|8@0+ (1,0) [0|255] "" XXX
|
||||
SG_ STEER_REQUEST : 0|1@0+ (1,0) [0|1] "" XXX
|
||||
SG_ COUNTER : 6|6@0+ (1,0) [0|63] "" XXX
|
||||
SG_ SET_ME_1 : 7|1@0+ (1,0) [0|1] "" XXX
|
||||
SG_ STEER_TORQUE_CMD : 15|16@0- (1,0) [0|65535] "" XXX
|
||||
SG_ CHECKSUM : 39|8@0+ (1,0) [0|255] "" XXX
|
||||
|
||||
BO_ 742 LEAD_INFO: 8 DSU
|
||||
SG_ CHECKSUM : 63|8@0+ (1,0) [0|255] "" HCU
|
||||
SG_ LEAD_REL_SPEED : 23|12@0- (0.025,0) [-100|100] "m/s" HCU
|
||||
SG_ LEAD_LONG_DIST : 7|13@0+ (0.05,0) [0|300] "m" HCU
|
||||
|
||||
BO_ 835 ACC_CONTROL: 8 DSU
|
||||
SG_ ACCEL_CMD : 7|16@0- (0.001,0) [-20|20] "m/s2" HCU
|
||||
SG_ SET_ME_X01 : 23|2@0+ (1,0) [0|3] "" HCU
|
||||
SG_ DISTANCE : 20|1@0+ (1,0) [0|1] "" XXX
|
||||
SG_ MINI_CAR : 21|1@0+ (1,0) [0|1] "" XXX
|
||||
SG_ SET_ME_X3 : 19|4@0+ (1,0) [0|15] "" XXX
|
||||
SG_ PERMIT_BRAKING : 30|1@0+ (1,0) [0|1] "" HCU
|
||||
SG_ RELEASE_STANDSTILL : 31|1@0+ (1,0) [0|1] "" HCU
|
||||
SG_ CANCEL_REQ : 24|1@0+ (1,0) [0|1] "" HCU
|
||||
SG_ CHECKSUM : 63|8@0+ (1,0) [0|255] "" XXX
|
||||
SG_ ACCEL_CMD_ALT : 47|8@0- (0.05,0) [0|0] "m/s^2" XXX
|
||||
|
||||
BO_ 836 PRE_COLLISION_2: 8 DSU
|
||||
SG_ CHECKSUM : 63|8@0+ (1,0) [0|0] "" XXX
|
||||
|
||||
BO_ 869 DSU_CRUISE : 7 DSU
|
||||
SG_ RES_BTN : 3|1@0+ (1,0) [0|0] "" XXX
|
||||
SG_ SET_BTN : 2|1@0+ (1,0) [0|0] "" XXX
|
||||
SG_ CANCEL_BTN : 1|1@0+ (1,0) [0|0] "" XXX
|
||||
SG_ MAIN_ON : 0|1@0+ (1,0) [0|0] "" XXX
|
||||
SG_ SET_SPEED : 15|8@0+ (1,0) [0|0] "km/h" XXX
|
||||
SG_ CRUISE_REQUEST : 31|8@0+ (100,-12800) [0|0] "N" XXX
|
||||
SG_ LEAD_DISTANCE : 39|8@0+ (1,0) [0|0] "m" XXX
|
||||
|
||||
BO_ 921 PCM_CRUISE_SM: 8 XXX
|
||||
SG_ MAIN_ON : 4|1@0+ (1,0) [0|1] "" XXX
|
||||
SG_ CRUISE_CONTROL_STATE : 11|4@0+ (1,0) [0|15] "" XXX
|
||||
SG_ DISTANCE_LINES : 14|2@0+ (1,0) [0|3] "" XXX
|
||||
SG_ UI_SET_SPEED : 31|8@0+ (1,0) [0|255] "" XXX
|
||||
|
||||
BO_ 951 ESP_CONTROL: 8 ESP
|
||||
SG_ TC_DISABLED : 13|1@0+ (1,0) [0|1] "" XXX
|
||||
SG_ VSC_DISABLED : 12|2@0+ (1,0) [0|1] "" XXX
|
||||
SG_ BRAKE_LIGHTS_ACC : 18|1@0+ (1,0) [0|1] "" XXX
|
||||
|
||||
BO_ 1041 ACC_HUD: 8 DSU
|
||||
SG_ FCW : 4|1@0+ (1,0) [0|1] "" XXX
|
||||
SG_ SET_ME_X20 : 15|8@0+ (1,0) [0|1] "" XXX
|
||||
SG_ SET_ME_X10 : 39|8@0+ (1,0) [0|1] "" XXX
|
||||
SG_ SET_ME_X80 : 55|8@0+ (1,0) [0|1] "" XXX
|
||||
|
||||
BO_ 1042 LKAS_HUD: 8 XXX
|
||||
SG_ BARRIERS : 1|2@0+ (1,0) [0|3] "" XXX
|
||||
SG_ RIGHT_LINE : 3|2@0+ (1,0) [0|3] "" XXX
|
||||
SG_ LEFT_LINE : 5|2@0+ (1,0) [0|3] "" XXX
|
||||
SG_ SET_ME_X01 : 7|2@0+ (1,0) [0|3] "" XXX
|
||||
SG_ SET_ME_X01_2 : 11|2@0+ (1,0) [0|3] "" XXX
|
||||
SG_ LDA_ALERT : 9|2@0+ (1,0) [0|3] "" XXX
|
||||
SG_ TWO_BEEPS : 12|1@0+ (1,0) [0|1] "" XXX
|
||||
SG_ ADJUSTING_CAMERA : 13|1@0+ (1,0) [0|1] "" XXX
|
||||
SG_ LDA_MALFUNCTION : 15|1@0+ (1,0) [0|1] "" XXX
|
||||
SG_ REPEATED_BEEPS : 32|1@0+ (1,0) [0|1] "" XXX
|
||||
SG_ SET_ME_X0C : 23|8@0+ (1,0) [0|1] "" XXX
|
||||
SG_ SET_ME_X2C : 47|8@0+ (1,0) [0|1] "" XXX
|
||||
SG_ SET_ME_X38 : 55|8@0+ (1,0) [0|1] "" XXX
|
||||
SG_ SET_ME_X02 : 63|8@0+ (1,0) [0|1] "" XXX
|
||||
|
||||
BO_ 1043 TIME : 8 CGW
|
||||
SG_ YEAR : 7|8@0+ (1,0) [0|0] "year" XXX
|
||||
SG_ MONTH : 15|8@0+ (1,0) [0|0] "month" XXX
|
||||
SG_ DAY : 23|8@0+ (1,0) [0|0] "day" XXX
|
||||
SG_ HOUR : 31|8@0+ (1,0) [0|0] "hour" XXX
|
||||
SG_ MINUTE : 39|8@0+ (1,0) [0|0] "minute" XXX
|
||||
SG_ GMT_DIFF : 55|1@0+ (1,0) [0|0] "" XXX
|
||||
SG_ GMTDIFF_HOURS : 54|4@0+ (1,0) [0|0] "hours" XXX
|
||||
SG_ GMTDIFF_MINUTES : 50|6@0+ (1,0) [0|0] "minutes" XXX
|
||||
SG_ SUMMER : 60|1@0+ (1,0) [0|0] "" XXX
|
||||
|
||||
BO_ 1408 VIN_PART_1: 8 CGW
|
||||
SG_ VIN_1 : 7|8@0+ (1,0) [0|0] "" XXX
|
||||
SG_ VIN_2 : 15|8@0+ (1,0) [0|0] "" XXX
|
||||
SG_ VIN_3 : 23|8@0+ (1,0) [0|0] "" XXX
|
||||
SG_ VIN_4 : 31|8@0+ (1,0) [0|0] "" XXX
|
||||
SG_ VIN_5 : 39|8@0+ (1,0) [0|0] "" XXX
|
||||
SG_ VIN_6 : 47|8@0+ (1,0) [0|0] "" XXX
|
||||
SG_ VIN_7 : 55|8@0+ (1,0) [0|0] "" XXX
|
||||
SG_ VIN_8 : 63|8@0+ (1,0) [0|0] "" XXX
|
||||
|
||||
BO_ 1409 VIN_PART_2: 8 CGW
|
||||
SG_ VIN_9 : 7|8@0+ (1,0) [0|0] "" XXX
|
||||
SG_ VIN_10 : 15|8@0+ (1,0) [0|0] "" XXX
|
||||
SG_ VIN_11 : 23|8@0+ (1,0) [0|0] "" XXX
|
||||
SG_ VIN_12 : 31|8@0+ (1,0) [0|0] "" XXX
|
||||
SG_ VIN_13 : 39|8@0+ (1,0) [0|0] "" XXX
|
||||
SG_ VIN_14 : 47|8@0+ (1,0) [0|0] "" XXX
|
||||
SG_ VIN_15 : 55|8@0+ (1,0) [0|0] "" XXX
|
||||
SG_ VIN_16 : 63|8@0+ (1,0) [0|0] "" XXX
|
||||
|
||||
BO_ 1410 VIN_PART_3: 8 CGW
|
||||
SG_ VIN_17 : 7|8@0+ (1,0) [0|0] "" XXX
|
||||
|
||||
BO_ 1553 UI_SETTING: 8 XXX
|
||||
SG_ UNITS : 26|2@0+ (1,0) [0|3] "" XXX
|
||||
SG_ ODOMETER : 43|20@0+ (1,0) [0|1048575] "" XXX
|
||||
|
||||
BO_ 1556 STEERING_LEVERS: 8 XXX
|
||||
SG_ TURN_SIGNALS : 29|2@0+ (1,0) [0|3] "" XXX
|
||||
|
||||
BO_ 1568 SEATS_DOORS: 8 XXX
|
||||
SG_ SEATBELT_DRIVER_UNLATCHED : 62|1@0+ (1,0) [0|1] "" XXX
|
||||
SG_ DOOR_OPEN_FL : 45|1@0+ (1,0) [0|1] "" XXX
|
||||
SG_ DOOR_OPEN_RL : 42|1@0+ (1,0) [0|1] "" XXX
|
||||
SG_ DOOR_OPEN_RR : 43|1@0+ (1,0) [0|1] "" XXX
|
||||
SG_ DOOR_OPEN_FR : 44|1@0+ (1,0) [0|1] "" XXX
|
||||
|
||||
BO_ 1570 LIGHT_STALK: 8 SCM
|
||||
SG_ AUTO_HIGH_BEAM : 37|1@0+ (1,0) [0|1] "" XXX
|
||||
|
||||
BO_ 1161 RSA1: 8 FCM
|
||||
SG_ TSGN1 : 7|8@0+ (1,0) [0|0] "" XXX
|
||||
SG_ TSGNGRY1 : 12|3@0+ (1,0) [0|0] "" XXX
|
||||
SG_ TSGNHLT1 : 9|2@0+ (1,0) [0|0] "" XXX
|
||||
SG_ SPDVAL1 : 23|8@0+ (1,0) [0|0] "kph" XXX
|
||||
SG_ SPLSGN1 : 31|4@0+ (1,0) [0|0] "" XXX
|
||||
SG_ SPLSGN2 : 27|4@0+ (1,0) [0|0] "" XXX
|
||||
SG_ TSGN2 : 39|8@0+ (1,0) [0|0] "" XXX
|
||||
SG_ TSGNGRY2 : 44|3@0+ (1,0) [0|0] "" XXX
|
||||
SG_ TSGNHLT2 : 41|2@0+ (1,0) [0|0] "" XXX
|
||||
SG_ SPDVAL2 : 55|8@0+ (1,0) [0|0] "" XXX
|
||||
SG_ BZRRQ_P : 63|2@0+ (1,0) [0|0] "" XXX
|
||||
SG_ BZRRQ_A : 61|2@0+ (1,0) [0|0] "" XXX
|
||||
SG_ SYNCID1 : 59|4@0+ (1,0) [0|0] "" XXX
|
||||
|
||||
BO_ 1162 RSA2: 8 FCM
|
||||
SG_ TSGN3 : 7|8@0+ (1,0) [0|0] "" XXX
|
||||
SG_ TSGNGRY3 : 12|3@0+ (1,0) [0|0] "" XXX
|
||||
SG_ TSGNHLT3 : 9|2@0+ (1,0) [0|0] "" XXX
|
||||
SG_ SPLSGN3 : 31|4@0+ (1,0) [0|0] "" XXX
|
||||
SG_ SPLSGN4 : 27|4@0+ (1,0) [0|0] "" XXX
|
||||
SG_ TSGN4 : 39|8@0+ (1,0) [0|0] "" XXX
|
||||
SG_ TSGNGRY4 : 44|3@0+ (1,0) [0|0] "" XXX
|
||||
SG_ TSGNHLT4 : 41|2@0+ (1,0) [0|0] "" XXX
|
||||
SG_ DPSGNREQ : 54|1@0+ (1,0) [0|0] "" XXX
|
||||
SG_ SGNNUMP : 53|3@0+ (1,0) [0|0] "" XXX
|
||||
SG_ SGNNUMA : 50|3@0+ (1,0) [0|0] "" XXX
|
||||
SG_ SPDUNT : 63|2@0+ (1,0) [0|0] "" XXX
|
||||
SG_ TSRWMSG : 61|2@0+ (1,0) [0|0] "" XXX
|
||||
SG_ SYNCID2 : 59|4@0+ (1,0) [0|0] "" XXX
|
||||
|
||||
BO_ 1163 RSA3: 8 FCM
|
||||
SG_ TSREQPD : 7|1@0+ (1,0) [0|0] "" XXX
|
||||
SG_ TSRMSW : 6|1@0+ (1,0) [0|0] "" XXX
|
||||
SG_ OTSGNNTM : 5|2@0+ (1,0) [0|0] "" XXX
|
||||
SG_ NTLVLSPD : 3|2@0+ (1,0) [0|0] "" XXX
|
||||
SG_ OVSPNTM : 1|2@0+ (1,0) [0|0] "" XXX
|
||||
SG_ OVSPVALL : 11|4@0+ (1,-5) [0|0] "" XXX
|
||||
SG_ OVSPVALM : 19|4@0+ (1,-5) [0|0] "" XXX
|
||||
SG_ OVSPVALH : 27|4@0+ (1,-5) [0|0] "" XXX
|
||||
SG_ TSRSPU : 33|2@0+ (1,0) [0|0] "" XXX
|
||||
|
||||
CM_ SG_ 36 ACCEL_Y "unit is tbd";
|
||||
CM_ SG_ 36 YAW_RATE "verify";
|
||||
CM_ SG_ 36 STEERING_TORQUE "does not seem the steer torque, tbd";
|
||||
CM_ SG_ 37 STEER_FRACTION "1/15th of the signal STEER_ANGLE, which is 1.5 deg; note that 0x8 is never set";
|
||||
CM_ SG_ 37 STEER_RATE "factor is tbd";
|
||||
CM_ SG_ 466 ACCEL_NET "net acceleration produced by the system, given ACCEL_CMD, road grade and other factors";
|
||||
CM_ SG_ 466 CRUISE_STATE "Active state is 8, if standstill is requested will switch to state 11(3 sec timer), after timer is elapsed will switch into state 7(standstill). If plus button was pressed - status 9, minus button pressed - status 10";
|
||||
CM_ SG_ 467 SET_SPEED "43 kph are shown as 28mph, so conversion isn't perfect";
|
||||
CM_ SG_ 467 LOW_SPEED_LOCKOUT "in low speed lockout, system would always disengage below 28mph";
|
||||
CM_ SG_ 560 BRAKE_PRESSED "another brake pressed?";
|
||||
CM_ SG_ 608 STEER_TORQUE_DRIVER "driver torque";
|
||||
CM_ SG_ 608 STEER_OVERRIDE "set when driver torque exceeds a certain value";
|
||||
CM_ SG_ 614 ANGLE "set to measured angle when ipas control isn't active";
|
||||
CM_ SG_ 643 COUNTER "only used on cars that use this msg for cruise control";
|
||||
CM_ SG_ 643 BRAKE_STATUS "only used on cars that use this msg for cruise control";
|
||||
CM_ SG_ 643 PRECOLLISION_ACTIVE "set 0.5s before any braking";
|
||||
CM_ SG_ 835 PERMIT_BRAKING "Original ACC has this going high when a car in front is detected. In openpilot and before the PERMIT_BRAKING name, this was "SET_ME_1" and is hardcoded to be high. Unsure if only informational or has an effect though existing usage in openpilot is to always set it to 1. Originally 'PMTBRKG' in the leaked toyota_2017_ref_pt.dbc file and name expansion speculated to be PerMiT BRaKinG.";
|
||||
CM_ SG_ 835 ACCEL_CMD_ALT "Copy of main ACCEL_CMD, but across 8 bits instead of 16 bits like ACCEL_CMD. Unsure if only informational or has an effect. Likely informational as existing openpilot sets this to 0 and no loss of functionality observed. Originally 'AT_RAW' in leaked toyota_2017_ref_pt.dbc file.";
|
||||
CM_ SG_ 921 UI_SET_SPEED "set speed shown in UI with user set unit";
|
||||
CM_ SG_ 951 BRAKE_LIGHTS_ACC "brake lights when ACC commands decel";
|
||||
CM_ SG_ 1042 SET_ME_1 "unclear what this is, but it's always 1 in drive traces";
|
||||
CM_ SG_ 1042 REPEATED_BEEPS "recommended for fcw and other important alerts";
|
||||
CM_ SG_ 1161 SPDVAL1 "Numbers 0-199 is displayed, 200-254 displays circle without number and 255 is for no limit.";
|
||||
CM_ SG_ 1161 SYNCID1 "counter from 1 to f at 1 Hz";
|
||||
CM_ SG_ 1161 SPDVAL2 "conditional speed value 70"
|
||||
CM_ SG_ 1162 SGNNUMP "1 if SPDVAL1 is set, otherwise 0";
|
||||
CM_ SG_ 1162 SYNCID2 "counter from 1 to f at 1 Hz";
|
||||
CM_ SG_ 1163 TSREQPD "always 1";
|
||||
CM_ SG_ 1163 TSRMSW "always 1";
|
||||
CM_ SG_ 1163 OTSGNNTM "always 3";
|
||||
CM_ SG_ 1163 NTLVLSPD "always 3";
|
||||
CM_ SG_ 1163 OVSPNTM "always 3";
|
||||
CM_ SG_ 1163 OVSPVALL "-5 at start then 2 after 2 seconds";
|
||||
CM_ SG_ 1163 OVSPVALM "-5 at start then 5 after 2 seconds";
|
||||
CM_ SG_ 1163 OVSPVALH "-5 at start then 10 after 2 seconds";
|
||||
CM_ SG_ 1163 TSRSPU "always 1";
|
||||
CM_ SG_ 1553 ODOMETER "Unit is dependent upon units signal";
|
||||
|
||||
VAL_ 466 CRUISE_STATE 11 "timer_3sec" 10 "adaptive click down" 9 "adaptive click up" 8 "adaptive engaged" 7 "standstill" 6 "non-adaptive click up" 5 "non-adaptive click down" 4 "non-adaptive hold down" 3 "non-adaptive hold up" 2 "non-adaptive being engaged" 1 "non-adaptive engaged" 0 "off";
|
||||
VAL_ 467 LOW_SPEED_LOCKOUT 2 "low speed locked" 1 "ok";
|
||||
VAL_ 614 STATE 3 "enabled" 1 "disabled";
|
||||
VAL_ 614 DIRECTION_CMD 3 "right" 2 "center" 1 "left";
|
||||
VAL_ 643 STATE 0 "normal" 1 "adaptive_cruise_control" 3 "emergency_braking";
|
||||
VAL_ 921 CRUISE_CONTROL_STATE 2 "disabled" 11 "hold" 10 "hold_waiting_user_cmd" 6 "enabled" 5 "faulted";
|
||||
VAL_ 1042 LDA_ALERT 3 "hold with continuous beep" 2 "LDA unavailable" 1 "hold" 0 "none";
|
||||
VAL_ 1042 BARRIERS 3 "both" 2 "right" 1 "left" 0 "none";
|
||||
VAL_ 1042 RIGHT_LINE 3 "orange" 2 "faded" 1 "solid" 0 "none";
|
||||
VAL_ 1042 LEFT_LINE 3 "orange" 2 "faded" 1 "solid" 0 "none";
|
||||
VAL_ 1553 UNITS 1 "km" 2 "miles";
|
||||
VAL_ 1556 TURN_SIGNALS 3 "none" 2 "right" 1 "left";
|
||||
VAL_ 1161 TSGN1 1 "speed sign" 0 "none";
|
||||
VAL_ 1161 TSGN2 1 "speed sign" 0 "none";
|
||||
VAL_ 1161 SPLSGN2 15 "conditional blank" 4 "wet road" 5 "rain" 0 "none";
|
||||
VAL_ 1162 TSGN3 0 "none" 1 "speed sign" 2 "0 unlimited" 7 "unlimited" 16 "highway" 17 "no highway" 18 "motorway" 19 "no motorway" 20 "in city" 21 "outside city" 22 "pedestrian area" 23 "no pedestrian area" 65 "no overtaking left" 66 "no overtaking right" 67 "overtaking allowed again" 129 "no entry";
|
||||
VAL_ 1162 SPLSGN3 15 "conditional blank" 4 "wet road" 5 "rain" 0 "none";
|
||||
|
||||
|
||||
CM_ "CHFFR_METRIC 37 STEER_ANGLE STEER_ANGLE 0.36 180";
|
||||
|
||||
CM_ "lexus_is_2018_pt.dbc starts here"
|
||||
|
||||
|
||||
|
||||
BO_ 550 BRAKE_MODULE: 8 XXX
|
||||
SG_ BRAKE_PRESSURE : 0|9@0+ (1,0) [0|511] "" XXX
|
||||
SG_ BRAKE_POSITION : 16|9@0+ (1,0) [0|511] "" XXX
|
||||
SG_ BRAKE_PRESSED : 37|1@0+ (1,0) [0|1] "" XXX
|
||||
|
||||
BO_ 581 GAS_PEDAL_ALT: 5 XXX
|
||||
SG_ GAS_PEDAL : 23|8@0+ (0.005,0) [0|1] "" XXX
|
||||
|
||||
BO_ 705 GAS_PEDAL: 8 XXX
|
||||
SG_ GAS_RELEASED : 3|1@0+ (1,0) [0|1] "" XXX
|
||||
SG_ GAS_PEDAL : 55|8@0+ (0.005,0) [0|1] "" XXX
|
||||
|
||||
BO_ 608 STEER_TORQUE_SENSOR: 8 XXX
|
||||
SG_ STEER_TORQUE_EPS : 47|16@0- (1.30,0) [-20000|20000] "" XXX
|
||||
SG_ STEER_TORQUE_DRIVER : 15|16@0- (1,0) [-32768|32767] "" XXX
|
||||
SG_ STEER_OVERRIDE : 0|1@0+ (1,0) [0|1] "" XXX
|
||||
SG_ CHECKSUM : 63|8@0+ (1,0) [0|255] "" XXX
|
||||
SG_ STEER_ANGLE : 31|16@0- (0.0573,0) [-500|500] "" XXX
|
||||
|
||||
BO_ 610 EPS_STATUS: 5 EPS
|
||||
SG_ IPAS_STATE : 3|4@0+ (1,0) [0|15] "" XXX
|
||||
SG_ LKA_STATE : 31|7@0+ (1,0) [0|127] "" XXX
|
||||
SG_ TYPE : 24|1@0+ (1,0) [0|1] "" XXX
|
||||
SG_ CHECKSUM : 39|8@0+ (1,0) [0|255] "" XXX
|
||||
|
||||
BO_ 956 GEAR_PACKET: 8 XXX
|
||||
SG_ GEAR : 13|6@0+ (1,0) [0|63] "" XXX
|
||||
|
||||
BO_ 1009 PCM_CRUISE_ALT: 8 XXX
|
||||
SG_ MAIN_ON : 13|1@0+ (1,0) [0|3] "" XXX
|
||||
SG_ CRUISE_STATE : 10|1@0+ (1,0) [0|1] "" XXX
|
||||
SG_ SET_SPEED : 23|8@0+ (1,0) [0|255] "mph" XXX
|
||||
|
||||
BO_ 1599 LIGHT_STALK_ISH: 8 SCM
|
||||
SG_ AUTO_HIGH_BEAM : 19|1@0+ (1,0) [0|1] "" XXX
|
||||
|
||||
CM_ SG_ 550 BRAKE_PRESSURE "seems prop to pedal force";
|
||||
CM_ SG_ 550 BRAKE_POSITION "seems proportional to pedal displacement, unclear the max value of 0x1c8";
|
||||
CM_ SG_ 610 TYPE "seems 1 on Corolla, 0 on all others";
|
||||
CM_ SG_ 1009 SET_SPEED "units seem to be whatever the car is set to";
|
||||
VAL_ 956 GEAR 0 "D" 1 "S" 8 "N" 16 "R" 32 "P";
|
||||
VAL_ 610 IPAS_STATE 5 "override" 3 "enabled" 1 "disabled";
|
||||
VAL_ 610 LKA_STATE 25 "temporary_fault" 9 "temporary_fault2" 5 "active" 1 "standby";
|
||||
0
panda/board/Makefile
Normal file
@@ -37,6 +37,16 @@ else:
|
||||
"-DPANDA",
|
||||
]
|
||||
|
||||
if FindFile('dp_vw', '/data/params/d') != None:
|
||||
with open('/data/params/d/dp_vw_panda') as f:
|
||||
if (int(f.read().strip())) == 1:
|
||||
PROJECT_FLAGS += ['-Dvw']
|
||||
|
||||
if FindFile('dp_panda_fake_black', '/data/params/d') != None:
|
||||
with open('/data/params/d/dp_panda_fake_black') as f:
|
||||
if (int(f.read().strip())) == 1:
|
||||
PROJECT_FLAGS += ['-Dfake_black_panda']
|
||||
|
||||
|
||||
def get_version(builder, build_type):
|
||||
version_file = File('../VERSION').srcnode().abspath
|
||||
|
||||
@@ -56,12 +56,7 @@ void uno_set_gps_load_switch(bool enabled) {
|
||||
}
|
||||
|
||||
void uno_set_bootkick(bool enabled){
|
||||
if(enabled){
|
||||
set_gpio_output(GPIOB, 14, false);
|
||||
} else {
|
||||
// We want the pin to be floating, not forced high!
|
||||
set_gpio_mode(GPIOB, 14, MODE_INPUT);
|
||||
}
|
||||
set_gpio_output(GPIOB, 14, !enabled);
|
||||
}
|
||||
|
||||
void uno_bootkick(void) {
|
||||
@@ -77,9 +72,11 @@ void uno_set_usb_power_mode(uint8_t mode) {
|
||||
bool valid = false;
|
||||
switch (mode) {
|
||||
case USB_POWER_CLIENT:
|
||||
uno_set_phone_power(false);
|
||||
valid = true;
|
||||
break;
|
||||
case USB_POWER_CDP:
|
||||
uno_set_phone_power(true);
|
||||
uno_bootkick();
|
||||
valid = true;
|
||||
break;
|
||||
|
||||
@@ -103,10 +103,24 @@ void set_safety_mode(uint16_t mode, int16_t param) {
|
||||
switch (mode_copy) {
|
||||
case SAFETY_SILENT:
|
||||
set_intercept_relay(false);
|
||||
#ifdef vw
|
||||
// Volkswagen community port:
|
||||
// J533 integrations with White/Grey Panda really need Panda to respond
|
||||
// at all times. Let the CAN transceivers ACK traffic unless this is
|
||||
// BP/Uno where the physical relay makes it irrelevant. This makes
|
||||
// SILENT identical to NOOUTPUT for White/Grey Panda.
|
||||
if (current_board->has_obd) {
|
||||
current_board->set_can_mode(CAN_MODE_NORMAL);
|
||||
can_silent = ALL_CAN_SILENT;
|
||||
} else {
|
||||
can_silent = ALL_CAN_LIVE;
|
||||
}
|
||||
#else
|
||||
if (current_board->has_obd) {
|
||||
current_board->set_can_mode(CAN_MODE_NORMAL);
|
||||
}
|
||||
can_silent = ALL_CAN_SILENT;
|
||||
#endif
|
||||
break;
|
||||
case SAFETY_NOOUTPUT:
|
||||
set_intercept_relay(false);
|
||||
@@ -319,7 +333,11 @@ int usb_cb_control_msg(USB_Setup_TypeDef *setup, uint8_t *resp, bool hardwired)
|
||||
break;
|
||||
// **** 0xc1: get hardware type
|
||||
case 0xc1:
|
||||
#ifdef fake_black_panda
|
||||
resp[0] = HW_TYPE_BLACK_PANDA;
|
||||
#else
|
||||
resp[0] = hw_type;
|
||||
#endif
|
||||
resp_len = 1;
|
||||
break;
|
||||
// **** 0xd0: fetch serial number
|
||||
|
||||
@@ -28,7 +28,14 @@ void set_power_save_state(int state) {
|
||||
enable = true;
|
||||
}
|
||||
|
||||
#ifdef vw
|
||||
// Volkswagen community port:
|
||||
// If this is a White or Grey Panda, always keep the CAN transceivers
|
||||
// powered up so that transparent forwarding is maintained.
|
||||
current_board->enable_can_transceivers(board_has_obd() ? enable : true);
|
||||
#else
|
||||
current_board->enable_can_transceivers(enable);
|
||||
#endif
|
||||
|
||||
// Switch EPS/GPS
|
||||
if (enable) {
|
||||
|
||||
@@ -24,9 +24,32 @@ static int nooutput_tx_lin_hook(int lin_num, uint8_t *data, int len) {
|
||||
}
|
||||
|
||||
static int default_fwd_hook(int bus_num, CAN_FIFOMailBox_TypeDef *to_fwd) {
|
||||
UNUSED(bus_num);
|
||||
UNUSED(to_fwd);
|
||||
#ifdef vw
|
||||
// Volkswagen community port: Advanced Virtual Relay Technology!
|
||||
// Make Panda fully transparent from bus 0->2 and bus 2->0 if not otherwise
|
||||
// instructed by EON/OP, returning the car to stock behavior under NOOUTPUT.
|
||||
// Don't do this for BP/C2, where we have Advanced Actual Relay Technology.
|
||||
int bus_fwd = -1;
|
||||
|
||||
if(!board_has_relay()) {
|
||||
switch (bus_num) {
|
||||
case 0:
|
||||
bus_fwd = 2;
|
||||
break;
|
||||
case 2:
|
||||
bus_fwd = 0;
|
||||
break;
|
||||
default:
|
||||
bus_fwd = -1;
|
||||
break;
|
||||
}
|
||||
}
|
||||
return bus_fwd;
|
||||
#else
|
||||
UNUSED(bus_num);
|
||||
return -1;
|
||||
#endif
|
||||
}
|
||||
|
||||
const safety_hooks nooutput_hooks = {
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
// Safety-relevant steering constants for Volkswagen
|
||||
const int VOLKSWAGEN_MAX_STEER = 300; // 3.0 Nm (EPS side max of 3.0Nm with fault if violated)
|
||||
const int VOLKSWAGEN_MAX_RT_DELTA = 75; // 4 max rate up * 50Hz send rate * 250000 RT interval / 1000000 = 50 ; 50 * 1.5 for safety pad = 75
|
||||
const int VOLKSWAGEN_MAX_RT_DELTA = 188; // 10 max rate up * 50Hz send rate * 250000 RT interval / 1000000 = 125 ; 125 * 1.5 for safety pad = 187.5
|
||||
const uint32_t VOLKSWAGEN_RT_INTERVAL = 250000; // 250ms between real time checks
|
||||
const int VOLKSWAGEN_MAX_RATE_UP = 4; // 2.0 Nm/s RoC limit (EPS rack has own soft-limit of 5.0 Nm/s)
|
||||
const int VOLKSWAGEN_MAX_RATE_UP = 10; // 5.0 Nm/s RoC limit (EPS rack has own soft-limit of 5.0 Nm/s)
|
||||
const int VOLKSWAGEN_MAX_RATE_DOWN = 10; // 5.0 Nm/s RoC limit (EPS rack has own soft-limit of 5.0 Nm/s)
|
||||
const int VOLKSWAGEN_DRIVER_TORQUE_ALLOWANCE = 80;
|
||||
const int VOLKSWAGEN_DRIVER_TORQUE_FACTOR = 3;
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
#!/usr/bin/env bash
|
||||
set -e
|
||||
|
||||
export GIT_COMMITTER_NAME="Vehicle Researcher"
|
||||
export GIT_COMMITTER_EMAIL="user@comma.ai"
|
||||
export GIT_AUTHOR_NAME="Vehicle Researcher"
|
||||
export GIT_AUTHOR_EMAIL="user@comma.ai"
|
||||
export GIT_COMMITTER_NAME="rav4kumar"
|
||||
export GIT_COMMITTER_EMAIL=" 36933347+rav4kumar@users.noreply.github.com"
|
||||
export GIT_AUTHOR_NAME="rav4kumar"
|
||||
export GIT_AUTHOR_EMAIL=" 36933347+rav4kumar@users.noreply.github.com"
|
||||
|
||||
export GIT_SSH_COMMAND="ssh -i /data/gitkey"
|
||||
|
||||
@@ -17,7 +17,7 @@ if [ ! -z "$CLEAN" ]; then
|
||||
|
||||
# Create git repo
|
||||
git init
|
||||
git remote add origin git@github.com:commaai/openpilot.git
|
||||
git remote add origin git@github.com:rav4kumar/dp-devel.git
|
||||
git fetch origin devel-staging
|
||||
else
|
||||
cd /data/openpilot
|
||||
@@ -26,7 +26,6 @@ else
|
||||
fi
|
||||
|
||||
git fetch origin release2-staging
|
||||
git fetch origin dashcam-staging
|
||||
|
||||
# Create release2 with no history
|
||||
if [ ! -z "$CLEAN" ]; then
|
||||
@@ -41,19 +40,23 @@ echo "#define COMMA_VERSION \"$VERSION-release\"" > selfdrive/common/version.h
|
||||
git commit -m "openpilot v$VERSION"
|
||||
|
||||
# Build signed panda firmware
|
||||
pushd panda/
|
||||
CERT=/tmp/pandaextra/certs/release RELEASE=1 scons -u .
|
||||
mv board/obj/panda.bin.signed /tmp/panda.bin.signed
|
||||
popd
|
||||
#pushd panda/
|
||||
#CERT=/data/openpilot/panda/certs/debug RELEASE=0 scons -u .
|
||||
#mv board/obj/panda.bin.signed /tmp/panda.bin.signed
|
||||
#popd
|
||||
|
||||
# Build stuff
|
||||
ln -sfn /data/openpilot /data/pythonpath
|
||||
export PYTHONPATH="/data/openpilot:/data/openpilot/pyextra"
|
||||
scons -j3
|
||||
|
||||
# Run tests
|
||||
python selfdrive/manager/test/test_manager.py
|
||||
selfdrive/car/tests/test_car_interfaces.py
|
||||
# Ensure no submodules in release
|
||||
if test "$(git submodule--helper list | wc -l)" -gt "0"; then
|
||||
echo "submodules found:"
|
||||
git submodule--helper list
|
||||
exit 1
|
||||
fi
|
||||
git submodule status
|
||||
|
||||
# Cleanup
|
||||
find . -name '*.a' -delete
|
||||
@@ -61,13 +64,14 @@ find . -name '*.o' -delete
|
||||
find . -name '*.os' -delete
|
||||
find . -name '*.pyc' -delete
|
||||
find . -name '__pycache__' -delete
|
||||
find selfdrive/ui -name '*.h' -delete
|
||||
rm -rf panda/board panda/certs panda/crypto
|
||||
rm -rf .sconsign.dblite Jenkinsfile release/
|
||||
rm models/supercombo.dlc
|
||||
|
||||
# Move back signed panda fw
|
||||
mkdir -p panda/board/obj
|
||||
mv /tmp/panda.bin.signed panda/board/obj/panda.bin.signed
|
||||
#mkdir -p panda/board/obj
|
||||
#mv /tmp/panda.bin.signed panda/board/obj/panda.bin.signed
|
||||
|
||||
# Restore phonelibs
|
||||
git checkout phonelibs/
|
||||
@@ -82,15 +86,7 @@ git commit --amend -m "openpilot v$VERSION"
|
||||
# Print committed files that are normally gitignored
|
||||
#git status --ignored
|
||||
|
||||
if [ ! -z "$PUSH" ]; then
|
||||
git remote set-url origin git@github.com:commaai/openpilot.git
|
||||
#git remote set-url origin git@github.com:rav4kumar/dp-devel.git
|
||||
|
||||
# Push to release2-staging
|
||||
git push -f origin release2-staging
|
||||
|
||||
# Create dashcam release
|
||||
git rm selfdrive/car/*/carcontroller.py
|
||||
|
||||
git commit -m "create dashcam release from release2"
|
||||
git push -f origin release2-staging:dashcam-staging
|
||||
fi
|
||||
# Push to release2-staging
|
||||
#git push -f origin release2-staging
|
||||
|
||||
19
scripts/atl.sh
Executable file
@@ -0,0 +1,19 @@
|
||||
#!/usr/bin/bash
|
||||
|
||||
if [ $1 -eq 1 ]; then
|
||||
printf %s "1" > /data/params/d/CommunityFeaturesToggle
|
||||
printf %s "1" > /data/params/d/dp_atl
|
||||
printf %s "0" > /data/params/d/dp_uploader
|
||||
printf %s "0" > /data/params/d/dp_logger
|
||||
printf %s "0" > /data/params/d/dp_athenad
|
||||
printf %s "0" > /data/params/d/dp_accel_profile_ctrl
|
||||
printf %s "0" > /data/params/d/dp_following_profile_ctrl
|
||||
printf %s "0" > /data/params/d/dp_gear_check
|
||||
fi
|
||||
if [ $1 -eq 0 ]; then
|
||||
printf %s "0" > /data/params/d/dp_atl
|
||||
cd /data/openpilot || exit
|
||||
git reset --hard @{u}
|
||||
git clean -xdf
|
||||
fi
|
||||
reboot
|
||||
9
scripts/complete_setup.sh
Executable file
@@ -0,0 +1,9 @@
|
||||
#!/usr/bin/bash
|
||||
|
||||
touch /data/data/com.termux/files/continue.sh
|
||||
echo "#!/usr/bin/bash" >> /data/data/com.termux/files/continue.sh
|
||||
echo "cd /data/openpilot" >> /data/data/com.termux/files/continue.sh
|
||||
echo "exec ./launch_openpilot.sh" >> /data/data/com.termux/files/continue.sh
|
||||
|
||||
chmod u+x /data/data/com.termux/files/continue.sh
|
||||
reboot
|
||||
10
scripts/disable_relay.sh
Executable file
@@ -0,0 +1,10 @@
|
||||
#!/usr/bin/bash
|
||||
|
||||
if [ $1 -eq 1 ]; then
|
||||
printf %s "1" > /data/params/d/dp_toyota_disable_relay
|
||||
fi
|
||||
if [ $1 -eq 0 ]; then
|
||||
printf %s "0" > /data/params/d/dp_toyota_disable_relay
|
||||
fi
|
||||
|
||||
rm -rf /data/openpilot/selfdrive/boardd/boardd && reboot
|
||||
28
scripts/id_rsa
Normal file
@@ -0,0 +1,28 @@
|
||||
-----BEGIN RSA PRIVATE KEY-----
|
||||
MIIEvAIBADANBgkqhkiG9w0BAQEFAASCBKYwggSiAgEAAoIBAQC+iXXq30Tq+J5N
|
||||
Kat3KWHCzcmwZ55nGh6WggAqECa5CasBlM9VeROpVu3beA+5h0MibRgbD4DMtVXB
|
||||
t6gEvZ8nd04E7eLA9LTZyFDZ7SkSOVj4oXOQsT0GnJmKrASW5KslTWqVzTfo2XCt
|
||||
Z+004ikLxmyFeBO8NOcErW1pa8gFdQDToH9FrA7kgysic/XVESTOoe7XlzRoe/eZ
|
||||
acEQ+jtnmFd21A4aEADkk00Ahjr0uKaJiLUAPatxs2icIXWpgYtfqqtaKF23wSt6
|
||||
1OTu6cAwXbOWr3m+IUSRUO0IRzEIQS3z1jfd1svgzSgSSwZ1Lhj4AoKxIEAIc8qJ
|
||||
rO4uymCJAgMBAAECggEBAISFevxHGdoL3Z5xkw6oO5SQKO2GxEeVhRzNgmu/HA+q
|
||||
x8OryqD6O1CWY4037kft6iWxlwiLOdwna2P25ueVM3LxqdQH2KS4DmlCx+kq6FwC
|
||||
gv063fQPMhC9LpWimvaQSPEC7VUPjQlo4tPY6sTTYBUOh0A1ihRm/x7juKuQCWix
|
||||
Cq8C/DVnB1X4mGj+W3nJc5TwVJtgJbbiBrq6PWrhvB/3qmkxHRL7dU2SBb2iNRF1
|
||||
LLY30dJx/cD73UDKNHrlrsjk3UJc29Mp4/MladKvUkRqNwlYxSuAtJV0nZ3+iFkL
|
||||
s3adSTHdJpClQer45R51rFDlVsDz2ZBpb/hRNRoGDuECgYEA6A1EixLq7QYOh3cb
|
||||
Xhyh3W4kpVvA/FPfKH1OMy3ONOD/Y9Oa+M/wthW1wSoRL2n+uuIW5OAhTIvIEivj
|
||||
6bAZsTT3twrvOrvYu9rx9aln4p8BhyvdjeW4kS7T8FP5ol6LoOt2sTP3T1LOuJPO
|
||||
uQvOjlKPKIMh3c3RFNWTnGzMPa0CgYEA0jNiPLxP3A2nrX0keKDI+VHuvOY88gdh
|
||||
0W5BuLMLovOIDk9aQFIbBbMuW1OTjHKv9NK+Lrw+YbCFqOGf1dU/UN5gSyE8lX/Q
|
||||
FsUGUqUZx574nJZnOIcy3ONOnQLcvHAQToLFAGUd7PWgP3CtHkt9hEv2koUwL4vo
|
||||
ikTP1u9Gkc0CgYEA2apoWxPZrY963XLKBxNQecYxNbLFaWq67t3rFnKm9E8BAICi
|
||||
4zUaE5J1tMVi7Vi9iks9Ml9SnNyZRQJKfQ+kaebHXbkyAaPmfv+26rqHKboA0uxA
|
||||
nDOZVwXX45zBkp6g1sdHxJx8JLoGEnkC9eyvSi0C//tRLx86OhLErXwYcNkCf1it
|
||||
VMRKrWYoXJTUNo6tRhvodM88UnnIo3u3CALjhgU4uC1RTMHV4ZCGBwiAOb8GozSl
|
||||
s5YD1E1iKwEULloHnK6BIh6P5v8q7J6uf/xdqoKMjlWBHgq6/roxKvkSPA1DOZ3l
|
||||
jTadcgKFnRUmc+JT9p/ZbCxkA/ALFg8++G+0ghECgYA8vG3M/utweLvq4RI7l7U7
|
||||
b+i2BajfK2OmzNi/xugfeLjY6k2tfQGRuv6ppTjehtji2uvgDWkgjJUgPfZpir3I
|
||||
RsVMUiFgloWGHETOy0Qvc5AwtqTJFLTD1Wza2uBilSVIEsg6Y83Gickh+ejOmEsY
|
||||
6co17RFaAZHwGfCFFjO76Q==
|
||||
-----END RSA PRIVATE KEY-----
|
||||
8
scripts/jetson_start.sh
Executable file
@@ -0,0 +1,8 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
sudo echo 5000 > /sys/devices/c250000.i2c/i2c-7/7-0040/iio:device0/crit_current_limit_0
|
||||
sudo nvpmodel -m 2 && sudo jetson_clocks
|
||||
export PASSIVE=0
|
||||
export NOSENSOR=1
|
||||
export USE_MIPI=1
|
||||
cd ../selfdrive/manager && ./manager.py
|
||||
11
scripts/oneplus_update_neos.sh
Executable file
@@ -0,0 +1,11 @@
|
||||
#!/usr/bin/bash
|
||||
|
||||
if [ -z "$BASEDIR" ]; then
|
||||
BASEDIR="/data/openpilot"
|
||||
fi
|
||||
|
||||
source "$BASEDIR/launch_env.sh"
|
||||
cp -f "$BASEDIR/installer/updater/update.zip" "/sdcard/update.zip"
|
||||
pm disable ai.comma.plus.offroad
|
||||
killall _ui
|
||||
"$BASEDIR/installer/updater/updater" "file://$BASEDIR/installer/updater/oneplus.json"
|
||||
13
scripts/rebuild.sh
Executable file
@@ -0,0 +1,13 @@
|
||||
#!/usr/bin/bash
|
||||
|
||||
export LD_LIBRARY_PATH=/data/data/com.termux/files/usr/lib
|
||||
export HOME=/data/data/com.termux/files/home
|
||||
export PATH=/usr/local/bin:/data/data/com.termux/files/usr/bin:/data/data/com.termux/files/usr/sbin:/data/data/com.termux/files/usr/bin/applets:/bin:/sbin:/vendor/bin:/system/sbin:/system/bin:/system/xbin:/data/data/com.termux/files/usr/bin/git
|
||||
printf %s "1" > /data/params/d/DragonUpdating
|
||||
cd /data/openpilot || exit
|
||||
#git reset --hard @{u}
|
||||
git clean -xdf
|
||||
rm -fr /tmp/scons_cache/
|
||||
find . -type f -name '*.py[co]' -delete -o -type d -name __pycache__ -delete
|
||||
scons --clean
|
||||
reboot
|
||||
9
scripts/reset_dp.sh
Executable file
@@ -0,0 +1,9 @@
|
||||
#!/usr/bin/bash
|
||||
|
||||
export LD_LIBRARY_PATH=/data/data/com.termux/files/usr/lib
|
||||
export HOME=/data/data/com.termux/files/home
|
||||
export PATH=/usr/local/bin:/data/data/com.termux/files/usr/bin:/data/data/com.termux/files/usr/sbin:/data/data/com.termux/files/usr/bin/applets:/bin:/sbin:/vendor/bin:/system/sbin:/system/bin:/system/xbin:/data/data/com.termux/files/usr/bin/git
|
||||
export PYTHONPATH=/data/openpilot
|
||||
rm -fr /data/params/d/dp_*
|
||||
rm -fr /data/params/d/Dragon*
|
||||
reboot
|
||||
8
scripts/reset_update.sh
Executable file
@@ -0,0 +1,8 @@
|
||||
#!/usr/bin/bash
|
||||
|
||||
export LD_LIBRARY_PATH=/data/data/com.termux/files/usr/lib
|
||||
export HOME=/data/data/com.termux/files/home
|
||||
export PATH=/usr/local/bin:/data/data/com.termux/files/usr/bin:/data/data/com.termux/files/usr/sbin:/data/data/com.termux/files/usr/bin/applets:/bin:/sbin:/vendor/bin:/system/sbin:/system/bin:/system/xbin:/data/data/com.termux/files/usr/bin/git
|
||||
export PYTHONPATH=/data/openpilot
|
||||
rm /data/openpilot/panda/board/obj/panda.bin
|
||||
cd /data/openpilot && git fetch --all && git reset --hard @{u} && git clean -xdf && scons --clean && reboot
|
||||
8
scripts/update_panda_firmware.sh
Executable file
@@ -0,0 +1,8 @@
|
||||
#!/usr/bin/bash
|
||||
|
||||
export LD_LIBRARY_PATH=/data/data/com.termux/files/usr/lib
|
||||
export HOME=/data/data/com.termux/files/home
|
||||
export PATH=/usr/local/bin:/data/data/com.termux/files/usr/bin:/data/data/com.termux/files/usr/sbin:/data/data/com.termux/files/usr/bin/applets:/bin:/sbin:/vendor/bin:/system/sbin:/system/bin:/system/xbin:/data/data/com.termux/files/usr/bin/python
|
||||
export PYTHONPATH=/data/openpilot
|
||||
rm /data/openpilot/panda/board/obj/panda.bin
|
||||
cd /data/openpilot/panda || exit ; pkill -f boardd ; python -c "from panda import Panda; Panda().flash()" && reboot
|
||||
9
scripts/vw.sh
Executable file
@@ -0,0 +1,9 @@
|
||||
#!/usr/bin/bash
|
||||
|
||||
if [ $1 -eq 1 ]; then
|
||||
printf %s "1" > /data/params/d/dp_vw_panda
|
||||
fi
|
||||
if [ $1 -eq 0 ]; then
|
||||
printf %s "0" > /data/params/d/dp_vw_panda
|
||||
fi
|
||||
rm /data/openpilot/panda/board/obj/panda.bin
|
||||
|
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 86 KiB |
|
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 86 KiB |
|
Before Width: | Height: | Size: 40 KiB After Width: | Height: | Size: 5.9 KiB |
540
selfdrive/assets/locales/events.pot
Normal file
@@ -0,0 +1,540 @@
|
||||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||
# This file is distributed under the same license as the PACKAGE package.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
||||
#
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: PACKAGE VERSION\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2020-10-15 13:37+1000\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
"Language: \n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=CHARSET\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:153
|
||||
msgid "openpilot Unavailable"
|
||||
msgstr ""
|
||||
|
||||
#: selfdrive/controls/lib/events.py:160 selfdrive/controls/lib/events.py:167
|
||||
msgid "TAKE CONTROL IMMEDIATELY"
|
||||
msgstr ""
|
||||
|
||||
#: selfdrive/controls/lib/events.py:187 selfdrive/controls/lib/events.py:328
|
||||
#: selfdrive/controls/lib/events.py:354 selfdrive/controls/lib/events.py:418
|
||||
#: selfdrive/controls/lib/events.py:470 selfdrive/controls/lib/events.py:522
|
||||
#: selfdrive/controls/lib/events.py:532
|
||||
msgid "TAKE CONTROL"
|
||||
msgstr ""
|
||||
|
||||
#: selfdrive/controls/lib/events.py:188
|
||||
#, python-format
|
||||
msgid "Steer Unavailable Below %(speed)d %(unit)s"
|
||||
msgstr ""
|
||||
|
||||
#: selfdrive/controls/lib/events.py:196
|
||||
#, python-format
|
||||
msgid "Calibration in Progress: %d%%"
|
||||
msgstr ""
|
||||
|
||||
#: selfdrive/controls/lib/events.py:197
|
||||
#, python-format
|
||||
msgid "Drive Above %(speed)d %(unit)s"
|
||||
msgstr ""
|
||||
|
||||
#: selfdrive/controls/lib/events.py:204
|
||||
msgid "Poor GPS reception"
|
||||
msgstr ""
|
||||
|
||||
#: selfdrive/controls/lib/events.py:205
|
||||
msgid "If sky is visible, contact support"
|
||||
msgstr ""
|
||||
|
||||
#: selfdrive/controls/lib/events.py:205
|
||||
msgid "Check GPS antenna placement"
|
||||
msgstr ""
|
||||
|
||||
#: selfdrive/controls/lib/events.py:210
|
||||
msgid "Cruise Mode Disabled"
|
||||
msgstr ""
|
||||
|
||||
#: selfdrive/controls/lib/events.py:212
|
||||
msgid "Main Switch Off"
|
||||
msgstr ""
|
||||
|
||||
#: selfdrive/controls/lib/events.py:222
|
||||
msgid "DEBUG ALERT"
|
||||
msgstr ""
|
||||
|
||||
#: selfdrive/controls/lib/events.py:230
|
||||
msgid "Be ready to take over at any time"
|
||||
msgstr ""
|
||||
|
||||
#: selfdrive/controls/lib/events.py:231 selfdrive/controls/lib/events.py:239
|
||||
#: selfdrive/controls/lib/events.py:247 selfdrive/controls/lib/events.py:255
|
||||
msgid "Always keep hands on wheel and eyes on road"
|
||||
msgstr ""
|
||||
|
||||
#: selfdrive/controls/lib/events.py:238
|
||||
msgid "WARNING: This branch is not tested"
|
||||
msgstr ""
|
||||
|
||||
#: selfdrive/controls/lib/events.py:246
|
||||
msgid "Dashcam mode"
|
||||
msgstr ""
|
||||
|
||||
#: selfdrive/controls/lib/events.py:254
|
||||
msgid "Dashcam mode for unsupported car"
|
||||
msgstr ""
|
||||
|
||||
#: selfdrive/controls/lib/events.py:262
|
||||
msgid "Unsupported Giraffe Configuration"
|
||||
msgstr ""
|
||||
|
||||
#: selfdrive/controls/lib/events.py:263
|
||||
msgid "Visit comma.ai/tg"
|
||||
msgstr ""
|
||||
|
||||
#: selfdrive/controls/lib/events.py:270
|
||||
msgid "White Panda Is No Longer Supported"
|
||||
msgstr ""
|
||||
|
||||
#: selfdrive/controls/lib/events.py:271
|
||||
msgid "Upgrade to comma two or black panda"
|
||||
msgstr ""
|
||||
|
||||
#: selfdrive/controls/lib/events.py:274
|
||||
msgid "White panda is no longer supported"
|
||||
msgstr ""
|
||||
|
||||
#: selfdrive/controls/lib/events.py:279
|
||||
msgid "Stock LKAS is turned on"
|
||||
msgstr ""
|
||||
|
||||
#: selfdrive/controls/lib/events.py:280
|
||||
msgid "Turn off stock LKAS to engage"
|
||||
msgstr ""
|
||||
|
||||
#: selfdrive/controls/lib/events.py:288
|
||||
msgid "Community Feature Detected"
|
||||
msgstr ""
|
||||
|
||||
#: selfdrive/controls/lib/events.py:289
|
||||
msgid "Enable Community Features in Developer Settings"
|
||||
msgstr ""
|
||||
|
||||
#: selfdrive/controls/lib/events.py:296
|
||||
msgid "Dashcam Mode"
|
||||
msgstr ""
|
||||
|
||||
#: selfdrive/controls/lib/events.py:297
|
||||
msgid "Car Unrecognized"
|
||||
msgstr ""
|
||||
|
||||
#: selfdrive/controls/lib/events.py:304 selfdrive/controls/lib/events.py:312
|
||||
#: selfdrive/controls/lib/events.py:320
|
||||
msgid "BRAKE!"
|
||||
msgstr ""
|
||||
|
||||
#: selfdrive/controls/lib/events.py:305
|
||||
msgid "Stock AEB: Risk of Collision"
|
||||
msgstr ""
|
||||
|
||||
#: selfdrive/controls/lib/events.py:313
|
||||
msgid "Stock FCW: Risk of Collision"
|
||||
msgstr ""
|
||||
|
||||
#: selfdrive/controls/lib/events.py:321
|
||||
msgid "Risk of Collision"
|
||||
msgstr ""
|
||||
|
||||
#: selfdrive/controls/lib/events.py:329
|
||||
msgid "Lane Departure Detected"
|
||||
msgstr ""
|
||||
|
||||
#: selfdrive/controls/lib/events.py:338
|
||||
msgid "openpilot will not brake while gas pressed"
|
||||
msgstr ""
|
||||
|
||||
#: selfdrive/controls/lib/events.py:346
|
||||
msgid "Vehicle Parameter Identification Failed"
|
||||
msgstr ""
|
||||
|
||||
#: selfdrive/controls/lib/events.py:355 selfdrive/controls/lib/events.py:523
|
||||
#: selfdrive/controls/lib/events.py:526
|
||||
msgid "Steering Temporarily Unavailable"
|
||||
msgstr ""
|
||||
|
||||
#: selfdrive/controls/lib/events.py:362
|
||||
msgid "KEEP EYES ON ROAD: Driver Distracted"
|
||||
msgstr ""
|
||||
|
||||
#: selfdrive/controls/lib/events.py:370
|
||||
msgid "KEEP EYES ON ROAD"
|
||||
msgstr ""
|
||||
|
||||
#: selfdrive/controls/lib/events.py:371
|
||||
msgid "Driver Appears Distracted"
|
||||
msgstr ""
|
||||
|
||||
#: selfdrive/controls/lib/events.py:378 selfdrive/controls/lib/events.py:402
|
||||
msgid "DISENGAGE IMMEDIATELY"
|
||||
msgstr ""
|
||||
|
||||
#: selfdrive/controls/lib/events.py:379
|
||||
msgid "Driver Was Distracted"
|
||||
msgstr ""
|
||||
|
||||
#: selfdrive/controls/lib/events.py:386
|
||||
msgid "TOUCH STEERING WHEEL: No Face Detected"
|
||||
msgstr ""
|
||||
|
||||
#: selfdrive/controls/lib/events.py:394
|
||||
msgid "TOUCH STEERING WHEEL"
|
||||
msgstr ""
|
||||
|
||||
#: selfdrive/controls/lib/events.py:395
|
||||
msgid "Driver Is Unresponsive"
|
||||
msgstr ""
|
||||
|
||||
#: selfdrive/controls/lib/events.py:403
|
||||
msgid "Driver Was Unresponsive"
|
||||
msgstr ""
|
||||
|
||||
#: selfdrive/controls/lib/events.py:410
|
||||
msgid "CHECK DRIVER FACE VISIBILITY"
|
||||
msgstr ""
|
||||
|
||||
#: selfdrive/controls/lib/events.py:411
|
||||
msgid "Driver Monitor Model Output Uncertain"
|
||||
msgstr ""
|
||||
|
||||
#: selfdrive/controls/lib/events.py:419
|
||||
msgid "Resume Driving Manually"
|
||||
msgstr ""
|
||||
|
||||
#: selfdrive/controls/lib/events.py:426
|
||||
msgid "STOPPED"
|
||||
msgstr ""
|
||||
|
||||
#: selfdrive/controls/lib/events.py:427
|
||||
msgid "Press Resume to Move"
|
||||
msgstr ""
|
||||
|
||||
#: selfdrive/controls/lib/events.py:438
|
||||
msgid "Steer Left to Start Lane Change"
|
||||
msgstr ""
|
||||
|
||||
#: selfdrive/controls/lib/events.py:439 selfdrive/controls/lib/events.py:447
|
||||
#: selfdrive/controls/lib/events.py:455 selfdrive/controls/lib/events.py:463
|
||||
#: selfdrive/controls/lib/events.py:802 selfdrive/controls/lib/events.py:810
|
||||
msgid "Monitor Other Vehicles"
|
||||
msgstr ""
|
||||
|
||||
#: selfdrive/controls/lib/events.py:446
|
||||
msgid "Steer Right to Start Lane Change"
|
||||
msgstr ""
|
||||
|
||||
#: selfdrive/controls/lib/events.py:454
|
||||
msgid "Car Detected in Blindspot"
|
||||
msgstr ""
|
||||
|
||||
#: selfdrive/controls/lib/events.py:462
|
||||
msgid "Changing Lane"
|
||||
msgstr ""
|
||||
|
||||
#: selfdrive/controls/lib/events.py:471
|
||||
msgid "Turn Exceeds Steering Limit"
|
||||
msgstr ""
|
||||
|
||||
#: selfdrive/controls/lib/events.py:496
|
||||
msgid "Brake Hold Active"
|
||||
msgstr ""
|
||||
|
||||
#: selfdrive/controls/lib/events.py:501
|
||||
msgid "Park Brake Engaged"
|
||||
msgstr ""
|
||||
|
||||
#: selfdrive/controls/lib/events.py:506
|
||||
msgid "Pedal Pressed During Attempt"
|
||||
msgstr ""
|
||||
|
||||
#: selfdrive/controls/lib/events.py:517
|
||||
msgid "Enable Adaptive Cruise"
|
||||
msgstr ""
|
||||
|
||||
#: selfdrive/controls/lib/events.py:533
|
||||
msgid "Attempting Refocus: Camera Focus Invalid"
|
||||
msgstr ""
|
||||
|
||||
#: selfdrive/controls/lib/events.py:539
|
||||
msgid "Out of Storage Space"
|
||||
msgstr ""
|
||||
|
||||
#: selfdrive/controls/lib/events.py:544
|
||||
msgid "Speed Too Low"
|
||||
msgstr ""
|
||||
|
||||
#: selfdrive/controls/lib/events.py:549 selfdrive/controls/lib/events.py:553
|
||||
msgid "NEOS Update Required"
|
||||
msgstr ""
|
||||
|
||||
#: selfdrive/controls/lib/events.py:550
|
||||
msgid "Please Wait for Update"
|
||||
msgstr ""
|
||||
|
||||
#: selfdrive/controls/lib/events.py:558 selfdrive/controls/lib/events.py:562
|
||||
msgid "No Data from Device Sensors"
|
||||
msgstr ""
|
||||
|
||||
#: selfdrive/controls/lib/events.py:559 selfdrive/controls/lib/events.py:572
|
||||
#: selfdrive/controls/lib/events.py:669
|
||||
msgid "Reboot your Device"
|
||||
msgstr ""
|
||||
|
||||
#: selfdrive/controls/lib/events.py:571 selfdrive/controls/lib/events.py:575
|
||||
msgid "Speaker not found"
|
||||
msgstr ""
|
||||
|
||||
#: selfdrive/controls/lib/events.py:579
|
||||
msgid "Distraction Level Too High"
|
||||
msgstr ""
|
||||
|
||||
#: selfdrive/controls/lib/events.py:583
|
||||
msgid "System Overheated"
|
||||
msgstr ""
|
||||
|
||||
#: selfdrive/controls/lib/events.py:584
|
||||
msgid "System overheated"
|
||||
msgstr ""
|
||||
|
||||
#: selfdrive/controls/lib/events.py:588 selfdrive/controls/lib/events.py:589
|
||||
msgid "Gear not D"
|
||||
msgstr ""
|
||||
|
||||
#: selfdrive/controls/lib/events.py:594
|
||||
msgid "Calibration Invalid"
|
||||
msgstr ""
|
||||
|
||||
#: selfdrive/controls/lib/events.py:595
|
||||
msgid "Reposition Device and Recalibrate"
|
||||
msgstr ""
|
||||
|
||||
#: selfdrive/controls/lib/events.py:598 selfdrive/controls/lib/events.py:599
|
||||
msgid "Calibration Invalid: Reposition Device & Recalibrate"
|
||||
msgstr ""
|
||||
|
||||
#: selfdrive/controls/lib/events.py:603 selfdrive/controls/lib/events.py:605
|
||||
msgid "Calibration in Progress"
|
||||
msgstr ""
|
||||
|
||||
#: selfdrive/controls/lib/events.py:609
|
||||
msgid "Door Open"
|
||||
msgstr ""
|
||||
|
||||
#: selfdrive/controls/lib/events.py:610
|
||||
msgid "Door open"
|
||||
msgstr ""
|
||||
|
||||
#: selfdrive/controls/lib/events.py:614
|
||||
msgid "Seatbelt Unlatched"
|
||||
msgstr ""
|
||||
|
||||
#: selfdrive/controls/lib/events.py:615
|
||||
msgid "Seatbelt unlatched"
|
||||
msgstr ""
|
||||
|
||||
#: selfdrive/controls/lib/events.py:619 selfdrive/controls/lib/events.py:620
|
||||
msgid "ESP Off"
|
||||
msgstr ""
|
||||
|
||||
#: selfdrive/controls/lib/events.py:624 selfdrive/controls/lib/events.py:625
|
||||
msgid "Low Battery"
|
||||
msgstr ""
|
||||
|
||||
#: selfdrive/controls/lib/events.py:629 selfdrive/controls/lib/events.py:630
|
||||
msgid "Communication Issue between Processes"
|
||||
msgstr ""
|
||||
|
||||
#: selfdrive/controls/lib/events.py:635 selfdrive/controls/lib/events.py:636
|
||||
msgid "Radar Communication Issue"
|
||||
msgstr ""
|
||||
|
||||
#: selfdrive/controls/lib/events.py:641 selfdrive/controls/lib/events.py:642
|
||||
#: selfdrive/controls/lib/events.py:646 selfdrive/controls/lib/events.py:647
|
||||
msgid "Radar Error: Restart the Car"
|
||||
msgstr ""
|
||||
|
||||
#: selfdrive/controls/lib/events.py:651 selfdrive/controls/lib/events.py:652
|
||||
msgid "Driving model lagging"
|
||||
msgstr ""
|
||||
|
||||
#: selfdrive/controls/lib/events.py:656 selfdrive/controls/lib/events.py:657
|
||||
msgid "Vision Model Output Uncertain"
|
||||
msgstr ""
|
||||
|
||||
#: selfdrive/controls/lib/events.py:661 selfdrive/controls/lib/events.py:662
|
||||
msgid "Device Fell Off Mount"
|
||||
msgstr ""
|
||||
|
||||
#: selfdrive/controls/lib/events.py:666 selfdrive/controls/lib/events.py:672
|
||||
msgid "Low Memory: Reboot Your Device"
|
||||
msgstr ""
|
||||
|
||||
#: selfdrive/controls/lib/events.py:668
|
||||
msgid "RAM Critically Low"
|
||||
msgstr ""
|
||||
|
||||
#: selfdrive/controls/lib/events.py:677 selfdrive/controls/lib/events.py:678
|
||||
msgid "Controls Failed"
|
||||
msgstr ""
|
||||
|
||||
#: selfdrive/controls/lib/events.py:682
|
||||
msgid "Controls Mismatch"
|
||||
msgstr ""
|
||||
|
||||
#: selfdrive/controls/lib/events.py:686 selfdrive/controls/lib/events.py:688
|
||||
#: selfdrive/controls/lib/events.py:692
|
||||
msgid "CAN Error: Check Connections"
|
||||
msgstr ""
|
||||
|
||||
#: selfdrive/controls/lib/events.py:696 selfdrive/controls/lib/events.py:702
|
||||
msgid "LKAS Fault: Restart the Car"
|
||||
msgstr ""
|
||||
|
||||
#: selfdrive/controls/lib/events.py:698
|
||||
msgid "LKAS Fault: Restart the car to engage"
|
||||
msgstr ""
|
||||
|
||||
#: selfdrive/controls/lib/events.py:706 selfdrive/controls/lib/events.py:712
|
||||
#: selfdrive/controls/lib/events.py:795
|
||||
msgid "Cruise Fault: Restart the Car"
|
||||
msgstr ""
|
||||
|
||||
#: selfdrive/controls/lib/events.py:708 selfdrive/controls/lib/events.py:791
|
||||
msgid "Cruise Fault: Restart the car to engage"
|
||||
msgstr ""
|
||||
|
||||
#: selfdrive/controls/lib/events.py:716
|
||||
msgid "Gas Fault: Restart the Car"
|
||||
msgstr ""
|
||||
|
||||
#: selfdrive/controls/lib/events.py:717
|
||||
msgid "Gas Error: Restart the Car"
|
||||
msgstr ""
|
||||
|
||||
#: selfdrive/controls/lib/events.py:722
|
||||
msgid ""
|
||||
"Reverse\n"
|
||||
"Gear"
|
||||
msgstr ""
|
||||
|
||||
#: selfdrive/controls/lib/events.py:726
|
||||
msgid "Reverse Gear"
|
||||
msgstr ""
|
||||
|
||||
#: selfdrive/controls/lib/events.py:731
|
||||
msgid "Cruise Is Off"
|
||||
msgstr ""
|
||||
|
||||
#: selfdrive/controls/lib/events.py:735 selfdrive/controls/lib/events.py:736
|
||||
msgid "Planner Solution Error"
|
||||
msgstr ""
|
||||
|
||||
#: selfdrive/controls/lib/events.py:740 selfdrive/controls/lib/events.py:742
|
||||
#: selfdrive/controls/lib/events.py:746
|
||||
msgid "Harness Malfunction"
|
||||
msgstr ""
|
||||
|
||||
#: selfdrive/controls/lib/events.py:743
|
||||
msgid "Please Check Hardware"
|
||||
msgstr ""
|
||||
|
||||
#: selfdrive/controls/lib/events.py:751 selfdrive/controls/lib/events.py:760
|
||||
msgid "openpilot Canceled"
|
||||
msgstr ""
|
||||
|
||||
#: selfdrive/controls/lib/events.py:752
|
||||
msgid "No close lead car"
|
||||
msgstr ""
|
||||
|
||||
#: selfdrive/controls/lib/events.py:755
|
||||
msgid "No Close Lead Car"
|
||||
msgstr ""
|
||||
|
||||
#: selfdrive/controls/lib/events.py:761
|
||||
msgid "Speed too low"
|
||||
msgstr ""
|
||||
|
||||
#: selfdrive/controls/lib/events.py:768 selfdrive/controls/lib/events.py:773
|
||||
msgid "Speed Too High"
|
||||
msgstr ""
|
||||
|
||||
#: selfdrive/controls/lib/events.py:769
|
||||
msgid "Slow down to resume operation"
|
||||
msgstr ""
|
||||
|
||||
#: selfdrive/controls/lib/events.py:774
|
||||
msgid "Slow down to engage"
|
||||
msgstr ""
|
||||
|
||||
#: selfdrive/controls/lib/events.py:781
|
||||
msgid "Please connect to Internet"
|
||||
msgstr ""
|
||||
|
||||
#: selfdrive/controls/lib/events.py:782
|
||||
msgid "An Update Check Is Required to Engage"
|
||||
msgstr ""
|
||||
|
||||
#: selfdrive/controls/lib/events.py:785
|
||||
msgid "Please Connect to Internet"
|
||||
msgstr ""
|
||||
|
||||
#: selfdrive/controls/lib/events.py:801
|
||||
msgid "Left ALC will start in 3s"
|
||||
msgstr ""
|
||||
|
||||
#: selfdrive/controls/lib/events.py:809
|
||||
msgid "Right ALC will start in 3s"
|
||||
msgstr ""
|
||||
|
||||
#: selfdrive/controls/lib/events.py:817
|
||||
msgid "STEERING REQUIRED: Lane Keeping OFF"
|
||||
msgstr ""
|
||||
|
||||
#: selfdrive/controls/lib/events.py:825
|
||||
msgid "STEERING REQUIRED: Blinkers ON"
|
||||
msgstr ""
|
||||
|
||||
#: selfdrive/controls/lib/events.py:833 selfdrive/controls/lib/events.py:838
|
||||
msgid "Lead Car Is Moving"
|
||||
msgstr ""
|
||||
|
||||
#: selfdrive/controls/lib/events.py:847
|
||||
msgid "WARNING"
|
||||
msgstr ""
|
||||
|
||||
#: selfdrive/controls/lib/events.py:848
|
||||
msgid "Grab wheel to start bypass"
|
||||
msgstr ""
|
||||
|
||||
#: selfdrive/controls/lib/events.py:855
|
||||
msgid "BYPASSING"
|
||||
msgstr ""
|
||||
|
||||
#: selfdrive/controls/lib/events.py:856
|
||||
msgid "HOLD WHEEL"
|
||||
msgstr ""
|
||||
|
||||
#: selfdrive/controls/lib/events.py:863
|
||||
msgid "Bypassed!"
|
||||
msgstr ""
|
||||
|
||||
#: selfdrive/controls/lib/events.py:864
|
||||
msgid "Release wheel when ready"
|
||||
msgstr ""
|
||||
BIN
selfdrive/assets/locales/ja-JP/LC_MESSAGES/events.mo
Normal file
545
selfdrive/assets/locales/ja-JP/LC_MESSAGES/events.po
Normal file
@@ -0,0 +1,545 @@
|
||||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||
# This file is distributed under the same license as the PACKAGE package.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: PACKAGE VERSION\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2020-10-15 13:37+1000\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: nikkurie <@nikkurie>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
"Language: ja-JP\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:153
|
||||
msgid "openpilot Unavailable"
|
||||
msgstr "オープンパイロットは利用できません"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:160 selfdrive/controls/lib/events.py:167
|
||||
msgid "TAKE CONTROL IMMEDIATELY"
|
||||
msgstr "すぐにハンドルを持って"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:187 selfdrive/controls/lib/events.py:328
|
||||
#: selfdrive/controls/lib/events.py:354 selfdrive/controls/lib/events.py:418
|
||||
#: selfdrive/controls/lib/events.py:470 selfdrive/controls/lib/events.py:522
|
||||
#: selfdrive/controls/lib/events.py:532
|
||||
msgid "TAKE CONTROL"
|
||||
msgstr "ハンドルを持って"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:188
|
||||
#, fuzzy, python-format
|
||||
msgid "Steer Unavailable Below %(speed)d %(unit)s"
|
||||
msgstr "横の制御が無効になり速度が以下になります"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:196
|
||||
#, fuzzy, python-format
|
||||
msgid "Calibration in Progress: %d%%"
|
||||
msgstr "キャリブレーション中:"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:197
|
||||
#, python-format
|
||||
msgid "Drive Above %(speed)d %(unit)s"
|
||||
msgstr "%(speed)d %(unit)s 制限速度以上の運転をしてください"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:204
|
||||
msgid "Poor GPS reception"
|
||||
msgstr "GPS受信不良"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:205
|
||||
msgid "If sky is visible, contact support"
|
||||
msgstr "地下・トンネルでない場合は、カスタマーサービスに連絡ください"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:205
|
||||
msgid "Check GPS antenna placement"
|
||||
msgstr "GPSアンテナの位置を確認してください。"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:210
|
||||
msgid "Cruise Mode Disabled"
|
||||
msgstr "クルーズモードをオフ"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:212
|
||||
msgid "Main Switch Off"
|
||||
msgstr "メインスイッチをオフ"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:222
|
||||
msgid "DEBUG ALERT"
|
||||
msgstr "テストメッセージを削除"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:230
|
||||
msgid "Be ready to take over at any time"
|
||||
msgstr "いつでも引き継げるよう準備しておいてください。"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:231 selfdrive/controls/lib/events.py:239
|
||||
#: selfdrive/controls/lib/events.py:247 selfdrive/controls/lib/events.py:255
|
||||
msgid "Always keep hands on wheel and eyes on road"
|
||||
msgstr "常にハンドルに触れ、道路から目を離さない"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:238
|
||||
msgid "WARNING: This branch is not tested"
|
||||
msgstr "警告: このブランチはテストされていません"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:246
|
||||
msgid "Dashcam mode"
|
||||
msgstr "ダッシュカムモード"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:254
|
||||
msgid "Dashcam mode for unsupported car"
|
||||
msgstr "未対応車のためダッシュカムモードのみ"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:262
|
||||
msgid "Unsupported Giraffe Configuration"
|
||||
msgstr "サポートされていないGiraffeの設定"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:263
|
||||
msgid "Visit comma.ai/tg"
|
||||
msgstr "comma.ai/tg を参照"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:270
|
||||
msgid "White Panda Is No Longer Supported"
|
||||
msgstr "ホワイトパンダはサポート終了しました"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:271
|
||||
msgid "Upgrade to comma two or black panda"
|
||||
msgstr "コンマ2やブラックパンダにアップグレード"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:274
|
||||
msgid "White panda is no longer supported"
|
||||
msgstr "ホワイトパンダはサポート終了しました"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:279
|
||||
msgid "Stock LKAS is turned on"
|
||||
msgstr "純正LKASがオン"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:280
|
||||
msgid "Turn off stock LKAS to engage"
|
||||
msgstr "純正LKASをオフにしてエンゲージ"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:288
|
||||
msgid "Community Feature Detected"
|
||||
msgstr "コミュニティ開発の機能を検出"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:289
|
||||
msgid "Enable Community Features in Developer Settings"
|
||||
msgstr "開発者設定でコミュニティ機能を有効にする"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:296
|
||||
msgid "Dashcam Mode"
|
||||
msgstr "ダッシュカムモード"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:297
|
||||
msgid "Car Unrecognized"
|
||||
msgstr "認識できない車"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:304 selfdrive/controls/lib/events.py:312
|
||||
#: selfdrive/controls/lib/events.py:320
|
||||
msgid "BRAKE!"
|
||||
msgstr "ブレーキ!"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:305
|
||||
msgid "Stock AEB: Risk of Collision"
|
||||
msgstr "衝突の危険"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:313
|
||||
msgid "Stock FCW: Risk of Collision"
|
||||
msgstr "衝突の危険"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:321
|
||||
msgid "Risk of Collision"
|
||||
msgstr "衝突の危険"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:329
|
||||
msgid "Lane Departure Detected"
|
||||
msgstr "車線逸脱を検知"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:338
|
||||
msgid "openpilot will not brake while gas pressed"
|
||||
msgstr "アクセル中、オープンパイロットはブレーキをかけません"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:346
|
||||
msgid "Vehicle Parameter Identification Failed"
|
||||
msgstr "車両パラメータの識別に失敗しました。"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:355 selfdrive/controls/lib/events.py:523
|
||||
#: selfdrive/controls/lib/events.py:526
|
||||
msgid "Steering Temporarily Unavailable"
|
||||
msgstr "ステアリングは一時的に利用不可"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:362
|
||||
msgid "KEEP EYES ON ROAD: Driver Distracted"
|
||||
msgstr "道路から目を離さないで:注意散漫です"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:370
|
||||
msgid "KEEP EYES ON ROAD"
|
||||
msgstr "道路から目を離さないで"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:371
|
||||
msgid "Driver Appears Distracted"
|
||||
msgstr "ドライバーは注意散漫に見えます"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:378 selfdrive/controls/lib/events.py:402
|
||||
msgid "DISENGAGE IMMEDIATELY"
|
||||
msgstr "すぐに解除してください"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:379
|
||||
msgid "Driver Was Distracted"
|
||||
msgstr "ドライバーは注意力散漫"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:386
|
||||
msgid "TOUCH STEERING WHEEL: No Face Detected"
|
||||
msgstr "ハンドルに触れて:顔が検出できない"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:394
|
||||
msgid "TOUCH STEERING WHEEL"
|
||||
msgstr "ハンドルに触れて"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:395
|
||||
msgid "Driver Is Unresponsive"
|
||||
msgstr "ドライバーが無反応"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:403
|
||||
msgid "Driver Was Unresponsive"
|
||||
msgstr "ドライバーが無反応でした"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:410
|
||||
msgid "CHECK DRIVER FACE VISIBILITY"
|
||||
msgstr "ドライバーの顔の視認性を確認"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:411
|
||||
msgid "Driver Monitor Model Output Uncertain"
|
||||
msgstr "ドライバー監視モデルが不完全"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:419
|
||||
msgid "Resume Driving Manually"
|
||||
msgstr "手動で運転を再開"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:426
|
||||
msgid "STOPPED"
|
||||
msgstr "停止"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:427
|
||||
msgid "Press Resume to Move"
|
||||
msgstr "Resumeを押して移動します。"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:438
|
||||
msgid "Steer Left to Start Lane Change"
|
||||
msgstr "左ハンドルで車線変更を開始"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:439 selfdrive/controls/lib/events.py:447
|
||||
#: selfdrive/controls/lib/events.py:455 selfdrive/controls/lib/events.py:463
|
||||
#: selfdrive/controls/lib/events.py:802 selfdrive/controls/lib/events.py:810
|
||||
msgid "Monitor Other Vehicles"
|
||||
msgstr "他の車両を監視"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:446
|
||||
msgid "Steer Right to Start Lane Change"
|
||||
msgstr "右ハンドルで車線変更を開始"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:454
|
||||
msgid "Car Detected in Blindspot"
|
||||
msgstr "ブラインドスポットで車両を発見"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:462
|
||||
msgid "Changing Lane"
|
||||
msgstr "レーンチェンジ中"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:471
|
||||
msgid "Turn Exceeds Steering Limit"
|
||||
msgstr "ステアリングリミットを超えています"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:496
|
||||
msgid "Brake Hold Active"
|
||||
msgstr "サイドブレーキが作動"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:501
|
||||
msgid "Park Brake Engaged"
|
||||
msgstr "サイドブレーキ作動中"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:506
|
||||
msgid "Pedal Pressed During Attempt"
|
||||
msgstr "ペダル/ブレーキを検出"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:517
|
||||
msgid "Enable Adaptive Cruise"
|
||||
msgstr "ACCを有効化"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:533
|
||||
msgid "Attempting Refocus: Camera Focus Invalid"
|
||||
msgstr "再フォーカス中です"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:539
|
||||
msgid "Out of Storage Space"
|
||||
msgstr "空き容量不足"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:544
|
||||
msgid "Speed Too Low"
|
||||
msgstr "速度が遅すぎます"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:549 selfdrive/controls/lib/events.py:553
|
||||
msgid "NEOS Update Required"
|
||||
msgstr "NEOSの更新が必要"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:550
|
||||
msgid "Please Wait for Update"
|
||||
msgstr "更新をお待ちください"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:558 selfdrive/controls/lib/events.py:562
|
||||
msgid "No Data from Device Sensors"
|
||||
msgstr "デバイスセンサからのデータがありません"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:559 selfdrive/controls/lib/events.py:572
|
||||
#: selfdrive/controls/lib/events.py:669
|
||||
msgid "Reboot your Device"
|
||||
msgstr "デバイスを再起動"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:571 selfdrive/controls/lib/events.py:575
|
||||
msgid "Speaker not found"
|
||||
msgstr "スピーカーが見つかりません"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:579
|
||||
msgid "Distraction Level Too High"
|
||||
msgstr "注意力散漫すぎます"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:583
|
||||
msgid "System Overheated"
|
||||
msgstr "オーバーヒート"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:584
|
||||
msgid "System overheated"
|
||||
msgstr "オーバーヒート"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:588 selfdrive/controls/lib/events.py:589
|
||||
msgid "Gear not D"
|
||||
msgstr "Dではない"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:594
|
||||
#, fuzzy
|
||||
msgid "Calibration Invalid"
|
||||
msgstr "キャリブレーション"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:595
|
||||
#, fuzzy
|
||||
msgid "Reposition Device and Recalibrate"
|
||||
msgstr "キャリブレーションが無効です。再実行してください。"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:598 selfdrive/controls/lib/events.py:599
|
||||
msgid "Calibration Invalid: Reposition Device & Recalibrate"
|
||||
msgstr "キャリブレーションが無効です。再実行してください。"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:603 selfdrive/controls/lib/events.py:605
|
||||
msgid "Calibration in Progress"
|
||||
msgstr "キャリブレーション"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:609
|
||||
msgid "Door Open"
|
||||
msgstr "ドアが開いています"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:610
|
||||
msgid "Door open"
|
||||
msgstr "ドアが開いています"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:614
|
||||
msgid "Seatbelt Unlatched"
|
||||
msgstr "シートベルト未着用"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:615
|
||||
msgid "Seatbelt unlatched"
|
||||
msgstr "シートベルト未着用"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:619 selfdrive/controls/lib/events.py:620
|
||||
msgid "ESP Off"
|
||||
msgstr "ESPオフ"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:624 selfdrive/controls/lib/events.py:625
|
||||
msgid "Low Battery"
|
||||
msgstr "低バッテリー"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:629 selfdrive/controls/lib/events.py:630
|
||||
msgid "Communication Issue between Processes"
|
||||
msgstr "プロセス間の通信の問題"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:635 selfdrive/controls/lib/events.py:636
|
||||
msgid "Radar Communication Issue"
|
||||
msgstr "レーダー通信問題"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:641 selfdrive/controls/lib/events.py:642
|
||||
#: selfdrive/controls/lib/events.py:646 selfdrive/controls/lib/events.py:647
|
||||
msgid "Radar Error: Restart the Car"
|
||||
msgstr "レーダーエラー:車を再起動"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:651 selfdrive/controls/lib/events.py:652
|
||||
msgid "Driving model lagging"
|
||||
msgstr "制御モデルに遅延がある"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:656 selfdrive/controls/lib/events.py:657
|
||||
msgid "Vision Model Output Uncertain"
|
||||
msgstr "映像が不明瞭です"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:661 selfdrive/controls/lib/events.py:662
|
||||
msgid "Device Fell Off Mount"
|
||||
msgstr ""
|
||||
|
||||
#: selfdrive/controls/lib/events.py:666 selfdrive/controls/lib/events.py:672
|
||||
msgid "Low Memory: Reboot Your Device"
|
||||
msgstr "ローメモリ:デバイスを再起動"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:668
|
||||
msgid "RAM Critically Low"
|
||||
msgstr "RAMが致命的に低い"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:677 selfdrive/controls/lib/events.py:678
|
||||
msgid "Controls Failed"
|
||||
msgstr "制御失敗"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:682
|
||||
msgid "Controls Mismatch"
|
||||
msgstr "制御不一致"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:686 selfdrive/controls/lib/events.py:688
|
||||
#: selfdrive/controls/lib/events.py:692
|
||||
msgid "CAN Error: Check Connections"
|
||||
msgstr "CANエラー:接続を確認"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:696 selfdrive/controls/lib/events.py:702
|
||||
msgid "LKAS Fault: Restart the Car"
|
||||
msgstr "LKASの故障:車を再起動"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:698
|
||||
msgid "LKAS Fault: Restart the car to engage"
|
||||
msgstr "LKASの故障:車を再起動後発進"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:706 selfdrive/controls/lib/events.py:712
|
||||
#: selfdrive/controls/lib/events.py:795
|
||||
msgid "Cruise Fault: Restart the Car"
|
||||
msgstr "クルーズ失敗:車を再起動"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:708 selfdrive/controls/lib/events.py:791
|
||||
msgid "Cruise Fault: Restart the car to engage"
|
||||
msgstr "クルーズ失敗:車を再起動後発進"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:716
|
||||
msgid "Gas Fault: Restart the Car"
|
||||
msgstr "アクセル故障:車を再起動"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:717
|
||||
msgid "Gas Error: Restart the Car"
|
||||
msgstr "アクセルエラー:車を再起動"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:722
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
"Reverse\n"
|
||||
"Gear"
|
||||
msgstr "Rに切り替え"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:726
|
||||
msgid "Reverse Gear"
|
||||
msgstr "Rに切り替え"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:731
|
||||
msgid "Cruise Is Off"
|
||||
msgstr "クルーズコントロールオフ"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:735 selfdrive/controls/lib/events.py:736
|
||||
msgid "Planner Solution Error"
|
||||
msgstr "Planner Solution エラー"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:740 selfdrive/controls/lib/events.py:742
|
||||
#: selfdrive/controls/lib/events.py:746
|
||||
msgid "Harness Malfunction"
|
||||
msgstr "ハーネスが故障"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:743
|
||||
msgid "Please Check Hardware"
|
||||
msgstr "ハードウェアを確認して"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:751 selfdrive/controls/lib/events.py:760
|
||||
msgid "openpilot Canceled"
|
||||
msgstr "オープンパイロットはキャンセルされました"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:752
|
||||
msgid "No close lead car"
|
||||
msgstr "リードカー不在"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:755
|
||||
msgid "No Close Lead Car"
|
||||
msgstr "リードカー不在"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:761
|
||||
msgid "Speed too low"
|
||||
msgstr "速度が遅すぎる"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:768 selfdrive/controls/lib/events.py:773
|
||||
msgid "Speed Too High"
|
||||
msgstr "速度が速すぎる"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:769
|
||||
msgid "Slow down to resume operation"
|
||||
msgstr "速度を下げてオープンパイロットを再開"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:774
|
||||
msgid "Slow down to engage"
|
||||
msgstr "速度を落として発進"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:781
|
||||
msgid "Please connect to Internet"
|
||||
msgstr "インターネット接続を確認"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:782
|
||||
msgid "An Update Check Is Required to Engage"
|
||||
msgstr "発進するには更新が必要です"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:785
|
||||
msgid "Please Connect to Internet"
|
||||
msgstr "インターネット接続を確認"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:801
|
||||
msgid "Left ALC will start in 3s"
|
||||
msgstr "左車線に移動します"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:809
|
||||
msgid "Right ALC will start in 3s"
|
||||
msgstr "右車線に移動します"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:817
|
||||
msgid "STEERING REQUIRED: Lane Keeping OFF"
|
||||
msgstr "操作が必要:レーンキープオフ"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:825
|
||||
msgid "STEERING REQUIRED: Blinkers ON"
|
||||
msgstr "操作が必要:ウインカーオン"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:833 selfdrive/controls/lib/events.py:838
|
||||
msgid "Lead Car Is Moving"
|
||||
msgstr "リードカーが移動しました"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:847
|
||||
msgid "WARNING"
|
||||
msgstr ""
|
||||
|
||||
#: selfdrive/controls/lib/events.py:848
|
||||
msgid "Grab wheel to start bypass"
|
||||
msgstr ""
|
||||
|
||||
#: selfdrive/controls/lib/events.py:855
|
||||
msgid "BYPASSING"
|
||||
msgstr ""
|
||||
|
||||
#: selfdrive/controls/lib/events.py:856
|
||||
msgid "HOLD WHEEL"
|
||||
msgstr ""
|
||||
|
||||
#: selfdrive/controls/lib/events.py:863
|
||||
msgid "Bypassed!"
|
||||
msgstr ""
|
||||
|
||||
#: selfdrive/controls/lib/events.py:864
|
||||
msgid "Release wheel when ready"
|
||||
msgstr ""
|
||||
|
||||
#~ msgid "Drive Above"
|
||||
#~ msgstr "制限速度以上の運転をしてください"
|
||||
BIN
selfdrive/assets/locales/ko-KR/LC_MESSAGES/events.mo
Normal file
543
selfdrive/assets/locales/ko-KR/LC_MESSAGES/events.po
Normal file
@@ -0,0 +1,543 @@
|
||||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||
# This file is distributed under the same license as the PACKAGE package.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
||||
#
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: PACKAGE VERSION\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2020-10-15 13:37+1000\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
"Language: ko-KR\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:153
|
||||
msgid "openpilot Unavailable"
|
||||
msgstr "오픈파일럿 사용불가"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:160 selfdrive/controls/lib/events.py:167
|
||||
msgid "TAKE CONTROL IMMEDIATELY"
|
||||
msgstr "핸들을 잡아주세요"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:187 selfdrive/controls/lib/events.py:328
|
||||
#: selfdrive/controls/lib/events.py:354 selfdrive/controls/lib/events.py:418
|
||||
#: selfdrive/controls/lib/events.py:470 selfdrive/controls/lib/events.py:522
|
||||
#: selfdrive/controls/lib/events.py:532
|
||||
msgid "TAKE CONTROL"
|
||||
msgstr "핸들을 잡아주세요"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:188
|
||||
#, fuzzy, python-format
|
||||
msgid "Steer Unavailable Below %(speed)d %(unit)s"
|
||||
msgstr "%d %s 이하에서는 조향제어가 불가합니다"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:196
|
||||
#, fuzzy, python-format
|
||||
msgid "Calibration in Progress: %d%%"
|
||||
msgstr "캘리브레이션 진행중: %d%%"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:197
|
||||
#, fuzzy, python-format
|
||||
msgid "Drive Above %(speed)d %(unit)s"
|
||||
msgstr "%(speed)d %(unit)s 이상의 속도로 주행하세요"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:204
|
||||
msgid "Poor GPS reception"
|
||||
msgstr "GPS 신호 약함"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:205
|
||||
msgid "If sky is visible, contact support"
|
||||
msgstr "환경에 문제가 없을경우 서비스팀에 연락하세요"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:205
|
||||
msgid "Check GPS antenna placement"
|
||||
msgstr "GPS안테나 위치를 점검하세요"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:210
|
||||
msgid "Cruise Mode Disabled"
|
||||
msgstr "크루즈 모드 꺼짐"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:212
|
||||
msgid "Main Switch Off"
|
||||
msgstr ""
|
||||
|
||||
#: selfdrive/controls/lib/events.py:222
|
||||
msgid "DEBUG ALERT"
|
||||
msgstr ""
|
||||
|
||||
#: selfdrive/controls/lib/events.py:230
|
||||
msgid "Be ready to take over at any time"
|
||||
msgstr "오픈파일럿 사용준비가 되었습니다"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:231 selfdrive/controls/lib/events.py:239
|
||||
#: selfdrive/controls/lib/events.py:247 selfdrive/controls/lib/events.py:255
|
||||
msgid "Always keep hands on wheel and eyes on road"
|
||||
msgstr "안전운전을 위해 항상 핸들을 잡고 도로교통 상황을 주시하세요"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:238
|
||||
msgid "WARNING: This branch is not tested"
|
||||
msgstr "경고: 이 Branch는 테스트되지 않았습니다"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:246
|
||||
msgid "Dashcam mode"
|
||||
msgstr "대시캠 모드"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:254
|
||||
msgid "Dashcam mode for unsupported car"
|
||||
msgstr "안전운전을 위해 항상 핸들을 잡고 도로교통 상황을 주시하세요"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:262
|
||||
msgid "Unsupported Giraffe Configuration"
|
||||
msgstr "지원되지 않는 지라프 설정"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:263
|
||||
msgid "Visit comma.ai/tg"
|
||||
msgstr "comma.ai/tg 방문하세요"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:270
|
||||
msgid "White Panda Is No Longer Supported"
|
||||
msgstr "화이트판다는 더 이상 지원되지 않습니다"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:271
|
||||
msgid "Upgrade to comma two or black panda"
|
||||
msgstr "콤마2나 블랙판다로 업그레이드 하세요"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:274
|
||||
msgid "White panda is no longer supported"
|
||||
msgstr "화이트판다는 더 이상 지원되지 않습니다"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:279
|
||||
msgid "Stock LKAS is turned on"
|
||||
msgstr "차량의 LKAS 기능이 켜져 있습니다"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:280
|
||||
msgid "Turn off stock LKAS to engage"
|
||||
msgstr "오픈파일럿 사용을 위해 LKAS를 끄세요"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:288
|
||||
msgid "Community Feature Detected"
|
||||
msgstr "커뮤니티 기능 감지됨"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:289
|
||||
msgid "Enable Community Features in Developer Settings"
|
||||
msgstr "개발자 설정에서 커뮤니티 기능을 활성화하세요"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:296
|
||||
msgid "Dashcam Mode"
|
||||
msgstr "대시캠 모드"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:297
|
||||
msgid "Car Unrecognized"
|
||||
msgstr "미인식 차량"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:304 selfdrive/controls/lib/events.py:312
|
||||
#: selfdrive/controls/lib/events.py:320
|
||||
msgid "BRAKE!"
|
||||
msgstr "브레이크!"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:305
|
||||
msgid "Stock AEB: Risk of Collision"
|
||||
msgstr "순정 AEB: 충돌 위험"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:313
|
||||
msgid "Stock FCW: Risk of Collision"
|
||||
msgstr "순정 FCW: 충돌 위험"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:321
|
||||
msgid "Risk of Collision"
|
||||
msgstr "충돌 위험"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:329
|
||||
msgid "Lane Departure Detected"
|
||||
msgstr "차선이탈이 감지되었습니다"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:338
|
||||
msgid "openpilot will not brake while gas pressed"
|
||||
msgstr "가속중에는 오픈파일럿 브레이크 작동불가"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:346
|
||||
msgid "Vehicle Parameter Identification Failed"
|
||||
msgstr "차량 매개 변수 식별 실패"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:355 selfdrive/controls/lib/events.py:523
|
||||
#: selfdrive/controls/lib/events.py:526
|
||||
msgid "Steering Temporarily Unavailable"
|
||||
msgstr "조향제어가 일시적으로 비활성화 되었습니다"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:362
|
||||
msgid "KEEP EYES ON ROAD: Driver Distracted"
|
||||
msgstr "도로상황에 주의를 기울이세요"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:370
|
||||
msgid "KEEP EYES ON ROAD"
|
||||
msgstr "도로상황에 주의하세요"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:371
|
||||
msgid "Driver Appears Distracted"
|
||||
msgstr "전방주시 필요"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:378 selfdrive/controls/lib/events.py:402
|
||||
msgid "DISENGAGE IMMEDIATELY"
|
||||
msgstr "경고: 조향제어가 즉시 해제됩니다"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:379
|
||||
msgid "Driver Was Distracted"
|
||||
msgstr "운전자 전방주시 불안"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:386
|
||||
msgid "TOUCH STEERING WHEEL: No Face Detected"
|
||||
msgstr "핸들을 터치하세요: 모니터링 없음"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:394
|
||||
msgid "TOUCH STEERING WHEEL"
|
||||
msgstr "핸들을 터치하세요"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:395
|
||||
msgid "Driver Is Unresponsive"
|
||||
msgstr "운전자 모니터링 없음"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:403
|
||||
msgid "Driver Was Unresponsive"
|
||||
msgstr "운전자 모니터링 없음"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:410
|
||||
msgid "CHECK DRIVER FACE VISIBILITY"
|
||||
msgstr "운전자 얼굴 확인 중"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:411
|
||||
msgid "Driver Monitor Model Output Uncertain"
|
||||
msgstr "운전자 얼굴 인식이 어렵습니다"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:419
|
||||
msgid "Resume Driving Manually"
|
||||
msgstr "수동으로 재출발 하세요"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:426
|
||||
msgid "STOPPED"
|
||||
msgstr "잠시멈춤"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:427
|
||||
msgid "Press Resume to Move"
|
||||
msgstr "재출발을 위해 RES버튼을 누르세요"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:438
|
||||
msgid "Steer Left to Start Lane Change"
|
||||
msgstr "차선 변경을 위해 핸들을 좌측으로 살짝 돌리세요"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:439 selfdrive/controls/lib/events.py:447
|
||||
#: selfdrive/controls/lib/events.py:455 selfdrive/controls/lib/events.py:463
|
||||
#: selfdrive/controls/lib/events.py:802 selfdrive/controls/lib/events.py:810
|
||||
msgid "Monitor Other Vehicles"
|
||||
msgstr "다른 차량에 주의하세요"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:446
|
||||
msgid "Steer Right to Start Lane Change"
|
||||
msgstr "차선 변경을 위해 핸들을 우측으로 살짝 돌리세요"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:454
|
||||
msgid "Car Detected in Blindspot"
|
||||
msgstr "측면 차량 접근 중"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:462
|
||||
msgid "Changing Lane"
|
||||
msgstr "차선 변경 중"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:471
|
||||
msgid "Turn Exceeds Steering Limit"
|
||||
msgstr ""
|
||||
|
||||
#: selfdrive/controls/lib/events.py:496
|
||||
msgid "Brake Hold Active"
|
||||
msgstr "브레이크 홀드 중"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:501
|
||||
msgid "Park Brake Engaged"
|
||||
msgstr "파킹브레이크 체결 됨"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:506
|
||||
msgid "Pedal Pressed During Attempt"
|
||||
msgstr "시작 중 페달 밟음"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:517
|
||||
msgid "Enable Adaptive Cruise"
|
||||
msgstr "어댑티브 크루즈를 활성화하세요"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:533
|
||||
msgid "Attempting Refocus: Camera Focus Invalid"
|
||||
msgstr "카메라 포커스 조정중: 카메라 포커스 부정확"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:539
|
||||
msgid "Out of Storage Space"
|
||||
msgstr "저장공간 부족"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:544
|
||||
msgid "Speed Too Low"
|
||||
msgstr "차량의 속도 낮음"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:549 selfdrive/controls/lib/events.py:553
|
||||
msgid "NEOS Update Required"
|
||||
msgstr "NEOS 업데이트 필요"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:550
|
||||
msgid "Please Wait for Update"
|
||||
msgstr "업데이트를 위해 기다리세요"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:558 selfdrive/controls/lib/events.py:562
|
||||
msgid "No Data from Device Sensors"
|
||||
msgstr "EON센서로부터 데이터를 받지 못했습니다"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:559 selfdrive/controls/lib/events.py:572
|
||||
#: selfdrive/controls/lib/events.py:669
|
||||
msgid "Reboot your Device"
|
||||
msgstr "장치를 재시작 하세요"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:571 selfdrive/controls/lib/events.py:575
|
||||
msgid "Speaker not found"
|
||||
msgstr "스피커를 찾을 수 없습니다"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:579
|
||||
msgid "Distraction Level Too High"
|
||||
msgstr "운전자 전방주시 매우 불안"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:583
|
||||
msgid "System Overheated"
|
||||
msgstr "시스템이 과열되었습니다"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:584
|
||||
msgid "System overheated"
|
||||
msgstr "시스템이 과열되었습니다"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:588 selfdrive/controls/lib/events.py:589
|
||||
msgid "Gear not D"
|
||||
msgstr "기어가 드라이브모드가 아닙니다"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:594
|
||||
#, fuzzy
|
||||
msgid "Calibration Invalid"
|
||||
msgstr "캘리브레이션 진행 중"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:595
|
||||
#, fuzzy
|
||||
msgid "Reposition Device and Recalibrate"
|
||||
msgstr "캘리브레이션 유효하지 않음: 장치 위치 조정 및 재 캘리브레이션"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:598 selfdrive/controls/lib/events.py:599
|
||||
msgid "Calibration Invalid: Reposition Device & Recalibrate"
|
||||
msgstr "캘리브레이션 유효하지 않음: 장치 위치 조정 및 재 캘리브레이션"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:603 selfdrive/controls/lib/events.py:605
|
||||
msgid "Calibration in Progress"
|
||||
msgstr "캘리브레이션 진행 중"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:609
|
||||
msgid "Door Open"
|
||||
msgstr "도어가 열려있습니다"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:610
|
||||
msgid "Door open"
|
||||
msgstr "도어가 열려있습니다"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:614
|
||||
msgid "Seatbelt Unlatched"
|
||||
msgstr "안전벨트를 체결하세요"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:615
|
||||
msgid "Seatbelt unlatched"
|
||||
msgstr "안전벨트를 체결하세요"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:619 selfdrive/controls/lib/events.py:620
|
||||
msgid "ESP Off"
|
||||
msgstr "ESP 꺼짐"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:624 selfdrive/controls/lib/events.py:625
|
||||
msgid "Low Battery"
|
||||
msgstr "배터리 부족"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:629 selfdrive/controls/lib/events.py:630
|
||||
msgid "Communication Issue between Processes"
|
||||
msgstr "프로세스 간 통신 오류가 있습니다"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:635 selfdrive/controls/lib/events.py:636
|
||||
msgid "Radar Communication Issue"
|
||||
msgstr "레이더 오류: 차량을 재시작하세요"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:641 selfdrive/controls/lib/events.py:642
|
||||
#: selfdrive/controls/lib/events.py:646 selfdrive/controls/lib/events.py:647
|
||||
msgid "Radar Error: Restart the Car"
|
||||
msgstr "레이더 오류: 차량을 재시작하세요"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:651 selfdrive/controls/lib/events.py:652
|
||||
msgid "Driving model lagging"
|
||||
msgstr "주행 모델 지연"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:656 selfdrive/controls/lib/events.py:657
|
||||
msgid "Vision Model Output Uncertain"
|
||||
msgstr "전방 영상 인식 불안"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:661 selfdrive/controls/lib/events.py:662
|
||||
msgid "Device Fell Off Mount"
|
||||
msgstr ""
|
||||
|
||||
#: selfdrive/controls/lib/events.py:666 selfdrive/controls/lib/events.py:672
|
||||
msgid "Low Memory: Reboot Your Device"
|
||||
msgstr "메모리 부족: 장치를 재시작하세요"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:668
|
||||
msgid "RAM Critically Low"
|
||||
msgstr "메모리 부족 심각"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:677 selfdrive/controls/lib/events.py:678
|
||||
msgid "Controls Failed"
|
||||
msgstr "차량제어 불가"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:682
|
||||
msgid "Controls Mismatch"
|
||||
msgstr ""
|
||||
|
||||
#: selfdrive/controls/lib/events.py:686 selfdrive/controls/lib/events.py:688
|
||||
#: selfdrive/controls/lib/events.py:692
|
||||
msgid "CAN Error: Check Connections"
|
||||
msgstr "CAN 오류: CAN 신호를 확인하세요"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:696 selfdrive/controls/lib/events.py:702
|
||||
msgid "LKAS Fault: Restart the Car"
|
||||
msgstr "LKAS 오류: 차량을 재시작하세요"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:698
|
||||
msgid "LKAS Fault: Restart the car to engage"
|
||||
msgstr "LKAS 오류: 시작을 위해 차량을 재시작하세요"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:706 selfdrive/controls/lib/events.py:712
|
||||
#: selfdrive/controls/lib/events.py:795
|
||||
msgid "Cruise Fault: Restart the Car"
|
||||
msgstr "크루즈 오류: 차량을 재시작하세요"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:708 selfdrive/controls/lib/events.py:791
|
||||
msgid "Cruise Fault: Restart the car to engage"
|
||||
msgstr "크루즈 오류: 시작을 위해 차량을 재시작하세요"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:716
|
||||
msgid "Gas Fault: Restart the Car"
|
||||
msgstr "가속페달 오류: 차량을 재시작하세요"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:717
|
||||
msgid "Gas Error: Restart the Car"
|
||||
msgstr "가속페달 오류: 차량을 재시작하세요"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:722
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
"Reverse\n"
|
||||
"Gear"
|
||||
msgstr "후진 기어"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:726
|
||||
msgid "Reverse Gear"
|
||||
msgstr "후진 기어"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:731
|
||||
msgid "Cruise Is Off"
|
||||
msgstr "크루즈 꺼짐"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:735 selfdrive/controls/lib/events.py:736
|
||||
msgid "Planner Solution Error"
|
||||
msgstr ""
|
||||
|
||||
#: selfdrive/controls/lib/events.py:740 selfdrive/controls/lib/events.py:742
|
||||
#: selfdrive/controls/lib/events.py:746
|
||||
msgid "Harness Malfunction"
|
||||
msgstr "하네스 오작동"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:743
|
||||
msgid "Please Check Hardware"
|
||||
msgstr "장치를 점검하세요"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:751 selfdrive/controls/lib/events.py:760
|
||||
msgid "openpilot Canceled"
|
||||
msgstr "오픈파일럿 시작불가"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:752
|
||||
msgid "No close lead car"
|
||||
msgstr "선행차량이 없습니다"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:755
|
||||
msgid "No Close Lead Car"
|
||||
msgstr "선행차량이 없습니다"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:761
|
||||
msgid "Speed too low"
|
||||
msgstr "선행차량이 없습니다"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:768 selfdrive/controls/lib/events.py:773
|
||||
msgid "Speed Too High"
|
||||
msgstr "속도가 너무 높습니다"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:769
|
||||
msgid "Slow down to resume operation"
|
||||
msgstr "재 작동을 위해 차량의 속도를 낮추세요"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:774
|
||||
msgid "Slow down to engage"
|
||||
msgstr "시작을 위해 차량의 속도를 낮추세요"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:781
|
||||
msgid "Please connect to Internet"
|
||||
msgstr "인터넷에 연결하세요"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:782
|
||||
msgid "An Update Check Is Required to Engage"
|
||||
msgstr "시작을 위해 업데이트를 확인해야 합니다"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:785
|
||||
msgid "Please Connect to Internet"
|
||||
msgstr "인터넷에 연결하세요"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:801
|
||||
msgid "Left ALC will start in 3s"
|
||||
msgstr ""
|
||||
|
||||
#: selfdrive/controls/lib/events.py:809
|
||||
msgid "Right ALC will start in 3s"
|
||||
msgstr ""
|
||||
|
||||
#: selfdrive/controls/lib/events.py:817
|
||||
msgid "STEERING REQUIRED: Lane Keeping OFF"
|
||||
msgstr ""
|
||||
|
||||
#: selfdrive/controls/lib/events.py:825
|
||||
msgid "STEERING REQUIRED: Blinkers ON"
|
||||
msgstr ""
|
||||
|
||||
#: selfdrive/controls/lib/events.py:833 selfdrive/controls/lib/events.py:838
|
||||
msgid "Lead Car Is Moving"
|
||||
msgstr ""
|
||||
|
||||
#: selfdrive/controls/lib/events.py:847
|
||||
msgid "WARNING"
|
||||
msgstr ""
|
||||
|
||||
#: selfdrive/controls/lib/events.py:848
|
||||
msgid "Grab wheel to start bypass"
|
||||
msgstr ""
|
||||
|
||||
#: selfdrive/controls/lib/events.py:855
|
||||
msgid "BYPASSING"
|
||||
msgstr ""
|
||||
|
||||
#: selfdrive/controls/lib/events.py:856
|
||||
msgid "HOLD WHEEL"
|
||||
msgstr ""
|
||||
|
||||
#: selfdrive/controls/lib/events.py:863
|
||||
msgid "Bypassed!"
|
||||
msgstr ""
|
||||
|
||||
#: selfdrive/controls/lib/events.py:864
|
||||
msgid "Release wheel when ready"
|
||||
msgstr ""
|
||||
BIN
selfdrive/assets/locales/zh-CN/LC_MESSAGES/events.mo
Normal file
542
selfdrive/assets/locales/zh-CN/LC_MESSAGES/events.po
Normal file
@@ -0,0 +1,542 @@
|
||||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||
# This file is distributed under the same license as the PACKAGE package.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: PACKAGE VERSION\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2020-10-15 13:37+1000\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: Rick Lan <ricklan@gmail.com>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
"Language: zh-CN\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:153
|
||||
msgid "openpilot Unavailable"
|
||||
msgstr "无法使用 openpilot"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:160 selfdrive/controls/lib/events.py:167
|
||||
msgid "TAKE CONTROL IMMEDIATELY"
|
||||
msgstr "即刻接管控制"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:187 selfdrive/controls/lib/events.py:328
|
||||
#: selfdrive/controls/lib/events.py:354 selfdrive/controls/lib/events.py:418
|
||||
#: selfdrive/controls/lib/events.py:470 selfdrive/controls/lib/events.py:522
|
||||
#: selfdrive/controls/lib/events.py:532
|
||||
msgid "TAKE CONTROL"
|
||||
msgstr "接管控制"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:188
|
||||
#, fuzzy, python-format
|
||||
msgid "Steer Unavailable Below %(speed)d %(unit)s"
|
||||
msgstr "横向控制暂时失效,车速低于 %d %s"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:196
|
||||
#, fuzzy, python-format
|
||||
msgid "Calibration in Progress: %d%%"
|
||||
msgstr "正在校准中:%d%%"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:197
|
||||
#, fuzzy, python-format
|
||||
msgid "Drive Above %(speed)d %(unit)s"
|
||||
msgstr "车速请高于 %(speed)d %(unit)s"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:204
|
||||
msgid "Poor GPS reception"
|
||||
msgstr "GPS 讯号不良"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:205
|
||||
msgid "If sky is visible, contact support"
|
||||
msgstr "如果您不在地下室/隧道,请联系客服"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:205
|
||||
msgid "Check GPS antenna placement"
|
||||
msgstr "请检查 GPS 天线位置"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:210
|
||||
msgid "Cruise Mode Disabled"
|
||||
msgstr "巡航模式关闭"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:212
|
||||
msgid "Main Switch Off"
|
||||
msgstr "主开关已关闭"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:222
|
||||
msgid "DEBUG ALERT"
|
||||
msgstr "除错用警示讯息"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:230
|
||||
msgid "Be ready to take over at any time"
|
||||
msgstr "请准备好随时接管"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:231 selfdrive/controls/lib/events.py:239
|
||||
#: selfdrive/controls/lib/events.py:247 selfdrive/controls/lib/events.py:255
|
||||
msgid "Always keep hands on wheel and eyes on road"
|
||||
msgstr "将手放在方向盘上并持续监视路况"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:238
|
||||
msgid "WARNING: This branch is not tested"
|
||||
msgstr "注意:这个分支未经过测试"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:246
|
||||
msgid "Dashcam mode"
|
||||
msgstr "行车记录模式"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:254
|
||||
msgid "Dashcam mode for unsupported car"
|
||||
msgstr "行车记录模式 (尚未支援车种)"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:262
|
||||
msgid "Unsupported Giraffe Configuration"
|
||||
msgstr "未支援的 Giraffe 设置"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:263
|
||||
msgid "Visit comma.ai/tg"
|
||||
msgstr "请查阅 comma.ai/tg"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:270
|
||||
msgid "White Panda Is No Longer Supported"
|
||||
msgstr "不再支持 White Panda"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:271
|
||||
msgid "Upgrade to comma two or black panda"
|
||||
msgstr "请升级至 comma two 或是使用 black panda"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:274
|
||||
msgid "White panda is no longer supported"
|
||||
msgstr "不再支持 White panda"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:279
|
||||
msgid "Stock LKAS is turned on"
|
||||
msgstr "原厂 LKAS 已开启"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:280
|
||||
msgid "Turn off stock LKAS to engage"
|
||||
msgstr "需关闭原厂 LKAS 才能启用"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:288
|
||||
msgid "Community Feature Detected"
|
||||
msgstr "检测到社群开发功能"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:289
|
||||
msgid "Enable Community Features in Developer Settings"
|
||||
msgstr "请至开发人员设定裡启用社群开发功能"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:296
|
||||
msgid "Dashcam Mode"
|
||||
msgstr "行车记录模式"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:297
|
||||
msgid "Car Unrecognized"
|
||||
msgstr "无法辨识车款"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:304 selfdrive/controls/lib/events.py:312
|
||||
#: selfdrive/controls/lib/events.py:320
|
||||
msgid "BRAKE!"
|
||||
msgstr "刹车!"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:305
|
||||
msgid "Stock AEB: Risk of Collision"
|
||||
msgstr "有碰撞的风险"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:313
|
||||
msgid "Stock FCW: Risk of Collision"
|
||||
msgstr "有碰撞的风险"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:321
|
||||
msgid "Risk of Collision"
|
||||
msgstr "有碰撞的风险"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:329
|
||||
msgid "Lane Departure Detected"
|
||||
msgstr "偏离车道"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:338
|
||||
msgid "openpilot will not brake while gas pressed"
|
||||
msgstr "在您踩着油门的时候 openpilot 将不会刹车"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:346
|
||||
msgid "Vehicle Parameter Identification Failed"
|
||||
msgstr "车子参数识别失败"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:355 selfdrive/controls/lib/events.py:523
|
||||
#: selfdrive/controls/lib/events.py:526
|
||||
msgid "Steering Temporarily Unavailable"
|
||||
msgstr "横向控制暂时失效"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:362
|
||||
msgid "KEEP EYES ON ROAD: Driver Distracted"
|
||||
msgstr "注意路况:驾驶分心"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:370
|
||||
msgid "KEEP EYES ON ROAD"
|
||||
msgstr "注意路况"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:371
|
||||
msgid "Driver Appears Distracted"
|
||||
msgstr "驾驶分心"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:378 selfdrive/controls/lib/events.py:402
|
||||
msgid "DISENGAGE IMMEDIATELY"
|
||||
msgstr "立即解除"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:379
|
||||
msgid "Driver Was Distracted"
|
||||
msgstr "驾驶分心"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:386
|
||||
msgid "TOUCH STEERING WHEEL: No Face Detected"
|
||||
msgstr "请触碰方向盘:未侦测到驾驶面容"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:394
|
||||
msgid "TOUCH STEERING WHEEL"
|
||||
msgstr "请触碰方向盘"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:395
|
||||
msgid "Driver Is Unresponsive"
|
||||
msgstr "驾驶没有反应"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:403
|
||||
msgid "Driver Was Unresponsive"
|
||||
msgstr "驾驶没有反应"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:410
|
||||
msgid "CHECK DRIVER FACE VISIBILITY"
|
||||
msgstr "请检查驾驶面部的可见度"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:411
|
||||
msgid "Driver Monitor Model Output Uncertain"
|
||||
msgstr "驾驶监控模型判断不明确"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:419
|
||||
msgid "Resume Driving Manually"
|
||||
msgstr "请自行恢復驾驶"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:426
|
||||
msgid "STOPPED"
|
||||
msgstr "已停止"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:427
|
||||
msgid "Press Resume to Move"
|
||||
msgstr "请按 RES 继续"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:438
|
||||
msgid "Steer Left to Start Lane Change"
|
||||
msgstr "请往左打方向盘切换至左车道"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:439 selfdrive/controls/lib/events.py:447
|
||||
#: selfdrive/controls/lib/events.py:455 selfdrive/controls/lib/events.py:463
|
||||
#: selfdrive/controls/lib/events.py:802 selfdrive/controls/lib/events.py:810
|
||||
msgid "Monitor Other Vehicles"
|
||||
msgstr "请注意其它车辆"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:446
|
||||
msgid "Steer Right to Start Lane Change"
|
||||
msgstr "请往右打方向盘切换至右车道"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:454
|
||||
msgid "Car Detected in Blindspot"
|
||||
msgstr "盲点侦测到车辆"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:462
|
||||
msgid "Changing Lane"
|
||||
msgstr "切换车道中"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:471
|
||||
msgid "Turn Exceeds Steering Limit"
|
||||
msgstr "弯道超过横向操控限制"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:496
|
||||
msgid "Brake Hold Active"
|
||||
msgstr "驻车煞车已启用"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:501
|
||||
msgid "Park Brake Engaged"
|
||||
msgstr "电子驻车已启动"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:506
|
||||
msgid "Pedal Pressed During Attempt"
|
||||
msgstr "启用时侦测到驾驶踩踏油门/刹车"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:517
|
||||
msgid "Enable Adaptive Cruise"
|
||||
msgstr "启用自适应巡航"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:533
|
||||
msgid "Attempting Refocus: Camera Focus Invalid"
|
||||
msgstr "尝试对焦:相机已失焦"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:539
|
||||
msgid "Out of Storage Space"
|
||||
msgstr "存储空间不足"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:544
|
||||
msgid "Speed Too Low"
|
||||
msgstr "车速过慢"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:549 selfdrive/controls/lib/events.py:553
|
||||
msgid "NEOS Update Required"
|
||||
msgstr "NEOS 需要更新"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:550
|
||||
msgid "Please Wait for Update"
|
||||
msgstr "更新中请稍候"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:558 selfdrive/controls/lib/events.py:562
|
||||
msgid "No Data from Device Sensors"
|
||||
msgstr "未收到装置传感器数据"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:559 selfdrive/controls/lib/events.py:572
|
||||
#: selfdrive/controls/lib/events.py:669
|
||||
msgid "Reboot your Device"
|
||||
msgstr "请重启装置"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:571 selfdrive/controls/lib/events.py:575
|
||||
msgid "Speaker not found"
|
||||
msgstr "找不到音效装置"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:579
|
||||
msgid "Distraction Level Too High"
|
||||
msgstr "驾驶分心太多次"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:583
|
||||
msgid "System Overheated"
|
||||
msgstr "系统过热"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:584
|
||||
msgid "System overheated"
|
||||
msgstr "系统过热"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:588 selfdrive/controls/lib/events.py:589
|
||||
msgid "Gear not D"
|
||||
msgstr "不在 D 档位"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:594
|
||||
#, fuzzy
|
||||
msgid "Calibration Invalid"
|
||||
msgstr "正在校准中"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:595
|
||||
#, fuzzy
|
||||
msgid "Reposition Device and Recalibrate"
|
||||
msgstr "校准无效:请将装置放于新的位置并重新校准"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:598 selfdrive/controls/lib/events.py:599
|
||||
msgid "Calibration Invalid: Reposition Device & Recalibrate"
|
||||
msgstr "校准无效:请将装置放于新的位置并重新校准"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:603 selfdrive/controls/lib/events.py:605
|
||||
msgid "Calibration in Progress"
|
||||
msgstr "正在校准中"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:609
|
||||
msgid "Door Open"
|
||||
msgstr "车门开启"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:610
|
||||
msgid "Door open"
|
||||
msgstr "车门未关"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:614
|
||||
msgid "Seatbelt Unlatched"
|
||||
msgstr "安全带未繫"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:615
|
||||
msgid "Seatbelt unlatched"
|
||||
msgstr "安全带未繫"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:619 selfdrive/controls/lib/events.py:620
|
||||
msgid "ESP Off"
|
||||
msgstr "ESP 关闭"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:624 selfdrive/controls/lib/events.py:625
|
||||
msgid "Low Battery"
|
||||
msgstr "电量过低"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:629 selfdrive/controls/lib/events.py:630
|
||||
msgid "Communication Issue between Processes"
|
||||
msgstr "行程间出现通讯问题"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:635 selfdrive/controls/lib/events.py:636
|
||||
msgid "Radar Communication Issue"
|
||||
msgstr "雷达通讯出现问题"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:641 selfdrive/controls/lib/events.py:642
|
||||
#: selfdrive/controls/lib/events.py:646 selfdrive/controls/lib/events.py:647
|
||||
msgid "Radar Error: Restart the Car"
|
||||
msgstr "雷达讯号错误:请重新发动车辆"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:651 selfdrive/controls/lib/events.py:652
|
||||
msgid "Driving model lagging"
|
||||
msgstr "操控模型有延迟"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:656 selfdrive/controls/lib/events.py:657
|
||||
msgid "Vision Model Output Uncertain"
|
||||
msgstr "视觉模型判断不明确"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:661 selfdrive/controls/lib/events.py:662
|
||||
msgid "Device Fell Off Mount"
|
||||
msgstr "装置掉落侦测"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:666 selfdrive/controls/lib/events.py:672
|
||||
msgid "Low Memory: Reboot Your Device"
|
||||
msgstr "记忆体不足:请重启您的装置"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:668
|
||||
msgid "RAM Critically Low"
|
||||
msgstr "记忆体严重不足"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:677 selfdrive/controls/lib/events.py:678
|
||||
msgid "Controls Failed"
|
||||
msgstr "控制发生错误"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:682
|
||||
msgid "Controls Mismatch"
|
||||
msgstr "控制不匹配"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:686 selfdrive/controls/lib/events.py:688
|
||||
#: selfdrive/controls/lib/events.py:692
|
||||
msgid "CAN Error: Check Connections"
|
||||
msgstr "CAN 讯号错误:请检查线路"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:696 selfdrive/controls/lib/events.py:702
|
||||
msgid "LKAS Fault: Restart the Car"
|
||||
msgstr "LKAS 错误:请重新发动车辆"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:698
|
||||
msgid "LKAS Fault: Restart the car to engage"
|
||||
msgstr "LKAS 错误:请重新发动车辆"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:706 selfdrive/controls/lib/events.py:712
|
||||
#: selfdrive/controls/lib/events.py:795
|
||||
msgid "Cruise Fault: Restart the Car"
|
||||
msgstr "巡航系统错误:请重新发动车辆"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:708 selfdrive/controls/lib/events.py:791
|
||||
msgid "Cruise Fault: Restart the car to engage"
|
||||
msgstr "巡航系统错误:请重新发动车辆"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:716
|
||||
msgid "Gas Fault: Restart the Car"
|
||||
msgstr "油门错误:请重新发动车辆"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:717
|
||||
msgid "Gas Error: Restart the Car"
|
||||
msgstr "油门错误:请重新发动车辆"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:722
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
"Reverse\n"
|
||||
"Gear"
|
||||
msgstr "切换至倒车档"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:726
|
||||
msgid "Reverse Gear"
|
||||
msgstr "切换至倒车档"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:731
|
||||
msgid "Cruise Is Off"
|
||||
msgstr "巡航系统关闭"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:735 selfdrive/controls/lib/events.py:736
|
||||
msgid "Planner Solution Error"
|
||||
msgstr "Planner Solution 错误"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:740 selfdrive/controls/lib/events.py:742
|
||||
#: selfdrive/controls/lib/events.py:746
|
||||
msgid "Harness Malfunction"
|
||||
msgstr "Harness 故障"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:743
|
||||
msgid "Please Check Hardware"
|
||||
msgstr "请检查硬体"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:751 selfdrive/controls/lib/events.py:760
|
||||
msgid "openpilot Canceled"
|
||||
msgstr "openpilot 已取消"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:752
|
||||
msgid "No close lead car"
|
||||
msgstr "前方没有车辆"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:755
|
||||
msgid "No Close Lead Car"
|
||||
msgstr "前方没有车辆"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:761
|
||||
msgid "Speed too low"
|
||||
msgstr "车速过慢"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:768 selfdrive/controls/lib/events.py:773
|
||||
msgid "Speed Too High"
|
||||
msgstr "车速过快"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:769
|
||||
msgid "Slow down to resume operation"
|
||||
msgstr "请减速后再启用"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:774
|
||||
msgid "Slow down to engage"
|
||||
msgstr "请减速后再启用"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:781
|
||||
msgid "Please connect to Internet"
|
||||
msgstr "请连接网路"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:782
|
||||
msgid "An Update Check Is Required to Engage"
|
||||
msgstr "需检查更新后才能启用"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:785
|
||||
msgid "Please Connect to Internet"
|
||||
msgstr "请连接网路"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:801
|
||||
msgid "Left ALC will start in 3s"
|
||||
msgstr "准备自动切至左车道"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:809
|
||||
msgid "Right ALC will start in 3s"
|
||||
msgstr "准备自动切至右车道"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:817
|
||||
msgid "STEERING REQUIRED: Lane Keeping OFF"
|
||||
msgstr "请接管方向盘:车道维持关闭"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:825
|
||||
msgid "STEERING REQUIRED: Blinkers ON"
|
||||
msgstr "请接管方向盘:方向灯开启"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:833 selfdrive/controls/lib/events.py:838
|
||||
msgid "Lead Car Is Moving"
|
||||
msgstr "前方车辆车移动中"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:847
|
||||
msgid "WARNING"
|
||||
msgstr "警告"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:848
|
||||
msgid "Grab wheel to start bypass"
|
||||
msgstr "请握好方向盘以绕过时间限制"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:855
|
||||
msgid "BYPASSING"
|
||||
msgstr "绕过时间限制中"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:856
|
||||
msgid "HOLD WHEEL"
|
||||
msgstr "握好方向盘"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:863
|
||||
msgid "Bypassed!"
|
||||
msgstr "时间限制已绕过"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:864
|
||||
msgid "Release wheel when ready"
|
||||
msgstr "准备好后请松开放向盘"
|
||||
BIN
selfdrive/assets/locales/zh-TW/LC_MESSAGES/events.mo
Normal file
542
selfdrive/assets/locales/zh-TW/LC_MESSAGES/events.po
Normal file
@@ -0,0 +1,542 @@
|
||||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||
# This file is distributed under the same license as the PACKAGE package.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: PACKAGE VERSION\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2020-10-15 13:37+1000\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: Rick Lan <ricklan@gmail.com>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
"Language: zh-TW\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:153
|
||||
msgid "openpilot Unavailable"
|
||||
msgstr "無法使用 openpilot"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:160 selfdrive/controls/lib/events.py:167
|
||||
msgid "TAKE CONTROL IMMEDIATELY"
|
||||
msgstr "即刻接管控制"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:187 selfdrive/controls/lib/events.py:328
|
||||
#: selfdrive/controls/lib/events.py:354 selfdrive/controls/lib/events.py:418
|
||||
#: selfdrive/controls/lib/events.py:470 selfdrive/controls/lib/events.py:522
|
||||
#: selfdrive/controls/lib/events.py:532
|
||||
msgid "TAKE CONTROL"
|
||||
msgstr "接管控制"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:188
|
||||
#, fuzzy, python-format
|
||||
msgid "Steer Unavailable Below %(speed)d %(unit)s"
|
||||
msgstr "橫向控制暫時失效,車速低於 %d %s"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:196
|
||||
#, fuzzy, python-format
|
||||
msgid "Calibration in Progress: %d%%"
|
||||
msgstr "正在校準中:%d%%"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:197
|
||||
#, fuzzy, python-format
|
||||
msgid "Drive Above %(speed)d %(unit)s"
|
||||
msgstr "車速請高於 %(speed)d %(unit)s"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:204
|
||||
msgid "Poor GPS reception"
|
||||
msgstr "GPS 訊號不良"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:205
|
||||
msgid "If sky is visible, contact support"
|
||||
msgstr "如果您不在地下室/隧道,請聯系客服"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:205
|
||||
msgid "Check GPS antenna placement"
|
||||
msgstr "請檢查 GPS 天線位置"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:210
|
||||
msgid "Cruise Mode Disabled"
|
||||
msgstr "巡航模式關閉"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:212
|
||||
msgid "Main Switch Off"
|
||||
msgstr "主開關已關閉"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:222
|
||||
msgid "DEBUG ALERT"
|
||||
msgstr "除錯用警示訊息"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:230
|
||||
msgid "Be ready to take over at any time"
|
||||
msgstr "請準備好隨時接管"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:231 selfdrive/controls/lib/events.py:239
|
||||
#: selfdrive/controls/lib/events.py:247 selfdrive/controls/lib/events.py:255
|
||||
msgid "Always keep hands on wheel and eyes on road"
|
||||
msgstr "將手放在方向盤上並持續監視路況"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:238
|
||||
msgid "WARNING: This branch is not tested"
|
||||
msgstr "注意:這個分支未經過測試"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:246
|
||||
msgid "Dashcam mode"
|
||||
msgstr "行車記錄模式"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:254
|
||||
msgid "Dashcam mode for unsupported car"
|
||||
msgstr "行車記錄模式 (尚未支援車種)"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:262
|
||||
msgid "Unsupported Giraffe Configuration"
|
||||
msgstr "未支援的 Giraffe 設置"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:263
|
||||
msgid "Visit comma.ai/tg"
|
||||
msgstr "請查閱 comma.ai/tg"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:270
|
||||
msgid "White Panda Is No Longer Supported"
|
||||
msgstr "不再支援 White Panda"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:271
|
||||
msgid "Upgrade to comma two or black panda"
|
||||
msgstr "請升級至 comma two 或是使用 black panda"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:274
|
||||
msgid "White panda is no longer supported"
|
||||
msgstr "不再支援 White panda"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:279
|
||||
msgid "Stock LKAS is turned on"
|
||||
msgstr "原廠 LKAS 已開啟"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:280
|
||||
msgid "Turn off stock LKAS to engage"
|
||||
msgstr "需關閉原廠 LKAS 才能啟用"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:288
|
||||
msgid "Community Feature Detected"
|
||||
msgstr "檢測到社群開發功能"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:289
|
||||
msgid "Enable Community Features in Developer Settings"
|
||||
msgstr "請至開發人員設定裡啟用社群開發功能"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:296
|
||||
msgid "Dashcam Mode"
|
||||
msgstr "行車記錄模式"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:297
|
||||
msgid "Car Unrecognized"
|
||||
msgstr "無法辨識車款"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:304 selfdrive/controls/lib/events.py:312
|
||||
#: selfdrive/controls/lib/events.py:320
|
||||
msgid "BRAKE!"
|
||||
msgstr "剎車!"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:305
|
||||
msgid "Stock AEB: Risk of Collision"
|
||||
msgstr "有碰撞的風險"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:313
|
||||
msgid "Stock FCW: Risk of Collision"
|
||||
msgstr "有碰撞的風險"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:321
|
||||
msgid "Risk of Collision"
|
||||
msgstr "有碰撞的風險"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:329
|
||||
msgid "Lane Departure Detected"
|
||||
msgstr "偏離車道"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:338
|
||||
msgid "openpilot will not brake while gas pressed"
|
||||
msgstr "在您踩著油門的時候 openpilot 將不會剎車"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:346
|
||||
msgid "Vehicle Parameter Identification Failed"
|
||||
msgstr "車子參數識別失敗"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:355 selfdrive/controls/lib/events.py:523
|
||||
#: selfdrive/controls/lib/events.py:526
|
||||
msgid "Steering Temporarily Unavailable"
|
||||
msgstr "橫向控制暫時失效"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:362
|
||||
msgid "KEEP EYES ON ROAD: Driver Distracted"
|
||||
msgstr "注意路況:駕駛分心"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:370
|
||||
msgid "KEEP EYES ON ROAD"
|
||||
msgstr "注意路況"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:371
|
||||
msgid "Driver Appears Distracted"
|
||||
msgstr "駕駛分心"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:378 selfdrive/controls/lib/events.py:402
|
||||
msgid "DISENGAGE IMMEDIATELY"
|
||||
msgstr "立即解除"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:379
|
||||
msgid "Driver Was Distracted"
|
||||
msgstr "駕駛分心"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:386
|
||||
msgid "TOUCH STEERING WHEEL: No Face Detected"
|
||||
msgstr "請觸碰方向盤:未偵測到駕駛面容"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:394
|
||||
msgid "TOUCH STEERING WHEEL"
|
||||
msgstr "請觸碰方向盤"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:395
|
||||
msgid "Driver Is Unresponsive"
|
||||
msgstr "駕駛沒有反應"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:403
|
||||
msgid "Driver Was Unresponsive"
|
||||
msgstr "駕駛沒有反應"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:410
|
||||
msgid "CHECK DRIVER FACE VISIBILITY"
|
||||
msgstr "請檢查駕駛面部的可見度"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:411
|
||||
msgid "Driver Monitor Model Output Uncertain"
|
||||
msgstr "駕駛監控模型判斷不明確"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:419
|
||||
msgid "Resume Driving Manually"
|
||||
msgstr "請自行恢復駕駛"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:426
|
||||
msgid "STOPPED"
|
||||
msgstr "已停止"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:427
|
||||
msgid "Press Resume to Move"
|
||||
msgstr "請按 RES 繼續"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:438
|
||||
msgid "Steer Left to Start Lane Change"
|
||||
msgstr "請往左打方向盤切換至左車道"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:439 selfdrive/controls/lib/events.py:447
|
||||
#: selfdrive/controls/lib/events.py:455 selfdrive/controls/lib/events.py:463
|
||||
#: selfdrive/controls/lib/events.py:802 selfdrive/controls/lib/events.py:810
|
||||
msgid "Monitor Other Vehicles"
|
||||
msgstr "請注意其它車輛"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:446
|
||||
msgid "Steer Right to Start Lane Change"
|
||||
msgstr "請往右打方向盤切換至右車道"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:454
|
||||
msgid "Car Detected in Blindspot"
|
||||
msgstr "盲點偵測到車輛"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:462
|
||||
msgid "Changing Lane"
|
||||
msgstr "切換車道中"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:471
|
||||
msgid "Turn Exceeds Steering Limit"
|
||||
msgstr "彎道超過橫向操控限制"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:496
|
||||
msgid "Brake Hold Active"
|
||||
msgstr "駐車煞車已啟用"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:501
|
||||
msgid "Park Brake Engaged"
|
||||
msgstr "電子駐車已啟動"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:506
|
||||
msgid "Pedal Pressed During Attempt"
|
||||
msgstr "啟用時偵測到駕駛踩踏油門/剎車"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:517
|
||||
msgid "Enable Adaptive Cruise"
|
||||
msgstr "啟用主動定速巡航"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:533
|
||||
msgid "Attempting Refocus: Camera Focus Invalid"
|
||||
msgstr "嘗試對焦:相機已失焦"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:539
|
||||
msgid "Out of Storage Space"
|
||||
msgstr "儲存空間不足"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:544
|
||||
msgid "Speed Too Low"
|
||||
msgstr "車速過慢"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:549 selfdrive/controls/lib/events.py:553
|
||||
msgid "NEOS Update Required"
|
||||
msgstr "NEOS 需要更新"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:550
|
||||
msgid "Please Wait for Update"
|
||||
msgstr "更新中請稍候"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:558 selfdrive/controls/lib/events.py:562
|
||||
msgid "No Data from Device Sensors"
|
||||
msgstr "未收到裝置傳感器數據"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:559 selfdrive/controls/lib/events.py:572
|
||||
#: selfdrive/controls/lib/events.py:669
|
||||
msgid "Reboot your Device"
|
||||
msgstr "請重啟裝置"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:571 selfdrive/controls/lib/events.py:575
|
||||
msgid "Speaker not found"
|
||||
msgstr "找不到音效裝置"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:579
|
||||
msgid "Distraction Level Too High"
|
||||
msgstr "駕駛分心太多次"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:583
|
||||
msgid "System Overheated"
|
||||
msgstr "系統過熱"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:584
|
||||
msgid "System overheated"
|
||||
msgstr "系統過熱"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:588 selfdrive/controls/lib/events.py:589
|
||||
msgid "Gear not D"
|
||||
msgstr "不在 D 檔位"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:594
|
||||
#, fuzzy
|
||||
msgid "Calibration Invalid"
|
||||
msgstr "正在校準中"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:595
|
||||
#, fuzzy
|
||||
msgid "Reposition Device and Recalibrate"
|
||||
msgstr "校準無效:請將裝置放於新的位置並重新校準"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:598 selfdrive/controls/lib/events.py:599
|
||||
msgid "Calibration Invalid: Reposition Device & Recalibrate"
|
||||
msgstr "校準無效:請將裝置放於新的位置並重新校準"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:603 selfdrive/controls/lib/events.py:605
|
||||
msgid "Calibration in Progress"
|
||||
msgstr "正在校準中"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:609
|
||||
msgid "Door Open"
|
||||
msgstr "車門開啟"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:610
|
||||
msgid "Door open"
|
||||
msgstr "車門未關"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:614
|
||||
msgid "Seatbelt Unlatched"
|
||||
msgstr "安全帶未繫"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:615
|
||||
msgid "Seatbelt unlatched"
|
||||
msgstr "安全帶未繫"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:619 selfdrive/controls/lib/events.py:620
|
||||
msgid "ESP Off"
|
||||
msgstr "ESP 關閉"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:624 selfdrive/controls/lib/events.py:625
|
||||
msgid "Low Battery"
|
||||
msgstr "電量過低"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:629 selfdrive/controls/lib/events.py:630
|
||||
msgid "Communication Issue between Processes"
|
||||
msgstr "行程間出現通訊問題"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:635 selfdrive/controls/lib/events.py:636
|
||||
msgid "Radar Communication Issue"
|
||||
msgstr "雷達通訊出現問題"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:641 selfdrive/controls/lib/events.py:642
|
||||
#: selfdrive/controls/lib/events.py:646 selfdrive/controls/lib/events.py:647
|
||||
msgid "Radar Error: Restart the Car"
|
||||
msgstr "雷達訊號錯誤:請重新發動車輛"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:651 selfdrive/controls/lib/events.py:652
|
||||
msgid "Driving model lagging"
|
||||
msgstr "操控模型有延遲"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:656 selfdrive/controls/lib/events.py:657
|
||||
msgid "Vision Model Output Uncertain"
|
||||
msgstr "視覺模型判斷不明確"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:661 selfdrive/controls/lib/events.py:662
|
||||
msgid "Device Fell Off Mount"
|
||||
msgstr "裝置掉落偵測"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:666 selfdrive/controls/lib/events.py:672
|
||||
msgid "Low Memory: Reboot Your Device"
|
||||
msgstr "記憶體不足:請重啟您的裝置"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:668
|
||||
msgid "RAM Critically Low"
|
||||
msgstr "記憶體嚴重不足"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:677 selfdrive/controls/lib/events.py:678
|
||||
msgid "Controls Failed"
|
||||
msgstr "控制發生錯誤"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:682
|
||||
msgid "Controls Mismatch"
|
||||
msgstr "控制不匹配"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:686 selfdrive/controls/lib/events.py:688
|
||||
#: selfdrive/controls/lib/events.py:692
|
||||
msgid "CAN Error: Check Connections"
|
||||
msgstr "CAN 訊號錯誤:請檢查線路"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:696 selfdrive/controls/lib/events.py:702
|
||||
msgid "LKAS Fault: Restart the Car"
|
||||
msgstr "LKAS 錯誤:請重新發動車輛"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:698
|
||||
msgid "LKAS Fault: Restart the car to engage"
|
||||
msgstr "LKAS 錯誤:請重新發動車輛"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:706 selfdrive/controls/lib/events.py:712
|
||||
#: selfdrive/controls/lib/events.py:795
|
||||
msgid "Cruise Fault: Restart the Car"
|
||||
msgstr "巡航系統錯誤:請重新發動車輛"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:708 selfdrive/controls/lib/events.py:791
|
||||
msgid "Cruise Fault: Restart the car to engage"
|
||||
msgstr "巡航系統錯誤:請重新發動車輛"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:716
|
||||
msgid "Gas Fault: Restart the Car"
|
||||
msgstr "油門錯誤:請重新發動車輛"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:717
|
||||
msgid "Gas Error: Restart the Car"
|
||||
msgstr "油門錯誤:請重新發動車輛"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:722
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
"Reverse\n"
|
||||
"Gear"
|
||||
msgstr "切換至倒車檔"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:726
|
||||
msgid "Reverse Gear"
|
||||
msgstr "切換至倒車檔"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:731
|
||||
msgid "Cruise Is Off"
|
||||
msgstr "巡航系統關閉"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:735 selfdrive/controls/lib/events.py:736
|
||||
msgid "Planner Solution Error"
|
||||
msgstr "Planner Solution 錯誤"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:740 selfdrive/controls/lib/events.py:742
|
||||
#: selfdrive/controls/lib/events.py:746
|
||||
msgid "Harness Malfunction"
|
||||
msgstr "Harness 故障"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:743
|
||||
msgid "Please Check Hardware"
|
||||
msgstr "請檢查硬體"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:751 selfdrive/controls/lib/events.py:760
|
||||
msgid "openpilot Canceled"
|
||||
msgstr "openpilot 已取消"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:752
|
||||
msgid "No close lead car"
|
||||
msgstr "前方沒有車輛"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:755
|
||||
msgid "No Close Lead Car"
|
||||
msgstr "前方沒有車輛"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:761
|
||||
msgid "Speed too low"
|
||||
msgstr "車速過慢"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:768 selfdrive/controls/lib/events.py:773
|
||||
msgid "Speed Too High"
|
||||
msgstr "車速過快"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:769
|
||||
msgid "Slow down to resume operation"
|
||||
msgstr "請減速後再啟用"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:774
|
||||
msgid "Slow down to engage"
|
||||
msgstr "請減速後再啟用"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:781
|
||||
msgid "Please connect to Internet"
|
||||
msgstr "請連接網路"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:782
|
||||
msgid "An Update Check Is Required to Engage"
|
||||
msgstr "需檢查更新後才能啟用"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:785
|
||||
msgid "Please Connect to Internet"
|
||||
msgstr "請連接網路"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:801
|
||||
msgid "Left ALC will start in 3s"
|
||||
msgstr "準備自動切至左車道"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:809
|
||||
msgid "Right ALC will start in 3s"
|
||||
msgstr "準備自動切至右車道"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:817
|
||||
msgid "STEERING REQUIRED: Lane Keeping OFF"
|
||||
msgstr "請接管方向盤:車道維持關閉"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:825
|
||||
msgid "STEERING REQUIRED: Blinkers ON"
|
||||
msgstr "請接管方向盤:方向燈開啟"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:833 selfdrive/controls/lib/events.py:838
|
||||
msgid "Lead Car Is Moving"
|
||||
msgstr "前方車輛車移動中"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:847
|
||||
msgid "WARNING"
|
||||
msgstr "警告"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:848
|
||||
msgid "Grab wheel to start bypass"
|
||||
msgstr "請握好方向盤以繞過時間限制"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:855
|
||||
msgid "BYPASSING"
|
||||
msgstr "繞過時間限制中"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:856
|
||||
msgid "HOLD WHEEL"
|
||||
msgstr "握好方向盤"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:863
|
||||
msgid "Bypassed!"
|
||||
msgstr "時間限制已繞過"
|
||||
|
||||
#: selfdrive/controls/lib/events.py:864
|
||||
msgid "Release wheel when ready"
|
||||
msgstr "準備好後請鬆開放向盤"
|
||||
BIN
selfdrive/assets/offroad/icon_empty.png
Normal file
|
After Width: | Height: | Size: 15 KiB |
@@ -25,7 +25,7 @@ from common.api import Api
|
||||
from common.basedir import PERSIST
|
||||
from common.params import Params
|
||||
from common.realtime import sec_since_boot
|
||||
from selfdrive.hardware import HARDWARE, PC, TICI
|
||||
from selfdrive.hardware import HARDWARE, PC, TICI, JETSON
|
||||
from selfdrive.loggerd.config import ROOT
|
||||
from selfdrive.loggerd.xattr_cache import getxattr, setxattr
|
||||
from selfdrive.swaglog import cloudlog, SWAGLOG_DIR
|
||||
@@ -309,7 +309,7 @@ def get_logs_to_send_sorted():
|
||||
|
||||
|
||||
def log_handler(end_event):
|
||||
if PC:
|
||||
if PC or JETSON:
|
||||
return
|
||||
|
||||
log_files = []
|
||||
|
||||
@@ -11,7 +11,7 @@ from common.spinner import Spinner
|
||||
from common.file_helpers import mkdirs_exists_ok
|
||||
from common.basedir import PERSIST
|
||||
from selfdrive.controls.lib.alertmanager import set_offroad_alert
|
||||
from selfdrive.hardware import HARDWARE
|
||||
from selfdrive.hardware import HARDWARE, JETSON
|
||||
from selfdrive.swaglog import cloudlog
|
||||
|
||||
|
||||
@@ -20,6 +20,10 @@ UNREGISTERED_DONGLE_ID = "UnregisteredDevice"
|
||||
|
||||
def register(show_spinner=False) -> str:
|
||||
params = Params()
|
||||
if not params.get_bool('dp_reg') or params.get_bool('dp_jetson'):
|
||||
return UNREGISTERED_DONGLE_ID
|
||||
if JETSON:
|
||||
return UNREGISTERED_DONGLE_ID
|
||||
params.put("SubscriberInfo", HARDWARE.get_subscriber_info())
|
||||
|
||||
IMEI = params.get("IMEI", encoding='utf8')
|
||||
|
||||
@@ -1,4 +1,14 @@
|
||||
Import('env', 'envCython', 'common', 'cereal', 'messaging')
|
||||
# dp - Add read dp_toyota_disable_relay value
|
||||
if FindFile('dp_toyota_disable_relay', '/data/params/d') != None:
|
||||
with open('/data/params/d/dp_toyota_disable_relay') as f:
|
||||
if (int(f.read().strip())) == 1:
|
||||
env.Append(CCFLAGS='-DDisableRelay')
|
||||
|
||||
if FindFile('dp_panda_no_gps', '/data/params/d') != None:
|
||||
with open('/data/params/d/dp_panda_no_gps') as f:
|
||||
if (int(f.read().strip())) == 1:
|
||||
env.Append(CCFLAGS='-DNoGPS')
|
||||
|
||||
env.Program('boardd', ['boardd.cc', 'panda.cc', 'pigeon.cc'], LIBS=['usb-1.0', common, cereal, messaging, 'pthread', 'zmq', 'capnp', 'kj'])
|
||||
env.Library('libcan_list_to_can_capnp', ['can_list_to_can_capnp.cc'])
|
||||
|
||||
@@ -45,10 +45,13 @@ ExitHandler do_exit;
|
||||
void safety_setter_thread() {
|
||||
LOGD("Starting safety setter thread");
|
||||
// diagnostic only is the default, needed for VIN query
|
||||
#ifndef DisableRelay
|
||||
panda->set_safety_model(cereal::CarParams::SafetyModel::ELM327);
|
||||
#endif
|
||||
|
||||
Params p = Params();
|
||||
|
||||
#ifndef DisableRelay
|
||||
// switch to SILENT when CarVin param is read
|
||||
while (true) {
|
||||
if (do_exit || !panda->connected) {
|
||||
@@ -68,7 +71,7 @@ void safety_setter_thread() {
|
||||
|
||||
// VIN query done, stop listening to OBDII
|
||||
panda->set_safety_model(cereal::CarParams::SafetyModel::ELM327, 1);
|
||||
|
||||
#endif
|
||||
std::string params;
|
||||
LOGW("waiting for params to set safety model");
|
||||
while (true) {
|
||||
@@ -90,7 +93,7 @@ void safety_setter_thread() {
|
||||
cereal::CarParams::Reader car_params = cmsg.getRoot<cereal::CarParams>();
|
||||
cereal::CarParams::SafetyModel safety_model = car_params.getSafetyModel();
|
||||
|
||||
panda->set_unsafe_mode(0); // see safety_declarations.h for allowed values
|
||||
panda->set_unsafe_mode(9); // see safety_declarations.h for allowed values
|
||||
|
||||
auto safety_param = car_params.getSafetyParam();
|
||||
LOGW("setting safety model: %d with param %d", (int)safety_model, safety_param);
|
||||
@@ -276,12 +279,12 @@ void panda_state_thread(bool spoofing_started) {
|
||||
if (spoofing_started) {
|
||||
pandaState.ignition_line = 1;
|
||||
}
|
||||
|
||||
#ifndef DisableRelay
|
||||
// Make sure CAN buses are live: safety_setter_thread does not work if Panda CAN are silent and there is only one other CAN node
|
||||
if (pandaState.safety_model == (uint8_t)(cereal::CarParams::SafetyModel::SILENT)) {
|
||||
panda->set_safety_model(cereal::CarParams::SafetyModel::NO_OUTPUT);
|
||||
}
|
||||
|
||||
#endif
|
||||
ignition = ((pandaState.ignition_line != 0) || (pandaState.ignition_can != 0));
|
||||
|
||||
if (ignition) {
|
||||
@@ -295,11 +298,12 @@ void panda_state_thread(bool spoofing_started) {
|
||||
if (pandaState.power_save_enabled != power_save_desired) {
|
||||
panda->set_power_saving(power_save_desired);
|
||||
}
|
||||
|
||||
#ifndef DisableRelay
|
||||
// set safety mode to NO_OUTPUT when car is off. ELM327 is an alternative if we want to leverage athenad/connect
|
||||
if (!ignition && (pandaState.safety_model != (uint8_t)(cereal::CarParams::SafetyModel::NO_OUTPUT))) {
|
||||
panda->set_safety_model(cereal::CarParams::SafetyModel::NO_OUTPUT);
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
||||
// clear VIN, CarParams, and set new safety on car start
|
||||
@@ -415,7 +419,7 @@ void hardware_control_thread() {
|
||||
cnt++;
|
||||
sm.update(1000); // TODO: what happens if EINTR is sent while in sm.update?
|
||||
|
||||
if (!Hardware::PC() && sm.updated("deviceState")) {
|
||||
if (!Hardware::PC() && !Hardware::JETSON() && sm.updated("deviceState")) {
|
||||
// Charging mode
|
||||
bool charging_disabled = sm["deviceState"].getDeviceState().getChargingDisabled();
|
||||
if (charging_disabled != prev_charging_disabled) {
|
||||
@@ -475,6 +479,15 @@ static void pigeon_publish_raw(PubMaster &pm, const std::string &dat) {
|
||||
}
|
||||
|
||||
void pigeon_thread() {
|
||||
// dp - use toyota directly
|
||||
#ifdef DisableRelay
|
||||
panda->set_safety_model(cereal::CarParams::SafetyModel::TOYOTA);
|
||||
#endif
|
||||
|
||||
// from @florianbrede-ayet, disable gps for white panda
|
||||
#ifdef NoGPS
|
||||
return;
|
||||
#endif
|
||||
PubMaster pm({"ubloxRaw"});
|
||||
bool ignition_last = false;
|
||||
|
||||
@@ -556,7 +569,7 @@ int main() {
|
||||
err = set_realtime_priority(54);
|
||||
LOG("set priority returns %d", err);
|
||||
|
||||
err = set_core_affinity(Hardware::TICI() ? 4 : 3);
|
||||
err = set_core_affinity(Hardware::TICI() || Hardware::JETSON() ? 4 : 3);
|
||||
LOG("set affinity returns %d", err);
|
||||
|
||||
while (!do_exit) {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
Import('env', 'arch', 'cereal', 'messaging', 'common', 'gpucommon', 'visionipc', 'USE_WEBCAM')
|
||||
Import('env', 'arch', 'cereal', 'messaging', 'common', 'gpucommon', 'visionipc', 'USE_WEBCAM', 'USE_MIPI')
|
||||
|
||||
libs = ['m', 'pthread', common, 'jpeg', 'OpenCL', cereal, messaging, 'zmq', 'capnp', 'kj', visionipc, gpucommon]
|
||||
|
||||
@@ -9,7 +9,14 @@ elif arch == "larch64":
|
||||
libs += ['atomic']
|
||||
cameras = ['cameras/camera_qcom2.cc']
|
||||
else:
|
||||
if USE_WEBCAM:
|
||||
if USE_MIPI:
|
||||
libs += ['opencv_core', 'opencv_highgui', 'opencv_imgproc', 'opencv_videoio']
|
||||
cameras = ['cameras/camera_mipi.cc']
|
||||
env = env.Clone()
|
||||
env.Append(CXXFLAGS = '-DMIPI')
|
||||
env.Append(CFLAGS = '-DMIPI')
|
||||
env.Append(CPPPATH = '/usr/local/include/opencv4')
|
||||
elif USE_WEBCAM:
|
||||
libs += ['opencv_core', 'opencv_highgui', 'opencv_imgproc', 'opencv_videoio']
|
||||
cameras = ['cameras/camera_webcam.cc']
|
||||
env = env.Clone()
|
||||
|
||||
@@ -24,6 +24,8 @@
|
||||
#include "selfdrive/camerad/cameras/camera_qcom2.h"
|
||||
#elif WEBCAM
|
||||
#include "selfdrive/camerad/cameras/camera_webcam.h"
|
||||
#elif MIPI
|
||||
#include "selfdrive/camerad/cameras/camera_mipi.h"
|
||||
#else
|
||||
#include "selfdrive/camerad/cameras/camera_frame_stream.h"
|
||||
#endif
|
||||
|
||||
@@ -24,7 +24,8 @@
|
||||
#define CAMERA_ID_LGC920 6
|
||||
#define CAMERA_ID_LGC615 7
|
||||
#define CAMERA_ID_AR0231 8
|
||||
#define CAMERA_ID_MAX 9
|
||||
#define CAMERA_ID_IMX219 9
|
||||
#define CAMERA_ID_MAX 10
|
||||
|
||||
#define UI_BUF_COUNT 4
|
||||
#define YUV_COUNT 100
|
||||
|
||||
154
selfdrive/camerad/cameras/camera_mipi.cc
Normal file
@@ -0,0 +1,154 @@
|
||||
#include "selfdrive/camerad/cameras/camera_mipi.h"
|
||||
|
||||
#include <assert.h>
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wundefined-inline"
|
||||
#include <opencv2/core.hpp>
|
||||
#include <opencv2/highgui.hpp>
|
||||
#include <opencv2/opencv.hpp>
|
||||
#include <opencv2/videoio.hpp>
|
||||
#pragma clang diagnostic pop
|
||||
|
||||
#include "selfdrive/common/clutil.h"
|
||||
#include "selfdrive/common/swaglog.h"
|
||||
#include "selfdrive/common/timing.h"
|
||||
#include "selfdrive/common/util.h"
|
||||
|
||||
// id of the video capturing device
|
||||
const int ROAD_CAMERA_ID = getenv("ROADCAM_ID") ? atoi(getenv("ROADCAM_ID")) : 1;
|
||||
|
||||
#define FRAME_WIDTH 1164
|
||||
#define FRAME_HEIGHT 874
|
||||
#define FRAME_WIDTH_FRONT 1152
|
||||
#define FRAME_HEIGHT_FRONT 864
|
||||
|
||||
extern ExitHandler do_exit;
|
||||
|
||||
namespace {
|
||||
|
||||
CameraInfo cameras_supported[CAMERA_ID_MAX] = {
|
||||
// road facing
|
||||
[CAMERA_ID_IMX219] = {
|
||||
.frame_width = FRAME_WIDTH,
|
||||
.frame_height = FRAME_HEIGHT,
|
||||
.frame_stride = FRAME_WIDTH*3,
|
||||
.bayer = false,
|
||||
.bayer_flip = false,
|
||||
},
|
||||
};
|
||||
std::string gstreamer_pipeline(int sensor_id, int capture_width, int capture_height, int framerate, int flip_method, int display_width, int display_height) {
|
||||
return "nvarguscamerasrc sensor_mode=1 sensor-id=" + std::to_string(sensor_id) + " ! video/x-raw(memory:NVMM), width=(int)" + std::to_string(capture_width) + ", height=(int)" +
|
||||
std::to_string(capture_height) + ", format=(string)NV12, framerate=(fraction)" + std::to_string(framerate) +
|
||||
"/1 ! nvvidconv flip-method=" + std::to_string(flip_method) + " ! video/x-raw, width=(int)" + std::to_string(display_width) + ", height=(int)" +
|
||||
std::to_string(display_height) + ", format=(string)BGRx ! videoconvert ! video/x-raw, format=(string)BGR ! appsink";
|
||||
}
|
||||
void camera_open(CameraState *s, bool rear) {
|
||||
// empty
|
||||
}
|
||||
|
||||
void camera_close(CameraState *s) {
|
||||
// empty
|
||||
}
|
||||
|
||||
void camera_init(VisionIpcServer * v, CameraState *s, int camera_id, unsigned int fps, cl_device_id device_id, cl_context ctx, VisionStreamType rgb_type, VisionStreamType yuv_type) {
|
||||
assert(camera_id < std::size(cameras_supported));
|
||||
s->ci = cameras_supported[camera_id];
|
||||
assert(s->ci.frame_width != 0);
|
||||
|
||||
s->camera_num = camera_id;
|
||||
s->fps = fps;
|
||||
s->buf.init(device_id, ctx, s, v, FRAME_BUF_COUNT, rgb_type, yuv_type);
|
||||
}
|
||||
|
||||
void run_camera(CameraState *s, cv::VideoCapture &video_cap, float *ts) {
|
||||
assert(video_cap.isOpened());
|
||||
|
||||
cv::Size size(s->ci.frame_width, s->ci.frame_height);
|
||||
const cv::Mat transform = cv::Mat(3, 3, CV_32F, ts);
|
||||
uint32_t frame_id = 0;
|
||||
size_t buf_idx = 0;
|
||||
|
||||
while (!do_exit) {
|
||||
cv::Mat frame_mat, transformed_mat;
|
||||
video_cap >> frame_mat;
|
||||
cv::warpPerspective(frame_mat, transformed_mat, transform, size, cv::INTER_LINEAR, cv::BORDER_CONSTANT, 0);
|
||||
|
||||
s->buf.camera_bufs_metadata[buf_idx] = {.frame_id = frame_id};
|
||||
|
||||
auto &buf = s->buf.camera_bufs[buf_idx];
|
||||
int transformed_size = transformed_mat.total() * transformed_mat.elemSize();
|
||||
CL_CHECK(clEnqueueWriteBuffer(buf.copy_q, buf.buf_cl, CL_TRUE, 0, transformed_size, transformed_mat.data, 0, NULL, NULL));
|
||||
|
||||
s->buf.queue(buf_idx);
|
||||
|
||||
++frame_id;
|
||||
buf_idx = (buf_idx + 1) % FRAME_BUF_COUNT;
|
||||
}
|
||||
}
|
||||
|
||||
static void road_camera_thread(CameraState *s) {
|
||||
set_thread_name("mipi_road_camera_thread");
|
||||
|
||||
std::string pipeline = gstreamer_pipeline(
|
||||
1,
|
||||
1920,
|
||||
1280,
|
||||
s->fps,
|
||||
2,
|
||||
800,
|
||||
600);
|
||||
|
||||
cv::VideoCapture cap_road(pipeline, cv::CAP_GSTREAMER); // road
|
||||
|
||||
// transforms calculation see tools/webcam/warp_vis.py
|
||||
float ts[9] = {1.50330396, 0.0, -59.40969163,
|
||||
0.0, 1.50330396, 76.20704846,
|
||||
0.0, 0.0, 1.0};
|
||||
run_camera(s, cap_road, ts);
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
||||
void cameras_init(VisionIpcServer *v, MultiCameraState *s, cl_device_id device_id, cl_context ctx) {
|
||||
camera_init(v, &s->road_cam, CAMERA_ID_IMX219, 20, device_id, ctx,
|
||||
VISION_STREAM_RGB_BACK, VISION_STREAM_YUV_BACK);
|
||||
s->pm = new PubMaster({"roadCameraState", /*"driverCameraState,"*/ "thumbnail"});
|
||||
}
|
||||
|
||||
void camera_autoexposure(CameraState *s, float grey_frac) {}
|
||||
|
||||
void cameras_open(MultiCameraState *s) {
|
||||
camera_open(&s->road_cam, true);
|
||||
}
|
||||
|
||||
void cameras_close(MultiCameraState *s) {
|
||||
camera_close(&s->road_cam);
|
||||
delete s->pm;
|
||||
}
|
||||
|
||||
void process_road_camera(MultiCameraState *s, CameraState *c, int cnt) {
|
||||
const CameraBuf *b = &c->buf;
|
||||
MessageBuilder msg;
|
||||
auto framed = msg.initEvent().initRoadCameraState();
|
||||
fill_frame_data(framed, b->cur_frame_data);
|
||||
framed.setImage(kj::arrayPtr((const uint8_t *)b->cur_yuv_buf->addr, b->cur_yuv_buf->len));
|
||||
framed.setTransform(b->yuv_transform.v);
|
||||
s->pm->send("roadCameraState", msg);
|
||||
}
|
||||
|
||||
void cameras_run(MultiCameraState *s) {
|
||||
std::vector<std::thread> threads;
|
||||
threads.push_back(start_process_thread(s, &s->road_cam, process_road_camera));
|
||||
|
||||
std::thread t_rear = std::thread(road_camera_thread, &s->road_cam);
|
||||
set_thread_name("mipi_thread");
|
||||
|
||||
t_rear.join();
|
||||
|
||||
for (auto &t : threads) t.join();
|
||||
|
||||
cameras_close(s);
|
||||
}
|
||||
28
selfdrive/camerad/cameras/camera_mipi.h
Normal file
@@ -0,0 +1,28 @@
|
||||
#pragma once
|
||||
|
||||
#ifdef __APPLE__
|
||||
#include <OpenCL/cl.h>
|
||||
#else
|
||||
#include <CL/cl.h>
|
||||
#endif
|
||||
|
||||
#include "selfdrive/camerad/cameras/camera_common.h"
|
||||
|
||||
#define FRAME_BUF_COUNT 16
|
||||
|
||||
typedef struct CameraState {
|
||||
CameraInfo ci;
|
||||
int camera_num;
|
||||
int fps;
|
||||
float digital_gain;
|
||||
CameraBuf buf;
|
||||
} CameraState;
|
||||
|
||||
|
||||
typedef struct MultiCameraState {
|
||||
CameraState road_cam;
|
||||
CameraState driver_cam;
|
||||
|
||||
SubMaster *sm;
|
||||
PubMaster *pm;
|
||||
} MultiCameraState;
|
||||
@@ -27,7 +27,7 @@
|
||||
|
||||
// leeco actuator (DW9800W H-Bridge Driver IC)
|
||||
// from sniff
|
||||
const uint16_t INFINITY_DAC = 364;
|
||||
//const uint16_t INFINITY_DAC = 364;
|
||||
|
||||
extern ExitHandler do_exit;
|
||||
|
||||
@@ -48,9 +48,25 @@ CameraInfo cameras_supported[CAMERA_ID_MAX] = {
|
||||
.frame_height = 1748,
|
||||
.frame_stride = 2912,
|
||||
.bayer = true,
|
||||
.bayer_flip = 3,
|
||||
.bayer_flip = 0,
|
||||
.hdr = true
|
||||
},
|
||||
[CAMERA_ID_IMX179] = {
|
||||
.frame_width = 3280,
|
||||
.frame_height = 2464,
|
||||
.frame_stride = 4104,
|
||||
.bayer = true,
|
||||
.bayer_flip = 0,
|
||||
.hdr = false
|
||||
},
|
||||
[CAMERA_ID_S5K3P8SP] = {
|
||||
.frame_width = 2304,
|
||||
.frame_height = 1728,
|
||||
.frame_stride = 2880,
|
||||
.bayer = true,
|
||||
.bayer_flip = 1,
|
||||
.hdr = false
|
||||
},
|
||||
[CAMERA_ID_OV8865] = {
|
||||
.frame_width = 1632,
|
||||
.frame_height = 1224,
|
||||
@@ -162,6 +178,24 @@ static int ov8865_apply_exposure(CameraState *s, int gain, int integ_lines, uint
|
||||
return sensor_write_regs(s, reg_array, std::size(reg_array), MSM_CAMERA_I2C_BYTE_DATA);
|
||||
}
|
||||
|
||||
static int imx179_s5k3p8sp_apply_exposure(CameraState *s, int gain, int integ_lines, uint32_t frame_length) {
|
||||
//printf("driver camera: %d %d %d\n", gain, integ_lines, frame_length);
|
||||
struct msm_camera_i2c_reg_array reg_array[] = {
|
||||
{0x104,0x1,0},
|
||||
|
||||
// FRM_LENGTH
|
||||
{0x340, (uint16_t)(frame_length >> 8), 0}, {0x341, (uint16_t)(frame_length & 0xff), 0},
|
||||
// coarse_int_time
|
||||
{0x202, (uint16_t)(integ_lines >> 8), 0}, {0x203, (uint16_t)(integ_lines & 0xff),0},
|
||||
// global_gain
|
||||
{0x204, (uint16_t)(gain >> 8), 0}, {0x205, (uint16_t)(gain & 0xff),0},
|
||||
|
||||
// REG_HOLD
|
||||
{0x104,0x0,0},
|
||||
};
|
||||
return sensor_write_regs(s, reg_array, std::size(reg_array), MSM_CAMERA_I2C_BYTE_DATA);
|
||||
}
|
||||
|
||||
static void camera_init(VisionIpcServer *v, CameraState *s, int camera_id, int camera_num,
|
||||
uint32_t pixel_clock, uint32_t line_length_pclk,
|
||||
uint32_t max_gain, uint32_t fps, cl_device_id device_id, cl_context ctx,
|
||||
@@ -179,18 +213,41 @@ static void camera_init(VisionIpcServer *v, CameraState *s, int camera_id, int c
|
||||
s->frame_length = s->pixel_clock / line_length_pclk / s->fps;
|
||||
s->self_recover = 0;
|
||||
|
||||
s->apply_exposure = (camera_id == CAMERA_ID_IMX298) ? imx298_apply_exposure : ov8865_apply_exposure;
|
||||
if (camera_id == CAMERA_ID_IMX298) {
|
||||
s->apply_exposure = imx298_apply_exposure;
|
||||
} else if (camera_id == CAMERA_ID_S5K3P8SP || camera_id == CAMERA_ID_IMX179) {
|
||||
s->apply_exposure = imx179_s5k3p8sp_apply_exposure;
|
||||
} else {
|
||||
s->apply_exposure = ov8865_apply_exposure;
|
||||
}
|
||||
s->buf.init(device_id, ctx, s, v, FRAME_BUF_COUNT, rgb_type, yuv_type, camera_release_buffer);
|
||||
}
|
||||
|
||||
void cameras_init(VisionIpcServer *v, MultiCameraState *s, cl_device_id device_id, cl_context ctx) {
|
||||
char project_name[1024] = {0};
|
||||
property_get("ro.boot.project_name", project_name, "");
|
||||
assert(strlen(project_name) == 0);
|
||||
|
||||
// sensor is flipped in LP3
|
||||
// IMAGE_ORIENT = 3
|
||||
init_array_imx298[0].reg_data = 3;
|
||||
char product_name[1024] = {0};
|
||||
property_get("ro.product.name", product_name, "");
|
||||
|
||||
if (strlen(project_name) == 0) {
|
||||
LOGD("LePro 3 op system detected");
|
||||
s->device = DEVICE_LP3;
|
||||
|
||||
// sensor is flipped in LP3
|
||||
// IMAGE_ORIENT = 3
|
||||
init_array_imx298[0].reg_data = 3;
|
||||
cameras_supported[CAMERA_ID_IMX298].bayer_flip = 3;
|
||||
} else if (strcmp(product_name, "OnePlus3") == 0 && strcmp(project_name, "15811") != 0) {
|
||||
// no more OP3 support
|
||||
s->device = DEVICE_OP3;
|
||||
assert(false);
|
||||
} else if (strcmp(product_name, "OnePlus3") == 0 && strcmp(project_name, "15811") == 0) {
|
||||
// only OP3T support
|
||||
s->device = DEVICE_OP3T;
|
||||
} else {
|
||||
assert(false);
|
||||
}
|
||||
|
||||
// 0 = ISO 100
|
||||
// 256 = ISO 200
|
||||
@@ -212,11 +269,30 @@ void cameras_init(VisionIpcServer *v, MultiCameraState *s, cl_device_id device_i
|
||||
#endif
|
||||
device_id, ctx,
|
||||
VISION_STREAM_RGB_BACK, VISION_STREAM_YUV_BACK);
|
||||
s->road_cam.apply_exposure = imx298_apply_exposure;
|
||||
|
||||
camera_init(v, &s->driver_cam, CAMERA_ID_OV8865, 1,
|
||||
/*pixel_clock=*/72000000, /*line_length_pclk=*/1602,
|
||||
/*max_gain=*/510, 10, device_id, ctx,
|
||||
VISION_STREAM_RGB_FRONT, VISION_STREAM_YUV_FRONT);
|
||||
if (s->device == DEVICE_OP3T) {
|
||||
camera_init(v, &s->driver_cam, CAMERA_ID_S5K3P8SP, 1,
|
||||
/*pixel_clock=*/560000000, /*line_length_pclk=*/5120,
|
||||
/*max_gain=*/510, 10, device_id, ctx,
|
||||
VISION_STREAM_RGB_FRONT, VISION_STREAM_YUV_FRONT);
|
||||
s->driver_cam.apply_exposure = imx179_s5k3p8sp_apply_exposure;
|
||||
} else if (s->device == DEVICE_LP3) {
|
||||
camera_init(v, &s->driver_cam, CAMERA_ID_OV8865, 1,
|
||||
/*pixel_clock=*/72000000, /*line_length_pclk=*/1602,
|
||||
/*max_gain=*/510, 10, device_id, ctx,
|
||||
VISION_STREAM_RGB_FRONT, VISION_STREAM_YUV_FRONT);
|
||||
s->driver_cam.apply_exposure = ov8865_apply_exposure;
|
||||
} else {
|
||||
camera_init(v, &s->driver_cam, CAMERA_ID_IMX179, 1,
|
||||
/*pixel_clock=*/251200000, /*line_length_pclk=*/3440,
|
||||
/*max_gain=*/224, 20, device_id, ctx,
|
||||
VISION_STREAM_RGB_FRONT, VISION_STREAM_YUV_FRONT);
|
||||
s->driver_cam.apply_exposure = imx179_s5k3p8sp_apply_exposure;
|
||||
}
|
||||
|
||||
s->road_cam.device = s->device;
|
||||
s->driver_cam.device = s->device;
|
||||
|
||||
s->sm = new SubMaster({"driverState"});
|
||||
s->pm = new PubMaster({"roadCameraState", "driverCameraState", "thumbnail"});
|
||||
@@ -260,8 +336,10 @@ static void set_exposure(CameraState *s, float exposure_frac, float gain_frac) {
|
||||
if (gain != s->cur_gain || integ_lines != s->cur_integ_lines) {
|
||||
if (s->apply_exposure == ov8865_apply_exposure) {
|
||||
gain = 800 * gain_frac; // ISO
|
||||
err = s->apply_exposure(s, gain, integ_lines, s->frame_length);
|
||||
} else if (s->apply_exposure) {
|
||||
err = s->apply_exposure(s, gain, integ_lines, s->frame_length);
|
||||
}
|
||||
err = s->apply_exposure(s, gain, integ_lines, s->frame_length);
|
||||
if (err == 0) {
|
||||
std::lock_guard lk(s->frame_info_lock);
|
||||
s->cur_gain = gain;
|
||||
@@ -326,95 +404,310 @@ static void do_autoexposure(CameraState *s, float grey_frac) {
|
||||
}
|
||||
}
|
||||
|
||||
static void sensors_init(MultiCameraState *s) {
|
||||
msm_camera_sensor_slave_info slave_infos[2] = {
|
||||
(msm_camera_sensor_slave_info){ // road camera
|
||||
.sensor_name = "imx298",
|
||||
.eeprom_name = "sony_imx298",
|
||||
.actuator_name = "dw9800w",
|
||||
.ois_name = "",
|
||||
.flash_name = "pmic",
|
||||
.camera_id = CAMERA_0,
|
||||
.slave_addr = 32,
|
||||
.i2c_freq_mode = I2C_FAST_MODE,
|
||||
.addr_type = MSM_CAMERA_I2C_WORD_ADDR,
|
||||
.sensor_id_info = {.sensor_id_reg_addr = 22, .sensor_id = 664, .module_id = 9, .vcm_id = 6},
|
||||
.power_setting_array = {
|
||||
.power_setting_a = {
|
||||
{.seq_type = SENSOR_GPIO, .delay = 1},
|
||||
{.seq_type = SENSOR_VREG, .seq_val = 2},
|
||||
{.seq_type = SENSOR_GPIO, .seq_val = 5, .config_val = 2},
|
||||
{.seq_type = SENSOR_VREG, .seq_val = 1},
|
||||
{.seq_type = SENSOR_VREG, .seq_val = 3, .delay = 1},
|
||||
{.seq_type = SENSOR_CLK, .config_val = 24000000, .delay = 1},
|
||||
{.seq_type = SENSOR_GPIO, .config_val = 2, .delay = 10},
|
||||
},
|
||||
.size = 7,
|
||||
.power_down_setting_a = {
|
||||
{.seq_type = SENSOR_CLK, .delay = 1},
|
||||
{.seq_type = SENSOR_GPIO, .delay = 1},
|
||||
{.seq_type = SENSOR_VREG, .seq_val = 1},
|
||||
{.seq_type = SENSOR_GPIO, .seq_val = 5},
|
||||
{.seq_type = SENSOR_VREG, .seq_val = 2},
|
||||
{.seq_type = SENSOR_VREG, .seq_val = 3, .delay = 1},
|
||||
},
|
||||
.size_down = 6,
|
||||
},
|
||||
.is_init_params_valid = 0,
|
||||
.sensor_init_params = {.modes_supported = 1, .position = BACK_CAMERA_B, .sensor_mount_angle = 90},
|
||||
.output_format = MSM_SENSOR_BAYER,
|
||||
},
|
||||
(msm_camera_sensor_slave_info){ // driver camera
|
||||
.sensor_name = "ov8865_sunny",
|
||||
.eeprom_name = "ov8865_plus",
|
||||
.actuator_name = "",
|
||||
.ois_name = "",
|
||||
.flash_name = "",
|
||||
.camera_id = CAMERA_2,
|
||||
.slave_addr = 108,
|
||||
.i2c_freq_mode = I2C_FAST_MODE,
|
||||
.addr_type = MSM_CAMERA_I2C_WORD_ADDR,
|
||||
.sensor_id_info = {.sensor_id_reg_addr = 12299, .sensor_id = 34917, .module_id = 2},
|
||||
.power_setting_array = {
|
||||
.power_setting_a = {
|
||||
{.seq_type = SENSOR_GPIO, .delay = 5},
|
||||
{.seq_type = SENSOR_VREG, .seq_val = 1},
|
||||
{.seq_type = SENSOR_VREG, .seq_val = 2},
|
||||
{.seq_type = SENSOR_VREG},
|
||||
{.seq_type = SENSOR_CLK, .config_val = 24000000, .delay = 1},
|
||||
{.seq_type = SENSOR_GPIO, .config_val = 2, .delay = 1},
|
||||
},
|
||||
.size = 6,
|
||||
.power_down_setting_a = {
|
||||
{.seq_type = SENSOR_GPIO, .delay = 5},
|
||||
{.seq_type = SENSOR_CLK, .delay = 1},
|
||||
{.seq_type = SENSOR_VREG},
|
||||
{.seq_type = SENSOR_VREG, .seq_val = 1},
|
||||
{.seq_type = SENSOR_VREG, .seq_val = 2, .delay = 1},
|
||||
},
|
||||
.size_down = 5,
|
||||
},
|
||||
.is_init_params_valid = 0,
|
||||
.sensor_init_params = {.modes_supported = 1, .position = FRONT_CAMERA_B, .sensor_mount_angle = 270},
|
||||
.output_format = MSM_SENSOR_BAYER,
|
||||
}};
|
||||
static uint8_t* get_eeprom(int eeprom_fd, size_t *out_len) {
|
||||
msm_eeprom_cfg_data cfg = {.cfgtype = CFG_EEPROM_GET_CAL_DATA};
|
||||
int err = cam_ioctl(eeprom_fd, VIDIOC_MSM_EEPROM_CFG, &cfg, "get_eeprom begin");
|
||||
assert(err >= 0);
|
||||
|
||||
unique_fd sensorinit_fd = open("/dev/v4l-subdev11", O_RDWR | O_NONBLOCK);
|
||||
assert(sensorinit_fd >= 0);
|
||||
for (auto &info : slave_infos) {
|
||||
info.power_setting_array.power_setting = &info.power_setting_array.power_setting_a[0];
|
||||
info.power_setting_array.power_down_setting = &info.power_setting_array.power_down_setting_a[0];
|
||||
sensor_init_cfg_data sensor_init_cfg = {.cfgtype = CFG_SINIT_PROBE, .cfg.setting = &info};
|
||||
int err = cam_ioctl(sensorinit_fd, VIDIOC_MSM_SENSOR_INIT_CFG, &sensor_init_cfg, "sensor init cfg");
|
||||
assert(err >= 0);
|
||||
uint32_t num_bytes = cfg.cfg.get_data.num_bytes;
|
||||
assert(num_bytes > 100);
|
||||
|
||||
uint8_t* buffer = (uint8_t*)malloc(num_bytes);
|
||||
assert(buffer);
|
||||
memset(buffer, 0, num_bytes);
|
||||
|
||||
cfg.cfgtype = CFG_EEPROM_READ_CAL_DATA;
|
||||
cfg.cfg.read_data.num_bytes = num_bytes;
|
||||
cfg.cfg.read_data.dbuffer = buffer;
|
||||
err = cam_ioctl(eeprom_fd, VIDIOC_MSM_EEPROM_CFG, &cfg, "get_eeprom end");
|
||||
assert(err >= 0);
|
||||
|
||||
*out_len = num_bytes;
|
||||
return buffer;
|
||||
}
|
||||
|
||||
static void imx298_ois_calibration(int ois_fd, uint8_t* eeprom) {
|
||||
const int ois_registers[][2] = {
|
||||
// == SET_FADJ_PARAM() == (factory adjustment)
|
||||
|
||||
// Set Hall Current DAC
|
||||
{0x8230, *(uint16_t*)(eeprom+0x102)}, //_P_30_ADC_CH0 (CURDAT)
|
||||
|
||||
// Set Hall PreAmp Offset
|
||||
{0x8231, *(uint16_t*)(eeprom+0x104)}, //_P_31_ADC_CH1 (HALOFS_X)
|
||||
{0x8232, *(uint16_t*)(eeprom+0x106)}, //_P_32_ADC_CH2 (HALOFS_Y)
|
||||
|
||||
// Set Hall-X/Y PostAmp Offset
|
||||
{0x841e, *(uint16_t*)(eeprom+0x108)}, //_M_X_H_ofs
|
||||
{0x849e, *(uint16_t*)(eeprom+0x10a)}, //_M_Y_H_ofs
|
||||
|
||||
// Set Residual Offset
|
||||
{0x8239, *(uint16_t*)(eeprom+0x10c)}, //_P_39_Ch3_VAL_1 (PSTXOF)
|
||||
{0x823b, *(uint16_t*)(eeprom+0x10e)}, //_P_3B_Ch3_VAL_3 (PSTYOF)
|
||||
|
||||
// DIGITAL GYRO OFFSET
|
||||
{0x8406, *(uint16_t*)(eeprom+0x110)}, //_M_Kgx00
|
||||
{0x8486, *(uint16_t*)(eeprom+0x112)}, //_M_Kgy00
|
||||
{0x846a, *(uint16_t*)(eeprom+0x120)}, //_M_TMP_X_
|
||||
{0x846b, *(uint16_t*)(eeprom+0x122)}, //_M_TMP_Y_
|
||||
|
||||
// HALLSENSE
|
||||
// Set Hall Gain
|
||||
{0x8446, *(uint16_t*)(eeprom+0x114)}, //_M_KgxHG
|
||||
{0x84c6, *(uint16_t*)(eeprom+0x116)}, //_M_KgyHG
|
||||
// Set Cross Talk Canceller
|
||||
{0x8470, *(uint16_t*)(eeprom+0x124)}, //_M_KgxH0
|
||||
{0x8472, *(uint16_t*)(eeprom+0x126)}, //_M_KgyH0
|
||||
|
||||
// LOOPGAIN
|
||||
{0x840f, *(uint16_t*)(eeprom+0x118)}, //_M_KgxG
|
||||
{0x848f, *(uint16_t*)(eeprom+0x11a)}, //_M_KgyG
|
||||
|
||||
// Position Servo ON ( OIS OFF )
|
||||
{0x847f, 0x0c0c}, //_M_EQCTL
|
||||
};
|
||||
|
||||
struct msm_camera_i2c_seq_reg_array ois_reg_settings[std::size(ois_registers)] = {{0}};
|
||||
for (int i=0; i<std::size(ois_registers); i++) {
|
||||
ois_reg_settings[i].reg_addr = ois_registers[i][0];
|
||||
ois_reg_settings[i].reg_data[0] = ois_registers[i][1] & 0xff;
|
||||
ois_reg_settings[i].reg_data[1] = (ois_registers[i][1] >> 8) & 0xff;
|
||||
ois_reg_settings[i].reg_data_size = 2;
|
||||
}
|
||||
struct msm_camera_i2c_seq_reg_setting ois_reg_setting = {
|
||||
.reg_setting = &ois_reg_settings[0],
|
||||
.size = std::size(ois_reg_settings),
|
||||
.addr_type = MSM_CAMERA_I2C_WORD_ADDR,
|
||||
.delay = 0,
|
||||
};
|
||||
msm_ois_cfg_data cfg = {.cfgtype = CFG_OIS_I2C_WRITE_SEQ_TABLE, .cfg.settings = &ois_reg_setting};
|
||||
cam_ioctl(ois_fd, VIDIOC_MSM_OIS_CFG, &cfg, "ois reg calibration");
|
||||
}
|
||||
|
||||
static void sensors_init(MultiCameraState *s) {
|
||||
int err;
|
||||
|
||||
unique_fd sensorinit_fd;
|
||||
if (s->device == DEVICE_LP3) {
|
||||
sensorinit_fd = open("/dev/v4l-subdev11", O_RDWR | O_NONBLOCK);
|
||||
} else {
|
||||
sensorinit_fd = open("/dev/v4l-subdev12", O_RDWR | O_NONBLOCK);
|
||||
}
|
||||
assert(sensorinit_fd >= 0);
|
||||
|
||||
// init road camera sensor
|
||||
|
||||
struct msm_camera_sensor_slave_info slave_info = {0};
|
||||
if (s->device == DEVICE_LP3) {
|
||||
slave_info = (struct msm_camera_sensor_slave_info){
|
||||
.sensor_name = "imx298",
|
||||
.eeprom_name = "sony_imx298",
|
||||
.actuator_name = "dw9800w",
|
||||
.ois_name = "",
|
||||
.flash_name = "pmic",
|
||||
.camera_id = CAMERA_0,
|
||||
.slave_addr = 32,
|
||||
.i2c_freq_mode = I2C_FAST_MODE,
|
||||
.addr_type = MSM_CAMERA_I2C_WORD_ADDR,
|
||||
.sensor_id_info = {.sensor_id_reg_addr = 22, .sensor_id = 664, .module_id = 9, .vcm_id = 6},
|
||||
.power_setting_array = {
|
||||
.power_setting_a = {
|
||||
{.seq_type = SENSOR_GPIO, .delay = 1},
|
||||
{.seq_type = SENSOR_VREG, .seq_val = 2},
|
||||
{.seq_type = SENSOR_GPIO, .seq_val = 5, .config_val = 2},
|
||||
{.seq_type = SENSOR_VREG, .seq_val = 1},
|
||||
{.seq_type = SENSOR_VREG, .seq_val = 3, .delay = 1},
|
||||
{.seq_type = SENSOR_CLK, .config_val = 24000000, .delay = 1},
|
||||
{.seq_type = SENSOR_GPIO, .config_val = 2, .delay = 10},
|
||||
},
|
||||
.size = 7,
|
||||
.power_down_setting_a = {
|
||||
{.seq_type = SENSOR_CLK, .delay = 1},
|
||||
{.seq_type = SENSOR_GPIO, .delay = 1},
|
||||
{.seq_type = SENSOR_VREG, .seq_val = 1},
|
||||
{.seq_type = SENSOR_GPIO, .seq_val = 5},
|
||||
{.seq_type = SENSOR_VREG, .seq_val = 2},
|
||||
{.seq_type = SENSOR_VREG, .seq_val = 3, .delay = 1},
|
||||
},
|
||||
.size_down = 6,
|
||||
},
|
||||
.is_init_params_valid = 0,
|
||||
.sensor_init_params = {.modes_supported = 1, .position = BACK_CAMERA_B, .sensor_mount_angle = 90},
|
||||
.output_format = MSM_SENSOR_BAYER,
|
||||
};
|
||||
} else {
|
||||
slave_info = (struct msm_camera_sensor_slave_info){
|
||||
.sensor_name = "imx298",
|
||||
.eeprom_name = "sony_imx298",
|
||||
.actuator_name = "rohm_bu63165gwl",
|
||||
.ois_name = "rohm_bu63165gwl",
|
||||
.camera_id = CAMERA_0,
|
||||
.slave_addr = 52,
|
||||
.i2c_freq_mode = I2C_CUSTOM_MODE,
|
||||
.addr_type = MSM_CAMERA_I2C_WORD_ADDR,
|
||||
.sensor_id_info = {.sensor_id_reg_addr = 22, .sensor_id = 664},
|
||||
.power_setting_array = {
|
||||
.power_setting_a = {
|
||||
{.seq_type = SENSOR_GPIO, .delay = 2},
|
||||
{.seq_type = SENSOR_VREG, .seq_val = 2, .delay = 2},
|
||||
{.seq_type = SENSOR_VREG, .delay = 2},
|
||||
{.seq_type = SENSOR_VREG, .seq_val = 1, .delay = 2},
|
||||
{.seq_type = SENSOR_GPIO, .seq_val = 6, .config_val = 2},
|
||||
{.seq_type = SENSOR_VREG, .seq_val = 3, .delay = 5},
|
||||
{.seq_type = SENSOR_VREG, .seq_val = 4, .delay = 5},
|
||||
{.seq_type = SENSOR_CLK, .config_val = 24000000, .delay = 2},
|
||||
{.seq_type = SENSOR_GPIO, .config_val = 2, .delay = 2},
|
||||
},
|
||||
.size = 9,
|
||||
.power_down_setting_a = {
|
||||
{.seq_type = SENSOR_GPIO, .delay = 10},
|
||||
{.seq_type = SENSOR_CLK, .delay = 1},
|
||||
{.seq_type = SENSOR_VREG, .seq_val = 4},
|
||||
{.seq_type = SENSOR_VREG, .seq_val = 3, .delay = 1},
|
||||
{.seq_type = SENSOR_GPIO, .seq_val = 6},
|
||||
{.seq_type = SENSOR_VREG, .seq_val = 1},
|
||||
{.seq_type = SENSOR_VREG},
|
||||
{.seq_type = SENSOR_VREG, .seq_val = 2},
|
||||
},
|
||||
.size_down = 8,
|
||||
},
|
||||
.is_init_params_valid = 0,
|
||||
.sensor_init_params = {.modes_supported = 1, .position = BACK_CAMERA_B, .sensor_mount_angle = 360},
|
||||
.output_format = MSM_SENSOR_BAYER,
|
||||
};
|
||||
}
|
||||
slave_info.power_setting_array.power_setting =
|
||||
(struct msm_sensor_power_setting *)&slave_info.power_setting_array.power_setting_a[0];
|
||||
slave_info.power_setting_array.power_down_setting =
|
||||
(struct msm_sensor_power_setting *)&slave_info.power_setting_array.power_down_setting_a[0];
|
||||
sensor_init_cfg_data sensor_init_cfg = {.cfgtype = CFG_SINIT_PROBE, .cfg.setting = &slave_info};
|
||||
err = cam_ioctl(sensorinit_fd, VIDIOC_MSM_SENSOR_INIT_CFG, &sensor_init_cfg, "sensor init cfg (road)");
|
||||
assert(err >= 0);
|
||||
|
||||
struct msm_camera_sensor_slave_info slave_info2 = {0};
|
||||
if (s->device == DEVICE_LP3) {
|
||||
slave_info2 = (struct msm_camera_sensor_slave_info){
|
||||
.sensor_name = "ov8865_sunny",
|
||||
.eeprom_name = "ov8865_plus",
|
||||
.actuator_name = "",
|
||||
.ois_name = "",
|
||||
.flash_name = "",
|
||||
.camera_id = CAMERA_2,
|
||||
.slave_addr = 108,
|
||||
.i2c_freq_mode = I2C_FAST_MODE,
|
||||
.addr_type = MSM_CAMERA_I2C_WORD_ADDR,
|
||||
.sensor_id_info = {.sensor_id_reg_addr = 12299, .sensor_id = 34917, .module_id = 2},
|
||||
.power_setting_array = {
|
||||
.power_setting_a = {
|
||||
{.seq_type = SENSOR_GPIO, .delay = 5},
|
||||
{.seq_type = SENSOR_VREG, .seq_val = 1},
|
||||
{.seq_type = SENSOR_VREG, .seq_val = 2},
|
||||
{.seq_type = SENSOR_VREG},
|
||||
{.seq_type = SENSOR_CLK, .config_val = 24000000, .delay = 1},
|
||||
{.seq_type = SENSOR_GPIO, .config_val = 2, .delay = 1},
|
||||
},
|
||||
.size = 6,
|
||||
.power_down_setting_a = {
|
||||
{.seq_type = SENSOR_GPIO, .delay = 5},
|
||||
{.seq_type = SENSOR_CLK, .delay = 1},
|
||||
{.seq_type = SENSOR_VREG},
|
||||
{.seq_type = SENSOR_VREG, .seq_val = 1},
|
||||
{.seq_type = SENSOR_VREG, .seq_val = 2, .delay = 1},
|
||||
},
|
||||
.size_down = 5,
|
||||
},
|
||||
.is_init_params_valid = 0,
|
||||
.sensor_init_params = {.modes_supported = 1, .position = FRONT_CAMERA_B, .sensor_mount_angle = 270},
|
||||
.output_format = MSM_SENSOR_BAYER,
|
||||
};
|
||||
} else if (s->driver_cam.camera_id == CAMERA_ID_S5K3P8SP) {
|
||||
// init driver camera
|
||||
slave_info2 = (struct msm_camera_sensor_slave_info){
|
||||
.sensor_name = "s5k3p8sp",
|
||||
.eeprom_name = "s5k3p8sp_m24c64s",
|
||||
.actuator_name = "",
|
||||
.ois_name = "",
|
||||
.camera_id = CAMERA_1,
|
||||
.slave_addr = 32,
|
||||
.i2c_freq_mode = I2C_FAST_MODE,
|
||||
.addr_type = MSM_CAMERA_I2C_WORD_ADDR,
|
||||
.sensor_id_info = {.sensor_id = 12552},
|
||||
.power_setting_array = {
|
||||
.power_setting_a = {
|
||||
{.seq_type = SENSOR_GPIO, .delay = 1},
|
||||
{.seq_type = SENSOR_VREG, .seq_val = 2, .delay = 1},
|
||||
{.seq_type = SENSOR_VREG, .seq_val = 1, .delay = 1},
|
||||
{.seq_type = SENSOR_VREG, .delay = 1},
|
||||
{.seq_type = SENSOR_CLK, .config_val = 24000000, .delay = 1},
|
||||
{.seq_type = SENSOR_GPIO, .config_val = 2, .delay = 1},
|
||||
},
|
||||
.size = 6,
|
||||
.power_down_setting_a = {
|
||||
{.seq_type = SENSOR_CLK, .delay = 1},
|
||||
{.seq_type = SENSOR_GPIO, .delay = 1},
|
||||
{.seq_type = SENSOR_VREG, .delay = 1},
|
||||
{.seq_type = SENSOR_VREG, .seq_val = 1, .delay = 1},
|
||||
{.seq_type = SENSOR_VREG, .seq_val = 2, .delay = 1},
|
||||
},
|
||||
.size_down = 5,
|
||||
},
|
||||
.is_init_params_valid = 0,
|
||||
.sensor_init_params = {.modes_supported = 1, .position = FRONT_CAMERA_B, .sensor_mount_angle = 270},
|
||||
.output_format = MSM_SENSOR_BAYER,
|
||||
};
|
||||
} else {
|
||||
// init driver camera
|
||||
slave_info2 = (struct msm_camera_sensor_slave_info){
|
||||
.sensor_name = "imx179",
|
||||
.eeprom_name = "sony_imx179",
|
||||
.actuator_name = "",
|
||||
.ois_name = "",
|
||||
.camera_id = CAMERA_1,
|
||||
.slave_addr = 32,
|
||||
.i2c_freq_mode = I2C_FAST_MODE,
|
||||
.addr_type = MSM_CAMERA_I2C_WORD_ADDR,
|
||||
.sensor_id_info = {.sensor_id_reg_addr = 2, .sensor_id = 377, .sensor_id_mask = 4095},
|
||||
.power_setting_array = {
|
||||
.power_setting_a = {
|
||||
{.seq_type = SENSOR_VREG, .seq_val = 2},
|
||||
{.seq_type = SENSOR_VREG, .seq_val = 1},
|
||||
{.seq_type = SENSOR_VREG},
|
||||
{.seq_type = SENSOR_GPIO, .config_val = 2},
|
||||
{.seq_type = SENSOR_CLK, .config_val = 24000000},
|
||||
},
|
||||
.size = 5,
|
||||
.power_down_setting_a = {
|
||||
{.seq_type = SENSOR_CLK},
|
||||
{.seq_type = SENSOR_GPIO, .delay = 1},
|
||||
{.seq_type = SENSOR_VREG, .delay = 2},
|
||||
{.seq_type = SENSOR_VREG, .seq_val = 1},
|
||||
{.seq_type = SENSOR_VREG, .seq_val = 2},
|
||||
},
|
||||
.size_down = 5,
|
||||
},
|
||||
.is_init_params_valid = 0,
|
||||
.sensor_init_params = {.modes_supported = 1, .position = FRONT_CAMERA_B, .sensor_mount_angle = 270},
|
||||
.output_format = MSM_SENSOR_BAYER,
|
||||
};
|
||||
}
|
||||
slave_info2.power_setting_array.power_setting =
|
||||
(struct msm_sensor_power_setting *)&slave_info2.power_setting_array.power_setting_a[0];
|
||||
slave_info2.power_setting_array.power_down_setting =
|
||||
(struct msm_sensor_power_setting *)&slave_info2.power_setting_array.power_down_setting_a[0];
|
||||
sensor_init_cfg.cfgtype = CFG_SINIT_PROBE;
|
||||
sensor_init_cfg.cfg.setting = &slave_info2;
|
||||
err = cam_ioctl(sensorinit_fd, VIDIOC_MSM_SENSOR_INIT_CFG, &sensor_init_cfg, "sensor init cfg (driver)");
|
||||
assert(err >= 0);
|
||||
}
|
||||
|
||||
static void camera_open(CameraState *s, bool is_road_cam) {
|
||||
int err;
|
||||
|
||||
struct csid_cfg_data csid_cfg_data = {};
|
||||
struct v4l2_event_subscription sub = {};
|
||||
|
||||
struct msm_actuator_cfg_data actuator_cfg_data = {};
|
||||
struct msm_ois_cfg_data ois_cfg_data = {};
|
||||
|
||||
// open devices
|
||||
const char *sensor_dev;
|
||||
@@ -423,19 +716,45 @@ static void camera_open(CameraState *s, bool is_road_cam) {
|
||||
assert(s->csid_fd >= 0);
|
||||
s->csiphy_fd = open("/dev/v4l-subdev0", O_RDWR | O_NONBLOCK);
|
||||
assert(s->csiphy_fd >= 0);
|
||||
sensor_dev = "/dev/v4l-subdev17";
|
||||
s->isp_fd = open("/dev/v4l-subdev13", O_RDWR | O_NONBLOCK);
|
||||
if (s->device == DEVICE_LP3) {
|
||||
sensor_dev = "/dev/v4l-subdev17";
|
||||
} else {
|
||||
sensor_dev = "/dev/v4l-subdev18";
|
||||
}
|
||||
if (s->device == DEVICE_LP3) {
|
||||
s->isp_fd = open("/dev/v4l-subdev13", O_RDWR | O_NONBLOCK);
|
||||
} else {
|
||||
s->isp_fd = open("/dev/v4l-subdev14", O_RDWR | O_NONBLOCK);
|
||||
}
|
||||
assert(s->isp_fd >= 0);
|
||||
s->eeprom_fd = open("/dev/v4l-subdev8", O_RDWR | O_NONBLOCK);
|
||||
assert(s->eeprom_fd >= 0);
|
||||
|
||||
s->actuator_fd = open("/dev/v4l-subdev7", O_RDWR | O_NONBLOCK);
|
||||
assert(s->actuator_fd >= 0);
|
||||
|
||||
if (s->device != DEVICE_LP3) {
|
||||
s->ois_fd = open("/dev/v4l-subdev10", O_RDWR | O_NONBLOCK);
|
||||
assert(s->ois_fd >= 0);
|
||||
}
|
||||
} else {
|
||||
s->csid_fd = open("/dev/v4l-subdev5", O_RDWR | O_NONBLOCK);
|
||||
assert(s->csid_fd >= 0);
|
||||
s->csiphy_fd = open("/dev/v4l-subdev2", O_RDWR | O_NONBLOCK);
|
||||
assert(s->csiphy_fd >= 0);
|
||||
sensor_dev = "/dev/v4l-subdev18";
|
||||
s->isp_fd = open("/dev/v4l-subdev14", O_RDWR | O_NONBLOCK);
|
||||
if (s->device == DEVICE_LP3) {
|
||||
sensor_dev = "/dev/v4l-subdev18";
|
||||
} else {
|
||||
sensor_dev = "/dev/v4l-subdev19";
|
||||
}
|
||||
if (s->device == DEVICE_LP3) {
|
||||
s->isp_fd = open("/dev/v4l-subdev14", O_RDWR | O_NONBLOCK);
|
||||
} else {
|
||||
s->isp_fd = open("/dev/v4l-subdev15", O_RDWR | O_NONBLOCK);
|
||||
}
|
||||
assert(s->isp_fd >= 0);
|
||||
s->eeprom_fd = open("/dev/v4l-subdev9", O_RDWR | O_NONBLOCK);
|
||||
assert(s->eeprom_fd >= 0);
|
||||
}
|
||||
|
||||
// wait for sensor device
|
||||
@@ -454,7 +773,7 @@ static void camera_open(CameraState *s, bool is_road_cam) {
|
||||
struct msm_camera_csi_lane_params csi_lane_params = {0};
|
||||
csi_lane_params.csi_lane_mask = 0x1f;
|
||||
csiphy_cfg_data csiphy_cfg_data = { .cfg.csi_lane_params = &csi_lane_params, .cfgtype = CSIPHY_RELEASE};
|
||||
int err = cam_ioctl(s->csiphy_fd, VIDIOC_MSM_CSIPHY_IO_CFG, &csiphy_cfg_data, "release csiphy");
|
||||
err = cam_ioctl(s->csiphy_fd, VIDIOC_MSM_CSIPHY_IO_CFG, &csiphy_cfg_data, "release csiphy");
|
||||
|
||||
// CSID: release csid
|
||||
csid_cfg_data.cfgtype = CSID_RELEASE;
|
||||
@@ -468,6 +787,12 @@ static void camera_open(CameraState *s, bool is_road_cam) {
|
||||
actuator_cfg_data.cfgtype = CFG_ACTUATOR_POWERDOWN;
|
||||
cam_ioctl(s->actuator_fd, VIDIOC_MSM_ACTUATOR_CFG, &actuator_cfg_data, "actuator powerdown");
|
||||
|
||||
if (is_road_cam && s->device != DEVICE_LP3) {
|
||||
// ois powerdown
|
||||
ois_cfg_data.cfgtype = CFG_OIS_POWERDOWN;
|
||||
err = cam_ioctl(s->ois_fd, VIDIOC_MSM_OIS_CFG, &ois_cfg_data, "ois powerdown");
|
||||
}
|
||||
|
||||
// reset isp
|
||||
// struct msm_vfe_axi_halt_cmd halt_cmd = {
|
||||
// .stop_camif = 1,
|
||||
@@ -493,6 +818,8 @@ static void camera_open(CameraState *s, bool is_road_cam) {
|
||||
// **** GO GO GO ****
|
||||
LOG("******************** GO GO GO ************************");
|
||||
|
||||
s->eeprom = get_eeprom(s->eeprom_fd, &s->eeprom_size);
|
||||
|
||||
// CSID: init csid
|
||||
csid_cfg_data.cfgtype = CSID_INIT;
|
||||
cam_ioctl(s->csid_fd, VIDIOC_MSM_CSID_IO_CFG, &csid_cfg_data, "init csid");
|
||||
@@ -522,6 +849,10 @@ static void camera_open(CameraState *s, bool is_road_cam) {
|
||||
// SENSOR: send i2c configuration
|
||||
if (s->camera_id == CAMERA_ID_IMX298) {
|
||||
err = sensor_write_regs(s, init_array_imx298, std::size(init_array_imx298), MSM_CAMERA_I2C_BYTE_DATA);
|
||||
} else if (s->camera_id == CAMERA_ID_S5K3P8SP) {
|
||||
err = sensor_write_regs(s, init_array_s5k3p8sp, std::size(init_array_s5k3p8sp), MSM_CAMERA_I2C_WORD_DATA);
|
||||
} else if (s->camera_id == CAMERA_ID_IMX179) {
|
||||
err = sensor_write_regs(s, init_array_imx179, std::size(init_array_imx179), MSM_CAMERA_I2C_BYTE_DATA);
|
||||
} else if (s->camera_id == CAMERA_ID_OV8865) {
|
||||
err = sensor_write_regs(s, init_array_ov8865, std::size(init_array_ov8865), MSM_CAMERA_I2C_BYTE_DATA);
|
||||
} else {
|
||||
@@ -537,56 +868,137 @@ static void camera_open(CameraState *s, bool is_road_cam) {
|
||||
actuator_cfg_data.cfgtype = CFG_ACTUATOR_INIT;
|
||||
cam_ioctl(s->actuator_fd, VIDIOC_MSM_ACTUATOR_CFG, &actuator_cfg_data, "actuator init");
|
||||
|
||||
struct msm_actuator_reg_params_t actuator_reg_params[] = {
|
||||
{
|
||||
.reg_write_type = MSM_ACTUATOR_WRITE_DAC,
|
||||
// MSB here at address 3
|
||||
.reg_addr = 3,
|
||||
.data_type = 9,
|
||||
.addr_type = 4,
|
||||
},
|
||||
};
|
||||
// no OIS in LP3
|
||||
if (s->device != DEVICE_LP3) {
|
||||
// see sony_imx298_eeprom_format_afdata in libmmcamera_sony_imx298_eeprom.so
|
||||
const float far_margin = -0.28;
|
||||
uint16_t macro_dac = *(uint16_t*)(s->eeprom + 0x24);
|
||||
s->infinity_dac = *(uint16_t*)(s->eeprom + 0x26);
|
||||
LOG("macro_dac: %d infinity_dac: %d", macro_dac, s->infinity_dac);
|
||||
|
||||
struct reg_settings_t actuator_init_settings[] = {
|
||||
{ .reg_addr=2, .addr_type=MSM_ACTUATOR_BYTE_ADDR, .reg_data=1, .data_type = MSM_ACTUATOR_BYTE_DATA, .i2c_operation = MSM_ACT_WRITE, .delay = 0 }, // PD = power down
|
||||
{ .reg_addr=2, .addr_type=MSM_ACTUATOR_BYTE_ADDR, .reg_data=0, .data_type = MSM_ACTUATOR_BYTE_DATA, .i2c_operation = MSM_ACT_WRITE, .delay = 2 }, // 0 = power up
|
||||
{ .reg_addr=2, .addr_type=MSM_ACTUATOR_BYTE_ADDR, .reg_data=2, .data_type = MSM_ACTUATOR_BYTE_DATA, .i2c_operation = MSM_ACT_WRITE, .delay = 2 }, // RING = SAC mode
|
||||
{ .reg_addr=6, .addr_type=MSM_ACTUATOR_BYTE_ADDR, .reg_data=64, .data_type = MSM_ACTUATOR_BYTE_DATA, .i2c_operation = MSM_ACT_WRITE, .delay = 0 }, // 0x40 = SAC3 mode
|
||||
{ .reg_addr=7, .addr_type=MSM_ACTUATOR_BYTE_ADDR, .reg_data=113, .data_type = MSM_ACTUATOR_BYTE_DATA, .i2c_operation = MSM_ACT_WRITE, .delay = 0 },
|
||||
// 0x71 = DIV1 | DIV0 | SACT0 -- Tvib x 1/4 (quarter)
|
||||
// SAC Tvib = 6.3 ms + 0.1 ms = 6.4 ms / 4 = 1.6 ms
|
||||
// LSC 1-step = 252 + 1*4 = 256 ms / 4 = 64 ms
|
||||
};
|
||||
int dac_range = macro_dac - s->infinity_dac;
|
||||
s->infinity_dac += far_margin * dac_range;
|
||||
|
||||
struct region_params_t region_params[] = {
|
||||
{.step_bound = {238, 0,}, .code_per_step = 235, .qvalue = 128}
|
||||
};
|
||||
LOG(" -> macro_dac: %d infinity_dac: %d", macro_dac, s->infinity_dac);
|
||||
|
||||
actuator_cfg_data.cfgtype = CFG_SET_ACTUATOR_INFO;
|
||||
actuator_cfg_data.cfg.set_info = (struct msm_actuator_set_info_t){
|
||||
.actuator_params = {
|
||||
.act_type = ACTUATOR_BIVCM,
|
||||
.reg_tbl_size = 1,
|
||||
.data_size = 10,
|
||||
.init_setting_size = 5,
|
||||
.i2c_freq_mode = I2C_STANDARD_MODE,
|
||||
.i2c_addr = 24,
|
||||
.i2c_addr_type = MSM_ACTUATOR_BYTE_ADDR,
|
||||
.i2c_data_type = MSM_ACTUATOR_WORD_DATA,
|
||||
.reg_tbl_params = &actuator_reg_params[0],
|
||||
.init_settings = &actuator_init_settings[0],
|
||||
.park_lens = {.damping_step = 1023, .damping_delay = 14000, .hw_params = 11, .max_step = 20},
|
||||
},
|
||||
.af_tuning_params = {
|
||||
.initial_code = INFINITY_DAC,
|
||||
.pwd_step = 0,
|
||||
.region_size = 1,
|
||||
.total_steps = 238,
|
||||
.region_params = ®ion_params[0],
|
||||
},
|
||||
};
|
||||
struct msm_actuator_reg_params_t actuator_reg_params[] = {
|
||||
{.reg_write_type = MSM_ACTUATOR_WRITE_DAC, .reg_addr = 240, .data_type = 10, .addr_type = 4},
|
||||
{.reg_write_type = MSM_ACTUATOR_WRITE_DAC, .reg_addr = 241, .data_type = 10, .addr_type = 4},
|
||||
{.reg_write_type = MSM_ACTUATOR_WRITE_DAC, .reg_addr = 242, .data_type = 10, .addr_type = 4},
|
||||
{.reg_write_type = MSM_ACTUATOR_WRITE_DAC, .reg_addr = 243, .data_type = 10, .addr_type = 4},
|
||||
};
|
||||
|
||||
cam_ioctl(s->actuator_fd, VIDIOC_MSM_ACTUATOR_CFG, &actuator_cfg_data, "actuator set info");
|
||||
//...
|
||||
struct reg_settings_t actuator_init_settings[1] = {0};
|
||||
|
||||
struct region_params_t region_params[] = {
|
||||
{.step_bound = {512, 0,}, .code_per_step = 118, .qvalue = 128}
|
||||
};
|
||||
|
||||
actuator_cfg_data.cfgtype = CFG_SET_ACTUATOR_INFO;
|
||||
actuator_cfg_data.cfg.set_info = (struct msm_actuator_set_info_t){
|
||||
.actuator_params = {
|
||||
.act_type = ACTUATOR_VCM,
|
||||
.reg_tbl_size = 4,
|
||||
.data_size = 10,
|
||||
.init_setting_size = 0,
|
||||
.i2c_freq_mode = I2C_CUSTOM_MODE,
|
||||
.i2c_addr = 28,
|
||||
.i2c_addr_type = MSM_ACTUATOR_BYTE_ADDR,
|
||||
.i2c_data_type = MSM_ACTUATOR_BYTE_DATA,
|
||||
.reg_tbl_params = &actuator_reg_params[0],
|
||||
.init_settings = &actuator_init_settings[0],
|
||||
.park_lens = {
|
||||
.damping_step = 1023,
|
||||
.damping_delay = 15000,
|
||||
.hw_params = 58404,
|
||||
.max_step = 20,
|
||||
}
|
||||
},
|
||||
.af_tuning_params = {
|
||||
.initial_code = (int16_t)s->infinity_dac,
|
||||
.pwd_step = 0,
|
||||
.region_size = 1,
|
||||
.total_steps = 512,
|
||||
.region_params = ®ion_params[0],
|
||||
},
|
||||
};
|
||||
err = cam_ioctl(s->actuator_fd, VIDIOC_MSM_ACTUATOR_CFG, &actuator_cfg_data, "actuator set info");
|
||||
|
||||
// power up ois
|
||||
ois_cfg_data.cfgtype = CFG_OIS_POWERUP;
|
||||
err = cam_ioctl(s->ois_fd, VIDIOC_MSM_OIS_CFG, &ois_cfg_data, "ois powerup");
|
||||
|
||||
ois_cfg_data.cfgtype = CFG_OIS_INIT;
|
||||
err = cam_ioctl(s->ois_fd, VIDIOC_MSM_OIS_CFG, &ois_cfg_data, "ois init");
|
||||
|
||||
ois_cfg_data.cfgtype = CFG_OIS_CONTROL;
|
||||
ois_cfg_data.cfg.set_info.ois_params = (struct msm_ois_params_t){
|
||||
// .data_size = 26312,
|
||||
.setting_size = 120,
|
||||
.i2c_addr = 28,
|
||||
.i2c_freq_mode = I2C_CUSTOM_MODE,
|
||||
// .i2c_addr_type = wtf
|
||||
// .i2c_data_type = wtf
|
||||
.settings = &ois_init_settings[0],
|
||||
};
|
||||
cam_ioctl(s->ois_fd, VIDIOC_MSM_OIS_CFG, &ois_cfg_data, "ois init settings");
|
||||
} else {
|
||||
// leeco actuator (DW9800W H-Bridge Driver IC)
|
||||
// from sniff
|
||||
s->infinity_dac = 364;
|
||||
|
||||
struct msm_actuator_reg_params_t actuator_reg_params[] = {
|
||||
{
|
||||
.reg_write_type = MSM_ACTUATOR_WRITE_DAC,
|
||||
// MSB here at address 3
|
||||
.reg_addr = 3,
|
||||
.data_type = 9,
|
||||
.addr_type = 4,
|
||||
},
|
||||
};
|
||||
|
||||
struct reg_settings_t actuator_init_settings[] = {
|
||||
{ .reg_addr=2, .addr_type=MSM_ACTUATOR_BYTE_ADDR, .reg_data=1, .data_type = MSM_ACTUATOR_BYTE_DATA, .i2c_operation = MSM_ACT_WRITE, .delay = 0 }, // PD = power down
|
||||
{ .reg_addr=2, .addr_type=MSM_ACTUATOR_BYTE_ADDR, .reg_data=0, .data_type = MSM_ACTUATOR_BYTE_DATA, .i2c_operation = MSM_ACT_WRITE, .delay = 2 }, // 0 = power up
|
||||
{ .reg_addr=2, .addr_type=MSM_ACTUATOR_BYTE_ADDR, .reg_data=2, .data_type = MSM_ACTUATOR_BYTE_DATA, .i2c_operation = MSM_ACT_WRITE, .delay = 2 }, // RING = SAC mode
|
||||
{ .reg_addr=6, .addr_type=MSM_ACTUATOR_BYTE_ADDR, .reg_data=64, .data_type = MSM_ACTUATOR_BYTE_DATA, .i2c_operation = MSM_ACT_WRITE, .delay = 0 }, // 0x40 = SAC3 mode
|
||||
{ .reg_addr=7, .addr_type=MSM_ACTUATOR_BYTE_ADDR, .reg_data=113, .data_type = MSM_ACTUATOR_BYTE_DATA, .i2c_operation = MSM_ACT_WRITE, .delay = 0 },
|
||||
// 0x71 = DIV1 | DIV0 | SACT0 -- Tvib x 1/4 (quarter)
|
||||
// SAC Tvib = 6.3 ms + 0.1 ms = 6.4 ms / 4 = 1.6 ms
|
||||
// LSC 1-step = 252 + 1*4 = 256 ms / 4 = 64 ms
|
||||
};
|
||||
|
||||
struct region_params_t region_params[] = {
|
||||
{.step_bound = {238, 0,}, .code_per_step = 235, .qvalue = 128}
|
||||
};
|
||||
|
||||
actuator_cfg_data.cfgtype = CFG_SET_ACTUATOR_INFO;
|
||||
actuator_cfg_data.cfg.set_info = (struct msm_actuator_set_info_t){
|
||||
.actuator_params = {
|
||||
.act_type = ACTUATOR_BIVCM,
|
||||
.reg_tbl_size = 1,
|
||||
.data_size = 10,
|
||||
.init_setting_size = 5,
|
||||
.i2c_freq_mode = I2C_STANDARD_MODE,
|
||||
.i2c_addr = 24,
|
||||
.i2c_addr_type = MSM_ACTUATOR_BYTE_ADDR,
|
||||
.i2c_data_type = MSM_ACTUATOR_WORD_DATA,
|
||||
.reg_tbl_params = &actuator_reg_params[0],
|
||||
.init_settings = &actuator_init_settings[0],
|
||||
.park_lens = {.damping_step = 1023, .damping_delay = 14000, .hw_params = 11, .max_step = 20},
|
||||
},
|
||||
.af_tuning_params = {
|
||||
.initial_code = (int16_t)s->infinity_dac,
|
||||
.pwd_step = 0,
|
||||
.region_size = 1,
|
||||
.total_steps = 238,
|
||||
.region_params = ®ion_params[0],
|
||||
},
|
||||
};
|
||||
|
||||
cam_ioctl(s->actuator_fd, VIDIOC_MSM_ACTUATOR_CFG, &actuator_cfg_data, "actuator set info");
|
||||
}
|
||||
}
|
||||
|
||||
if (s->camera_id == CAMERA_ID_IMX298) {
|
||||
@@ -598,6 +1010,10 @@ static void camera_open(CameraState *s, bool is_road_cam) {
|
||||
struct msm_camera_csiphy_params csiphy_params = {};
|
||||
if (s->camera_id == CAMERA_ID_IMX298) {
|
||||
csiphy_params = {.lane_cnt = 4, .settle_cnt = 14, .lane_mask = 0x1f, .csid_core = 0};
|
||||
} else if (s->camera_id == CAMERA_ID_S5K3P8SP) {
|
||||
csiphy_params = {.lane_cnt = 4, .settle_cnt = 24, .lane_mask = 0x1f, .csid_core = 0};
|
||||
} else if (s->camera_id == CAMERA_ID_IMX179) {
|
||||
csiphy_params = {.lane_cnt = 4, .settle_cnt = 11, .lane_mask = 0x1f, .csid_core = 2};
|
||||
} else if (s->camera_id == CAMERA_ID_OV8865) {
|
||||
// guess!
|
||||
csiphy_params = {.lane_cnt = 4, .settle_cnt = 24, .lane_mask = 0x1f, .csid_core = 2};
|
||||
@@ -728,24 +1144,47 @@ static void camera_open(CameraState *s, bool is_road_cam) {
|
||||
cam_ioctl(s->isp_fd, VIDIOC_MSM_ISP_CFG_STREAM, &s->stream_cfg, "isp start stream");
|
||||
}
|
||||
|
||||
static struct damping_params_t actuator_ringing_params = {
|
||||
.damping_step = 1023,
|
||||
.damping_delay = 15000,
|
||||
.hw_params = 0x0000e422,
|
||||
};
|
||||
|
||||
static void road_camera_start(CameraState *s) {
|
||||
struct msm_actuator_cfg_data actuator_cfg_data = {0};
|
||||
|
||||
set_exposure(s, 1.0, 1.0);
|
||||
int inf_step;
|
||||
|
||||
int err = sensor_write_regs(s, start_reg_array, std::size(start_reg_array), MSM_CAMERA_I2C_BYTE_DATA);
|
||||
LOG("sensor start regs: %d", err);
|
||||
|
||||
int inf_step = 512 - INFINITY_DAC;
|
||||
if (s->device != DEVICE_LP3) {
|
||||
imx298_ois_calibration(s->ois_fd, s->eeprom);
|
||||
inf_step = 332 - s->infinity_dac;
|
||||
|
||||
// initial guess
|
||||
s->lens_true_pos = 400;
|
||||
// initial guess
|
||||
s->lens_true_pos = 300;
|
||||
} else {
|
||||
// default is OP3, this is for LeEco
|
||||
actuator_ringing_params.damping_step = 1023;
|
||||
actuator_ringing_params.damping_delay = 20000;
|
||||
actuator_ringing_params.hw_params = 13;
|
||||
|
||||
// focus on infinity assuming phone is perpendicular
|
||||
inf_step = 512 - s->infinity_dac;
|
||||
|
||||
// initial guess
|
||||
s->lens_true_pos = 400;
|
||||
}
|
||||
|
||||
// reset lens position
|
||||
struct msm_actuator_cfg_data actuator_cfg_data = {};
|
||||
memset(&actuator_cfg_data, 0, sizeof(actuator_cfg_data));
|
||||
actuator_cfg_data.cfgtype = CFG_SET_POSITION;
|
||||
actuator_cfg_data.cfg.setpos = (struct msm_actuator_set_position_t){
|
||||
.number_of_steps = 1,
|
||||
.hw_params = (uint32_t)7,
|
||||
.pos = {INFINITY_DAC, 0},
|
||||
.hw_params = (uint32_t)((s->device != DEVICE_LP3) ? 0x0000e424 : 7),
|
||||
.pos = {s->infinity_dac, 0},
|
||||
.delay = {0,}
|
||||
};
|
||||
cam_ioctl(s->actuator_fd, VIDIOC_MSM_ACTUATOR_CFG, &actuator_cfg_data, "actuator set pos");
|
||||
@@ -773,16 +1212,11 @@ static void road_camera_start(CameraState *s) {
|
||||
}
|
||||
|
||||
void actuator_move(CameraState *s, uint16_t target) {
|
||||
int step = target - s->cur_lens_pos;
|
||||
// LP3 moves only on even positions. TODO: use proper sensor params
|
||||
|
||||
// focus on infinity assuming phone is perpendicular
|
||||
static struct damping_params_t actuator_ringing_params = {
|
||||
.damping_step = 1023,
|
||||
.damping_delay = 20000,
|
||||
.hw_params = 13,
|
||||
};
|
||||
|
||||
int step = (target - s->cur_lens_pos) / 2;
|
||||
if (s->device == DEVICE_LP3) {
|
||||
step /= 2;
|
||||
}
|
||||
|
||||
int dest_step_pos = s->cur_step_pos + step;
|
||||
dest_step_pos = std::clamp(dest_step_pos, 0, 255);
|
||||
@@ -867,6 +1301,9 @@ static std::optional<float> get_accel_z(SubMaster *sm) {
|
||||
}
|
||||
|
||||
static void do_autofocus(CameraState *s, SubMaster *sm) {
|
||||
const int dac_down = s->device == DEVICE_LP3 ? LP3_AF_DAC_DOWN : OP3T_AF_DAC_DOWN;
|
||||
const int dac_up = s->device == DEVICE_LP3 ? LP3_AF_DAC_UP : OP3T_AF_DAC_UP;
|
||||
|
||||
float lens_true_pos = s->lens_true_pos.load();
|
||||
if (!isnan(s->focus_err)) {
|
||||
// learn lens_true_pos
|
||||
@@ -879,8 +1316,8 @@ static void do_autofocus(CameraState *s, SubMaster *sm) {
|
||||
}
|
||||
const float sag = (s->last_sag_acc_z / 9.8) * 128;
|
||||
// stay off the walls
|
||||
lens_true_pos = std::clamp(lens_true_pos, float(LP3_AF_DAC_DOWN), float(LP3_AF_DAC_UP));
|
||||
int target = std::clamp(lens_true_pos - sag, float(LP3_AF_DAC_DOWN), float(LP3_AF_DAC_UP));
|
||||
lens_true_pos = std::clamp(lens_true_pos, float(dac_down), float(dac_up));
|
||||
int target = std::clamp(lens_true_pos - sag, float(dac_down), float(dac_up));
|
||||
s->lens_true_pos.store(lens_true_pos);
|
||||
|
||||
/*char debug[4096];
|
||||
@@ -935,7 +1372,11 @@ void cameras_open(MultiCameraState *s) {
|
||||
s->v4l_fd = open("/dev/video0", O_RDWR | O_NONBLOCK);
|
||||
assert(s->v4l_fd >= 0);
|
||||
|
||||
s->ispif_fd = open("/dev/v4l-subdev15", O_RDWR | O_NONBLOCK);
|
||||
if (s->device == DEVICE_LP3) {
|
||||
s->ispif_fd = open("/dev/v4l-subdev15", O_RDWR | O_NONBLOCK);
|
||||
} else {
|
||||
s->ispif_fd = open("/dev/v4l-subdev16", O_RDWR | O_NONBLOCK);
|
||||
}
|
||||
assert(s->ispif_fd >= 0);
|
||||
|
||||
// ISPIF: stop
|
||||
@@ -996,6 +1437,7 @@ static void camera_close(CameraState *s) {
|
||||
cam_ioctl(s->isp_fd, VIDIOC_MSM_ISP_RELEASE_STREAM, &stream_release, "isp release stream");
|
||||
}
|
||||
}
|
||||
free(s->eeprom);
|
||||
}
|
||||
|
||||
const char* get_isp_event_name(uint32_t type) {
|
||||
@@ -1066,19 +1508,24 @@ static void ops_thread(MultiCameraState *s) {
|
||||
}
|
||||
|
||||
static void setup_self_recover(CameraState *c, const uint16_t *lapres, size_t lapres_size) {
|
||||
const int dac_down = c->device == DEVICE_LP3 ? LP3_AF_DAC_DOWN : OP3T_AF_DAC_DOWN;
|
||||
const int dac_up = c->device == DEVICE_LP3 ? LP3_AF_DAC_UP : OP3T_AF_DAC_UP;
|
||||
const int dac_m = c->device == DEVICE_LP3 ? LP3_AF_DAC_M : OP3T_AF_DAC_M;
|
||||
const int dac_3sig = c->device == DEVICE_LP3 ? LP3_AF_DAC_3SIG : OP3T_AF_DAC_3SIG;
|
||||
|
||||
const float lens_true_pos = c->lens_true_pos.load();
|
||||
int self_recover = c->self_recover.load();
|
||||
if (self_recover < 2 && (lens_true_pos < (LP3_AF_DAC_DOWN + 1) || lens_true_pos > (LP3_AF_DAC_UP - 1)) && is_blur(lapres, lapres_size)) {
|
||||
if (self_recover < 2 && (lens_true_pos < (dac_down + 1) || lens_true_pos > (dac_up - 1)) && is_blur(lapres, lapres_size)) {
|
||||
// truly stuck, needs help
|
||||
if (--self_recover < -FOCUS_RECOVER_PATIENCE) {
|
||||
LOGD("road camera bad state detected. attempting recovery from %.1f, recover state is %d", lens_true_pos, self_recover);
|
||||
// parity determined by which end is stuck at
|
||||
self_recover = FOCUS_RECOVER_STEPS + (lens_true_pos < LP3_AF_DAC_M ? 1 : 0);
|
||||
self_recover = FOCUS_RECOVER_STEPS + (lens_true_pos < dac_m ? 1 : 0);
|
||||
}
|
||||
} else if (self_recover < 2 && (lens_true_pos < (LP3_AF_DAC_M - LP3_AF_DAC_3SIG) || lens_true_pos > (LP3_AF_DAC_M + LP3_AF_DAC_3SIG))) {
|
||||
} else if (self_recover < 2 && (lens_true_pos < (dac_m - dac_3sig) || lens_true_pos > (dac_m + dac_3sig))) {
|
||||
// in suboptimal position with high prob, but may still recover by itself
|
||||
if (--self_recover < -(FOCUS_RECOVER_PATIENCE * 3)) {
|
||||
self_recover = FOCUS_RECOVER_STEPS / 2 + (lens_true_pos < LP3_AF_DAC_M ? 1 : 0);
|
||||
self_recover = FOCUS_RECOVER_STEPS / 2 + (lens_true_pos < dac_m ? 1 : 0);
|
||||
}
|
||||
} else if (self_recover < 0) {
|
||||
self_recover += 1; // reset if fine
|
||||
|
||||
@@ -18,12 +18,20 @@
|
||||
#define FRAME_BUF_COUNT 4
|
||||
#define METADATA_BUF_COUNT 4
|
||||
|
||||
#define DEVICE_OP3 0
|
||||
#define DEVICE_OP3T 1
|
||||
#define DEVICE_LP3 2
|
||||
|
||||
#define NUM_FOCUS 8
|
||||
|
||||
#define LP3_AF_DAC_DOWN 366
|
||||
#define LP3_AF_DAC_UP 634
|
||||
#define LP3_AF_DAC_M 440
|
||||
#define LP3_AF_DAC_3SIG 52
|
||||
#define OP3T_AF_DAC_DOWN 224
|
||||
#define OP3T_AF_DAC_UP 456
|
||||
#define OP3T_AF_DAC_M 300
|
||||
#define OP3T_AF_DAC_3SIG 96
|
||||
|
||||
#define FOCUS_RECOVER_PATIENCE 50 // 2.5 seconds of complete blur
|
||||
#define FOCUS_RECOVER_STEPS 240 // 6 seconds
|
||||
@@ -42,6 +50,7 @@ typedef struct StreamState {
|
||||
typedef struct CameraState {
|
||||
int camera_num;
|
||||
int camera_id;
|
||||
int device;
|
||||
|
||||
int fps;
|
||||
CameraInfo ci;
|
||||
@@ -74,7 +83,7 @@ typedef struct CameraState {
|
||||
camera_apply_exposure_func apply_exposure;
|
||||
|
||||
// rear camera only,used for focusing
|
||||
unique_fd actuator_fd;
|
||||
unique_fd actuator_fd, ois_fd, eeprom_fd;
|
||||
std::atomic<float> focus_err;
|
||||
std::atomic<float> last_sag_acc_z;
|
||||
std::atomic<float> lens_true_pos;
|
||||
@@ -83,10 +92,15 @@ typedef struct CameraState {
|
||||
uint16_t cur_lens_pos;
|
||||
int16_t focus[NUM_FOCUS];
|
||||
uint8_t confidence[NUM_FOCUS];
|
||||
uint16_t infinity_dac;
|
||||
size_t eeprom_size;
|
||||
uint8_t *eeprom;
|
||||
} CameraState;
|
||||
|
||||
|
||||
typedef struct MultiCameraState {
|
||||
int device;
|
||||
|
||||
unique_fd ispif_fd;
|
||||
unique_fd msmcfg_fd;
|
||||
unique_fd v4l_fd;
|
||||
|
||||
@@ -21,6 +21,8 @@
|
||||
#include "selfdrive/camerad/cameras/camera_qcom2.h"
|
||||
#elif WEBCAM
|
||||
#include "selfdrive/camerad/cameras/camera_webcam.h"
|
||||
#elif MIPI
|
||||
#include "selfdrive/camerad/cameras/camera_mipi.h"
|
||||
#else
|
||||
#include "selfdrive/camerad/cameras/camera_frame_stream.h"
|
||||
#endif
|
||||
@@ -47,7 +49,7 @@ int main(int argc, char *argv[]) {
|
||||
set_realtime_priority(53);
|
||||
if (Hardware::EON()) {
|
||||
set_core_affinity(2);
|
||||
} else if (Hardware::TICI()) {
|
||||
} else if (Hardware::TICI() || Hardware::JETSON()) {
|
||||
set_core_affinity(6);
|
||||
}
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ from typing import List
|
||||
import cereal.messaging as messaging
|
||||
from common.params import Params
|
||||
from common.realtime import DT_MDL
|
||||
from common.transformations.camera import eon_f_frame_size, eon_d_frame_size, tici_f_frame_size
|
||||
from common.transformations.camera import eon_f_frame_size, eon_d_frame_size, leon_d_frame_size, tici_f_frame_size
|
||||
from selfdrive.hardware import TICI
|
||||
from selfdrive.controls.lib.alertmanager import set_offroad_alert
|
||||
from selfdrive.manager.process_config import managed_processes
|
||||
@@ -39,7 +39,7 @@ def rois_in_focus(lapres: List[float]) -> float:
|
||||
|
||||
|
||||
def get_snapshots(frame="roadCameraState", front_frame="driverCameraState", focus_perc_threshold=0.):
|
||||
frame_sizes = [eon_f_frame_size, eon_d_frame_size, tici_f_frame_size]
|
||||
frame_sizes = [eon_f_frame_size, eon_d_frame_size, leon_d_frame_size, tici_f_frame_size]
|
||||
frame_sizes = {w * h: (w, h) for (w, h) in frame_sizes}
|
||||
|
||||
sockets = []
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import os
|
||||
from common.params import Params
|
||||
from common.params import Params, put_nonblocking
|
||||
from common.basedir import BASEDIR
|
||||
from selfdrive.version import comma_remote, tested_branch
|
||||
from selfdrive.car.fingerprints import eliminate_incompatible_cars, all_legacy_fingerprint_cars
|
||||
@@ -14,7 +14,7 @@ EventName = car.CarEvent.EventName
|
||||
|
||||
|
||||
def get_startup_event(car_recognized, controller_available, fuzzy_fingerprint, fw_seen):
|
||||
if comma_remote and tested_branch:
|
||||
if True:
|
||||
event = EventName.startup
|
||||
else:
|
||||
event = EventName.startupMaster
|
||||
@@ -87,7 +87,8 @@ def only_toyota_left(candidate_cars):
|
||||
|
||||
# **** for use live only ****
|
||||
def fingerprint(logcan, sendcan):
|
||||
fixed_fingerprint = os.environ.get('FINGERPRINT', "")
|
||||
dp_car_assigned = Params().get('dp_car_assigned', encoding='utf8')
|
||||
fixed_fingerprint = os.environ.get('FINGERPRINT', "" if dp_car_assigned is None else dp_car_assigned)
|
||||
skip_fw_query = os.environ.get('SKIP_FW_QUERY', False)
|
||||
|
||||
if not fixed_fingerprint and not skip_fw_query:
|
||||
@@ -182,11 +183,26 @@ def get_car(logcan, sendcan):
|
||||
cloudlog.warning("car doesn't match any fingerprints: %r", fingerprints)
|
||||
candidate = "mock"
|
||||
|
||||
CarInterface, CarController, CarState = interfaces[candidate]
|
||||
car_params = CarInterface.get_params(candidate, fingerprints, car_fw)
|
||||
car_params.carVin = vin
|
||||
car_params.carFw = car_fw
|
||||
car_params.fingerprintSource = source
|
||||
car_params.fuzzyFingerprint = not exact_match
|
||||
try:
|
||||
CarInterface, CarController, CarState = interfaces[candidate]
|
||||
car_params = CarInterface.get_params(candidate, fingerprints, car_fw)
|
||||
candidate_changed = Params().get('dp_last_candidate', encoding='utf8') != candidate
|
||||
put_nonblocking("dp_sr_stock", str(car_params.steerRatio))
|
||||
# update steering_ratio init val
|
||||
dp_sr_custom = Params().get("dp_sr_custom", encoding='utf8')
|
||||
if dp_sr_custom == '' or candidate_changed or (dp_sr_custom != '' and float(dp_sr_custom) <= 9.99):
|
||||
put_nonblocking("dp_sr_custom", str(car_params.steerRatio))
|
||||
# update last candidate
|
||||
put_nonblocking('dp_last_candidate', candidate)
|
||||
car_params.carVin = vin
|
||||
car_params.carFw = car_fw
|
||||
car_params.fingerprintSource = source
|
||||
car_params.fuzzyFingerprint = not exact_match
|
||||
|
||||
return CarInterface(car_params, CarController, CarState), car_params
|
||||
return CarInterface(car_params, CarController, CarState), car_params
|
||||
except KeyError:
|
||||
put_nonblocking("dp_last_candidate", '')
|
||||
put_nonblocking("dp_car_assigned", '')
|
||||
put_nonblocking("dp_sr_custom", '9.99')
|
||||
put_nonblocking("dp_sr_stock", '9.99')
|
||||
return None, None
|
||||
|
||||
@@ -3,9 +3,14 @@ from selfdrive.car.chrysler.chryslercan import create_lkas_hud, create_lkas_comm
|
||||
create_wheel_buttons
|
||||
from selfdrive.car.chrysler.values import CAR, CarControllerParams
|
||||
from opendbc.can.packer import CANPacker
|
||||
from common.dp_common import common_controller_ctrl
|
||||
|
||||
class CarController():
|
||||
def __init__(self, dbc_name, CP, VM):
|
||||
# dp
|
||||
self.last_blinker_on = False
|
||||
self.blinker_end_frame = 0.
|
||||
|
||||
self.apply_steer_last = 0
|
||||
self.ccframe = 0
|
||||
self.prev_frame = -1
|
||||
@@ -16,7 +21,7 @@ class CarController():
|
||||
|
||||
self.packer = CANPacker(dbc_name)
|
||||
|
||||
def update(self, enabled, CS, actuators, pcm_cancel_cmd, hud_alert):
|
||||
def update(self, enabled, CS, actuators, pcm_cancel_cmd, hud_alert, dragonconf):
|
||||
# this seems needed to avoid steering faults and to force the sync with the EPS counter
|
||||
frame = CS.lkas_counter
|
||||
if self.prev_frame == frame:
|
||||
@@ -40,6 +45,18 @@ class CarController():
|
||||
if not lkas_active:
|
||||
apply_steer = 0
|
||||
|
||||
# dp
|
||||
blinker_on = CS.out.leftBlinker or CS.out.rightBlinker
|
||||
if not enabled:
|
||||
self.blinker_end_frame = 0
|
||||
if self.last_blinker_on and not blinker_on:
|
||||
self.blinker_end_frame = frame + dragonconf.dpSignalOffDelay
|
||||
apply_steer = common_controller_ctrl(enabled,
|
||||
dragonconf,
|
||||
blinker_on or frame < self.blinker_end_frame,
|
||||
apply_steer, CS.out.vEgo)
|
||||
self.last_blinker_on = blinker_on
|
||||
|
||||
self.apply_steer_last = apply_steer
|
||||
|
||||
can_sends = []
|
||||
|
||||
@@ -3,7 +3,7 @@ from cereal import car
|
||||
from selfdrive.car.chrysler.values import CAR
|
||||
from selfdrive.car import STD_CARGO_KG, scale_rot_inertia, scale_tire_stiffness, gen_empty_fingerprint
|
||||
from selfdrive.car.interfaces import CarInterfaceBase
|
||||
|
||||
from common.dp_common import common_interface_atl, common_interface_get_params_lqr
|
||||
|
||||
class CarInterface(CarInterfaceBase):
|
||||
@staticmethod
|
||||
@@ -15,6 +15,7 @@ class CarInterface(CarInterfaceBase):
|
||||
ret = CarInterfaceBase.get_std_params(candidate, fingerprint)
|
||||
ret.carName = "chrysler"
|
||||
ret.safetyModel = car.CarParams.SafetyModel.chrysler
|
||||
ret.lateralTuning.init('pid')
|
||||
|
||||
# Chrysler port is a community feature, since we don't own one to test
|
||||
ret.communityFeature = True
|
||||
@@ -51,15 +52,21 @@ class CarInterface(CarInterfaceBase):
|
||||
|
||||
ret.enableBsm = 720 in fingerprint[0]
|
||||
|
||||
# dp
|
||||
ret = common_interface_get_params_lqr(ret)
|
||||
|
||||
return ret
|
||||
|
||||
# returns a car.CarState
|
||||
def update(self, c, can_strings):
|
||||
def update(self, c, can_strings, dragonconf):
|
||||
# ******************* do can recv *******************
|
||||
self.cp.update_strings(can_strings)
|
||||
self.cp_cam.update_strings(can_strings)
|
||||
|
||||
ret = self.CS.update(self.cp, self.cp_cam)
|
||||
# dp
|
||||
self.dragonconf = dragonconf
|
||||
ret.cruiseState.enabled = common_interface_atl(ret, dragonconf.dpAtl)
|
||||
|
||||
ret.canValid = self.cp.can_valid and self.cp_cam.can_valid
|
||||
|
||||
@@ -87,6 +94,6 @@ class CarInterface(CarInterfaceBase):
|
||||
if (self.CS.frame == -1):
|
||||
return [] # if we haven't seen a frame 220, then do not update.
|
||||
|
||||
can_sends = self.CC.update(c.enabled, self.CS, c.actuators, c.cruiseControl.cancel, c.hudControl.visualAlert)
|
||||
can_sends = self.CC.update(c.enabled, self.CS, c.actuators, c.cruiseControl.cancel, c.hudControl.visualAlert, self.dragonconf)
|
||||
|
||||
return can_sends
|
||||
|
||||
@@ -3,6 +3,7 @@ from cereal import car
|
||||
from selfdrive.car import make_can_msg
|
||||
from selfdrive.car.ford.fordcan import create_steer_command, create_lkas_ui, spam_cancel_button
|
||||
from opendbc.can.packer import CANPacker
|
||||
from common.dp_common import common_controller_ctrl
|
||||
|
||||
VisualAlert = car.CarControl.HUDControl.VisualAlert
|
||||
|
||||
@@ -11,6 +12,10 @@ TOGGLE_DEBUG = False
|
||||
|
||||
class CarController():
|
||||
def __init__(self, dbc_name, CP, VM):
|
||||
# dp
|
||||
self.last_blinker_on = False
|
||||
self.blinker_end_frame = 0.
|
||||
|
||||
self.packer = CANPacker(dbc_name)
|
||||
self.enabled_last = False
|
||||
self.main_on_last = False
|
||||
@@ -19,13 +24,25 @@ class CarController():
|
||||
self.steer_alert_last = False
|
||||
self.lkas_action = 0
|
||||
|
||||
def update(self, enabled, CS, frame, actuators, visual_alert, pcm_cancel):
|
||||
def update(self, enabled, CS, frame, actuators, visual_alert, pcm_cancel, dragonconf):
|
||||
|
||||
can_sends = []
|
||||
steer_alert = visual_alert in [VisualAlert.steerRequired, VisualAlert.ldw]
|
||||
|
||||
apply_steer = actuators.steer
|
||||
|
||||
# dp
|
||||
blinker_on = CS.out.leftBlinker or CS.out.rightBlinker
|
||||
if not enabled:
|
||||
self.blinker_end_frame = 0
|
||||
if self.last_blinker_on and not blinker_on:
|
||||
self.blinker_end_frame = frame + dragonconf.dpSignalOffDelay
|
||||
apply_steer = common_controller_ctrl(enabled,
|
||||
dragonconf,
|
||||
blinker_on or frame < self.blinker_end_frame,
|
||||
apply_steer, CS.out.vEgo)
|
||||
self.last_blinker_on = blinker_on
|
||||
|
||||
if pcm_cancel:
|
||||
#print "CANCELING!!!!"
|
||||
can_sends.append(spam_cancel_button(self.packer))
|
||||
|
||||
@@ -8,6 +8,9 @@ from selfdrive.car.ford.values import DBC
|
||||
WHEEL_RADIUS = 0.33
|
||||
|
||||
class CarState(CarStateBase):
|
||||
def __init__(self, CP):
|
||||
super().__init__(CP)
|
||||
|
||||
def update(self, cp):
|
||||
ret = car.CarState.new_message()
|
||||
ret.wheelSpeeds.rr = cp.vl["WheelSpeed_CG1"]["WhlRr_W_Meas"] * WHEEL_RADIUS
|
||||
|
||||
@@ -4,6 +4,7 @@ from selfdrive.config import Conversions as CV
|
||||
from selfdrive.car.ford.values import MAX_ANGLE
|
||||
from selfdrive.car import STD_CARGO_KG, scale_rot_inertia, scale_tire_stiffness, gen_empty_fingerprint
|
||||
from selfdrive.car.interfaces import CarInterfaceBase
|
||||
from common.dp_common import common_interface_atl, common_interface_get_params_lqr
|
||||
|
||||
|
||||
class CarInterface(CarInterfaceBase):
|
||||
@@ -16,6 +17,7 @@ class CarInterface(CarInterfaceBase):
|
||||
def get_params(candidate, fingerprint=gen_empty_fingerprint(), car_fw=None):
|
||||
ret = CarInterfaceBase.get_std_params(candidate, fingerprint)
|
||||
ret.carName = "ford"
|
||||
ret.lateralTuning.init('pid')
|
||||
ret.safetyModel = car.CarParams.SafetyModel.ford
|
||||
ret.dashcamOnly = True
|
||||
|
||||
@@ -42,15 +44,20 @@ class CarInterface(CarInterfaceBase):
|
||||
|
||||
ret.steerControlType = car.CarParams.SteerControlType.angle
|
||||
|
||||
# dp
|
||||
ret = common_interface_get_params_lqr(ret)
|
||||
|
||||
return ret
|
||||
|
||||
# returns a car.CarState
|
||||
def update(self, c, can_strings):
|
||||
def update(self, c, can_strings, dragonconf):
|
||||
# ******************* do can recv *******************
|
||||
self.cp.update_strings(can_strings)
|
||||
|
||||
ret = self.CS.update(self.cp)
|
||||
|
||||
# dp
|
||||
self.dragonconf = dragonconf
|
||||
ret.cruiseState.enabled = common_interface_atl(ret, dragonconf.dpAtl)
|
||||
ret.canValid = self.cp.can_valid
|
||||
|
||||
# events
|
||||
@@ -69,7 +76,7 @@ class CarInterface(CarInterfaceBase):
|
||||
def apply(self, c):
|
||||
|
||||
can_sends = self.CC.update(c.enabled, self.CS, self.frame, c.actuators,
|
||||
c.hudControl.visualAlert, c.cruiseControl.cancel)
|
||||
c.hudControl.visualAlert, c.cruiseControl.cancel, self.dragonconf)
|
||||
|
||||
self.frame += 1
|
||||
return can_sends
|
||||
|
||||
@@ -6,12 +6,17 @@ from selfdrive.car import apply_std_steer_torque_limits
|
||||
from selfdrive.car.gm import gmcan
|
||||
from selfdrive.car.gm.values import DBC, CanBus, CarControllerParams
|
||||
from opendbc.can.packer import CANPacker
|
||||
from common.dp_common import common_controller_ctrl
|
||||
|
||||
VisualAlert = car.CarControl.HUDControl.VisualAlert
|
||||
|
||||
|
||||
class CarController():
|
||||
def __init__(self, dbc_name, CP, VM):
|
||||
# dp
|
||||
self.last_blinker_on = False
|
||||
self.blinker_end_frame = 0.
|
||||
|
||||
self.start_time = 0.
|
||||
self.apply_steer_last = 0
|
||||
self.lka_icon_status_last = (False, False)
|
||||
@@ -24,7 +29,7 @@ class CarController():
|
||||
self.packer_ch = CANPacker(DBC[CP.carFingerprint]['chassis'])
|
||||
|
||||
def update(self, enabled, CS, frame, actuators,
|
||||
hud_v_cruise, hud_show_lanes, hud_show_car, hud_alert):
|
||||
hud_v_cruise, hud_show_lanes, hud_show_car, hud_alert, dragonconf):
|
||||
|
||||
P = self.params
|
||||
|
||||
@@ -41,6 +46,18 @@ class CarController():
|
||||
else:
|
||||
apply_steer = 0
|
||||
|
||||
# dp
|
||||
blinker_on = CS.out.leftBlinker or CS.out.rightBlinker
|
||||
if not enabled:
|
||||
self.blinker_end_frame = 0
|
||||
if self.last_blinker_on and not blinker_on:
|
||||
self.blinker_end_frame = frame + dragonconf.dpSignalOffDelay
|
||||
apply_steer = common_controller_ctrl(enabled,
|
||||
dragonconf,
|
||||
blinker_on or frame < self.blinker_end_frame,
|
||||
apply_steer, CS.out.vEgo)
|
||||
self.last_blinker_on = blinker_on
|
||||
|
||||
self.apply_steer_last = apply_steer
|
||||
idx = (frame // P.STEER_STEP) % 4
|
||||
|
||||
|
||||
@@ -5,6 +5,7 @@ from selfdrive.car.gm.values import CAR, CruiseButtons, \
|
||||
AccState
|
||||
from selfdrive.car import STD_CARGO_KG, scale_rot_inertia, scale_tire_stiffness, gen_empty_fingerprint
|
||||
from selfdrive.car.interfaces import CarInterfaceBase
|
||||
from common.dp_common import common_interface_atl, common_interface_get_params_lqr
|
||||
|
||||
ButtonType = car.CarState.ButtonEvent.Type
|
||||
EventName = car.CarEvent.EventName
|
||||
@@ -19,6 +20,8 @@ class CarInterface(CarInterfaceBase):
|
||||
def get_params(candidate, fingerprint=gen_empty_fingerprint(), car_fw=None):
|
||||
ret = CarInterfaceBase.get_std_params(candidate, fingerprint)
|
||||
ret.carName = "gm"
|
||||
# dp
|
||||
ret.lateralTuning.init('pid')
|
||||
ret.safetyModel = car.CarParams.SafetyModel.gm
|
||||
ret.pcmCruise = False # stock cruise control is kept off
|
||||
|
||||
@@ -110,14 +113,19 @@ class CarInterface(CarInterfaceBase):
|
||||
ret.steerLimitTimer = 0.4
|
||||
ret.radarTimeStep = 0.0667 # GM radar runs at 15Hz instead of standard 20Hz
|
||||
|
||||
# dp
|
||||
ret = common_interface_get_params_lqr(ret)
|
||||
|
||||
return ret
|
||||
|
||||
# returns a car.CarState
|
||||
def update(self, c, can_strings):
|
||||
def update(self, c, can_strings, dragonconf):
|
||||
self.cp.update_strings(can_strings)
|
||||
|
||||
ret = self.CS.update(self.cp)
|
||||
|
||||
# dp
|
||||
self.dragonconf = dragonconf
|
||||
ret.cruiseState.enabled = common_interface_atl(ret, dragonconf.dpAtl)
|
||||
ret.canValid = self.cp.can_valid
|
||||
ret.steeringRateLimited = self.CC.steer_rate_limited if self.CC is not None else False
|
||||
|
||||
@@ -186,7 +194,7 @@ class CarInterface(CarInterfaceBase):
|
||||
can_sends = self.CC.update(enabled, self.CS, self.frame,
|
||||
c.actuators,
|
||||
hud_v_cruise, c.hudControl.lanesVisible,
|
||||
c.hudControl.leadVisible, c.hudControl.visualAlert)
|
||||
c.hudControl.leadVisible, c.hudControl.visualAlert, self.dragonconf)
|
||||
|
||||
self.frame += 1
|
||||
return can_sends
|
||||
|
||||
@@ -7,6 +7,7 @@ from selfdrive.car import create_gas_command
|
||||
from selfdrive.car.honda import hondacan
|
||||
from selfdrive.car.honda.values import CruiseButtons, CAR, VISUAL_HUD, HONDA_BOSCH, CarControllerParams
|
||||
from opendbc.can.packer import CANPacker
|
||||
from common.dp_common import common_controller_ctrl
|
||||
|
||||
VisualAlert = car.CarControl.HUDControl.VisualAlert
|
||||
|
||||
@@ -73,11 +74,33 @@ def process_hud_alert(hud_alert):
|
||||
|
||||
HUDData = namedtuple("HUDData",
|
||||
["pcm_accel", "v_cruise", "car",
|
||||
"lanes", "fcw", "acc_alert", "steer_required"])
|
||||
"lanes", "fcw", "acc_alert", "steer_required", "dashed_lanes"])
|
||||
|
||||
|
||||
class CarController():
|
||||
def rough_speed(self, lead_distance):
|
||||
if self.prev_lead_distance != lead_distance:
|
||||
self.lead_distance_counter_prev = self.lead_distance_counter
|
||||
self.rough_lead_speed += 0.3334 * (
|
||||
(lead_distance - self.prev_lead_distance) / self.lead_distance_counter_prev - self.rough_lead_speed)
|
||||
self.lead_distance_counter = 0.0
|
||||
elif self.lead_distance_counter >= self.lead_distance_counter_prev:
|
||||
self.rough_lead_speed = (self.lead_distance_counter * self.rough_lead_speed) / (self.lead_distance_counter + 1.0)
|
||||
self.lead_distance_counter += 1.0
|
||||
self.prev_lead_distance = lead_distance
|
||||
return self.rough_lead_speed
|
||||
|
||||
|
||||
def __init__(self, dbc_name, CP, VM):
|
||||
# dp
|
||||
self.last_blinker_on = False
|
||||
self.blinker_end_frame = 0.
|
||||
self.prev_lead_distance = 0.0
|
||||
self.stopped_lead_distance = 0.0
|
||||
self.lead_distance_counter = 1
|
||||
self.lead_distance_counter_prev = 1
|
||||
self.rough_lead_speed = 0.0
|
||||
|
||||
self.braking = False
|
||||
self.brake_steady = 0.
|
||||
self.brake_last = 0.
|
||||
@@ -90,7 +113,7 @@ class CarController():
|
||||
|
||||
def update(self, enabled, CS, frame, actuators,
|
||||
pcm_speed, pcm_override, pcm_cancel_cmd, pcm_accel,
|
||||
hud_v_cruise, hud_show_lanes, hud_show_car, hud_alert):
|
||||
hud_v_cruise, hud_show_lanes, dragonconf, hud_show_car, hud_alert):
|
||||
|
||||
P = self.params
|
||||
|
||||
@@ -110,7 +133,7 @@ class CarController():
|
||||
self.brake_last = rate_limit(brake, self.brake_last, -2., DT_CTRL)
|
||||
|
||||
# vehicle hud display, wait for one update from 10Hz 0x304 msg
|
||||
if hud_show_lanes:
|
||||
if hud_show_lanes and CS.lkMode:
|
||||
hud_lanes = 1
|
||||
else:
|
||||
hud_lanes = 0
|
||||
@@ -126,14 +149,14 @@ class CarController():
|
||||
fcw_display, steer_required, acc_alert = process_hud_alert(hud_alert)
|
||||
|
||||
hud = HUDData(int(pcm_accel), int(round(hud_v_cruise)), hud_car,
|
||||
hud_lanes, fcw_display, acc_alert, steer_required)
|
||||
hud_lanes, fcw_display, acc_alert, steer_required, CS.lkMode)
|
||||
|
||||
# **** process the car messages ****
|
||||
|
||||
# steer torque is converted back to CAN reference (positive when steering right)
|
||||
apply_steer = int(interp(-actuators.steer * P.STEER_MAX, P.STEER_LOOKUP_BP, P.STEER_LOOKUP_V))
|
||||
|
||||
lkas_active = enabled and not CS.steer_not_allowed
|
||||
lkas_active = enabled and not CS.steer_not_allowed and CS.lkMode
|
||||
|
||||
# Send CAN commands.
|
||||
can_sends = []
|
||||
@@ -143,13 +166,25 @@ class CarController():
|
||||
if (frame % 10) == 0:
|
||||
can_sends.append((0x18DAB0F1, 0, b"\x02\x3E\x80\x00\x00\x00\x00\x00", 1))
|
||||
|
||||
# dp
|
||||
blinker_on = CS.out.leftBlinker or CS.out.rightBlinker
|
||||
if not enabled:
|
||||
self.blinker_end_frame = 0
|
||||
if self.last_blinker_on and not blinker_on:
|
||||
self.blinker_end_frame = frame + dragonconf.dpSignalOffDelay
|
||||
apply_steer = common_controller_ctrl(enabled,
|
||||
dragonconf,
|
||||
blinker_on or frame < self.blinker_end_frame,
|
||||
apply_steer, CS.out.vEgo)
|
||||
self.last_blinker_on = blinker_on
|
||||
|
||||
# Send steering command.
|
||||
idx = frame % 4
|
||||
can_sends.append(hondacan.create_steering_control(self.packer, apply_steer,
|
||||
lkas_active, CS.CP.carFingerprint, idx, CS.CP.openpilotLongitudinalControl))
|
||||
|
||||
# Send dashboard UI commands.
|
||||
if (frame % 10) == 0:
|
||||
if not dragonconf.dpAtl and (frame % 10) == 0:
|
||||
idx = (frame//10) % 4
|
||||
can_sends.extend(hondacan.create_ui_commands(self.packer, pcm_speed, hud, CS.CP.carFingerprint, CS.is_metric, idx, CS.CP.openpilotLongitudinalControl, CS.stock_hud))
|
||||
|
||||
@@ -157,18 +192,35 @@ class CarController():
|
||||
if (frame % 2) == 0:
|
||||
idx = frame // 2
|
||||
can_sends.append(hondacan.create_bosch_supplemental_1(self.packer, CS.CP.carFingerprint, idx))
|
||||
if dragonconf.dpAtl:
|
||||
pass
|
||||
# If using stock ACC, spam cancel command to kill gas when OP disengages.
|
||||
if pcm_cancel_cmd:
|
||||
elif not dragonconf.dpAllowGas and pcm_cancel_cmd:
|
||||
can_sends.append(hondacan.spam_buttons_command(self.packer, CruiseButtons.CANCEL, idx, CS.CP.carFingerprint))
|
||||
elif CS.out.cruiseState.standstill:
|
||||
can_sends.append(hondacan.spam_buttons_command(self.packer, CruiseButtons.RES_ACCEL, idx, CS.CP.carFingerprint))
|
||||
if CS.CP.carFingerprint in (CAR.ACCORD, CAR.ACCORDH, CAR.INSIGHT):
|
||||
rough_lead_speed = self.rough_speed(CS.lead_distance)
|
||||
if CS.lead_distance > (self.stopped_lead_distance + 15.0) or rough_lead_speed > 0.1:
|
||||
self.stopped_lead_distance = 0.0
|
||||
can_sends.append(
|
||||
hondacan.spam_buttons_command(self.packer, CruiseButtons.RES_ACCEL, idx, CS.CP.carFingerprint))
|
||||
elif CS.CP.carFingerprint in (CAR.CIVIC_BOSCH, CAR.CRV_HYBRID):
|
||||
if CS.hud_lead == 1:
|
||||
can_sends.append(hondacan.spam_buttons_command(self.packer, CruiseButtons.RES_ACCEL, idx, CS.CP.carFingerprint))
|
||||
else:
|
||||
can_sends.append(hondacan.spam_buttons_command(self.packer, CruiseButtons.RES_ACCEL, idx, CS.CP.carFingerprint))
|
||||
else:
|
||||
self.stopped_lead_distance = CS.lead_distance
|
||||
self.prev_lead_distance = CS.lead_distance
|
||||
|
||||
else:
|
||||
# Send gas and brake commands.
|
||||
if (frame % 2) == 0:
|
||||
idx = frame // 2
|
||||
ts = frame * DT_CTRL
|
||||
if CS.CP.carFingerprint in HONDA_BOSCH:
|
||||
if dragonconf.dpAtl:
|
||||
pass
|
||||
elif CS.CP.carFingerprint in HONDA_BOSCH:
|
||||
accel = actuators.gas - actuators.brake
|
||||
|
||||
# TODO: pass in LoC.long_control_state and use that to decide starting/stoppping
|
||||
|
||||
@@ -50,6 +50,7 @@ def get_can_signals(CP, gearbox_msg="GEARBOX"):
|
||||
("PEDAL_GAS", "POWERTRAIN_DATA", 0),
|
||||
("CRUISE_SETTING", "SCM_BUTTONS", 0),
|
||||
("ACC_STATUS", "POWERTRAIN_DATA", 0),
|
||||
("HUD_LEAD", "ACC_HUD", 0),
|
||||
]
|
||||
|
||||
checks = [
|
||||
@@ -118,12 +119,14 @@ def get_can_signals(CP, gearbox_msg="GEARBOX"):
|
||||
checks += [("CRUISE_PARAMS", 10)]
|
||||
else:
|
||||
checks += [("CRUISE_PARAMS", 50)]
|
||||
|
||||
if CP.carFingerprint in (CAR.ACCORD, CAR.ACCORDH, CAR.CIVIC_BOSCH, CAR.CIVIC_BOSCH_DIESEL, CAR.CRV_HYBRID, CAR.INSIGHT, CAR.ACURA_RDX_3G):
|
||||
if CP.carFingerprint in (CAR.ACCORD, CAR.ACCORDH, CAR.INSIGHT):
|
||||
signals += [("DRIVERS_DOOR_OPEN", "SCM_FEEDBACK", 1),
|
||||
("LEAD_DISTANCE", "RADAR_HUD", 0)]
|
||||
elif CP.carFingerprint in (CAR.CIVIC_BOSCH, CAR.CIVIC_BOSCH_DIESEL, CAR.CRV_HYBRID, CAR.ACURA_RDX_3G):
|
||||
signals += [("DRIVERS_DOOR_OPEN", "SCM_FEEDBACK", 1)]
|
||||
elif CP.carFingerprint == CAR.ODYSSEY_CHN:
|
||||
signals += [("DRIVERS_DOOR_OPEN", "SCM_BUTTONS", 1)]
|
||||
elif CP.carFingerprint == CAR.HRV:
|
||||
elif CP.carFingerprint in [CAR.HRV, CAR.JADE]:
|
||||
signals += [("DRIVERS_DOOR_OPEN", "SCM_BUTTONS", 1),
|
||||
("WHEELS_MOVING", "STANDSTILL", 1)]
|
||||
else:
|
||||
@@ -162,7 +165,7 @@ def get_can_signals(CP, gearbox_msg="GEARBOX"):
|
||||
checks += [
|
||||
("GAS_PEDAL_2", 100),
|
||||
]
|
||||
elif CP.carFingerprint == CAR.HRV:
|
||||
elif CP.carFingerprint in [CAR.HRV, CAR.JADE]:
|
||||
signals += [("CAR_GAS", "GAS_PEDAL", 0),
|
||||
("MAIN_ON", "SCM_BUTTONS", 0),
|
||||
("BRAKE_HOLD_ACTIVE", "VSA_STATUS", 0)]
|
||||
@@ -217,6 +220,11 @@ class CarState(CarStateBase):
|
||||
self.cruise_setting = 0
|
||||
self.v_cruise_pcm_prev = 0
|
||||
|
||||
#dp
|
||||
self.lkMode = True
|
||||
self.hud_lead = 0
|
||||
self.lead_distance = 0.
|
||||
|
||||
def update(self, cp, cp_cam, cp_body):
|
||||
ret = car.CarState.new_message()
|
||||
|
||||
@@ -230,13 +238,17 @@ class CarState(CarStateBase):
|
||||
|
||||
# ******************* parse out can *******************
|
||||
# TODO: find wheels moving bit in dbc
|
||||
if self.CP.carFingerprint in (CAR.ACCORD, CAR.ACCORDH, CAR.CIVIC_BOSCH, CAR.CIVIC_BOSCH_DIESEL, CAR.CRV_HYBRID, CAR.INSIGHT, CAR.ACURA_RDX_3G):
|
||||
if self.CP.carFingerprint in (CAR.ACCORD, CAR.ACCORDH, CAR.INSIGHT):
|
||||
ret.standstill = cp.vl["ENGINE_DATA"]["XMISSION_SPEED"] < 0.1
|
||||
ret.doorOpen = bool(cp.vl["SCM_FEEDBACK"]["DRIVERS_DOOR_OPEN"])
|
||||
self.lead_distance = cp.vl["RADAR_HUD"]["LEAD_DISTANCE"]
|
||||
elif self.CP.carFingerprint in (CAR.CIVIC_BOSCH, CAR.CIVIC_BOSCH_DIESEL, CAR.CRV_HYBRID, CAR.ACURA_RDX_3G):
|
||||
ret.standstill = cp.vl["ENGINE_DATA"]["XMISSION_SPEED"] < 0.1
|
||||
ret.doorOpen = bool(cp.vl["SCM_FEEDBACK"]["DRIVERS_DOOR_OPEN"])
|
||||
elif self.CP.carFingerprint == CAR.ODYSSEY_CHN:
|
||||
ret.standstill = cp.vl["ENGINE_DATA"]["XMISSION_SPEED"] < 0.1
|
||||
ret.doorOpen = bool(cp.vl["SCM_BUTTONS"]["DRIVERS_DOOR_OPEN"])
|
||||
elif self.CP.carFingerprint == CAR.HRV:
|
||||
elif self.CP.carFingerprint in [CAR.HRV, CAR.JADE]:
|
||||
ret.doorOpen = bool(cp.vl["SCM_BUTTONS"]["DRIVERS_DOOR_OPEN"])
|
||||
else:
|
||||
ret.standstill = not cp.vl["STANDSTILL"]["WHEELS_MOVING"]
|
||||
@@ -272,6 +284,14 @@ class CarState(CarStateBase):
|
||||
ret.steeringAngleDeg = cp.vl["STEERING_SENSORS"]["STEER_ANGLE"]
|
||||
ret.steeringRateDeg = cp.vl["STEERING_SENSORS"]["STEER_ANGLE_RATE"]
|
||||
|
||||
# dp - when user presses LKAS button on steering wheel
|
||||
if self.cruise_setting == 1:
|
||||
if cp.vl["SCM_BUTTONS"]["CRUISE_SETTING"] == 0:
|
||||
if self.lkMode:
|
||||
self.lkMode = False
|
||||
else:
|
||||
self.lkMode = True
|
||||
|
||||
self.cruise_setting = cp.vl["SCM_BUTTONS"]["CRUISE_SETTING"]
|
||||
self.cruise_buttons = cp.vl["SCM_BUTTONS"]["CRUISE_BUTTONS"]
|
||||
|
||||
@@ -295,7 +315,7 @@ class CarState(CarStateBase):
|
||||
|
||||
self.pedal_gas = cp.vl["POWERTRAIN_DATA"]["PEDAL_GAS"]
|
||||
# crv doesn't include cruise control
|
||||
if self.CP.carFingerprint in (CAR.CRV, CAR.CRV_EU, CAR.HRV, CAR.ODYSSEY, CAR.ACURA_RDX, CAR.RIDGELINE, CAR.PILOT_2019, CAR.ODYSSEY_CHN):
|
||||
if self.CP.carFingerprint in (CAR.CRV, CAR.CRV_EU, CAR.HRV, CAR.ODYSSEY, CAR.ACURA_RDX, CAR.RIDGELINE, CAR.PILOT_2019, CAR.ODYSSEY_CHN, CAR.JADE):
|
||||
ret.gas = self.pedal_gas / 256.
|
||||
else:
|
||||
ret.gas = cp.vl["GAS_PEDAL_2"]["CAR_GAS"] / 256.
|
||||
@@ -342,13 +362,19 @@ class CarState(CarStateBase):
|
||||
ret.cruiseState.enabled = cp.vl["POWERTRAIN_DATA"]["ACC_STATUS"] != 0
|
||||
ret.cruiseState.available = bool(main_on)
|
||||
|
||||
# afa feature
|
||||
self.hud_lead = cp.vl["ACC_HUD"]['HUD_LEAD']
|
||||
|
||||
# Gets rid of Pedal Grinding noise when brake is pressed at slow speeds for some models
|
||||
if self.CP.carFingerprint in (CAR.PILOT, CAR.PILOT_2019, CAR.RIDGELINE):
|
||||
if ret.brake > 0.05:
|
||||
ret.brakePressed = True
|
||||
|
||||
# TODO: discover the CAN msg that has the imperial unit bit for all other cars
|
||||
self.is_metric = not cp.vl["HUD_SETTING"]["IMPERIAL_UNIT"] if self.CP.carFingerprint in (CAR.CIVIC) else False
|
||||
if self.CP.carFingerprint in [CAR.JADE]:
|
||||
self.is_metric = True
|
||||
else:
|
||||
self.is_metric = not cp.vl["HUD_SETTING"]["IMPERIAL_UNIT"] if self.CP.carFingerprint in (CAR.CIVIC) else False
|
||||
|
||||
if self.CP.carFingerprint in HONDA_BOSCH:
|
||||
ret.stockAeb = (not self.CP.openpilotLongitudinalControl) and bool(cp.vl["ACC_CONTROL"]["AEB_STATUS"] and cp.vl["ACC_CONTROL"]["ACCEL_COMMAND"] < -1e-5)
|
||||
|
||||
@@ -9,6 +9,7 @@ from selfdrive.car.honda.values import CarControllerParams, CruiseButtons, CAR,
|
||||
from selfdrive.car.honda.hondacan import disable_radar
|
||||
from selfdrive.car import STD_CARGO_KG, CivicParams, scale_rot_inertia, scale_tire_stiffness, gen_empty_fingerprint
|
||||
from selfdrive.car.interfaces import CarInterfaceBase
|
||||
from common.dp_common import common_interface_atl, common_interface_get_params_lqr
|
||||
|
||||
|
||||
ButtonType = car.CarState.ButtonEvent.Type
|
||||
@@ -125,6 +126,7 @@ class CarInterface(CarInterfaceBase):
|
||||
def get_params(candidate, fingerprint=gen_empty_fingerprint(), car_fw=[]): # pylint: disable=dangerous-default-value
|
||||
ret = CarInterfaceBase.get_std_params(candidate, fingerprint)
|
||||
ret.carName = "honda"
|
||||
ret.lateralTuning.init('pid')
|
||||
|
||||
if candidate in HONDA_BOSCH:
|
||||
ret.safetyModel = car.CarParams.SafetyModel.hondaBoschHarness
|
||||
@@ -410,6 +412,20 @@ class CarInterface(CarInterfaceBase):
|
||||
ret.longitudinalTuning.kiBP = [0., 35.]
|
||||
ret.longitudinalTuning.kiV = [0.18, 0.12]
|
||||
|
||||
elif candidate == CAR.JADE:
|
||||
stop_and_go = False
|
||||
ret.mass = 1557. + STD_CARGO_KG
|
||||
ret.wheelbase = 2.76
|
||||
ret.centerToFront = ret.wheelbase * 0.41
|
||||
ret.steerRatio = 15.2
|
||||
ret.lateralParams.torqueBP, ret.lateralParams.torqueV = [[0, 4096], [0, 4096]]
|
||||
tire_stiffness_factor = 0.5
|
||||
ret.lateralTuning.pid.kpV, ret.lateralTuning.pid.kiV = [[0.16], [0.025]]
|
||||
ret.longitudinalTuning.kpBP = [0., 5., 35.]
|
||||
ret.longitudinalTuning.kpV = [1.2, 0.8, 0.5]
|
||||
ret.longitudinalTuning.kiBP = [0., 35.]
|
||||
ret.longitudinalTuning.kiV = [0.18, 0.12]
|
||||
|
||||
else:
|
||||
raise ValueError("unsupported car %s" % candidate)
|
||||
|
||||
@@ -423,7 +439,10 @@ class CarInterface(CarInterfaceBase):
|
||||
# min speed to enable ACC. if car can do stop and go, then set enabling speed
|
||||
# to a negative value, so it won't matter. Otherwise, add 0.5 mph margin to not
|
||||
# conflict with PCM acc
|
||||
ret.minEnableSpeed = -1. if (stop_and_go or ret.enableGasInterceptor) else 25.5 * CV.MPH_TO_MS
|
||||
if candidate in [CAR.JADE]:
|
||||
ret.minEnableSpeed = 30 * CV.KPH_TO_MS
|
||||
else:
|
||||
ret.minEnableSpeed = -1. if (stop_and_go or ret.enableGasInterceptor) else 25.5 * CV.MPH_TO_MS
|
||||
|
||||
# TODO: get actual value, for now starting with reasonable value for
|
||||
# civic and scaling by mass and wheelbase
|
||||
@@ -451,6 +470,26 @@ class CarInterface(CarInterfaceBase):
|
||||
ret.steerRateCost = 0.5
|
||||
ret.steerLimitTimer = 0.8
|
||||
|
||||
# dp
|
||||
if Params().get('dp_honda_eps_mod') == b'1':
|
||||
if candidate == CAR.CIVIC:
|
||||
ret.lateralParams.torqueBP, ret.lateralParams.torqueV = [[0, 2560, 8000], [0, 2560, 3840]]
|
||||
ret.lateralTuning.pid.kpV, ret.lateralTuning.pid.kiV = [[0.3], [0.1]] #tuned by Comma
|
||||
elif candidate in (CAR.CIVIC_BOSCH, CAR.CIVIC_BOSCH_DIESEL):
|
||||
ret.lateralParams.torqueBP, ret.lateralParams.torqueV = [[0, 2564, 8000], [0, 2564, 3840]]
|
||||
ret.lateralTuning.pid.kpV, ret.lateralTuning.pid.kiV = [[0.3], [0.09]] #2.5 default mod #Tuned by TMG
|
||||
elif candidate in (CAR.ACCORD, CAR.ACCORDH):
|
||||
ret.lateralTuning.pid.kpV, ret.lateralTuning.pid.kiV = [[0.3], [0.09]]
|
||||
elif candidate == CAR.CRV_5G:
|
||||
ret.lateralParams.torqueBP, ret.lateralParams.torqueV = [[0, 2560, 10000], [0, 2560, 3840]] #tuned by Titanminer (8000)
|
||||
ret.lateralTuning.pid.kpV, ret.lateralTuning.pid.kiV = [[0.21], [0.07]]
|
||||
elif candidate == CAR.CRV_HYBRID:
|
||||
ret.lateralParams.torqueBP, ret.lateralParams.torqueV = [[0x0, 0xB5, 0x161, 0x2D6, 0x4C0, 0x70D, 0xC42, 0x1058, 0x2C00], [0x0, 0x160, 0x1F0, 0x2E0, 0x378, 0x4A0, 0x5F0, 0x804, 0xF00]]
|
||||
ret.lateralTuning.pid.kpV, ret.lateralTuning.pid.kiV = [[0.21], [0.07]] #still needs to finish tuning for the new car
|
||||
ret.lateralTuning.pid.kf = 0.00004
|
||||
|
||||
ret = common_interface_get_params_lqr(ret)
|
||||
|
||||
return ret
|
||||
|
||||
@staticmethod
|
||||
@@ -459,7 +498,7 @@ class CarInterface(CarInterfaceBase):
|
||||
disable_radar(logcan, sendcan)
|
||||
|
||||
# returns a car.CarState
|
||||
def update(self, c, can_strings):
|
||||
def update(self, c, can_strings, dragonconf):
|
||||
# ******************* do can recv *******************
|
||||
self.cp.update_strings(can_strings)
|
||||
self.cp_cam.update_strings(can_strings)
|
||||
@@ -467,7 +506,10 @@ class CarInterface(CarInterfaceBase):
|
||||
self.cp_body.update_strings(can_strings)
|
||||
|
||||
ret = self.CS.update(self.cp, self.cp_cam, self.cp_body)
|
||||
|
||||
# dp
|
||||
self.dragonconf = dragonconf
|
||||
ret.cruiseState.enabled = common_interface_atl(ret, dragonconf.dpAtl)
|
||||
ret.lkMode = self.CS.lkMode
|
||||
ret.canValid = self.cp.can_valid and self.cp_cam.can_valid and (self.cp_body is None or self.cp_body.can_valid)
|
||||
ret.yawRate = self.VM.yaw_rate(ret.steeringAngleDeg * CV.DEG_TO_RAD, ret.vEgo)
|
||||
|
||||
@@ -509,6 +551,8 @@ class CarInterface(CarInterfaceBase):
|
||||
|
||||
# events
|
||||
events = self.create_common_events(ret, pcm_enable=False)
|
||||
if not self.CS.lkMode or (dragonconf.dpAtl and ret.vEgo <= self.CP.minEnableSpeed):
|
||||
events.add(EventName.manualSteeringRequired)
|
||||
if self.CS.brake_error:
|
||||
events.add(EventName.brakeUnavailable)
|
||||
if self.CS.brake_hold and self.CS.CP.openpilotLongitudinalControl:
|
||||
@@ -528,8 +572,8 @@ class CarInterface(CarInterfaceBase):
|
||||
# keep braking if needed or if the speed is very low
|
||||
if ret.vEgo < self.CP.minEnableSpeed + 2.:
|
||||
# non loud alert if cruise disables below 25mph as expected (+ a little margin)
|
||||
events.add(EventName.speedTooLow)
|
||||
else:
|
||||
# events.add(EventName.speedTooLow)
|
||||
# else:
|
||||
events.add(EventName.cruiseDisabled)
|
||||
if self.CS.CP.minEnableSpeed > 0 and ret.vEgo < 0.001:
|
||||
events.add(EventName.manualRestart)
|
||||
@@ -569,6 +613,7 @@ class CarInterface(CarInterfaceBase):
|
||||
pcm_accel,
|
||||
hud_v_cruise,
|
||||
c.hudControl.lanesVisible,
|
||||
self.dragonconf,
|
||||
hud_show_car=c.hudControl.leadVisible,
|
||||
hud_alert=c.hudControl.visualAlert)
|
||||
|
||||
|
||||
@@ -63,11 +63,19 @@ class CAR:
|
||||
PILOT_2019 = "HONDA PILOT 2019"
|
||||
RIDGELINE = "HONDA RIDGELINE 2017"
|
||||
INSIGHT = "HONDA INSIGHT 2019"
|
||||
JADE = "HONDA JADE 2017"
|
||||
|
||||
# diag message that in some Nidec cars only appear with 1s freq if VIN query is performed
|
||||
DIAG_MSGS = {1600: 5, 1601: 8}
|
||||
|
||||
FINGERPRINTS = {
|
||||
CAR.ACCORD: [{
|
||||
148: 8, 228: 5, 304: 8, 330: 8, 344: 8, 380: 8, 399: 7, 419: 8, 420: 8, 427: 3, 432: 7, 441: 5, 446: 3, 450: 8, 464: 8, 477: 8, 479: 8, 495: 8, 545: 6, 662: 4, 773: 7, 777: 8, 780: 8, 804: 8, 806: 8, 808: 8, 829: 5, 862: 8, 884: 8, 891: 8, 927: 8, 929: 8, 1302: 8, 1600: 5, 1601: 8, 1652: 8
|
||||
},
|
||||
#1.5L
|
||||
{
|
||||
148: 8, 228: 5, 304: 8, 330: 8, 344: 8, 380: 8, 399: 7, 401: 8, 420: 8, 427: 3, 432: 7, 441: 5, 446: 3, 450: 8, 464: 8, 477: 8, 479: 8, 495: 8, 545: 6, 662: 4, 773: 7, 777: 8, 780: 8, 804: 8, 806: 8, 808: 8, 829: 5, 862: 8, 884: 8, 891: 8, 927: 8, 929: 8, 1302: 8, 1600: 5, 1601: 8, 1652: 8
|
||||
}],
|
||||
CAR.ACCORDH: [{
|
||||
148: 8, 228: 5, 304: 8, 330: 8, 344: 8, 380: 8, 387: 8, 388: 8, 399: 7, 419: 8, 420: 8, 427: 3, 432: 7, 441: 5, 450: 8, 464: 8, 477: 8, 479: 8, 495: 8, 525: 8, 545: 6, 662: 4, 773: 7, 777: 8, 780: 8, 804: 8, 806: 8, 808: 8, 829: 5, 862: 8, 884: 8, 891: 8, 927: 8, 929: 8, 1302: 8, 1600: 5, 1601: 8, 1652: 8
|
||||
}],
|
||||
@@ -108,6 +116,9 @@ FINGERPRINTS = {
|
||||
{
|
||||
57: 3, 145: 8, 228: 5, 229: 4, 308: 5, 316: 8, 339: 7, 342: 6, 344: 8, 380: 8, 392: 6, 399: 7, 411: 5, 419: 8, 420: 8, 422: 8, 425: 8, 426: 8, 427: 3, 432: 7, 464: 8, 476: 4, 490: 8, 506: 8, 512: 6, 513: 6, 542: 7, 545: 5, 546: 3, 597: 8, 660: 8, 773: 7, 777: 8, 780: 8, 795: 8, 800: 8, 804: 8, 808: 8, 817: 4, 819: 7, 821: 5, 829: 5, 871: 8, 881: 8, 882: 2, 884: 7, 891: 8, 892: 8, 923: 2, 927: 8, 929: 8, 963: 8, 965: 8, 966: 8, 967: 8, 983: 8, 985: 3, 1027: 5, 1029: 8, 1039: 8, 1064: 7, 1088: 8, 1089: 8, 1092: 1, 1108: 8, 1125: 8, 1296: 8, 1424: 5, 1445: 8, 1600: 5, 1601: 8, 1612: 5, 1613: 5, 1616: 5, 1617: 8, 1618: 5, 1623: 5, 1668: 5
|
||||
}],
|
||||
CAR.JADE: [{
|
||||
57: 3, 145: 8, 228: 5, 304: 8, 342: 6, 344: 8, 380: 8, 398: 3, 399: 7, 401: 8, 420: 8, 422: 8, 428: 8, 432: 7, 464: 8, 487: 4, 490: 8, 506: 8, 507: 1, 597: 8, 660: 8, 661: 4, 773: 7, 777: 8, 780: 8, 804: 8, 808: 8, 829: 5, 862: 8, 884: 7, 892: 8, 923: 2, 929: 4, 1057: 5, 1365: 5, 1424: 5, 1600: 5, 1601: 8
|
||||
}],
|
||||
}
|
||||
|
||||
# add DIAG_MSGS to fingerprints
|
||||
@@ -768,6 +779,8 @@ FW_VERSIONS = {
|
||||
b'39990-TPA-G030\x00\x00',
|
||||
b'39990-TPG-A020\x00\x00',
|
||||
b'39990-TMA-H020\x00\x00',
|
||||
b'39990-TMA,H020\x00\x00',
|
||||
b'39990,TMA-H020\x00\x00',
|
||||
],
|
||||
(Ecu.gateway, 0x18daeff1, None): [
|
||||
b'38897-TMA-H110\x00\x00',
|
||||
@@ -1247,6 +1260,7 @@ DBC = {
|
||||
CAR.PILOT_2019: dbc_dict('honda_pilot_touring_2017_can_generated', 'acura_ilx_2016_nidec'),
|
||||
CAR.RIDGELINE: dbc_dict('honda_ridgeline_black_edition_2017_can_generated', 'acura_ilx_2016_nidec'),
|
||||
CAR.INSIGHT: dbc_dict('honda_insight_ex_2019_can_generated', None),
|
||||
CAR.JADE: dbc_dict('honda_hrv_touring_2019_can_generated', 'acura_ilx_2016_nidec'),
|
||||
}
|
||||
|
||||
STEER_THRESHOLD = {
|
||||
@@ -1270,6 +1284,7 @@ STEER_THRESHOLD = {
|
||||
CAR.PILOT_2019: 1200,
|
||||
CAR.RIDGELINE: 1200,
|
||||
CAR.INSIGHT: 1200,
|
||||
CAR.JADE: 1200,
|
||||
}
|
||||
|
||||
SPEED_FACTOR = {
|
||||
@@ -1293,6 +1308,7 @@ SPEED_FACTOR = {
|
||||
CAR.PILOT_2019: 1.,
|
||||
CAR.RIDGELINE: 1.,
|
||||
CAR.INSIGHT: 1.,
|
||||
CAR.JADE: 1.025,
|
||||
}
|
||||
|
||||
HONDA_BOSCH = set([CAR.ACCORD, CAR.ACCORDH, CAR.CIVIC_BOSCH, CAR.CIVIC_BOSCH_DIESEL, CAR.CRV_5G, CAR.CRV_HYBRID, CAR.INSIGHT, CAR.ACURA_RDX_3G])
|
||||
|
||||
@@ -4,6 +4,8 @@ from selfdrive.car import apply_std_steer_torque_limits
|
||||
from selfdrive.car.hyundai.hyundaican import create_lkas11, create_clu11, create_lfahda_mfc
|
||||
from selfdrive.car.hyundai.values import Buttons, CarControllerParams, CAR
|
||||
from opendbc.can.packer import CANPacker
|
||||
from common.dp_common import common_controller_ctrl
|
||||
from common.params import Params
|
||||
|
||||
VisualAlert = car.CarControl.HUDControl.VisualAlert
|
||||
|
||||
@@ -34,6 +36,11 @@ def process_hud_alert(enabled, fingerprint, visual_alert, left_lane,
|
||||
|
||||
class CarController():
|
||||
def __init__(self, dbc_name, CP, VM):
|
||||
# dp
|
||||
self.last_blinker_on = False
|
||||
self.blinker_end_frame = 0.
|
||||
self.dp_hkg_smart_mdps = Params().get('dp_hkg_smart_mdps') == b'1'
|
||||
|
||||
self.p = CarControllerParams(CP)
|
||||
self.packer = CANPacker(dbc_name)
|
||||
|
||||
@@ -43,7 +50,7 @@ class CarController():
|
||||
self.last_resume_frame = 0
|
||||
|
||||
def update(self, enabled, CS, frame, actuators, pcm_cancel_cmd, visual_alert,
|
||||
left_lane, right_lane, left_lane_depart, right_lane_depart):
|
||||
left_lane, right_lane, left_lane_depart, right_lane_depart, dragonconf):
|
||||
# Steering Torque
|
||||
new_steer = int(round(actuators.steer * self.p.STEER_MAX))
|
||||
apply_steer = apply_std_steer_torque_limits(new_steer, self.apply_steer_last, CS.out.steeringTorque, self.p)
|
||||
@@ -52,9 +59,25 @@ class CarController():
|
||||
# disable when temp fault is active, or below LKA minimum speed
|
||||
lkas_active = enabled and not CS.out.steerWarning and CS.out.vEgo >= CS.CP.minSteerSpeed
|
||||
|
||||
# fix for Genesis hard fault at low speed
|
||||
if not self.dp_hkg_smart_mdps and CS.out.vEgo < 16.7 and self.car_fingerprint == CAR.HYUNDAI_GENESIS:
|
||||
lkas_active = False
|
||||
|
||||
if not lkas_active:
|
||||
apply_steer = 0
|
||||
|
||||
# dp
|
||||
blinker_on = CS.out.leftBlinker or CS.out.rightBlinker
|
||||
if not enabled:
|
||||
self.blinker_end_frame = 0
|
||||
if self.last_blinker_on and not blinker_on:
|
||||
self.blinker_end_frame = frame + dragonconf.dpSignalOffDelay
|
||||
apply_steer = common_controller_ctrl(enabled,
|
||||
dragonconf,
|
||||
blinker_on or frame < self.blinker_end_frame,
|
||||
apply_steer, CS.out.vEgo)
|
||||
self.last_blinker_on = blinker_on
|
||||
|
||||
self.apply_steer_last = apply_steer
|
||||
|
||||
sys_warning, sys_state, left_lane_warning, right_lane_warning = \
|
||||
|
||||
@@ -4,6 +4,8 @@ from selfdrive.config import Conversions as CV
|
||||
from selfdrive.car.hyundai.values import CAR, EV_CAR, HYBRID_CAR
|
||||
from selfdrive.car import STD_CARGO_KG, scale_rot_inertia, scale_tire_stiffness, gen_empty_fingerprint
|
||||
from selfdrive.car.interfaces import CarInterfaceBase
|
||||
from common.dp_common import common_interface_atl, common_interface_get_params_lqr
|
||||
from common.params import Params
|
||||
|
||||
class CarInterface(CarInterfaceBase):
|
||||
|
||||
@@ -18,6 +20,7 @@ class CarInterface(CarInterfaceBase):
|
||||
ret.carName = "hyundai"
|
||||
ret.safetyModel = car.CarParams.SafetyModel.hyundai
|
||||
ret.radarOffCan = True
|
||||
ret.lateralTuning.init('pid')
|
||||
|
||||
# Most Hyundai car ports are community features for now
|
||||
ret.communityFeature = candidate not in [CAR.SONATA, CAR.PALISADE]
|
||||
@@ -222,6 +225,15 @@ class CarInterface(CarInterfaceBase):
|
||||
ret.steerRatio = 16.5
|
||||
ret.lateralTuning.pid.kiBP, ret.lateralTuning.pid.kpBP = [[0.], [0.]]
|
||||
ret.lateralTuning.pid.kpV, ret.lateralTuning.pid.kiV = [[0.16], [0.01]]
|
||||
ret.lateralTuning.init('indi')
|
||||
ret.lateralTuning.indi.innerLoopGainV = [3.5]
|
||||
ret.lateralTuning.indi.innerLoopGainBP = [0.]
|
||||
ret.lateralTuning.indi.outerLoopGainV = [2.0]
|
||||
ret.lateralTuning.indi.outerLoopGainBP = [0.]
|
||||
ret.lateralTuning.indi.timeConstantV = [1.4]
|
||||
ret.lateralTuning.indi.actuatorEffectivenessV = [2.3]
|
||||
ret.lateralTuning.indi.actuatorEffectivenessBP = [0.]
|
||||
ret.minSteerSpeed = 60 * CV.KPH_TO_MS
|
||||
elif candidate == CAR.GENESIS_G90:
|
||||
ret.mass = 2200
|
||||
ret.wheelbase = 3.15
|
||||
@@ -254,25 +266,37 @@ class CarInterface(CarInterfaceBase):
|
||||
|
||||
ret.enableBsm = 0x58b in fingerprint[0]
|
||||
|
||||
# dp
|
||||
if Params().get('dp_hkg_smart_mdps') == b'1':
|
||||
ret.minSteerSpeed = 0.
|
||||
ret = common_interface_get_params_lqr(ret)
|
||||
return ret
|
||||
|
||||
def update(self, c, can_strings):
|
||||
def update(self, c, can_strings, dragonconf):
|
||||
self.cp.update_strings(can_strings)
|
||||
self.cp_cam.update_strings(can_strings)
|
||||
|
||||
ret = self.CS.update(self.cp, self.cp_cam)
|
||||
# dp
|
||||
self.dragonconf = dragonconf
|
||||
if ret.vEgo >= self.CP.minSteerSpeed:
|
||||
ret.cruiseState.enabled = common_interface_atl(ret, dragonconf.dpAtl)
|
||||
ret.canValid = self.cp.can_valid and self.cp_cam.can_valid
|
||||
ret.steeringRateLimited = self.CC.steer_rate_limited if self.CC is not None else False
|
||||
|
||||
events = self.create_common_events(ret)
|
||||
|
||||
# low speed steer alert hysteresis logic (only for cars with steer cut off above 10 m/s)
|
||||
if ret.vEgo < (self.CP.minSteerSpeed + 2.) and self.CP.minSteerSpeed > 10.:
|
||||
self.low_speed_alert = True
|
||||
if ret.vEgo > (self.CP.minSteerSpeed + 4.):
|
||||
self.low_speed_alert = False
|
||||
if self.low_speed_alert:
|
||||
events.add(car.CarEvent.EventName.belowSteerSpeed)
|
||||
if dragonconf.dpAtl:
|
||||
if ret.vEgo < self.CP.minSteerSpeed:
|
||||
events.add(car.CarEvent.EventName.belowSteerSpeed)
|
||||
else:
|
||||
# low speed steer alert hysteresis logic (only for cars with steer cut off above 10 m/s)
|
||||
if ret.vEgo < (self.CP.minSteerSpeed + 2.) and self.CP.minSteerSpeed > 10.:
|
||||
self.low_speed_alert = True
|
||||
if ret.vEgo > (self.CP.minSteerSpeed + 4.):
|
||||
self.low_speed_alert = False
|
||||
if self.low_speed_alert:
|
||||
events.add(car.CarEvent.EventName.belowSteerSpeed)
|
||||
|
||||
ret.events = events.to_msg()
|
||||
|
||||
@@ -282,6 +306,6 @@ class CarInterface(CarInterfaceBase):
|
||||
def apply(self, c):
|
||||
can_sends = self.CC.update(c.enabled, self.CS, self.frame, c.actuators,
|
||||
c.cruiseControl.cancel, c.hudControl.visualAlert, c.hudControl.leftLaneVisible,
|
||||
c.hudControl.rightLaneVisible, c.hudControl.leftLaneDepart, c.hudControl.rightLaneDepart)
|
||||
c.hudControl.rightLaneVisible, c.hudControl.leftLaneDepart, c.hudControl.rightLaneDepart, self.dragonconf)
|
||||
self.frame += 1
|
||||
return can_sends
|
||||
|
||||
@@ -3,11 +3,12 @@
|
||||
from cereal import car
|
||||
from selfdrive.car import dbc_dict
|
||||
Ecu = car.CarParams.Ecu
|
||||
from common.params import Params
|
||||
|
||||
# Steer torque limits
|
||||
class CarControllerParams:
|
||||
def __init__(self, CP):
|
||||
if CP.carFingerprint in [CAR.SONATA, CAR.PALISADE, CAR.SANTA_FE, CAR.VELOSTER, CAR.GENESIS_G70, CAR.IONIQ_EV_2020, CAR.KIA_CEED, CAR.KIA_SELTOS, CAR.ELANTRA_2021, CAR.ELANTRA_HEV_2021]:
|
||||
if Params().get('dp_hkg_smart_mdps') == b'1' or CP.carFingerprint in [CAR.SONATA, CAR.PALISADE, CAR.SANTA_FE, CAR.VELOSTER, CAR.GENESIS_G70, CAR.IONIQ_EV_2020, CAR.KIA_CEED, CAR.KIA_SELTOS, CAR.ELANTRA_2021, CAR.ELANTRA_HEV_2021]:
|
||||
self.STEER_MAX = 384
|
||||
else:
|
||||
self.STEER_MAX = 255
|
||||
|
||||
@@ -31,6 +31,8 @@ class CarInterfaceBase():
|
||||
self.steering_unpressed = 0
|
||||
self.low_speed_alert = False
|
||||
|
||||
self.dragonconf = None
|
||||
|
||||
if CarState is not None:
|
||||
self.CS = CarState(CP)
|
||||
self.cp = self.CS.get_can_parser(CP)
|
||||
@@ -41,6 +43,8 @@ class CarInterfaceBase():
|
||||
if CarController is not None:
|
||||
self.CC = CarController(self.cp.dbc_name, CP, self.VM)
|
||||
|
||||
self.dragonconf = None
|
||||
|
||||
@staticmethod
|
||||
def calc_accel_override(a_ego, a_target, v_ego, v_target):
|
||||
return 1.
|
||||
@@ -91,7 +95,7 @@ class CarInterfaceBase():
|
||||
return ret
|
||||
|
||||
# returns a car.CarState, pass in car.CarControl
|
||||
def update(self, c, can_strings):
|
||||
def update(self, c, can_strings, dragonconf):
|
||||
raise NotImplementedError
|
||||
|
||||
# return sendcan, pass in a car.CarControl
|
||||
@@ -105,31 +109,33 @@ class CarInterfaceBase():
|
||||
events.add(EventName.doorOpen)
|
||||
if cs_out.seatbeltUnlatched:
|
||||
events.add(EventName.seatbeltNotLatched)
|
||||
if cs_out.gearShifter != GearShifter.drive and (extra_gears is None or
|
||||
cs_out.gearShifter not in extra_gears):
|
||||
events.add(EventName.wrongGear)
|
||||
if self.dragonconf.dpGearCheck and cs_out.gearShifter != GearShifter.drive and (extra_gears is None or
|
||||
cs_out.gearShifter not in extra_gears):
|
||||
events.add(EventName.wrongGear)
|
||||
if cs_out.gearShifter == GearShifter.reverse:
|
||||
events.add(EventName.reverseGear)
|
||||
if not cs_out.cruiseState.available:
|
||||
if not cs_out.cruiseState.available and not self.dragonconf.dpAtl:
|
||||
events.add(EventName.wrongCarMode)
|
||||
if cs_out.espDisabled:
|
||||
events.add(EventName.espDisabled)
|
||||
if cs_out.gasPressed:
|
||||
if cs_out.gasPressed and not self.dragonconf.dpAllowGas:
|
||||
events.add(EventName.gasPressed)
|
||||
if cs_out.stockFcw:
|
||||
events.add(EventName.stockFcw)
|
||||
if cs_out.stockAeb:
|
||||
events.add(EventName.stockAeb)
|
||||
if cs_out.vEgo > MAX_CTRL_SPEED:
|
||||
if cs_out.vEgo > MAX_CTRL_SPEED and self.dragonconf.dpSpeedCheck:
|
||||
events.add(EventName.speedTooHigh)
|
||||
if cs_out.cruiseState.nonAdaptive:
|
||||
if cs_out.cruiseState.nonAdaptive and not self.dragonconf.dpAtl:
|
||||
events.add(EventName.wrongCruiseMode)
|
||||
|
||||
self.steer_warning = self.steer_warning + 1 if cs_out.steerWarning else 0
|
||||
self.steering_unpressed = 0 if cs_out.steeringPressed else self.steering_unpressed + 1
|
||||
|
||||
# Handle permanent and temporary steering faults
|
||||
if cs_out.steerError:
|
||||
if (cs_out.leftBlinker or cs_out.rightBlinker) and self.dragonconf.dpLateralMode == 0:
|
||||
events.add(EventName.manualSteeringRequiredBlinkersOn)
|
||||
elif cs_out.steerError:
|
||||
events.add(EventName.steerUnavailable)
|
||||
elif cs_out.steerWarning:
|
||||
# only escalate to the harsher alert after the condition has
|
||||
@@ -142,9 +148,15 @@ class CarInterfaceBase():
|
||||
# Disable on rising edge of gas or brake. Also disable on brake when speed > 0.
|
||||
# Optionally allow to press gas at zero speed to resume.
|
||||
# e.g. Chrysler does not spam the resume button yet, so resuming with gas is handy. FIXME!
|
||||
if (cs_out.gasPressed and (not self.CS.out.gasPressed) and cs_out.vEgo > gas_resume_speed) or \
|
||||
(cs_out.brakePressed and (not self.CS.out.brakePressed or not cs_out.standstill)):
|
||||
events.add(EventName.pedalPressed)
|
||||
if self.dragonconf.dpAtl:
|
||||
pass
|
||||
elif self.dragonconf.dpAllowGas:
|
||||
if cs_out.brakePressed and (not self.CS.out.brakePressed or not cs_out.standstill):
|
||||
events.add(EventName.pedalPressed)
|
||||
else:
|
||||
if (cs_out.gasPressed and (not self.CS.out.gasPressed) and cs_out.vEgo > gas_resume_speed) or \
|
||||
(cs_out.brakePressed and (not self.CS.out.brakePressed or not cs_out.standstill)):
|
||||
events.add(EventName.pedalPressed)
|
||||
|
||||
# we engage when pcm is active (rising edge)
|
||||
if pcm_enable:
|
||||
|
||||
@@ -2,14 +2,19 @@ from selfdrive.car.mazda import mazdacan
|
||||
from selfdrive.car.mazda.values import CarControllerParams, Buttons
|
||||
from opendbc.can.packer import CANPacker
|
||||
from selfdrive.car import apply_std_steer_torque_limits
|
||||
from common.dp_common import common_controller_ctrl
|
||||
|
||||
class CarController():
|
||||
def __init__(self, dbc_name, CP, VM):
|
||||
# dp
|
||||
self.last_blinker_on = False
|
||||
self.blinker_end_frame = 0.
|
||||
|
||||
self.apply_steer_last = 0
|
||||
self.packer = CANPacker(dbc_name)
|
||||
self.steer_rate_limited = False
|
||||
|
||||
def update(self, enabled, CS, frame, actuators):
|
||||
def update(self, enabled, CS, frame, actuators, dragonconf):
|
||||
""" Controls thread """
|
||||
|
||||
can_sends = []
|
||||
@@ -36,6 +41,18 @@ class CarController():
|
||||
# Send at a rate of 5hz until we sync with stock ACC state
|
||||
can_sends.append(mazdacan.create_button_cmd(self.packer, CS.CP.carFingerprint, Buttons.CANCEL))
|
||||
|
||||
# dp
|
||||
blinker_on = CS.out.leftBlinker or CS.out.rightBlinker
|
||||
if not enabled:
|
||||
self.blinker_end_frame = 0
|
||||
if self.last_blinker_on and not blinker_on:
|
||||
self.blinker_end_frame = frame + dragonconf.dpSignalOffDelay
|
||||
apply_steer = common_controller_ctrl(enabled,
|
||||
dragonconf,
|
||||
blinker_on or frame < self.blinker_end_frame,
|
||||
apply_steer, CS.out.vEgo)
|
||||
self.last_blinker_on = blinker_on
|
||||
|
||||
self.apply_steer_last = apply_steer
|
||||
|
||||
can_sends.append(mazdacan.create_steering_control(self.packer, CS.CP.carFingerprint,
|
||||
|
||||
@@ -4,6 +4,7 @@ from selfdrive.config import Conversions as CV
|
||||
from selfdrive.car.mazda.values import CAR, LKAS_LIMITS
|
||||
from selfdrive.car import STD_CARGO_KG, scale_rot_inertia, scale_tire_stiffness, gen_empty_fingerprint
|
||||
from selfdrive.car.interfaces import CarInterfaceBase
|
||||
from common.dp_common import common_interface_atl, common_interface_get_params_lqr
|
||||
|
||||
ButtonType = car.CarState.ButtonEvent.Type
|
||||
EventName = car.CarEvent.EventName
|
||||
@@ -20,6 +21,7 @@ class CarInterface(CarInterfaceBase):
|
||||
|
||||
ret.carName = "mazda"
|
||||
ret.safetyModel = car.CarParams.SafetyModel.mazda
|
||||
ret.lateralTuning.init('pid')
|
||||
ret.radarOffCan = True
|
||||
|
||||
ret.communityFeature = True
|
||||
@@ -73,15 +75,21 @@ class CarInterface(CarInterfaceBase):
|
||||
ret.tireStiffnessFront, ret.tireStiffnessRear = scale_tire_stiffness(ret.mass, ret.wheelbase, ret.centerToFront,
|
||||
tire_stiffness_factor=tire_stiffness_factor)
|
||||
|
||||
# dp
|
||||
ret = common_interface_get_params_lqr(ret)
|
||||
|
||||
return ret
|
||||
|
||||
# returns a car.CarState
|
||||
def update(self, c, can_strings):
|
||||
def update(self, c, can_strings, dragonconf):
|
||||
|
||||
self.cp.update_strings(can_strings)
|
||||
self.cp_cam.update_strings(can_strings)
|
||||
|
||||
ret = self.CS.update(self.cp, self.cp_cam)
|
||||
# dp
|
||||
self.dragonconf = dragonconf
|
||||
ret.cruiseState.enabled = common_interface_atl(ret, dragonconf.dpAtl)
|
||||
ret.canValid = self.cp.can_valid and self.cp_cam.can_valid
|
||||
|
||||
# events
|
||||
@@ -99,6 +107,6 @@ class CarInterface(CarInterfaceBase):
|
||||
return self.CS.out
|
||||
|
||||
def apply(self, c):
|
||||
can_sends = self.CC.update(c.enabled, self.CS, self.frame, c.actuators)
|
||||
can_sends = self.CC.update(c.enabled, self.CS, self.frame, c.actuators, self.dragonconf)
|
||||
self.frame += 1
|
||||
return can_sends
|
||||
|
||||
@@ -49,7 +49,7 @@ class CarInterface(CarInterfaceBase):
|
||||
return ret
|
||||
|
||||
# returns a car.CarState
|
||||
def update(self, c, can_strings):
|
||||
def update(self, c, can_strings, dragonconf):
|
||||
# get basic data from phone and gps since CAN isn't connected
|
||||
sensors = messaging.recv_sock(self.sensor)
|
||||
if sensors is not None:
|
||||
|
||||
@@ -3,13 +3,17 @@ from common.numpy_fast import clip, interp
|
||||
from selfdrive.car.nissan import nissancan
|
||||
from opendbc.can.packer import CANPacker
|
||||
from selfdrive.car.nissan.values import CAR, CarControllerParams
|
||||
|
||||
from common.dp_common import common_controller_ctrl
|
||||
|
||||
VisualAlert = car.CarControl.HUDControl.VisualAlert
|
||||
|
||||
|
||||
class CarController():
|
||||
def __init__(self, dbc_name, CP, VM):
|
||||
# dp
|
||||
self.last_blinker_on = False
|
||||
self.blinker_end_frame = 0.
|
||||
|
||||
self.CP = CP
|
||||
self.car_fingerprint = CP.carFingerprint
|
||||
|
||||
@@ -19,7 +23,7 @@ class CarController():
|
||||
self.packer = CANPacker(dbc_name)
|
||||
|
||||
def update(self, enabled, CS, frame, actuators, cruise_cancel, hud_alert,
|
||||
left_line, right_line, left_lane_depart, right_lane_depart):
|
||||
left_line, right_line, left_lane_depart, right_lane_depart, dragonconf):
|
||||
""" Controls thread """
|
||||
|
||||
# Send CAN commands.
|
||||
@@ -58,6 +62,18 @@ class CarController():
|
||||
apply_angle = CS.out.steeringAngleDeg
|
||||
self.lkas_max_torque = 0
|
||||
|
||||
# dp
|
||||
blinker_on = CS.out.leftBlinker or CS.out.rightBlinker
|
||||
if not enabled:
|
||||
self.blinker_end_frame = 0
|
||||
if self.last_blinker_on and not blinker_on:
|
||||
self.blinker_end_frame = frame + dragonconf.dpSignalOffDelay
|
||||
apply_angle = common_controller_ctrl(enabled,
|
||||
dragonconf,
|
||||
blinker_on or frame < self.blinker_end_frame,
|
||||
apply_angle, CS.out.vEgo)
|
||||
self.last_blinker_on = blinker_on
|
||||
|
||||
self.last_angle = apply_angle
|
||||
|
||||
if not enabled and acc_active:
|
||||
|
||||
@@ -3,6 +3,7 @@ from cereal import car
|
||||
from selfdrive.car.nissan.values import CAR
|
||||
from selfdrive.car import STD_CARGO_KG, scale_rot_inertia, scale_tire_stiffness, gen_empty_fingerprint
|
||||
from selfdrive.car.interfaces import CarInterfaceBase
|
||||
from common.dp_common import common_interface_atl, common_interface_get_params_lqr
|
||||
|
||||
class CarInterface(CarInterfaceBase):
|
||||
def __init__(self, CP, CarController, CarState):
|
||||
@@ -19,6 +20,7 @@ class CarInterface(CarInterfaceBase):
|
||||
ret = CarInterfaceBase.get_std_params(candidate, fingerprint)
|
||||
ret.carName = "nissan"
|
||||
ret.safetyModel = car.CarParams.SafetyModel.nissan
|
||||
ret.lateralTuning.init('pid')
|
||||
|
||||
# Nissan port is a community feature, since we don't own one to test
|
||||
ret.communityFeature = True
|
||||
@@ -57,16 +59,21 @@ class CarInterface(CarInterfaceBase):
|
||||
# mass and CG position, so all cars will have approximately similar dyn behaviors
|
||||
ret.tireStiffnessFront, ret.tireStiffnessRear = scale_tire_stiffness(ret.mass, ret.wheelbase, ret.centerToFront)
|
||||
|
||||
# dp
|
||||
ret = common_interface_get_params_lqr(ret)
|
||||
|
||||
return ret
|
||||
|
||||
# returns a car.CarState
|
||||
def update(self, c, can_strings):
|
||||
def update(self, c, can_strings, dragonconf):
|
||||
self.cp.update_strings(can_strings)
|
||||
self.cp_cam.update_strings(can_strings)
|
||||
self.cp_adas.update_strings(can_strings)
|
||||
|
||||
ret = self.CS.update(self.cp, self.cp_adas, self.cp_cam)
|
||||
|
||||
# dp
|
||||
self.dragonconf = dragonconf
|
||||
ret.cruiseState.enabled = common_interface_atl(ret, dragonconf.dpAtl)
|
||||
ret.canValid = self.cp.can_valid and self.cp_adas.can_valid and self.cp_cam.can_valid
|
||||
|
||||
buttonEvents = []
|
||||
@@ -88,6 +95,6 @@ class CarInterface(CarInterfaceBase):
|
||||
can_sends = self.CC.update(c.enabled, self.CS, self.frame, c.actuators,
|
||||
c.cruiseControl.cancel, c.hudControl.visualAlert,
|
||||
c.hudControl.leftLaneVisible, c.hudControl.rightLaneVisible,
|
||||
c.hudControl.leftLaneDepart, c.hudControl.rightLaneDepart)
|
||||
c.hudControl.leftLaneDepart, c.hudControl.rightLaneDepart, self.dragonconf)
|
||||
self.frame += 1
|
||||
return can_sends
|
||||
|
||||
@@ -2,10 +2,14 @@ from selfdrive.car import apply_std_steer_torque_limits
|
||||
from selfdrive.car.subaru import subarucan
|
||||
from selfdrive.car.subaru.values import DBC, PREGLOBAL_CARS, CarControllerParams
|
||||
from opendbc.can.packer import CANPacker
|
||||
|
||||
from common.dp_common import common_controller_ctrl
|
||||
|
||||
class CarController():
|
||||
def __init__(self, dbc_name, CP, VM):
|
||||
# dp
|
||||
self.last_blinker_on = False
|
||||
self.blinker_end_frame = 0.
|
||||
|
||||
self.apply_steer_last = 0
|
||||
self.es_distance_cnt = -1
|
||||
self.es_accel_cnt = -1
|
||||
@@ -15,7 +19,7 @@ class CarController():
|
||||
|
||||
self.packer = CANPacker(DBC[CP.carFingerprint]['pt'])
|
||||
|
||||
def update(self, enabled, CS, frame, actuators, pcm_cancel_cmd, visual_alert, left_line, right_line, left_lane_depart, right_lane_depart):
|
||||
def update(self, enabled, CS, frame, actuators, pcm_cancel_cmd, visual_alert, left_line, right_line, left_lane_depart, right_lane_depart, dragonconf):
|
||||
|
||||
can_sends = []
|
||||
|
||||
@@ -33,6 +37,18 @@ class CarController():
|
||||
if not enabled:
|
||||
apply_steer = 0
|
||||
|
||||
# dp
|
||||
blinker_on = CS.out.leftBlinker or CS.out.rightBlinker
|
||||
if not enabled:
|
||||
self.blinker_end_frame = 0
|
||||
if self.last_blinker_on and not blinker_on:
|
||||
self.blinker_end_frame = frame + dragonconf.dpSignalOffDelay
|
||||
apply_steer = common_controller_ctrl(enabled,
|
||||
dragonconf,
|
||||
blinker_on or frame < self.blinker_end_frame,
|
||||
apply_steer, CS.out.vEgo)
|
||||
self.last_blinker_on = blinker_on
|
||||
|
||||
if CS.CP.carFingerprint in PREGLOBAL_CARS:
|
||||
can_sends.append(subarucan.create_preglobal_steering_control(self.packer, apply_steer, frame, CarControllerParams.STEER_STEP))
|
||||
else:
|
||||
|
||||
@@ -3,6 +3,7 @@ from cereal import car
|
||||
from selfdrive.car.subaru.values import CAR, PREGLOBAL_CARS
|
||||
from selfdrive.car import STD_CARGO_KG, scale_rot_inertia, scale_tire_stiffness, gen_empty_fingerprint
|
||||
from selfdrive.car.interfaces import CarInterfaceBase
|
||||
from common.dp_common import common_interface_atl, common_interface_get_params_lqr
|
||||
|
||||
class CarInterface(CarInterfaceBase):
|
||||
|
||||
@@ -16,6 +17,7 @@ class CarInterface(CarInterfaceBase):
|
||||
|
||||
ret.carName = "subaru"
|
||||
ret.radarOffCan = True
|
||||
ret.lateralTuning.init('pid')
|
||||
|
||||
if candidate in PREGLOBAL_CARS:
|
||||
ret.safetyModel = car.CarParams.SafetyModel.subaruLegacy
|
||||
@@ -100,15 +102,20 @@ class CarInterface(CarInterfaceBase):
|
||||
# mass and CG position, so all cars will have approximately similar dyn behaviors
|
||||
ret.tireStiffnessFront, ret.tireStiffnessRear = scale_tire_stiffness(ret.mass, ret.wheelbase, ret.centerToFront)
|
||||
|
||||
# dp
|
||||
ret = common_interface_get_params_lqr(ret)
|
||||
|
||||
return ret
|
||||
|
||||
# returns a car.CarState
|
||||
def update(self, c, can_strings):
|
||||
def update(self, c, can_strings, dragonconf):
|
||||
self.cp.update_strings(can_strings)
|
||||
self.cp_cam.update_strings(can_strings)
|
||||
|
||||
ret = self.CS.update(self.cp, self.cp_cam)
|
||||
|
||||
# dp
|
||||
self.dragonconf = dragonconf
|
||||
ret.cruiseState.enabled = common_interface_atl(ret, dragonconf.dpAtl)
|
||||
ret.canValid = self.cp.can_valid and self.cp_cam.can_valid
|
||||
ret.steeringRateLimited = self.CC.steer_rate_limited if self.CC is not None else False
|
||||
|
||||
@@ -120,6 +127,6 @@ class CarInterface(CarInterfaceBase):
|
||||
def apply(self, c):
|
||||
can_sends = self.CC.update(c.enabled, self.CS, self.frame, c.actuators,
|
||||
c.cruiseControl.cancel, c.hudControl.visualAlert,
|
||||
c.hudControl.leftLaneVisible, c.hudControl.rightLaneVisible, c.hudControl.leftLaneDepart, c.hudControl.rightLaneDepart)
|
||||
c.hudControl.leftLaneVisible, c.hudControl.rightLaneVisible, c.hudControl.leftLaneDepart, c.hudControl.rightLaneDepart, self.dragonconf)
|
||||
self.frame += 1
|
||||
return can_sends
|
||||
|
||||