mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-08-21 08:14:00 +08:00
Car interface: set max lateral torque from table (#24789)
* json * better naem * Read from table * formatting and default to nan * Generate docs * Read from table * this should be the same * Prius v is full * test we always set the tunes correctly add to release files * Set for all cars Set for all cars * Revert tuning changes Revert tuning changes * remove that * fixes * update ref commit for new maxLateralAccels Co-authored-by: Shane Smiskol <shane@smiskol.com> old-commit-hash: 3066ad81a8b2f89a22ddfc86a879395c573ce0f5
This commit is contained in:
@@ -3,6 +3,7 @@ import unittest
|
||||
|
||||
from selfdrive.car.car_helpers import interfaces, get_interface_attr
|
||||
from selfdrive.car.docs import CARS_MD_OUT, CARS_MD_TEMPLATE, generate_cars_md, get_all_car_info
|
||||
from selfdrive.car.docs_definitions import Column, Star
|
||||
|
||||
|
||||
class TestCarDocs(unittest.TestCase):
|
||||
@@ -37,6 +38,11 @@ class TestCarDocs(unittest.TestCase):
|
||||
if "rav4" in tokens:
|
||||
self.assertIn("RAV4", car.model, "Use correct capitalization")
|
||||
|
||||
def test_torque_star(self):
|
||||
for car in self.all_cars:
|
||||
if car.car_name == "honda":
|
||||
self.assertTrue(car.row[Column.STEERING_TORQUE] in (Star.EMPTY, Star.HALF), f"{car.name} has full torque star")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
|
||||
Reference in New Issue
Block a user