better support non-car robots (#24106)

* better support non-car robots

* bump cereal

* update refs
old-commit-hash: e40c36f22b
taco
Adeeb Shihadeh 3 years ago committed by GitHub
parent a013a5718a
commit 78bb03345e
  1. 2
      cereal
  2. 1
      selfdrive/car/body/interface.py
  3. 5
      selfdrive/car/docs_definitions.py
  4. 2
      selfdrive/test/process_replay/ref_commit
  5. 3
      selfdrive/test/process_replay/test_processes.py
  6. 4
      selfdrive/ui/qt/home.cc

@ -1 +1 @@
Subproject commit c7c22aacfc126d562d1dba7ecb890c1ff3e6039b Subproject commit f05953e72ae8eddc87605136e8c1d9d778455c59

@ -9,6 +9,7 @@ class CarInterface(CarInterfaceBase):
ret = CarInterfaceBase.get_std_params(candidate, fingerprint) ret = CarInterfaceBase.get_std_params(candidate, fingerprint)
ret.notCar = True
ret.carName = "body" ret.carName = "body"
ret.safetyConfigs = [get_safety_config(car.CarParams.SafetyModel.body)] ret.safetyConfigs = [get_safety_config(car.CarParams.SafetyModel.body)]

@ -76,8 +76,9 @@ class CarInfo:
Column.MAINTAINED: CP.carFingerprint not in non_tested_cars, Column.MAINTAINED: CP.carFingerprint not in non_tested_cars,
} }
if self.name == "comma body": if CP.notCar:
self.row[Column.LONGITUDINAL] = True for col in StarColumns:
self.row[col] = True
self.all_footnotes = all_footnotes self.all_footnotes = all_footnotes
for column in StarColumns: for column in StarColumns:

@ -1 +1 @@
7ede67c2798fbe675c078e4d90192efc7e8a3901 34c6b9b9a97a448138fa86ff6269d37f68aacb58

@ -70,8 +70,7 @@ def test_process(cfg, lr, cmp_log_fn, ignore_fields=None, ignore_msgs=None):
if cfg.proc_name == "controlsd": if cfg.proc_name == "controlsd":
for msg in log_msgs: for msg in log_msgs:
if msg.which() == "carParams": if msg.which() == "carParams":
# body doesn't enable if msg.carParams.notCar:
if msg.carParams.carName == "body":
break break
if msg.which() == "controlsState": if msg.which() == "controlsState":
if msg.controlsState.active: if msg.controlsState.active:

@ -50,8 +50,8 @@ void HomeWindow::showSidebar(bool show) {
void HomeWindow::updateState(const UIState &s) { void HomeWindow::updateState(const UIState &s) {
const SubMaster &sm = *(s.sm); const SubMaster &sm = *(s.sm);
// switch to the body UI // switch to the generic robot UI
if (onroad->isVisible() && sm["carParams"].getCarParams().getCarName() == "body") { if (onroad->isVisible() && sm["carParams"].getCarParams().getNotCar()) {
slayout->setCurrentWidget(body); slayout->setCurrentWidget(body);
} }
} }

Loading…
Cancel
Save