mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-09-30 19:33:42 +08:00
Deprecate brakeLights field (#20954)
* remove all references to CS.brakeLights * unused red * update refs Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
This commit is contained in:
+1
-2
@@ -13,7 +13,7 @@ import cereal.messaging as messaging
|
||||
from common.basedir import BASEDIR
|
||||
from selfdrive.config import UIParams as UP
|
||||
from tools.replay.lib.ui_helpers import (_BB_TO_FULL_FRAME, _FULL_FRAME_SIZE,
|
||||
_INTRINSICS, BLACK, GREEN, RED,
|
||||
_INTRINSICS, BLACK, GREEN,
|
||||
YELLOW, Calibration,
|
||||
get_blank_lid_overlay, init_plots,
|
||||
maybe_update_radar_points, plot_lead,
|
||||
@@ -193,7 +193,6 @@ def ui_thread(addr, frame_address):
|
||||
|
||||
lines = [
|
||||
info_font.render("ENABLED", True, GREEN if sm['controlsState'].enabled else BLACK),
|
||||
info_font.render("BRAKE LIGHTS", True, RED if sm['carState'].brakeLights else BLACK),
|
||||
info_font.render("SPEED: " + str(round(sm['carState'].vEgo, 1)) + " m/s", True, YELLOW),
|
||||
info_font.render("LONG CONTROL STATE: " + str(sm['controlsState'].longControlState), True, YELLOW),
|
||||
info_font.render("LONG MPC SOURCE: " + str(sm['longitudinalPlan'].longitudinalPlanSource), True, YELLOW),
|
||||
|
||||
Reference in New Issue
Block a user