From 9e1516433d670ed1805e9204a346d948ae4dbd73 Mon Sep 17 00:00:00 2001 From: Shane Smiskol Date: Fri, 10 Jun 2022 14:19:37 -0700 Subject: [PATCH] required changes to make the website generation work --- selfdrive/car/docs_definitions.py | 40 +++++++++++++++---------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/selfdrive/car/docs_definitions.py b/selfdrive/car/docs_definitions.py index 91a23655f3..31b1926f67 100644 --- a/selfdrive/car/docs_definitions.py +++ b/selfdrive/car/docs_definitions.py @@ -153,32 +153,32 @@ class Harness(Enum): STAR_DESCRIPTIONS = { - "longitudinal": { - "openpilot Adaptive Cruise Control (ACC)": [ - (Star.FULL.value, "openpilot is able to control the gas and brakes."), - (Star.HALF.value, "openpilot is able to control the gas and brakes with some restrictions."), - (Star.EMPTY.value, "The gas and brakes are controlled by the car's stock Adaptive Cruise Control (ACC) system."), + "Gas & Brakes": { # icon and row name + "openpilot Adaptive Cruise Control (ACC)": [ # star column + [Star.FULL.value, "openpilot is able to control the gas and brakes."], + [Star.HALF.value, "openpilot is able to control the gas and brakes with some restrictions."], + [Star.EMPTY.value, "The gas and brakes are controlled by the car's stock Adaptive Cruise Control (ACC) system."], ], - "Stop and Go": [ - (Star.FULL.value, "Adaptive Cruise Control (ACC) operates down to 0 mph."), - (Star.EMPTY.value, "Adaptive Cruise Control (ACC) available only above certain speeds. See your car's manual for the minimum speed."), + Column.FSR_LONGITUDINAL.value: [ + [Star.FULL.value, "Adaptive Cruise Control (ACC) operates down to 0 mph."], + [Star.EMPTY.value, "Adaptive Cruise Control (ACC) available only above certain speeds. See your car's manual for the minimum speed."], ], }, - "steering": { - "Steer to 0": [ - (Star.FULL.value, "openpilot can control the steering wheel down to 0 mph."), - (Star.EMPTY.value, "No steering control below certain speeds."), + "Steering": { + Column.FSR_STEERING.value: [ + [Star.FULL.value, "openpilot can control the steering wheel down to 0 mph."], + [Star.EMPTY.value, "No steering control below certain speeds."], ], - "Steering Torque": [ - (Star.FULL.value, "Car has enough steering torque to take tighter turns."), - (Star.HALF.value, "Car has enough steering torque for comfortable highway driving."), - (Star.EMPTY.value, "Limited ability to make turns."), + Column.STEERING_TORQUE.value: [ + [Star.FULL.value, "Car has enough steering torque to take tighter turns."], + [Star.HALF.value, "Car has enough steering torque for comfortable highway driving."], + [Star.EMPTY.value, "Limited ability to make turns."], ], }, - "support": { - "Actively Maintained": [ - (Star.FULL.value, "Mainline software support, harness hardware sold by comma, lots of users, primary development target."), - (Star.EMPTY.value, "Low user count, community maintained, harness hardware not sold by comma."), + "Support": { + Column.MAINTAINED.value: [ + [Star.FULL.value, "Mainline software support, harness hardware sold by comma, lots of users, primary development target."], + [Star.EMPTY.value, "Low user count, community maintained, harness hardware not sold by comma."], ], }, }