Skip to content

Commit

Permalink
Rm laikad (commaai#30299)
Browse files Browse the repository at this point in the history
* rm laika

* Rm laika

* Needed this

* More rm

* More rm
  • Loading branch information
haraschax authored Oct 23, 2023
1 parent 67f2321 commit 56dea7b
Show file tree
Hide file tree
Showing 14 changed files with 5 additions and 1,135 deletions.
1 change: 0 additions & 1 deletion release/files_common
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,6 @@ system/ubloxd/*.cc
selfdrive/locationd/__init__.py
selfdrive/locationd/SConscript
selfdrive/locationd/.gitignore
selfdrive/locationd/laikad.py
selfdrive/locationd/locationd.h
selfdrive/locationd/locationd.cc
selfdrive/locationd/paramsd.py
Expand Down
468 changes: 0 additions & 468 deletions selfdrive/locationd/laikad.py

This file was deleted.

319 changes: 0 additions & 319 deletions selfdrive/locationd/test/test_laikad.py

This file was deleted.

1 change: 0 additions & 1 deletion selfdrive/manager/process_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ def only_offroad(started, params, CP: car.CarParams) -> bool:
PythonProcess("controlsd", "selfdrive.controls.controlsd", only_onroad),
PythonProcess("deleter", "system.loggerd.deleter", always_run),
PythonProcess("dmonitoringd", "selfdrive.monitoring.dmonitoringd", driverview, enabled=(not PC or WEBCAM)),
PythonProcess("laikad", "selfdrive.locationd.laikad", only_onroad),
PythonProcess("rawgpsd", "system.sensord.rawgps.rawgpsd", qcomgps, enabled=TICI),
PythonProcess("navd", "selfdrive.navd.navd", only_onroad),
PythonProcess("pandad", "selfdrive.boardd.pandad", always_run),
Expand Down
4 changes: 1 addition & 3 deletions selfdrive/test/process_replay/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ Currently the following processes are tested:
* locationd
* paramsd
* ubloxd
* laikad
* torqued

### Usage
Expand Down Expand Up @@ -71,7 +70,7 @@ lr = LogReader(...)
output_logs = replay_process_with_name('locationd', lr)

# or list of names
output_logs = replay_process_with_name(['ubloxd', 'locationd', 'laikad'], lr)
output_logs = replay_process_with_name(['ubloxd', 'locationd'], lr)
```

Supported processes:
Expand All @@ -83,7 +82,6 @@ Supported processes:
* locationd
* paramsd
* ubloxd
* laikad
* torqued
* modeld
* dmonitoringmodeld
Expand Down
21 changes: 0 additions & 21 deletions selfdrive/test/process_replay/process_replay.py
Original file line number Diff line number Diff line change
Expand Up @@ -448,16 +448,6 @@ def controlsd_config_callback(params, cfg, lr):
params.put("ReplayControlsState", controlsState.as_builder().to_bytes())


def laikad_config_pubsub_callback(params, cfg, lr):
ublox = params.get_bool("UbloxAvailable")
main_key = "ubloxGnss" if ublox else "qcomGnss"
sub_keys = ({"qcomGnss", } if ublox else {"ubloxGnss", })

cfg.pubs = set(cfg.pubs) - sub_keys
cfg.main_pub = main_key
cfg.main_pub_drained = True


def locationd_config_pubsub_callback(params, cfg, lr):
ublox = params.get_bool("UbloxAvailable")
sub_keys = ({"gpsLocation", } if ublox else {"gpsLocationExternal", })
Expand Down Expand Up @@ -543,17 +533,6 @@ def locationd_config_pubsub_callback(params, cfg, lr):
subs=["ubloxGnss", "gpsLocationExternal"],
ignore=["logMonoTime"],
),
ProcessConfig(
proc_name="laikad",
pubs=["ubloxGnss", "qcomGnss"],
subs=["gnssMeasurements"],
ignore=["logMonoTime"],
config_callback=laikad_config_pubsub_callback,
tolerance=NUMPY_TOLERANCE,
processing_time=0.002,
timeout=60*10, # first messages are blocked on internet assistance
main_pub="ubloxGnss", # config_callback will switch this to qcom if needed
),
ProcessConfig(
proc_name="torqued",
pubs=["liveLocationKalman", "carState", "carControl"],
Expand Down
Loading

0 comments on commit 56dea7b

Please sign in to comment.