Compare commits

...

3887 Commits

Author SHA1 Message Date
DevTekVE 5d754169a6 Updating ESCC guide to use relay box 2024-07-29 12:31:45 +02:00
DevTekVE 0bbe217642 images didn't push 2024-03-21 19:13:03 +01:00
DevTekVE a36dc616ac Very very very first iteration, with very first ever made board 2024-03-21 19:11:31 +01:00
Jason Wen 5b5938dc3a Update CHANGELOGS.md 2024-03-07 15:51:43 -05:00
mike8643 c39c54a0d8 otisserv: set_destination and locations endpoints for non-prime users (#243)
ios shortcut support
2024-03-07 13:57:41 -05:00
Jason Wen 71ac15bf4e Update README.md 2024-02-28 12:41:10 -05:00
Jason Wen 8750b25a0f Bump to 0.9.7.0 2024-02-28 11:34:29 -05:00
Jason Wen 5d6f22d062 Sync: commaai/openpilot:master into sunnypilot/sunnypilot:master (#293) 2024-02-27 21:10:58 -05:00
Jason Wen 4397a687bc Bump submodules 2024-02-27 21:09:47 -05:00
Jason Wen 4d8c13ba42 Merge branch 'upstream/openpilot/master' into sync-20240224
# Conflicts:
#	cereal
#	common/params.cc
#	selfdrive/car/chrysler/interface.py
2024-02-27 21:01:40 -05:00
Shane Smiskol 56e343b3f1 Honda Accord: label non-essential ECUs (#31624)
* note non-essential ecus

* do accordh
2024-02-27 17:41:52 -08:00
Justin Newberry 262b328ad7 ban pytest.main (#31623)
ban it!
2024-02-27 14:17:01 -08:00
Justin Newberry 19db56b1f6 tici tests: remove pytest.main (#31622)
pytest.main is bad!
2024-02-27 14:06:18 -08:00
Harald Schäfer c05b37979d Wheeled body (#31614)
* Wheeled body

* 100hz only for balance

* No carparams in locationd no more

* Update ref
2024-02-27 13:23:04 -08:00
Justin Newberry f293f7bad4 scons: move cereal library exports to cereal submodule (#31617)
* cleanup-cereal

* bump
2024-02-27 13:17:56 -08:00
Adeeb Shihadeh 47013fd0a4 Revert "auto PR comments (#30675)"
This reverts commit 402ac424d9.
2024-02-27 12:06:53 -08:00
Justin Newberry dc37281340 typo (#31618)
dataset
2024-02-27 11:55:19 -08:00
Adeeb Shihadeh 402ac424d9 auto PR comments (#30675)
* auto PR comments

* little more

* test

* update action

* cleanup
2024-02-27 11:09:48 -08:00
Cameron Clough 0e41bf3474 Ford: fix As-Built request identifier (#31609)
Should be 0xDE00 not 0xDE
2024-02-27 10:59:27 -08:00
Justin Newberry d457ed9d50 chrysler: freeze dataclass + remove more from interface (#31613)
* fix

* fix
2024-02-27 10:23:13 -08:00
Justin Newberry 666c41d969 Chrylser: move to platform config (#31600)
* do chrysler

* chrysler specs

* cleanup

Co-authored-by: Shane Smiskol <shane@smiskol.com>

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2024-02-27 10:16:22 -08:00
Justin Newberry d3f0f76a7e Nissan: move to platform config (#31599)
* do nissan

* cleanup + fix
2024-02-27 10:16:06 -08:00
Jason Wen cdd93855f2 Update CHANGELOGS.md 2024-02-27 10:30:59 -05:00
Shane Smiskol 3978e7e98c [bot] Fingerprints: add missing FW versions from new users (#31572)
* Export fingerprints

* get these FP in
2024-02-27 04:40:46 -08:00
Cameron Clough c724d1c86c Ford: log interesting module configuration data (#31569)
* Ford: log interesting module configuration data

Ford ECUs have what is called "As-Built Data" which is configured at the
factory/workshop to set what packages/features are enabled on the car.
But they also contain vehicle specific information (VIN, make, model,
weight, wheel base...), DTC information and driver preferences.

I dumped the CAN traffic for the FORScan diagnostic tool to see how it
requests this information from the ECUs.

<details>
<summary>FORScan communication with IPMA (camera)</summary>
<pre>
{'addr': 1798, 'type': 'request', 'service': 'READ_DATA_BY_IDENTIFIER', 'hex': '0200'}
{'addr': 1806, 'type': 'negative_response', 'hex': '2231'}
{'addr': 1798, 'type': 'request', 'service': 'TESTER_PRESENT', 'hex': '00'}
{'addr': 1806, 'type': 'positive_response', 'service': 'TESTER_PRESENT', 'hex': '00'}
{'addr': 1798, 'type': 'request', 'service': 'READ_DATA_BY_IDENTIFIER', 'hex': 'f190'}
{'addr': 1806, 'type': 'negative_response', 'hex': '2231'}
{'addr': 1798, 'type': 'request', 'service': 'READ_DATA_BY_IDENTIFIER', 'hex': 'de00'}
{'addr': 1806, 'type': 'positive_response', 'service': 'READ_DATA_BY_IDENTIFIER', 'hex': 'de00020799dbaa10296516a440000000000000000000000000'}
{'addr': 1798, 'type': 'request', 'service': 'READ_DATA_BY_IDENTIFIER', 'hex': 'f113'}
{'addr': 1806, 'type': 'positive_response', 'service': 'READ_DATA_BY_IDENTIFIER', 'data': b'\xf1\x13JX7T-19H406-CH\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00', 'hex': 'f1134a5837542d3139483430362d434800000000000000000000'}
{'addr': 1798, 'type': 'request', 'service': 'READ_DATA_BY_IDENTIFIER', 'hex': 'f188'}
{'addr': 1806, 'type': 'positive_response', 'service': 'READ_DATA_BY_IDENTIFIER', 'data': b'\xf1\x88JX7T-14F397-AH\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00', 'hex': 'f1884a5837542d3134463339372d414800000000000000000000'}
{'addr': 1798, 'type': 'request', 'service': 'READ_DATA_BY_IDENTIFIER', 'hex': 'f120'}
{'addr': 1806, 'type': 'positive_response', 'service': 'READ_DATA_BY_IDENTIFIER', 'data': b'\xf1 JX7T-14F397-BF\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00', 'hex': 'f1204a5837542d3134463339372d424600000000000000000000'}
{'addr': 1798, 'type': 'request', 'service': 'READ_DATA_BY_IDENTIFIER', 'hex': 'f121'}
{'addr': 1806, 'type': 'negative_response', 'hex': '2231'}
{'addr': 1798, 'type': 'request', 'service': 'READ_DATA_BY_IDENTIFIER', 'hex': 'f124'}
{'addr': 1806, 'type': 'positive_response', 'service': 'READ_DATA_BY_IDENTIFIER', 'data': b'\xf1$JX7T-14F398-AG\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00', 'hex': 'f1244a5837542d3134463339382d414700000000000000000000'}
{'addr': 1798, 'type': 'request', 'service': 'READ_DATA_BY_IDENTIFIER', 'hex': 'f125'}
{'addr': 1806, 'type': 'positive_response', 'service': 'READ_DATA_BY_IDENTIFIER', 'data': b'\xf1%JX7T-14F398-BF\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00', 'hex': 'f1254a5837542d3134463339382d424600000000000000000000'}
{'addr': 1798, 'type': 'request', 'service': 'READ_DATA_BY_IDENTIFIER', 'hex': 'f126'}
{'addr': 1806, 'type': 'negative_response', 'hex': '2231'}
{'addr': 1798, 'type': 'request', 'service': 'READ_DATA_BY_IDENTIFIER', 'hex': 'f10a'}
{'addr': 1806, 'type': 'negative_response', 'hex': '2231'}
{'addr': 1798, 'type': 'request', 'service': 'READ_DATA_BY_IDENTIFIER', 'hex': 'f111'}
{'addr': 1806, 'type': 'positive_response', 'service': 'READ_DATA_BY_IDENTIFIER', 'data': b'\xf1\x11JX7T-14F403-CA\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00', 'hex': 'f1114a5837542d3134463430332d434100000000000000000000'}
{'addr': 1798, 'type': 'request', 'service': 'READ_DATA_BY_IDENTIFIER', 'hex': 'f18c'}
{'addr': 1806, 'type': 'positive_response', 'service': 'READ_DATA_BY_IDENTIFIER', 'data': b'\xf1\x8c182762191\x00\x00\x00\x00\x00\x00\x00', 'hex': 'f18c31383237363231393100000000000000'}
{'addr': 1798, 'type': 'request', 'service': 'READ_DATA_BY_IDENTIFIER', 'hex': 'f162'}
{'addr': 1806, 'type': 'negative_response', 'hex': '2231'}
{'addr': 1798, 'type': 'request', 'service': 'READ_DATA_BY_IDENTIFIER', 'hex': 'f110'}
{'addr': 1806, 'type': 'positive_response', 'service': 'READ_DATA_BY_IDENTIFIER', 'data': b'\xf1\x10DS-JX7T-19H406-AD\x00\x00\x00\x00\x00\x00\x00', 'hex': 'f11044532d4a5837542d3139483430362d414400000000000000'}
{'addr': 1798, 'type': 'request', 'service': 'READ_DATA_BY_IDENTIFIER', 'hex': '0202'}
{'addr': 1806, 'type': 'negative_response', 'hex': '2231'}
{'addr': 1798, 'type': 'request', 'service': 'READ_DATA_BY_IDENTIFIER', 'hex': 'd100'}
{'addr': 1806, 'type': 'positive_response', 'service': 'READ_DATA_BY_IDENTIFIER', 'hex': 'd10001'}
{'addr': 1798, 'type': 'request', 'service': 'READ_DATA_BY_IDENTIFIER', 'hex': 'd700'}
{'addr': 1806, 'type': 'positive_response', 'service': 'READ_DATA_BY_IDENTIFIER', 'hex': 'd70001010101'}
{'addr': 1798, 'type': 'request', 'service': 'READ_DATA_BY_IDENTIFIER', 'hex': 'd701'}
{'addr': 1806, 'type': 'positive_response', 'service': 'READ_DATA_BY_IDENTIFIER', 'hex': 'd70101020000'}
{'addr': 1798, 'type': 'request', 'service': 'READ_DATA_BY_IDENTIFIER', 'hex': 'dd01'}
{'addr': 1806, 'type': 'positive_response', 'service': 'READ_DATA_BY_IDENTIFIER', 'hex': 'dd010102f8'}
{'addr': 1798, 'type': 'request', 'service': 'READ_DATA_BY_IDENTIFIER', 'hex': 'f113'}
{'addr': 1806, 'type': 'positive_response', 'service': 'READ_DATA_BY_IDENTIFIER', 'data': b'\xf1\x13JX7T-19H406-CH\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00', 'hex': 'f1134a5837542d3139483430362d434800000000000000000000'}
{'addr': 1798, 'type': 'request', 'service': 'READ_DATA_BY_IDENTIFIER', 'hex': 'fd08'}
{'addr': 1806, 'type': 'positive_response', 'service': 'READ_DATA_BY_IDENTIFIER', 'hex': 'fd0800000500500100300000000000000000000000300000000000000000200100400300100200001200f00300500000000000000300c00b00400200000000000000000000000000000000200f01201e01501400a00200200400700d02501d01700700e06405005e05503401100a000000002002002001000000'}
{'addr': 1798, 'type': 'request', 'service': 'READ_DATA_BY_IDENTIFIER', 'hex': 'fd09'}
{'addr': 1806, 'type': 'positive_response', 'service': 'READ_DATA_BY_IDENTIFIER', 'hex': 'fd09ffec0001fef60002'}
{'addr': 1798, 'type': 'request', 'service': 'READ_DATA_BY_IDENTIFIER', 'hex': 'de00'}
{'addr': 1806, 'type': 'positive_response', 'service': 'READ_DATA_BY_IDENTIFIER', 'hex': 'de00020799dbaa10296516a440000000000000000000000000'}
{'addr': 1798, 'type': 'request', 'service': 'READ_DTC_INFORMATION', 'hex': '028f'}
{'addr': 1806, 'type': 'positive_response', 'service': 'READ_DTC_INFORMATION', 'hex': '02ff50019768c253002cc401862cc418862c'}
... skip DTC requests ...
{'addr': 1798, 'type': 'request', 'service': 'READ_DATA_BY_IDENTIFIER', 'hex': 'de00'}
{'addr': 1806, 'type': 'positive_response', 'service': 'READ_DATA_BY_IDENTIFIER', 'hex': 'de00020799dbaa10296516a440000000000000000000000000'}
{'addr': 1798, 'type': 'request', 'service': 'READ_DATA_BY_IDENTIFIER', 'hex': 'de01'}
{'addr': 1806, 'type': 'positive_response', 'service': 'READ_DATA_BY_IDENTIFIER', 'hex': 'de01fd5616db5fffff557fe1f842080000000800000008000000080000000819bfe00f7c00000000000000000000000000000000'}
{'addr': 1798, 'type': 'request', 'service': 'READ_DATA_BY_IDENTIFIER', 'hex': 'de02'}
{'addr': 1806, 'type': 'positive_response', 'service': 'READ_DATA_BY_IDENTIFIER', 'hex': 'de02800000008000000080000000800000008337fc00800000008000000080000000800000008337fc0000000000000000000000'}
{'addr': 1798, 'type': 'request', 'service': 'READ_DATA_BY_IDENTIFIER', 'hex': 'de03'}
{'addr': 1806, 'type': 'positive_response', 'service': 'READ_DATA_BY_IDENTIFIER', 'hex': 'de03fffc26c3800000000000'}
{'addr': 1798, 'type': 'request', 'service': 'READ_DATA_BY_IDENTIFIER', 'hex': 'de04'}
{'addr': 1806, 'type': 'positive_response', 'service': 'READ_DATA_BY_IDENTIFIER', 'hex': 'de04546a8c0000000000'}
{'addr': 1798, 'type': 'request', 'service': 'READ_DATA_BY_IDENTIFIER', 'hex': 'de05'}
{'addr': 1806, 'type': 'negative_response', 'hex': '2231'}
{'addr': 1798, 'type': 'request', 'service': 'READ_DATA_BY_IDENTIFIER', 'hex': 'de06'}
{'addr': 1806, 'type': 'negative_response', 'hex': '2231'}
{'addr': 1798, 'type': 'request', 'service': 'READ_DATA_BY_IDENTIFIER', 'hex': 'de07'}
{'addr': 1806, 'type': 'negative_response', 'hex': '2231'}
{'addr': 1798, 'type': 'request', 'service': 'READ_DATA_BY_IDENTIFIER', 'hex': 'de08'}
{'addr': 1806, 'type': 'negative_response', 'hex': '2231'}
{'addr': 1798, 'type': 'request', 'service': 'READ_DATA_BY_IDENTIFIER', 'hex': 'de09'}
{'addr': 1806, 'type': 'negative_response', 'hex': '2231'}
{'addr': 1798, 'type': 'request', 'service': 'READ_DATA_BY_IDENTIFIER', 'hex': 'de0a'}
{'addr': 1806, 'type': 'negative_response', 'hex': '2231'}
{'addr': 1798, 'type': 'request', 'service': 'READ_DATA_BY_IDENTIFIER', 'hex': 'de0b'}
{'addr': 1806, 'type': 'negative_response', 'hex': '2231'}
{'addr': 1798, 'type': 'request', 'service': 'READ_DATA_BY_IDENTIFIER', 'hex': 'de0c'}
{'addr': 1806, 'type': 'negative_response', 'hex': '2231'}
{'addr': 1798, 'type': 'request', 'service': 'READ_DATA_BY_IDENTIFIER', 'hex': 'de0d'}
{'addr': 1806, 'type': 'negative_response', 'hex': '2231'}
{'addr': 1798, 'type': 'request', 'service': 'READ_DATA_BY_IDENTIFIER', 'hex': 'de0e'}
{'addr': 1806, 'type': 'negative_response', 'hex': '2231'}
</pre>
</details>

Using UDS service `READ_DATA_BY_IDENTIFIER`, we can read the As-Built
blocks from `0xDExx` with no diagnostic session/security access necessary.

I used [Online As-Built databases](https://cyanlabs.net/asbuilt-db/) and
various coding spreadsheets shared online to find values we might be
interested in using for fingerprinting (both vehicle parameters and
identifying the platform).

ABS:
- Payload tier (Base, Mid Payload Upgrade, Heavy Duty Payload
  Upgrade...)
- Wheelbase
- Steering ratio
- Cruise Control Mode (Normal, Adaptive)
- Enable Stop and Go

PSCM:
- Enable Lane Keeping Aid
- Enable Traffic Jam Assist
- Enable Lane Centering Assist

IPMA (Q4):
- Steering ratio
- Wheelbase

APIM (Sync 3 and Sync 4):
- Steering ratio
- Vehicle weight
- Wheelbase

There are more potentially useful signals which I haven't included
although they might not be necessary:
- Vehicle (Ford platform code, like "C344" or "C519" - although the
  source of the mapping from index to code is FORScan and not Ford
themselves unless we can find a better source).
- Fuel type
- Vehicle length/height/front track/rear track
- Tire circumference (could be useful for converting wheel speed rad/s
  to m/s)
- Steering angle source (Pinion, Wheel)
- Country code (letters, e.g. US, CA or UK)
- Transmission type
- CAN network architecture
- More feature flags (the APIM also stores settings for ACC, LCA, BLIS)

The full list of settings I have found is
[here](https://github.com/incognitojam/op-notebooks/blob/main/ford/settings.py).

* FwQueryConfig: add data_requests

* add car_data to CarInterface get_params

* Revert "add car_data to CarInterface get_params"

This reverts commit aa161a6b82082705db97bea2c4317e1888a74845.

* test_ford: add APIM ecu address

* Revert "FwQueryConfig: add data_requests"

This reverts commit dc5484a9b80be5bc61a7fdf55560b8813bc43ef7.

* fix block numbers and add extra queries

* bump test_fw_query_timing

* add missing query whitelists

* simplify asbuilt requests

* use forscan block ids

* formatting

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2024-02-27 04:22:10 -08:00
Justin Newberry 9ecff49118 platformconfig: freeze all dataclasses (#31605)
* frozen

* frozen
2024-02-26 21:16:05 -08:00
Justin Newberry 6d0027342a remove cast for platformconfig (#31604)
* this isnt required

* Cleaner
2024-02-26 21:01:41 -08:00
Comma Device 14ea615ae4 no amp config 2024-02-26 20:39:41 -08:00
Adeeb Shihadeh 3c4e82f14a get name from kernel (#31602)
* get name from kernel

* revert that

---------

Co-authored-by: Comma Device <device@comma.ai>
2024-02-26 20:21:44 -08:00
Justin Newberry edd26acdc3 can_replay: add type hint (#31601)
type hint
2024-02-26 16:26:01 -08:00
Jason Wen 4124c4593f Merge remote-tracking branch 'commaai/openpilot/master' into sync-20240224
# Conflicts:
#	cereal
#	opendbc
#	panda
2024-02-26 16:39:04 -05:00
Justin Newberry 9d1cafd0fc move with_http_server to selfdrive/test/helpers (#31597)
* move

* fix
2024-02-26 12:53:17 -08:00
Justin Newberry 86090a1e15 add common/mock to release (#31596)
* add mock

* fix

* fix2
2024-02-26 11:20:51 -08:00
Adeeb Shihadeh 5c0bbc7dda [bot] Bump submodules (#31594)
* bump submodules

* bump opendbc

---------

Co-authored-by: jnewb1 <jnewb1@users.noreply.github.com>
Co-authored-by: Justin Newberry <justin@comma.ai>
2024-02-26 11:20:42 -08:00
Adeeb Shihadeh a1fefabbca [bot] Update Python packages and pre-commit hooks (#31595)
Update Python packages and pre-commit hooks

Co-authored-by: jnewb1 <jnewb1@users.noreply.github.com>
2024-02-26 09:08:24 -08:00
Cameron Clough 8e03cdfc2a Ford: move to PlatformConfig (#31554)
* Ford: move to PlatformConfig

* Align Aviator model years with Explorer

* Add CarSpecs to PlatformConfig

---------

Co-authored-by: justin <justin@comma.ai>
2024-02-25 17:55:42 -08:00
Eric Brown 5012e15aa6 GM: move to platform config (#31553)
* subaru platform config

* forester wrong dbc

* spacing

* subaru car specs

* someday!

* more red diff

* Move GM to platform config

* Implement CarSpecs

* Simplify centerToFront

* Accidentally had subaru DBC

* Fix typo in DBC name

* done above

* two spaces

* that is moved up

* fix hardcoded fingerprints

* whitespace

* values

* better?

* fix

* bump

* fix

* fix

---------

Co-authored-by: Justin Newberry <justin@comma.ai>
2024-02-25 17:53:26 -08:00
Jason Young da540eac13 VW: Move car specs to PlatformConfig (#31567)
* subaru platform config

* forester wrong dbc

* spacing

* subaru car specs

* someday!

* more red diff

* all brands can be done like this

* but this should be done first and thats subaru specific

* that seems very low but we shouldn't change it here

* as long as it subclasses str its fine

* well that sucked

* cleanup and follow refactor

* diff reduction

* oops

* fix

* force fingerprint

* Revert "force fingerprint"

This reverts commit 600fbcd7d559703601a06c8876a640de417e5b6c.

* space

* Fix specs

* this one too

---------

Co-authored-by: Justin Newberry <justin@comma.ai>
2024-02-25 17:38:17 -08:00
Cameron Clough 80da3aee14 mypy: use implicit-optional (#31590)
* mypy: set implicit-optional = true

* find and replace '| None = None' -> '= None' in function args
2024-02-25 13:29:18 -08:00
Cameron Clough 3520d47955 vscode: add ruff extension (#31589) 2024-02-25 11:41:27 -08:00
Robbe Derks 854e78eaff linux-aarch64 also works for plotjuggler 2024-02-25 18:18:43 +00:00
Cameron Clough 30afe2c231 scripts: install and run pyupgrade (#31587) 2024-02-25 09:26:11 -08:00
Cameron Clough be8e503a7d cars: update platforms typing syntax (#31586) 2024-02-25 11:24:33 -05:00
Justin Newberry cdd4d418aa Subaru: fix forester weight (#31585)
fix weight
2024-02-24 23:15:16 -08:00
Justin Newberry e6009d80e9 cars: introduce "Platform" union type for all car enums (#31558)
* Hmm

* release

* hmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm

* unrelated

* forgot

* cleaner

* Platform

* new syntax

* Fix

* clean

* Fix
2024-02-24 22:18:13 -08:00
Adeeb Shihadeh 96ce470b73 VSCode settings (#31582)
* base config

* add launch.json

* little more

* cleanup

* fix

---------

Co-authored-by: Justin Newberry <jnewberry0502@gmail.com>
2024-02-24 20:54:04 -08:00
Jason Wen 9aca2536aa Merge branch 'upstream/openpilot/master' into sync-20240224
# Conflicts:
#	selfdrive/car/subaru/values.py
2024-02-24 20:46:45 -05:00
Jason Wen 0b0ddd8d9e Update CHANGELOGS.md 2024-02-24 20:41:38 -05:00
Cameron Clough 995250ae49 use pyupgrade to update to new typing syntax (#31580)
* add pyupgrade hook

* run pyupgrade (pre-commit run -a)

* ruff --fix

* Revert "add pyupgrade hook"

This reverts commit 56ec18bb6b8602a0b612f3803d96cdad14b52066.

* revert changes to third_party/

* manual type fixes

* explicit Optional wrapping capnp objects
2024-02-24 16:41:23 -08:00
Cameron Clough 6ed72b3626 Ford: add hybrid variants to docs (#31575)
* Ford: add hybrid variants to docs

Following up on https://github.com/commaai/openpilot/pull/31568

| CarInfoPlatform              | ElectrificationLevel   | ModelYear              | Series                                                                                            | Trim                                                                |
|:-----------------------------|:-----------------------|:-----------------------|:--------------------------------------------------------------------------------------------------|:--------------------------------------------------------------------|
| FORD BRONCO SPORT 1ST GEN    | ICE                    | 2021, 2022             | BADLANDS, BASE, BIG BEND, FIRST EDITION, OUTER BANKS                                              |                                                                     |
| FORD ESCAPE 4TH GEN          | FHEV                   | 2020, 2021, 2022       | SE, SEL, Titanium                                                                                 |                                                                     |
| FORD ESCAPE 4TH GEN          | ICE                    | 2020, 2021, 2022       | S, SE, SEL, Titanium                                                                              |                                                                     |
| FORD ESCAPE 4TH GEN          | PHEV                   | 2020, 2021, 2022       | SE, SEL, Titanium                                                                                 |                                                                     |
| FORD EXPLORER 6TH GEN        | HEV                    | 2020, 2021, 2022, 2023 | Limited, Platinum                                                                                 |                                                                     |
| FORD EXPLORER 6TH GEN        | ICE                    | 2020, 2021, 2022, 2023 | Base, Black Label, King Ranch, Limited, Platinum, Reserve, ST, ST-Line, Standard, Timberline, XLT |                                                                     |
| FORD EXPLORER 6TH GEN        | PHEV                   | 2020, 2021             | Black Label Grand Touring, Blk Label Grand Touring, Grand Touring                                 |                                                                     |
| FORD F-150 14TH GEN          | HEV                    | 2021, 2022, 2023       | , F-Series                                                                                        | SuperCrew                                                           |
| FORD F-150 14TH GEN          | ICE                    | 2021, 2022, 2023       | , F-Series                                                                                        | , Regular Cab, SuperCab, SuperCrew, SuperCrew-Raptor, SuperCrew-SSV |
| FORD F-150 LIGHTNING 1ST GEN | BEV                    | 2022, 2023             |                                                                                                   | SuperCrew                                                           |
| FORD MAVERICK 1ST GEN        | HEV                    | 2022, 2023             | SUPERCREW, XL XLT Lariat                                                                          | , SUPERCREW                                                         |
| FORD MAVERICK 1ST GEN        | ICE                    | 2022, 2023             | SUPERCREW, XL XLT Lariat, XLT Lariat                                                              | , SUPERCREW                                                         |
| FORD MUSTANG MACH-E 1ST GEN  | BEV                    | 2021, 2022, 2023       | California Route 1, GT, Premium, Select                                                           |                                                                     |

Data from NHTSA database and https://www.ford.co.uk/cars.

* revert F-150 model year change
2024-02-24 10:01:02 -08:00
Jason Wen 73ff33005d Merge branch 'upstream/openpilot/master' into sync-20240224
# Conflicts:
#	panda
#	selfdrive/car/subaru/values.py
2024-02-24 09:51:14 -05:00
Jason Wen b049836943 Update CHANGELOGS.md 2024-02-24 09:48:18 -05:00
Jason Wen b8773a10d4 Sync: commaai/openpilot:master into sunnypilot/sunnypilot:master (#290) 2024-02-24 09:21:16 -05:00
Jason Wen 8945fffab0 Merge branch 'upstream/openpilot/master' into sync-20240220
# Conflicts:
#	cereal
#	common/version.h
#	selfdrive/controls/controlsd.py
#	selfdrive/thermald/power_monitoring.py
2024-02-24 09:14:42 -05:00
Shane Smiskol 378ba114f9 Ford: support hybrid Q3 platforms (#31568)
* bump

* ford: remove dynamic dashcam lockout for hybrids

* releases?

* Revert "releases?"

This reverts commit 88d950043d79b8c00535f48ed84b854bc2ab2557.

* bump

* Reapply "releases?"

This reverts commit db5079dc3f1a6bce70bd04430be45704d8604e76.

* 097
2024-02-23 21:22:34 -08:00
Justin Newberry adb7e2e229 CI: Retry multiarch build (#31570)
hardware
2024-02-23 20:54:48 -08:00
Adeeb Shihadeh 92475d653b agnos 9.7 (#31564)
* agnos 9.7

* update
2024-02-23 17:41:03 -08:00
Jason Young b75a6cea34 VW PQ: Consolidate and cleanup tuning (#31566)
consolidate and cleanup PQ configs
2024-02-23 17:35:21 -08:00
Justin Newberry 1161d33c18 Subaru: move carspecs to PlatformConfig (#31550)
* subaru platform config

* forester wrong dbc

* spacing

* subaru car specs

* someday!

* more red diff

* all brands can be done like this

* but this should be done first and thats subaru specific

* that seems very low but we shouldn't change it here

* as long as it subclasses str its fine

* fix
2024-02-23 13:23:40 -08:00
Justin Newberry 556f973896 segment range docs update (#31560)
* the format

* cleaner
2024-02-23 11:50:33 -08:00
Shane Smiskol 72a7f008ab Volkswagen: log FW on non-OBD buses (#31556)
* log lots

* update refs

* cmt
2024-02-23 04:00:28 -08:00
Justin Newberry c9c2ab9cc8 pre-commit: run ruff first (#31548)
move ruff up
2024-02-22 18:34:42 -08:00
Justin Newberry 73a497ded8 cleanup PlatformConfig (#31551)
cleanup
2024-02-22 17:49:27 -08:00
Justin Newberry 015eed5d61 Subaru: move to PlatformConfig (#31547)
* subaru platform config

* forester wrong dbc

* spacing
2024-02-22 17:17:00 -08:00
Adeeb Shihadeh db57a21c88 pandad: wait until USB is up before panda recovery (#31549) 2024-02-22 17:15:53 -08:00
Adeeb Shihadeh 968eaf1cb2 bump to 0.9.7 2024-02-22 16:12:28 -08:00
Justin Newberry 1ee8c9aa33 cars: introduce "platformconfig" to be a configuration for all relevant car information (#31542)
* this is decent

* make sure the docs don't change for now

* hackery

* these can live here
2024-02-22 15:58:37 -08:00
Greg Hogan 43f64ec500 URLFile: default value test (#31544)
* URLFile: default value test

* cleanup

* fix env

* improvements

* fix GET response

* only delete cache dir if it exists

* env pop

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2024-02-22 13:17:02 -08:00
Shane Smiskol a2bda8724d Ford: add back OBD queries for logging (#31543)
* Revert "Reapply "Ford: don't fingerprint on engine (#31195)" part 2 (#31320)"

This reverts commit dd6065c33b.

* fix refs

* mark logging
2024-02-22 01:34:15 -08:00
Shane Smiskol 3009a51c06 athenad: check end_event while uploading files (#31541)
* check end_event while uploading, throw abort exception if we need to shut down/restart

* fix

* draft test

stash

* Revert - there's no easy way to know if it breaks early in upload loop
or not yet

This reverts commit ad893687e196ebb31d276a114c19e9af963ed02a.

* todo for now
2024-02-22 00:31:24 -08:00
Shane Smiskol c0e172e0c0 athenad: fix test timeouts and comments (#31540)
* these pass in 0.5s since server sends ping on connect

* comments

* unused

* fix

* fix these too

* check end_event while uploading, throw abort exception if we need to shut down/restart

* Revert "check end_event while uploading, throw abort exception if we need to shut down/restart"

This reverts commit f0b822fca98cd8e2b3d4d6d5ede6b512d3ed3ec0.

* more tol for lte connection
2024-02-21 22:08:10 -08:00
Shane Smiskol 9dde727974 Fix athenad reconnect test (#31538)
* debugging

* this also works

* so does this

* more similar to existing method

* clean up

* more

* more
2024-02-21 19:40:35 -08:00
Adeeb Shihadeh d8ce15a869 controlsd: increase initializing timeout (#31535) 2024-02-21 16:23:43 -08:00
Justin Newberry 00315325a3 controlsd: move carParams management to card (#31534)
* card-manage

* fix

* init params

* reversed that

* can be in the init
2024-02-21 16:11:00 -08:00
Adeeb Shihadeh 0b4d08fab8 remove deviceState.ambientTempC (#31533) 2024-02-21 13:57:49 -08:00
Adeeb Shihadeh 34138d0be9 qcomgpsd: use AT helper with retry for all AT commands (#31532) 2024-02-21 13:57:29 -08:00
Justin Newberry 837b811f9c Split out can control into new "card" class (#31529)
* card v1

* fix car events

* fix proc replay

* lets keep that the same

* no extra space here

* move can recv timeouts to card

* organize imports

* organize imports

* slightly bump cpu

* not a card!
2024-02-21 13:18:43 -08:00
Justin Newberry 0eba392cf2 controlsd: sort imports (#31531)
sort imports
2024-02-21 11:58:04 -08:00
Adeeb Shihadeh 7a29617108 tici: ensure DSP permissions are setup on boot (#31530)
Co-authored-by: Comma Device <device@comma.ai>
2024-02-21 11:48:17 -08:00
Justin Newberry 3f104f3fbd fix static analysis 2024-02-21 11:26:49 -08:00
Adeeb Shihadeh e7695c3f32 add power cycling to can_replay 2024-02-21 11:12:56 -08:00
Shane Smiskol c3e3103830 torqued: log raw params if calculable (#31521)
* log params when calculable

* better

* Update ref_commit

* this is redundant

* this is only used in one place, confusing which to use so remove

* better
2024-02-20 22:30:51 -08:00
Shane Smiskol 4abda1b6bc thermald: remove instant low voltage check (#31522)
remove instant lv check for old bug
2024-02-20 21:02:38 -08:00
Adeeb Shihadeh 3e6ac26569 thermald: make CPU usage list a constant size (#31526) 2024-02-20 20:15:46 -08:00
Adeeb Shihadeh 27c56722cc fix spinner asset paths (#31524) 2024-02-20 18:01:28 -08:00
Adeeb Shihadeh 1c794b710c uploader: sleep more when no files in queue (#31523)
* uploader: sleep more when no files in queue

* fix test
2024-02-20 17:25:12 -08:00
Adeeb Shihadeh c645feb1aa pj: gpu usage isn't real 2024-02-20 16:55:46 -08:00
İdris AKBIYIK 272019f73d Add fingerprints.py for Skoda Octavia MK3 2017 (#30846)
* Update fingerprints.py for Skoda Octavia MK2 2017

-Fingerprint values added

* Update fingerprints.py Passat Alltrack 4x4

* another PR

* format

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2024-02-20 15:57:40 -08:00
Justin Newberry 51e3daf244 Subaru: add 2024 forester (#31520)
* also angle based

* 24 forester
2024-02-20 15:02:56 -08:00
Adeeb Shihadeh 2cf831a304 debug: improve count_events.py output 2024-02-20 14:20:53 -08:00
Justin Newberry a51ef41cf8 Simulator: simulate the obd enabled/changed dance (#31519)
obd dance
2024-02-20 12:11:42 -08:00
Shane Smiskol 2184da9deb [bot] Fingerprints: add missing FW versions from new users (#31518)
Export fingerprints
2024-02-20 08:07:43 -08:00
Jason Wen bbbca41296 Merge branch 'upstream/openpilot/master' into sync-20240220
# Conflicts:
#	cereal
#	opendbc
#	panda
#	selfdrive/car/honda/carstate.py
2024-02-20 11:05:51 -05:00
Jason Wen 4ab41dd619 Update CHANGELOGS.md 2024-02-20 11:02:03 -05:00
Adeeb Shihadeh 5d4dc1dc2f Make ui independent of launch path (#31517)
* Make ui independent of launch path

* comment
2024-02-19 22:34:24 -08:00
Adeeb Shihadeh 675eeb9d16 modeld: add extra log for startup time debugging 2024-02-19 22:33:30 -08:00
Adeeb Shihadeh 528e555892 debug: print log messages in relative time 2024-02-19 22:33:08 -08:00
goodchoom 8b5c9e84d2 Alerts: fix inconsistent capitalization (#31514)
fix capitalization
2024-02-19 18:18:20 -08:00
Harald Schäfer 26481d082f Certified Herbalist Model (#31425)
* ab9921cb-6e0a-4816-bec5-ebb55d37a7f1/700

* 93532291-a562-4ab8-82d2-34d6e9fdcfbb/700

* Update ref
2024-02-19 17:26:10 -08:00
Harald Schäfer d371fb042c Modeld: cleanup unused variables (#31516)
Modeld: cleanup used variables
2024-02-19 17:07:15 -08:00
Adeeb Shihadeh 1145122b3f More startup checks (#31511)
* no lag!

* kill first

---------

Co-authored-by: Comma Device <device@comma.ai>
2024-02-19 13:58:36 -08:00
Milan Medić 69fb3c2ed5 add Cython static analysis (#31491)
* Adding pre-commit hook for cython static analysis

* Adding changes to cython files to pass static analysis

* Revert "Adding changes to cython files to pass static analysis"

This reverts commit 9a0eb733199abd9eef1eac3d024ef2760348d67c.

* Adding ignore rule for indentation of 4 spaces (E111)

* Fixes for cython-lint static analysis

* Revert "Fixes for cython-lint static analysis"

This reverts commit 972741735b2bdc73460d65a4d7ea167dfc0f4644.

* Adding two new rules into ignore list (2 new lines after difinition of class)

* Adding fixes for cython static analysis
2024-02-19 12:11:56 -08:00
Adeeb Shihadeh 37206a83fe [bot] Bump submodules (#31507)
bump submodules

Co-authored-by: jnewb1 <jnewb1@users.noreply.github.com>
2024-02-19 10:54:06 -08:00
Adeeb Shihadeh 86184b76d5 more modeld logging (#31510) 2024-02-19 10:46:04 -08:00
Adeeb Shihadeh be4bbca9a3 [bot] Update Python packages and pre-commit hooks (#31508)
* Update Python packages and pre-commit hooks

* remove that

---------

Co-authored-by: jnewb1 <jnewb1@users.noreply.github.com>
Co-authored-by: Justin Newberry <justin@comma.ai>
2024-02-19 10:45:10 -08:00
Adeeb Shihadeh 4ded4c53af thneed: printf -> cloudlog (#31506)
* thneed: printf -> cloudlog

* LOGI

* Revert "LOGI"

This reverts commit e6ab7e45fb7f3678727595f67c1f6c8e2cda734b.
2024-02-18 23:04:24 -08:00
Adeeb Shihadeh c6eae405a5 ensure startup is clean (#31504)
* strict

* cleanup

---------

Co-authored-by: Comma Device <device@comma.ai>
2024-02-18 17:03:33 -08:00
Adeeb Shihadeh b28daef34a controlsd: allow mismatch while boardd reads back mode (#31505)
* controlsd: allow mismatch while boardd reads back mode

* self
2024-02-18 14:43:42 -08:00
Shane Smiskol 49dd8b476c [bot] Fingerprints: add missing FW versions from CAN fingerprinting cars (#31502)
Export fingerprints
2024-02-18 11:01:01 -08:00
Jason Wen 5e5b67a33f README: New Discord URL (#286) 2024-02-17 21:18:05 -05:00
Adeeb Shihadeh 79fa3954b7 bump panda 2024-02-17 14:29:46 -08:00
Shane Smiskol 07adbd347f Honda Accord: remove unknown ECU
Could be the radio/heater controller
2024-02-17 04:40:57 -08:00
Shane Smiskol 2e8c62358c Honda Bosch: detect alternate brake signal (#31500)
* Do Accord

* add comment

* good test

* this catches the accord/accordh issue!

* as expected, only if both radar&camera have in common FW does the test fail

* cmt

* clean up

* better

* Use HondaFlags

* detect alt brake

* for test

* hypothesis isn't installed

* test failure

* works

* Revert " works"

This reverts commit bfc0d808abe548630e6507431f13b01e8a1316cb.

* Revert "test failure"

This reverts commit 10ab6eb63ccd411740751b742f31fd610397fe8e.

* Revert "hypothesis isn't installed"

This reverts commit d474cc3f0ed7e84fe8bd24f452b3315fd2b8d47c.

* Revert "for test"

This reverts commit 98e039f4fc0189ccb57c1dae6b344209ef15eb1c.

* this is important too

* clean up

* more clean up

* Update ref_commit
2024-02-17 04:03:12 -08:00
Adeeb Shihadeh 62f4eecf16 bump panda (#31498) 2024-02-16 23:18:51 -08:00
Shane Smiskol c5f1f4c676 test_fw_query_on_routes: get first qlog (#31496)
* fast

* this isn't internal

* see
2024-02-16 17:55:15 -08:00
Harald Schäfer 900300a928 Calibration Transform: border pad (#31495) 2024-02-16 15:18:26 -08:00
Mitchell Goff 86410a0ef0 Bumped model replay ref for new map tiles (#31493) 2024-02-16 22:32:43 +00:00
Adeeb Shihadeh b218abcaa3 controlsd: increase initializing timeout 2024-02-16 13:35:45 -08:00
Adeeb Shihadeh 0723c2bc5f log git commit date (#31490)
* log git commit date

* unix ts

* fix

* bump cereal

* cleanup
2024-02-16 13:19:10 -08:00
Jason Wen 89c8382417 Sync: commaai/openpilot:master into sunnypilot/sunnypilot:master (#283) 2024-02-16 08:41:32 -05:00
Jason Wen 658f0f6249 bump submodules 2024-02-16 08:40:54 -05:00
Jason Wen fd11bc1d7d Merge branch 'upstream/openpilot/master' into sync-20240216
# Conflicts:
#	cereal
#	opendbc
#	panda
#	selfdrive/car/hyundai/interface.py
#	selfdrive/controls/controlsd.py
#	selfdrive/monitoring/dmonitoringd.py
2024-02-16 08:27:39 -05:00
Adeeb Shihadeh 5a441ec0c4 modeld: fix and cleanup getting carParams (#31488) 2024-02-15 22:20:00 -08:00
Shane Smiskol 0a5e994947 [bot] Fingerprints: add missing FW versions from new users (#31489)
Export fingerprints
2024-02-15 21:44:02 -08:00
Justin Newberry 0cb206cb95 conftest: cleanup environment cleaner (#31486)
* clean env

* no self
2024-02-15 13:38:42 -08:00
Adeeb Shihadeh 663f7017f2 fix linter 2024-02-15 13:35:49 -08:00
Adeeb Shihadeh eb5a847dc8 Update RELEASES.md 2024-02-15 13:18:19 -08:00
Adeeb Shihadeh 64851baea8 debug/count_events.py improvements 2024-02-15 13:13:11 -08:00
Justin Newberry c2b9f7163a test_qcomgpsd: subtest the gps_runtime scenarios (#31485)
* subtest this

* runtime

---------

Co-authored-by: Comma Device <device@comma.ai>
2024-02-15 13:12:11 -08:00
Justin Newberry 16d1339553 test_logreader: test internal scenarios (#31484)
* test source scenario

* test source scenario

* fix
2024-02-15 12:10:56 -08:00
Adeeb Shihadeh d31269f663 fix no GPS alert when driving slowly in a tunnel (#31483) 2024-02-15 11:52:57 -08:00
Justin Newberry 8aee0d2af2 test_logreader: test interactive mode + fix typo in AUTO_INTERACTIVE (#31481)
* fix spelling

* test interactive

* remove that

* test taht

* move that
2024-02-15 11:24:27 -08:00
Shane Smiskol baa77ced19 TestFwFingerprint: test to prevent mismatches when utilizing non-essential ECUs (#31478)
* test

* same speed
2024-02-15 00:35:21 -08:00
Shane Smiskol 62c51e2d0c HKG CAN FD: fix bus 0 VIN addr
Added camera addr instead of cluster on accident here: https://github.com/commaai/openpilot/pull/31348
2024-02-14 23:35:59 -08:00
Shane Smiskol b1f452d42b Toyota TSS2: radar disable support (#29094)
* try to disable radar

* fix bug and bump panda

* prep

* always attempt longitudinal for testers

* fix rav4

* send ACC_HUD

* bump panda

* revert

* check for failure to disable

* fix arg

* allow

* this has no effect

* bump

* update docs

* bug fix

* fix

* check relay malfunc for acc control

* remove route where SDSU caused a relay malfunction

* missing rav4

* bump

* use chr route

* bump

* add back

* relay malfunction

* bump to master

* add to releases
2024-02-14 23:27:07 -08:00
Shane Smiskol 622d099d00 Toyota: check ACC_CONTROL for relay malfunction (#31475)
toyota: check acc control for relay malfunction
2024-02-14 21:55:33 -08:00
Shane Smiskol 55ba64568d test_models: add RAV4 route without relay malfunction (#31474)
add it back
2024-02-14 21:41:01 -08:00
Shane Smiskol 0e94567a18 Toyota: only read gas interceptor if we're using it (#31473)
* we shouldn't be reading from interceptor and not writing/sending gas command

* better

* add a test!

* comment is clear
2024-02-14 21:32:44 -08:00
Shane Smiskol 68fcc955ac bump panda (#31472)
* bump

* fix renames
2024-02-14 20:47:30 -08:00
Shane Smiskol c65dfaac68 Leaf: get VIN (#31398)
* Add Leaf VIN query

* add lots of requests

* add exception for nissan

* no more logging

* update refs

* lower worst case

* Update selfdrive/car/car_helpers.py

* update refs

* it's the vcm!
2024-02-14 20:06:14 -08:00
Shane Smiskol 9acc55861c VIN: lower retries (#31471)
* lower retries

* comment
2024-02-14 17:08:12 -08:00
Adeeb Shihadeh 20db82641f Update RELEASES.md 2024-02-14 15:36:54 -08:00
Adeeb Shihadeh 2f15c878d0 bump cereal (#31469)
* bump cereal

* bump cereal
2024-02-14 15:01:02 -08:00
Greg Hogan e59fe0014a URLFile: add typing and internalize pool manager (#31466)
* URLFile: add typing and internalize pool manager

* cleanup
2024-02-14 14:09:01 -08:00
Adeeb Shihadeh 3cd0e5d43c Reapply "radard: enable avg input service frequency checks (#31404)" (#31468)
This reverts commit 7f7f1fd21b.
2024-02-14 13:53:33 -08:00
Adeeb Shihadeh 6f905ed979 radard: remove sleep for cars without radar (#31467)
* radard: remove sleep for cars without radar

* fix

* update refs
2024-02-14 13:12:54 -08:00
Adeeb Shihadeh 194bd85905 log all startups 2024-02-14 11:44:19 -08:00
Justin Newberry 33cf6bda9e LogReader: add typing hints (#31464)
logreader typing
2024-02-14 10:34:17 -08:00
Justin Newberry 1436f576df LogReader: retain old behavior for direct parsing of files (#31419)
* maintain exception

* test that head is not called

* annoying mock

* test with cache
2024-02-14 10:05:25 -08:00
Jason Young 991d02ba27 fix pre-commit install process (#31445)
* fix pre-commit install process

* only install pre-commit from a git repo
2024-02-14 08:19:20 -08:00
JJeonbear beab6e8658 Ioniq 5 2022 AWD FWD camera update (#31322)
* Update fingerprints.py

Update IONIQ5 fwdCamera

* Update fingerprints.py

* Update fingerprints.py
2024-02-14 05:26:25 -08:00
Shane Smiskol 796671fe1a SegmentRange: more explicit slice matching (#31451)
* more explicit

* fix it

* use non capturing group

* only needed for regex101

* make test_logreader.py executable

* fix

* stash

* passes test

* none

* type anotate

* test

* fix

* nice for syntax highlighting
2024-02-14 04:36:58 -08:00
Shane Smiskol 8fe9bc7a69 SegmentRange: simplify slice (#31455)
* simplify slicing

* rm
2024-02-14 04:17:03 -08:00
Shane Smiskol c4f7991bb6 SegmentRange: test API call (#31456)
* test

* better

* better
2024-02-14 03:29:08 -08:00
Shane Smiskol 8276371009 SegmentRange: type annotations (#31453)
* type annotate SegmentRange

* proper formatting

* oops

* numpy?

format test too

* draft

* fixed

* clean up

* rm

* more

* clean up

* clean up

* rm

* not here

* revert
2024-02-14 02:05:55 -08:00
Shane Smiskol 0846175f44 tools/lib: format code (#31454)
easier to read. pylint used to catch all this stuff, but it's mostly missing in ruff :'(
2024-02-14 01:56:17 -08:00
Shane Smiskol 9479686fa3 test models: more examples in CI (#31444)
* more examples

* how is it so fast?!

* 500

* is there a hypothesis cache?

all

* Revert "is there a hypothesis cache?"

This reverts commit e628ba73d5b639e36f95df0ab9049697b34a58b8.

* same as jenkins
2024-02-13 23:00:44 -08:00
Shane Smiskol 884bd5c7f6 SegmentRange: define __repr__ 2024-02-13 22:58:44 -08:00
Shane Smiskol b163c1f255 Mazda: fix potential standstill panda mismatch (#31449)
* repro mazda standstill mismatch

* fix mazda standstill mismatch

* clean up
2024-02-13 22:02:04 -08:00
Shane Smiskol 136dc0313a Toyota: fix high driver torque LKAS fault regression (#31448)
one latactive
2024-02-13 21:49:18 -08:00
Shane Smiskol cff1ad9dd3 Revert "Hyundai CAN-FD: Panda safety config assignments cleanup (#29733)" (#31443)
This reverts commit 8009b11516.
2024-02-13 21:11:22 -08:00
Justin Newberry 659cdec3d0 Revert "test_qcomgpsd: parametize tests" (#31441)
Revert "test_qcomgpsd: parametize tests (#31430)"

This reverts commit 6f4d388348.
2024-02-13 15:27:36 -08:00
Adeeb Shihadeh 3cf845d952 tici: log SOM ID (#31440)
* tici: log SOM ID

* no cat
2024-02-13 15:01:32 -08:00
Adeeb Shihadeh c5739651a2 timed: publish clocks periodically (#31434)
* timed: publish clocks periodically

* simplify

* Apply suggestions from code review
2024-02-13 14:22:46 -08:00
Justin Newberry d6762c3035 live_logreader to its own file (#31436)
own file
2024-02-13 13:29:52 -08:00
Adeeb Shihadeh 7f7f1fd21b Revert "radard: enable avg input service frequency checks (#31404)"
This reverts commit 4b004d59f3.
2024-02-13 13:23:27 -08:00
Adeeb Shihadeh e9071f1198 dongle id is only hex (#31426)
* dongle id is only hex

* so is the count
2024-02-13 13:01:25 -08:00
Justin Newberry b4a11a7229 CI: reduce car tests timeout (#31433)
* reduce cars timeout

* 10
2024-02-13 11:57:08 -08:00
Justin Newberry 6f4d388348 test_qcomgpsd: parametize tests (#31430)
* parameterize qcomgpsd

* one line
2024-02-13 11:16:24 -08:00
Justin Newberry cccf28b9ca jenkins: reduce connection timeouts (#31431)
reduce jenkins timeouts
2024-02-13 11:02:21 -08:00
Eric Brown 416e8253ec GM: Remove Equinox from dashcam mode (#31257)
* Remove Equinox from dashcam mode

* Add fingerprint

* Set moving backward only if not moving forward

* Bump opendbc

* Update moving backward definition

* Update docs

* Bump opendbc

* REVERTME: Add assert statement at Shane's request

* REVERTME: check unsupported and fault status

* Revert "REVERTME: check unsupported and fault status"

This reverts commit 5a0ebad66c4dcd33ee4eb5d0c5d3f036244653e2.

* Revert "REVERTME: Add assert statement at Shane's request"

This reverts commit b4b885eb11ad3079a84033f20f670cc905113bb9.

* Use or

Co-authored-by: Shane Smiskol <shane@smiskol.com>

* Add comment

* Add test route

* Use newer fingerprint

* Emtpy commit to rerun CI

* Empty commit to rerun CI

* Update selfdrive/car/gm/fingerprints.py

* little more

* remove from non-tested

* update

* add to releases

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
Co-authored-by: Justin Newberry <justin@comma.ai>
2024-02-12 21:35:44 -08:00
Shane Smiskol 04ada8e436 Toyota: log engine RPM (#31423)
* Update carstate.py

* 42 is safe

* mirai

* we hit this after 30 mins: Exceeded message traversal limit.  See capnp::ReaderOptions.

* too easy to write this bug, no need to be generic yet

* Update ref_commit
2024-02-12 21:28:16 -08:00
Justin Newberry 78e4508e3b FCA: car port for Dodge Durango 2021 (#31015)
* dodge durango

* add dodge

Co-authored-by: Shane Smiskol <shane@smiskol.com>

* add comment

* more exact

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2024-02-12 21:04:53 -08:00
Shane Smiskol cabde52ac6 Ford: log traction control status (#31424)
* not sure which to use

* cluster changes a bit earlier andis already used for nonAdaptive
2024-02-12 19:20:49 -08:00
Justin Newberry 7010aae0a9 jenkins: kill subprocesses on exit (#31422)
* kill-on-exit

* kill all
2024-02-12 15:41:04 -08:00
Adeeb Shihadeh 4b004d59f3 radard: enable avg input service frequency checks (#31404)
* radard: enable avg frequency checks

* freq

* update cpu

* fix diff
2024-02-12 15:00:01 -08:00
Justin Newberry 0a92c5bf96 LogReader: live_logreader helpers (#31416)
live helper
2024-02-12 12:58:25 -08:00
Adeeb Shihadeh 279d2c3b23 SubMaster: improve service aliveness checks (#31391)
* bump cereal

* fix

* fixes

* single poll

* bump

* bump

---------

Co-authored-by: Comma Device <device@comma.ai>
2024-02-12 10:11:37 -08:00
Shane Smiskol 22c966d8fd [bot] Fingerprints: add missing FW versions from new users (#31414)
Export fingerprints
2024-02-12 09:38:41 -08:00
Adeeb Shihadeh 5f087010a9 [bot] Update Python packages and pre-commit hooks (#31413)
Update Python packages and pre-commit hooks

Co-authored-by: jnewb1 <jnewb1@users.noreply.github.com>
2024-02-12 09:34:15 -08:00
Shane Smiskol 3cf7b05a30 [bot] Fingerprints: add missing FW versions from new users (#31403)
Export fingerprints
2024-02-11 09:56:34 -08:00
Justin Newberry 33e6158d9b Subaru: add message for angle LKAS (#31402)
add angle
2024-02-10 17:47:06 -08:00
Justin Newberry c9951e9d6c camerad: assert isp started successfully (#31385)
* isp assert

* disable this for testing

* Revert "disable this for testing"

This reverts commit e65cf6d4b457babcc1a980d40079a2d6aa6540b8.

* move below
2024-02-10 14:49:45 -08:00
Nelson Chen 299dbb564d Only run repo-maintenance.yaml on 'commaai/openpilot' (#31401)
This otherwise fails and causes a periodic annoying email for users who have forked the repo.
2024-02-10 08:26:39 -08:00
Greg Hogan 667693b8c2 logreader: skip internal source if not available (#31400)
* logreader: skip internal source if not available

* raise exception

* but only when appropriate
2024-02-10 00:20:43 -08:00
Shane Smiskol 743c418a6c [bot] Fingerprints: add missing FW versions from CAN fingerprinting cars (#31396)
Export fingerprints
2024-02-09 22:24:49 -08:00
Adeeb Shihadeh daceb171bd bump cereal (#31392)
* bump cereal

* update those

* update refs

* bump cereal

* bump

* bump cereal

* bump

* fix

* bump

* typo:
2024-02-09 21:44:23 -08:00
Shane Smiskol 8416331c15 [bot] Fingerprints: add missing FW versions from new users (#31395)
Export fingerprints
2024-02-09 20:29:40 -08:00
Justin Newberry 664a3c86ba test_caching: use with_http_server (#31393)
use http server
2024-02-09 20:06:11 -08:00
Adeeb Shihadeh ac95838657 radard: cleanup init 2024-02-09 17:54:40 -08:00
Shane Smiskol e02ec88b1c Honda Civic & CR-V Bosch: allow fingerprinting without comma power (#31259)
* Honda Civic Bosch: remove OBD-reliant ECUs from fingerprinting

* eligible to fingerprint with these responses now

* same for CRV bosch

* add back all FW to test fingerprinting diff on data

* set these ECUs as non essential instead

* comment

* compare old fingerprinting with non essential fingerprinting

* clean up

* cmt
2024-02-09 17:23:47 -08:00
Justin Newberry f873224235 LogReader: test auto mode fallback (#31390)
* test auto mode

* better

* slow

* better
2024-02-09 15:22:43 -08:00
Shane Smiskol 68899136dd Honda: add missing FW for CR-V 2018 (#31388)
export
2024-02-09 14:09:01 -08:00
Adeeb Shihadeh 714e02d0bd bring this back 2024-02-09 12:46:06 -08:00
Shane Smiskol cf97c69067 [bot] Fingerprints: add missing FW versions from new users (#31387)
Export fingerprints
2024-02-09 10:54:41 -08:00
Adeeb Shihadeh 013d4bd4ce controlsd: log initializing timeouts 2024-02-08 21:26:07 -08:00
Justin Newberry 1a1f30c4b6 fix bootlog params copying from other prefix (#31381)
* fix

* also in prefix

* no d

* get it from the path
2024-02-08 16:45:55 -08:00
Adeeb Shihadeh 135deb4324 sensord: fix IRQ affinity (#31384) 2024-02-08 16:40:43 -08:00
YassineYousfi f0e491e3fa Revert "update model replay ref" (#31383)
Revert "update model replay ref (#31310)"

This reverts commit 7eb9b9a277.
2024-02-08 15:31:29 -08:00
YassineYousfi c84e5e2402 Revert "Certified Herbalist Model" (#31382)
Revert "Certified Herbalist Model (#31294)"

This reverts commit 06bdc69a02.
2024-02-08 15:31:21 -08:00
Justin Newberry 32f049c280 Revert "make vipc and msgq prefix paths easier to cleanup" (#31380)
Revert "make vipc and msgq  prefix paths easier to cleanup (#31378)"

This reverts commit e87135727d.
2024-02-08 13:38:41 -08:00
Justin Newberry e87135727d make vipc and msgq prefix paths easier to cleanup (#31378)
* ensure order

* cleanup cleaner

* cleaner

* this needs prefix

* rm vipc

* bump

---------

Co-authored-by: Comma Device <device@comma.ai>
2024-02-08 13:36:14 -08:00
Justin Newberry 88d0231095 pytest: fix tici setup fixture (#31379)
cleanup

Co-authored-by: Comma Device <device@comma.ai>
2024-02-08 13:32:40 -08:00
Justin Newberry e593ffc28c bump notebooks timeout (#31377)
bump
2024-02-08 11:49:33 -08:00
Justin Newberry 1c201295c7 test_navd: parameterize random test (#31376)
* parameterized

* import

* dumb
2024-02-08 11:41:56 -08:00
Justin Newberry 70288d1742 test_power_draw: combine mapsd and navmodeld (#31375)
* combine

* combine

* combine

* simpler

* nounion
2024-02-08 11:31:55 -08:00
Shane Smiskol d61b8c90b6 [bot] Fingerprints: add missing FW versions from new users (#31372)
Export fingerprints
2024-02-08 10:43:06 -08:00
Greg Hogan ec9f3dcef3 simplify URLFile (#31365)
* simplify URLFile

* more space
2024-02-08 10:24:45 -08:00
Justin Newberry e3028cbdca jenkins: no changeset (#31374)
no changeset

Co-authored-by: Comma Device <device@comma.ai>
2024-02-08 09:59:47 -08:00
Justin Newberry 85fe673ee8 bump uploader cpu (#31373) 2024-02-08 09:36:33 -08:00
Jason Wen fa9a11c4d6 Sync: commaai/openpilot:master into sunnypilot/sunnypilot:master (#277) 2024-02-08 11:55:30 -05:00
Jason Wen 35a47f6bf3 bump submodules 2024-02-08 11:53:44 -05:00
Jason Wen b657f0f01e bump cereal 2024-02-08 10:56:36 -05:00
Jason Wen fabb739dbe HKG: Add missing FW versions for Kia Forte 2023 (#30761)
* HKG: Add FW versions for Kia Forte 2023

* more fw

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2024-02-07 23:45:08 -08:00
Shane Smiskol 595406be67 ruff: fix deprecated top level linter settings (#31367)
fix deprecation
2024-02-07 22:54:40 -08:00
Shane Smiskol 74ec33f7c7 IsoTpParallelQuery: type hinting (#31370)
* start typing

* fixes

* we only plan on using this for lists

* sort

* this is the correct way to type it

* it knows this!

* it's getting smarter
2024-02-07 22:53:55 -08:00
Shane Smiskol b6d195f010 VIN: fix rx addr (#31369)
fix rx vin addr
2024-02-07 21:43:52 -08:00
Justin Newberry c79d1e0192 test_manager: ensure test independence (#31364)
* ensure independent

* still run 10- times

* need index

---------

Co-authored-by: Comma Device <device@comma.ai>
2024-02-07 20:52:21 -08:00
Shane Smiskol 0355ceaeac fix static analysis 2024-02-07 19:57:33 -08:00
Shane Smiskol 1b0a4746eb test_fw_fingerprint: remove timeout
it's fast now
2024-02-07 19:47:20 -08:00
James d265f5a6ab Re-use existing params declaration in onboarding (#31363)
Re-use existing params declarations in onboarding
2024-02-07 17:44:57 -08:00
James 75b72c2c4b Fix whitespace (#31361) 2024-02-07 17:27:16 -08:00
Justin Newberry e6f42fa6b3 test_time_to_onroad: log events after engagability/timeout (#31362)
log engagability

Co-authored-by: Comma Device <device@comma.ai>
2024-02-07 17:25:17 -08:00
Justin Newberry 2e7ed5bd88 add loop_until_fail helper (#31360)
* helper

* remove count
2024-02-07 17:07:01 -08:00
Justin Newberry 4fea2a343a test_time_to_onroad: log events after onroad/timeout (#31359)
* log events

* only on fail
2024-02-07 17:05:43 -08:00
Shane Smiskol 768fee7e44 [bot] Fingerprints: add missing FW versions from new users (#31358)
Export fingerprints
2024-02-07 16:45:03 -08:00
Adeeb Shihadeh 4228b6420b agnos 9.6 (#31357)
* agnos 9.6

* manifest
2024-02-07 16:15:09 -08:00
Shane Smiskol 08c3107163 [bot] Fingerprints: add missing FW versions from new users (#31352)
Export fingerprints
2024-02-07 15:46:58 -08:00
Justin Newberry 6a463503a7 add cd for jenkins replacement scripts (#31355)
fix dirs
2024-02-07 15:40:36 -08:00
Shane Smiskol 92025ecbbd Add Lexus LC 2024 to release notes 2024-02-07 15:07:21 -08:00
Justin Newberry caa9dff610 test_power_draw: wait for power instead of fixed warmup time (#31318)
* wait for valid

* reuuse that

* assert warmup

* Wip

* fix that

* reset

* none

* timeout

* maxlen

* consecutive

* proc

* fix

* local

* same as before

* mean

* fixes

* SA

* this is the real warmup time

* this is the real warmup time

* Cleanup

* Cleanup

* monotonic + len

* reduce duplication

* fix

* fix

---------

Co-authored-by: Comma Device <device@comma.ai>
2024-02-07 13:54:46 -08:00
Adeeb Shihadeh ff1dd1f4dd agnos 9.5 (#31313)
* agnos 9.4

* agnos 9.5
2024-02-07 13:23:58 -08:00
Nelson Chen b234f5abef Update Lexus LC Convertible Steer Ratio to 13 (#31354)
https://media.lexus.co.uk/wp-content/uploads/sites/3/2021/06/1612190405210201MLCConvertibleTechSpec.pdf

Minor follow-up to port
2024-02-07 12:34:45 -08:00
Nelson Chen 879e2521ac Lexus LC 2024 (#31199)
* Initial pass

* Add physical measurements for LEXUS_LC_2024

* Add new test route for TOYOTA.LEXUS_LC_TSS2

* Add new public-OK test route for TOYOTA.LEXUS_LC_TSS2

* update docs

* | not /

---------

Co-authored-by: Justin Newberry <justin@comma.ai>
2024-02-07 11:45:12 -08:00
Justin Newberry 8f67d3cab9 jenkins: remove pc / car tests (#31353)
* move to scripts

* clean first

* cant have test_*?

* move
2024-02-07 11:33:52 -08:00
Justin Newberry 6933d0560a Pytest: reenable gc in pytest fixture + re-combine jenkins car tests (#31351)
* Revert "jenkins: spilt car tests in two steps (#31346)"

This reverts commit 8a00b30029.

* enable gc

* codespell

* useless comment
2024-02-07 08:35:32 -08:00
Shane Smiskol 8f5dcb3019 HKG CAN FD: potentially get VIN without OBD port on some platforms (#31348)
* add cluster

* think this works

* update refs

not 1

* only add the new address

* bb

* comment
2024-02-07 00:23:16 -08:00
Shane Smiskol fabec99645 Hyundai: log camera manufacture date (#31345)
* log manufac date

* oof

* should be safe

* update refs
2024-02-07 00:07:01 -08:00
Justin Newberry 8a00b30029 jenkins: spilt car tests in two steps (#31346)
fix
2024-02-07 00:04:27 -08:00
Adeeb Shihadeh 28276a4485 bump panda 2024-02-06 22:32:37 -08:00
Shane Smiskol bcd29a2b8a Hyundai: add PT queries for all ECUs (#31334)
* We never had any bus 0 logging queries for CAN!

* should be logging

* try all, and try on can fd as well

* update refs

* oof forgot about hda2 can fd where pt is bus 1

* sheesh

* fix the timing

* fix ref
2024-02-06 20:37:26 -08:00
Shane Smiskol 4ec0ed311c FW query timing test: fix total reference time (#31344)
* We never had any bus 0 logging queries for CAN!

* should be logging

* try all, and try on can fd as well

* update refs

* oof forgot about hda2 can fd where pt is bus 1

* sheesh

* fix the timing

* not here

* revert

* this just simply measured the total time of all the brands with aux queries (1.25s)

* clean up
2024-02-06 20:10:06 -08:00
Shane Smiskol a07259d765 HKG: mark queries as logging (#31343)
* should be logging

* fix cmt
2024-02-06 19:37:15 -08:00
Justin Newberry 530902dfad bump metadrive (#31342)
bump
2024-02-06 19:23:37 -08:00
Justin Newberry aa43252dc5 bump opendbc (#31340)
bumpitup
2024-02-06 19:16:41 -08:00
Justin Newberry ceecf39c54 Docker: merge opencl and base images (#31338)
* mergeem

* don't change workdir
2024-02-06 17:11:00 -08:00
Justin Newberry 66dc7030de test_models: cleanup by using new logreader (#31267)
* cleanup

* only check error

* this segment only

* fix

* fix

* keep this

* fix internal
2024-02-06 16:50:30 -08:00
gaanthony 30dd1087ea Update fingerprints.py - for 2023 Kia Sorento X-Line SX Prestige (#31286)
* Update fingerprints.py - for 2023 Kia Sorento X-Line SX Prestige

* Update fingerprints.py - fix file for unit tests

* Update fingerprints.py

trailing

---------

Co-authored-by: Justin Newberry <jnewberry0502@gmail.com>
2024-02-06 16:00:24 -08:00
Tico Fortes 1185645271 Add fingerprint Hyundai Tucson Hibrid 2022 Europe (#31291) 2024-02-06 15:55:01 -08:00
Justin Newberry 03c183cb05 jenkins: limit cpu and memory (#31329)
* limit that

* we can use 32g

* addopts

* half
2024-02-06 13:51:55 -08:00
Justin Newberry 052519570d jenkins: lock device resource first before making container (#31330)
lock first
2024-02-06 13:35:08 -08:00
dzid26 0af62eb3b0 camerastream instructions (#31326)
* camerastream instructions

* Update README.md

* Update tools/README.md

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2024-02-06 13:19:01 -08:00
Justin Newberry 88b635c4e1 jenkins: cleanup stage names for analysis (#31327)
fix names
2024-02-06 12:50:44 -08:00
Adeeb Shihadeh 7fe375f158 [bot] Bump submodules (#31299)
bump submodules

Co-authored-by: jnewb1 <jnewb1@users.noreply.github.com>
2024-02-06 11:11:58 -08:00
Shane Smiskol d5821c6812 [bot] Fingerprints: add missing FW versions from new users (#31277)
Export fingerprints
2024-02-06 01:47:51 -08:00
dblacknc 75ea3f3e3a Add fingerprint and car info for 2021 Kia Niro PHEV (#31275)
* Add 2021 Kia Niro Plug-in Hybrid

* Added CAR.KIA_NIRO_PHEV_2021

* Added CAR.KIA_NIRO_PHEV_2021

Created new block and moved 2022 model to it as well, with correct mass and steerRatio values.

* Added 2021 Kia Niro PHEV

* Added 2021 Kia Niro PHEV

For now, using 2020 Niro EV torque data

* Update values.py

Add '21 Kia Niro PHEV to HYBRID_CAR for gas signal and DBC info

* Test route for 2021 Kia Niro PHEV

* Add public test route for 2021 Kia Niro PHEV

* Fixed typo in test route for 2021 Kia Niro PHEV

* Move '21 Kia Niro PHEV car info under '22

...and remove other mention of '21 as distinct car

* Added '21 Kia Niro PHEV fingerprint under '22

...and removed separate car definition

* Removed '21 Kia Niro PHEV as separate car, now under '22

* Removed '21 Kia Niro PHEV, now under '22 fingerprint

* Removed test route for '21 Kia Niro PHEV

* Update values.py

Missed removing one more reference to '21 Kiro Niro PHEV, consolidating under '22.

* Update selfdrive/car/hyundai/interface.py

* Update selfdrive/car/hyundai/fingerprints.py

* Apply suggestions from code review

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2024-02-06 01:10:10 -08:00
neverbread 769c044269 Hyundai: add FW for 2018 Elantra GT Sport (#30732)
* Update values.py

* we really gotta get fuzzy FP for these date codes

* format

* rc

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2024-02-06 00:56:02 -08:00
Maddog1929 90dbe61c7d Add fingerprint for 2018 Genesis G90 (#31271)
* Update fingerprints.py

* Update fingerprints.py

* Update fingerprints.py

* Update fingerprints.py

* Update fingerprints.py

* Update fingerprints.py

* Update fingerprints.py

* Update values.py

* Update values.py

* Update fingerprints.py

* Update values.py

* Update values.py

* Update fingerprints.py

changed formatting of FW value to match existing convention and removed extra FW value no longer being shown in carParam logs
2024-02-06 00:43:41 -08:00
Jason Young e6bace867e VW MQB: Add FW for 2024 Volkswagen Jetta (#30979)
* VW MQB: Add FW for 2024 Volkswagen Jetta

* update docs

* fix sorting
2024-02-06 00:42:28 -08:00
Shane Smiskol ee16eefc1a Ford: Add missing FW for Escape 2022 (#31321)
Add missing FW for a25d5d0b645d8bc3
2024-02-06 00:05:08 -08:00
Shane Smiskol dd6065c33b Reapply "Ford: don't fingerprint on engine (#31195)" part 2 (#31320)
* Reapply "Ford: don't fingerprint on engine (#31195) part 2"

This reverts commit 7694712cd6.

* add comment

Co-authored-by: Cameron Clough <cameronjclough@gmail.com>

---------

Co-authored-by: Cameron Clough <cameronjclough@gmail.com>
2024-02-05 23:57:46 -08:00
Adeeb Shihadeh cbd46802b0 fix bootlog count (#31319) 2024-02-05 23:00:45 -08:00
Justin Newberry b94aba6281 CI: Move repo maintenance bots to 6am (#31316)
later
2024-02-05 21:52:16 -08:00
Shane Smiskol 618366be06 get_vin: respond to full 11-bit diagnostic address range (#31317)
* fix

* not 7df

* cleaner

* whop
2024-02-05 21:52:06 -08:00
Shane Smiskol 55cc3989d8 Ford: add ABS address to get VIN without OBD port (#31308)
* consider ford abs

* cmts

* fix

* who

* Revert "who"

This reverts commit eef45b147fab715a9f35b9712e8b9d7ebb1b2fdf.

* this doesn't work correctly

* add cmt

* fix

* Revert "fix"

This reverts commit 60dfe09c426e74293711df9e2f3b2f75cf3a1da9.
2024-02-05 21:48:57 -08:00
Justin Newberry 7eb9b9a277 update model replay ref (#31310)
update ref
2024-02-05 21:06:30 -08:00
Shane Smiskol cd153e6376 log vin request to qlog (#31314) 2024-02-05 20:30:33 -08:00
Kacper Rączy 35d848ad52 webrtcd: lazy import of aiortc (#31304)
* Lazy imports in webrtcd

* Lazy imports in web.py

* Type hints

* Remove FrameReaderVideoStreamTrack

* leave the aiohttp.web import

* Leave the client session

* main leftover
2024-02-05 19:04:59 -08:00
Justin Newberry b17f24d68e test_logreader: test run_across_segments (#31305)
* more logreader tests

* not in ci for now

* enable cache
2024-02-05 18:35:12 -08:00
Greg Hogan a8aa04e6bd make URLFile safe after fork() (#31309)
* make URLFile safe after fork()

* cache the pool manager in each instance

* type hints
2024-02-05 18:07:48 -08:00
Harald Schäfer 06bdc69a02 Certified Herbalist Model (#31294)
ab9921cb-6e0a-4816-bec5-ebb55d37a7f1/700
2024-02-06 08:39:44 +08:00
Shane Smiskol 50a552ab8d Reapply "Ford: don't fingerprint on engine (#31195)" (#31303)
* Reapply "Ford: don't fingerprint on engine (#31195)"

This reverts commit 7694712cd6.

* don't change the queries

* revert refs
2024-02-05 14:46:34 -08:00
Justin Newberry fd07fc3ba4 updated: close lock file on exit (#31285)
* with open

* those too

* just 1 file

* move this to another pr
2024-02-05 13:01:23 -08:00
Adeeb Shihadeh f0b591e345 [bot] Update Python packages and pre-commit hooks (#31300)
Update Python packages and pre-commit hooks

Co-authored-by: jnewb1 <jnewb1@users.noreply.github.com>
2024-02-05 10:06:18 -08:00
Jason Wen daae551ea8 Merge remote-tracking branch 'commaai/openpilot/master' into sync-20240201 2024-02-05 11:41:19 -05:00
Shane Smiskol 7694712cd6 Revert "Ford: don't fingerprint on engine (#31195)"
This reverts commit 1d1c9936cf.
2024-02-05 01:35:39 -08:00
Adeeb Shihadeh 43f151eea9 compressed_vipc supports all frame sizes 2024-02-04 15:29:43 -08:00
Adeeb Shihadeh 3972073fd4 tools: fix up can_replay 2024-02-04 14:48:06 -08:00
Adeeb Shihadeh a094179b4d add cavli modem config (#31297)
* add cavli modem config

* fix linter

---------

Co-authored-by: Comma Device <device@comma.ai>
2024-02-04 14:26:03 -08:00
Shane Smiskol 81f52f2e53 car_helpers: don't log fingerprints as a dict (#31289)
Update car_helpers.py
2024-02-02 23:45:28 -08:00
Shane Smiskol 0110540300 Test car interfaces: init controllers (#31282)
* not pytest?

* copy what build release does

* test controls step with CI and lat/long controllers, car controller.update, etc

* clean up

* not needed

* not here

* here

* better cmt

* fix test_fuzzy

* see what's failing

* need conftest for OPENPILOT_PREFIX to work!

* up

* clean up

* test

* fix

* params put is slow

* stash

* Revert "stash"

This reverts commit 22cc9f814c0699f7046970763663205907f2890b.

* stash

bad

* just freaking merge

* sort

* rm
2024-02-02 23:43:30 -08:00
Greg Hogan d0a1fa636a logging: make swaglog context match in python and c (#31288)
* logging: make swaglog context match in python and c

* add git context to athenad
2024-02-02 23:10:04 -08:00
Greg Hogan 7affba06d8 simplify git remote is comma check (#31284)
* simplify git remote is comma check

* cast to str

* eliminate default and always return string

* add type annotation for cache decorator

* fix up default handling
2024-02-02 21:23:32 -08:00
Shane Smiskol 52be3805b0 use pytest for release tests (#31280)
* not pytest?

* copy what build release does

* Update .github/workflows/release.yaml
2024-02-02 19:25:34 -08:00
Adeeb Shihadeh 2193458da9 bump panda (#31287) 2024-02-02 19:20:28 -08:00
Greg Hogan 9ab374f3b0 athenad: return normalized origin in getVersion() (#31283) 2024-02-02 16:29:45 -08:00
Justin Newberry 28a15dbfe9 CI: enable logical cpus for all selfdrive tests (#31281)
logical
2024-02-02 15:45:59 -08:00
Justin Newberry 0277fc5548 Pytest: consistent hardware state for tici tests (#31279)
* consistent hardware

* consistent hardware

* moved

* this too

* ruff

* s

* duplicated

---------

Co-authored-by: Comma Device <device@comma.ai>
2024-02-02 14:18:01 -08:00
Adeeb Shihadeh a5766e2796 encoderd: get frame size over vipc (#31276)
* encoderd: get frame size over vipc

* bump cereal

* fix ffmpeg

* no print
2024-02-02 12:53:12 -08:00
Hoang Bui 71236204bb Fix self.started value pass in metadrive test (#31153)
* fix value pass

* fix test

---------

Co-authored-by: Justin Newberry <justin@comma.ai>
2024-02-02 12:06:05 -08:00
Adeeb Shihadeh 83fc734b8f add neural ff weights to release 2024-02-02 11:28:42 -08:00
Jason Wen 66df10faaf MSPA: Lat plan deprecation prerequisites (#276)
* MSPA: Lat plan deprecation prerequisites

* bump cereal
2024-02-02 01:14:13 -05:00
Jason Wen dd49490dae mapd: Remove more legacy implementation (#275)
* mapd: Remove more legacy implementation

* bump cereal
2024-02-02 00:08:53 -05:00
Shane Smiskol c9bd4e4c0d FW_QUERY_CONFIGS: type annotate (#31265)
* annotate

* fix

* clean up

* test

* clean up

* space

* fix
2024-02-01 21:01:31 -08:00
Adeeb Shihadeh 4962ffa14c camerad: flip OS04C10 image 2024-02-01 20:24:00 -08:00
Jason Wen fbabd5700f MSPA: lateralPlanSP legacy support (#274)
* MSPA: `lateralPlanSP` legacy support

* bump cereal
2024-02-01 23:02:03 -05:00
Jason Wen 8f0b4c49cc gpxd: Remove support (#273) 2024-02-01 21:03:17 -05:00
Jason Wen 72dba20a60 Enhanced Speed Control: Remove legacy implementation (#271)
Remove outdated Enhanced Speed Control
2024-02-01 20:59:27 -05:00
Justin Newberry 08d9681cf6 Jenkins: select devices randomly (#31274)
radnomly select devices
2024-02-01 17:24:28 -08:00
Shane Smiskol 33c93cc583 Mazda: add missing FW versions for CX9 2022 (#30725) (#31273)
* Adding CX9 engine ECU FW

* Adding cx92023 fingerprints for transmission

* add fingerprints

---------

Co-authored-by: Elshan <8066214+ekodikara@users.noreply.github.com>
Co-authored-by: Elshan <elshan.kodikara@stepglobal.com>
2024-02-01 15:22:26 -08:00
Shane Smiskol 341f8420db fw_versions: type annotate test_brand_ecu_matches (#31272)
* test this

* we
2024-02-01 15:11:10 -08:00
Adeeb Shihadeh 98564961cd manager: remove RTC time pull (#31270) 2024-02-01 14:00:18 -08:00
Hoang Bui 08037594e2 map: Transfer to MapLibre (#31185)
* change codebase

* compile

* add mapboxprovider

* works with map_renderer in c

* remove maplibre temp

* maplibre works

* cleanup build.sh

* x86 stuff

* add lib

* update release files

* don't need that

* tici build

* tici build

* add tici lib

* update refs

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2024-02-01 13:37:22 -08:00
Vivek Aithal 619625625c CHEVROLET BOLT EUV 2022: Add a simple neural feed forward (#31266)
* add simple neural feed forward

* update refs

* do not sample during inference in op

* update refs
2024-02-01 12:30:43 -08:00
Moritz Wörmann 628c829d19 GH Actions PR review bot: Check only for substrings in checkbox text when validating PR template (#31262)
check only for substrings in checkbox text
2024-02-01 10:31:10 -08:00
Vivek Aithal 056b330e8b LatControlTorque: Add more inputs (#31252)
* add history and state to the ff inputs

* add history

* resolve comments

* remove history, simplify

* don't compute lateral accel, roll comp always
2024-02-01 04:12:48 -08:00
Shane Smiskol f0b6f48948 Mazda: use bus 0 to fingerprint (#31261)
* for testing

* switch OBD port to logging

* revert

* cmt

* cmt

* remove OBD query

* Update selfdrive/car/mazda/values.py
2024-02-01 00:28:00 -08:00
Justin Newberry 086c509fde Create message mocking tools (#31249)
* add mocking tools

* fix map renderer

* use for power draw

* fix those

* whitespace

* rename to services

* fix the rate

* remove
2024-01-31 18:47:49 -08:00
Justin Newberry be33b00499 Jenkins: better timeout when disconnected from devices (#31256)
* timeout better

* timeoutes
2024-01-31 18:46:40 -08:00
Eric Brown 1ab3745400 GM: Fix wheel direction signals (#31258)
* Fix wheel direction signals

* Update name

* Add comment

* Remove signal value table

Co-authored-by: Shane Smiskol <shane@smiskol.com>

* bump

* add 3

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2024-01-31 18:45:10 -08:00
Justin Newberry 5c85925e9b test_athenad: create with_upload_handler decorator (#31250)
cleaner
2024-01-31 18:44:04 -08:00
Shane Smiskol 7222eb3665 Nissan: use bus 0 to fingerprint (#31243)
* Nissan: use bus 0 to fingerprint

* update refs

* switch OBD query to be logging instead, might want OBD logging for one more release
2024-01-31 18:20:33 -08:00
Justin Newberry 6010a39bf8 LogReader: skip file_exists check for comma_api (#31251)
* valid file

* missed this one
2024-01-31 16:43:58 -08:00
Shane Smiskol 5195f0a624 [bot] Fingerprints: add missing FW versions from new users (#31245) 2024-01-31 09:52:44 -08:00
Elshan 883f9458eb Mazda: add missing FW versions for CX9 2022 (#30725)
* Adding CX9 engine ECU FW

* Adding cx92023 fingerprints for transmission

* add fingerprints

---------

Co-authored-by: Elshan <elshan.kodikara@stepglobal.com>
Co-authored-by: Shane Smiskol <shane@smiskol.com>
2024-01-31 03:20:58 -08:00
Shane Smiskol e4e161f8de Hyundai CAN FD: enable enhanced fuzzy fingerprinting for Sorento & Sorento Hybrid (#31242)
* allow fuzzy fingerprinting

* rm todo

* better cmt
2024-01-31 00:52:49 -08:00
Shane Smiskol b4f958c13f HKG CAN FD: Merge Sorento Plug-in Hybrid and Hybrid (#31241)
* merge sorento plug-in hybrid and hybrid

* format

* allow fuzzy fingerprinting

* rm todo

* Revert "rm todo"

This reverts commit f2457eb58f88f780b25625942dbd9c74202acbb8.

* Revert "allow fuzzy fingerprinting"

This reverts commit 91f143f3115e31107752a5e84d3f587e6917933f.
2024-01-31 00:41:57 -08:00
Shane Smiskol 2f4cadc6bf Hyundai CAN FD: merge Sportage platforms (#31235)
* merge Tucson 4th gen!

* format fingerprints

* fix torque params

* fix

* detect CANFD hybrid with ACCELERATOR_ALT

* passes

* add test

* pass test

* cmt

* Revert "pass test"

This reverts commit 5f48ab1f6e6569def1cbbc92c9c0dd4ea5eebbe2.

* combine sportage hybrid

* merge sportage

* format
2024-01-31 00:19:15 -08:00
Shane Smiskol e92e856f7a Hyundai CAN FD: merge Tucson and Tucson Hybrid (#31238)
* combine tucson and tucson hybrid can fd

* format fingerprints
2024-01-30 23:06:24 -08:00
Shane Smiskol e5a8ddc3d0 Hyundai CAN FD: detect hybrid (#31237)
* detect can fd hybrid

* remove from set

* prevent EV & hybrid somehow
2024-01-30 22:43:56 -08:00
Shane Smiskol b40660692b Hyundai: use hybrid & ev flags (#31236)
* hyundai: use hybrid & ev flags

* Update ref_commit

* todo

* match order
2024-01-30 21:57:29 -08:00
Shane Smiskol 9c48e85c78 Revert "docs: fix car docs video icon" (#31234) 2024-01-30 19:04:43 -08:00
Shane Smiskol 97aa08d8de docs: fix car docs video icon (#31218)
* fix yt icon on docs.comma.ai

* bigger
2024-01-30 18:46:46 -08:00
Shane Smiskol bd1678e71f Toyota: fix rare panda standstill mismatch (#31232)
* fix

* clean up

* just use 2x lower threshold so we're not on edge again
2024-01-30 16:06:28 -08:00
Adeeb Shihadeh bc5fdf24ae update min valid time 2024-01-30 15:00:41 -08:00
Shane Smiskol 0176c870ea Fingerprints: add missing FW versions from users for Toyota, Honda, Chrysler, Mazda, Ford [bot] (#31231) 2024-01-30 13:57:52 -08:00
Harald Schäfer feaf52dd4c Ford long control improvements (#31123)
* Ford updates

* back to normal

* Small fixes

* Try max

* Does pred matter

* ref commit

* Update ref
2024-01-30 11:40:52 -08:00
Shane Smiskol c2ee072907 format fingerprints: fix empty FW versions (#31230)
fix
2024-01-30 03:07:00 -08:00
Cameron Clough 1d1c9936cf Ford: don't fingerprint on engine (#31195)
* Ford: do not fingerprint engine

* add notebook

* Ford: add missing Explorer FW

* revert

* revert

* Revert "revert"

This reverts commit ad32feaa689f2b497c8bcc9fedc73cae6c87f697.

* TestFwFingerprintTiming: try these

* TestFwFingerprintTiming: update total ref time

* remove notebook

* fix ref

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2024-01-30 02:42:33 -08:00
Shane Smiskol 06f0e50964 GM: FPv2 logging (#31221)
* bump

* from https://github.com/commaai/openpilot/pull/27929

* get VIN on bolt!

* might as well try on other gms

* remove vin

* ugh gm is going to be slow

* fix

* should really fix this

* revert

* happy?1

* fix unit test

* bump

* functional addressing must be an OBD gateway feature, this does nothing

* fix vin response

* fix addr!

* finally fix fw_versions bugs since boardd IsOnroad refactor

* for

* only bus 0

* clean up

* Update selfdrive/car/gm/values.py

* ChatGPT re-write

* filter out did

* todo

* oof

* preview: what multiple DIDs per ECU would look like in the future

* Revert "preview: what multiple DIDs per ECU would look like in the future"

This reverts commit 88f0d8611e638de644adc5feabade848c03d59e4.

* function to get all ecus

* we can remove this!

* can also do this!

* and this one too :o

* consistency

* yay

* clean up
2024-01-30 02:19:12 -08:00
Shane Smiskol 2c0f7b8727 FPv2: support FwQueryConfig with no FW versions (#31227)
* bump

* from https://github.com/commaai/openpilot/pull/27929

* get VIN on bolt!

* might as well try on other gms

* remove vin

* ugh gm is going to be slow

* fix

* should really fix this

* revert

* happy?1

* fix unit test

* bump

* functional addressing must be an OBD gateway feature, this does nothing

* fix vin response

* fix addr!

* finally fix fw_versions bugs since boardd IsOnroad refactor

* for

* only bus 0

* clean up

* Update selfdrive/car/gm/values.py

* ChatGPT re-write

* filter out did

* todo

* oof

* preview: what multiple DIDs per ECU would look like in the future

* Revert "preview: what multiple DIDs per ECU would look like in the future"

This reverts commit 88f0d8611e638de644adc5feabade848c03d59e4.

* function to get all ecus

* we can remove this!

* can also do this!

* and this one too :o

* consistency

* yay

* add tests

* revert GM stuff

* another PR

* reads better

* revert rest of gm

* use that

* interesting

* these are exactly the same (with ordering differences)

* Revert "these are exactly the same (with ordering differences)"

This reverts commit a9e918dc351d24f1b7c8a05c7ec402e057a0e09a.

* flip
2024-01-30 02:08:08 -08:00
Shane Smiskol c3fcf75737 GM camera ACC: get VIN from camera (#31224)
* bump

* gm vin

* that's not right

* only check relevant buses

* instead try queries for each bus first

* clean up

* use default retry in function

* all
2024-01-29 23:24:21 -08:00
Shane Smiskol 5a8686b439 fw_versions: fix params.remove 2024-01-29 22:36:29 -08:00
Shane Smiskol a4cf7745e8 fix manually running fw_versions.py (#31226) 2024-01-29 21:44:00 -08:00
Shane Smiskol 3a0033e81e vin: fix retry logging (#31225)
* retry should really be outside inner query loop

* just req

* nls

* bump

* rmnl

* useful to have

* is it though
2024-01-29 21:28:29 -08:00
Adeeb Shihadeh 4243e9322a update release notes 2024-01-29 17:49:37 -08:00
Adeeb Shihadeh 6caf89bca5 agnos 9.3 (#31163)
* agnos 9.2

* agnos 9.3
2024-01-29 17:44:14 -08:00
Justin Newberry c782fbc34e LogReader: add ``.filter`` (#31222)
add filter
2024-01-29 17:33:47 -08:00
ZwX1616 ba7f840a06 DM: Quarter Pounder Deluxe model (#31170)
* 1

* pg

This reverts commit 71409ec84a3e04e5e7ec960271d4e278a2472462.

* ee new

* 60ab

* update replay
2024-01-29 16:52:30 -08:00
Justin Newberry 54fe19206e Subaru: eps is non-essential for gen2 cars (#31220)
* eps non essential

* comment

* suggestions
2024-01-29 16:48:03 -08:00
Andrei Tanas e86aafc723 Add 2022 Subaru Outback IDs to subaru/fingerprints.py (#31016) 2024-01-29 16:07:56 -08:00
Shane Smiskol 50cb6f819d selfdrive/debug: view iso-tp communication from logs (#31217)
* add

* some clean up

* more clean up

* add

* ltl

* add todo

* rm

* use default_mode

---------

Co-authored-by: Justin Newberry <justin@comma.ai>
2024-01-29 15:05:09 -08:00
Justin Newberry 7835f9cce0 LogReader: add tqdm back to run_across_segments (#31216)
tqdm
2024-01-29 13:18:49 -08:00
Adeeb Shihadeh ed7cfc2343 [bot] Bump submodules (#31207)
bump submodules

Co-authored-by: jnewb1 <jnewb1@users.noreply.github.com>
Co-authored-by: Justin Newberry <justin@comma.ai>
2024-01-29 12:37:35 -08:00
Justin Newberry 0b2442314d CI: increase notebook cache build timeout (#31212)
allow more time
2024-01-29 10:22:59 -08:00
Justin Newberry e49eb4c54f Simulator: prepare to make bridge a PythonProcess (#31201)
* sim services

* clean
2024-01-29 10:11:02 -08:00
Justin Newberry 75d3e5fb4e Webcam: prepare to make camerad a PythonProcess (#31202)
* webcam

* support /dev/* syntax

* support strings
2024-01-29 10:10:55 -08:00
Justin Newberry bbeeea04a7 CI: fix bot location (#31211)
g
2024-01-29 10:02:11 -08:00
Adeeb Shihadeh 5f3a425015 Update Python packages and pre-commit hooks (#31208)
Co-authored-by: jnewb1 <jnewb1@users.noreply.github.com>
2024-01-29 09:43:18 -08:00
Shane Smiskol fd0b9cd930 Fingerprints: add missing FW versions from users for Toyota, Honda, Chrysler [bot] (#31210) 2024-01-29 09:38:06 -08:00
Shane Smiskol 80db6f0e28 Fingerprints: add missing FW versions from users for Toyota, Honda, Chrysler [bot] (#31205)
Export fingerprints
2024-01-29 01:11:28 -08:00
Shane Smiskol 36d6bb3bda Car docs: update model years from users for Toyota, Honda, Chrysler [bot] (#31203)
Update car docs
2024-01-28 19:23:53 -08:00
taggahertz 27c624550f Updated Lexus ES hybrid MY (#31181)
* Updated Lexus ES hybrid MY

Car
2024 Lexus ES 300h

Segment
c52c524e1b873247|2024-01-19--12-11-57--0

Route
https://connect.comma.ai/c52c524e1b873247/1705695117754/1705695298920

* Update CARS.md

fixed url link
2024-01-28 17:52:29 -08:00
Shane Smiskol 2a006f59a5 Fingerprints: add missing FW versions from users for Toyota, Honda, Chrysler [bot] (#31196)
Export fingerprints
2024-01-28 15:53:55 -08:00
Shane Smiskol a3eb61b7a3 update refs 2024-01-27 23:25:14 -08:00
garrettpall 58ef40eb22 GM: Add BSM from Powertrain Bus (#30861)
* Add GM BSM

* Move BSM check to fwdCam only

* Detect if BSM message if present

* Remove hardcoding

* Apply Commit Suggestion

Co-authored-by: Shane Smiskol <shane@smiskol.com>

* Cleanup Suggestions

* bump opendbc

* test out bsm

* BCMBlindSpotMonitors -> BCMBlindSpotMonitor

* Revert "test out bsm"

This reverts commit 0e166530e60165269c1be200f48ead9918d5fe96.

* up here

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2024-01-27 20:56:10 -08:00
Shane Smiskol be4107dc8a Fingerprints: add missing FW versions from users for Toyota, Honda, Chrysler [bot] (#31193)
Export fingerprints
2024-01-27 18:31:50 -08:00
Justin Newberry aff3d5ae09 Subaru: move non-obd requests out of logging (#31174)
enable
2024-01-27 09:07:14 -08:00
Justin Newberry 824ddffec8 CommaCarSegments: BIG Database! (#31169)
* sanetized selector

* god damn

* add to re

* slog branch

* slog

* source

* big

* not slog

* cleanup

* no space

* works!

* trigger

* main!
2024-01-27 01:07:29 -08:00
Adeeb Shihadeh 2504341070 bootlog: remove timestamp from filename (#31187)
* bootlog: remove timestamp from filename

* revert route

* test

* revert that

* fix loggerd test
2024-01-26 19:17:38 -08:00
Adeeb Shihadeh 52c7514452 tools: add LOG_ID regex pattern (#31186) 2024-01-26 16:44:12 -08:00
Adeeb Shihadeh eada51ec8e pin pyopencl to fix aarch64 build (#31184)
* revert pyopencl

* revert that
2024-01-26 16:00:33 -08:00
Adeeb Shihadeh 6fbd844216 mark as flaky for now 2024-01-26 14:37:22 -08:00
Adeeb Shihadeh 1001becfa5 unpin sentry-sdk (#31183)
* unpin sentry-sdk

* update
2024-01-26 14:33:59 -08:00
Alexandre Nobuharu Sato 97488c190e Fingerprint vw taos eduardo (#31113)
* add instructions to my fork

* add braziliam TAOS fingerprint

* Revert "add instructions to my fork"

This reverts commit 46fbee3ebe7ecbb211d855e63b2d4c8919c31b63.
2024-01-26 13:20:35 -08:00
Justin Newberry 9518b66c9e commaCarSegments cleanup (#31182)
* cleanup

* no space
2024-01-26 13:20:25 -08:00
ugtthis 14e83ac9cc UI/sidebar_layout: Removed redundant piece of margin code (#31106) 2024-01-26 13:16:54 -08:00
Shane Smiskol 52d7cfa689 Honda: add logging request for radarless Civic 2022+ camera (#31176)
* try tester present

* radar

* rm whitelist

* refs
2024-01-25 23:58:27 -08:00
Shane Smiskol d1a8ec0cad Fingerprints: add missing FW versions from users for Toyota, Honda, Chrysler [bot] (#31173)
Export fingerprints
2024-01-25 23:13:17 -08:00
Shane Smiskol c99cd3251b vin: reduce retries (#31175)
reduce retries
2024-01-25 22:40:39 -08:00
Shane Smiskol ca2ed59a64 add comment about sendcan 2024-01-25 22:27:18 -08:00
Justin Newberry 6262de4419 CI: use auto-cache for test_models (#31171)
use auto cache
2024-01-25 20:37:25 -08:00
Shane Smiskol 1612ec6d93 vin: try bus 0 first 2024-01-25 19:09:53 -08:00
Shane Smiskol 289868297e VIN: query on bus 0 to log data (#31165)
* query on bus 0

* fix

* log vin_rx_bus

* fix!
2024-01-25 18:01:49 -08:00
Adeeb Shihadeh fe4abaa6f6 add flaky package 2024-01-25 17:38:09 -08:00
Comma Device 076810d5bd allow a couple retries 2024-01-25 17:13:35 -08:00
Justin Newberry 979dba33cd Revert "test_loggerd: make rotation test more robust" (#31168) 2024-01-25 17:11:03 -08:00
Justin Newberry faf99ba711 CI: generate test_ui report (#31151)
* add test

* simpler

* simpler

* false

* move these here

* faster

* map takes logner to render
2024-01-25 16:49:38 -08:00
Shane Smiskol f5732f9c5b Fingerprints: add missing FW versions from users for Toyota, Honda, Chrysler [bot] (#31166) 2024-01-25 16:44:25 -08:00
Alexandre Nobuharu Sato f21ccfbf79 Multilang: Update pt-BR translations (#31167)
* add instructions to my fork

* add paypall.png to gitignore

* Revert "add instructions to my fork"

This reverts commit a6a6f93533add212e321e8472a78a8a69bf932f4.

* translate

* revert this

* why?

---------

Co-authored-by: Comma Device <device@comma.ai>
2024-01-25 15:55:58 -08:00
Shane Smiskol 9ae8830a43 Fingerprints: add missing FW versions from users for Toyota, Honda, Chrysler [bot] (#31156)
Export fingerprints
2024-01-25 15:28:02 -08:00
Adeeb Shihadeh 4ecaa6da45 update translations 2024-01-25 13:44:26 -08:00
Adeeb Shihadeh 80ea4db7bb update factory reset 2024-01-25 13:34:09 -08:00
Greg Hogan 6901aada14 filereader should use connection pool for file_exists (#31158)
* filereader should use connection pool for file_exists

* remove debug var
2024-01-25 13:26:12 -08:00
Justin Newberry 410db2cd9f Simulator: add comment about mapbox tokens (#31162)
* add to readme
2024-01-25 12:45:43 -08:00
Justin Newberry 3b618c4dfd Simulator: pin metadrive + use pip version (#31161)
* pin metadrive

* pin

* not on git
2024-01-25 12:44:01 -08:00
Justin Newberry 35374f4d57 test_loggerd: make rotation test more robust (#31160)
* no randomness

* lots

* Revert "lots"

This reverts commit 2052fd6f7b8dc4c53fbb7c726026070918d5de00.
2024-01-25 12:13:43 -08:00
Justin Newberry 6f2f966a2f CI: add bot labels to repo_maintenance (#31159)
* add bot lables

* prefix
2024-01-25 11:28:09 -08:00
Justin Newberry edd2428b60 LogReader: fail-fast on invalid segments (#31152)
* don't check all

* is
2024-01-25 11:09:09 -08:00
Shane Smiskol be15b31696 Toyota: use radar in place of abs for platform code ECUs (#31043)
* use radar instead of abs

* str the strenum

* Lexus ES: non-TSS2 probably don't have stop and go without DSU-pull and/or pedal

* remove from NO_STOP_TIMER_CAR. this set is so confusing

* Combine ES & ESH (preferring ESH's DSU msgs)

* ES: forgot substitute

* comment

* Highlander: combine, preferring the hybrid for DSU msg mismatches (0x365 and 0x366)

* remove duplicates and sort

* update docs

* toyota non_essential ECU test

* Lexus RX: combine, preferring hybrid's msgs (they all exist on ICE)

* sort and remove dups

* parameterize so we can test with notebook

* this too

* clean up

* clean up

* tuple makes more sense

* update comments

* update

* update

* update
2024-01-25 02:02:00 -08:00
Ruben Medina 8472ae5317 add size to system alt image manifest entry (#31154) 2024-01-24 23:35:39 -08:00
Shane Smiskol 951d7e9cd0 Chrysler: add FW from CAN fingerprinting cars last 90 days on 0.9.5-release (#31142)
* print

* name

* add missing

* -----

* add list so can fingerprint

* transmission doesn't exist on these

* fix abs addr!

* apparantly abs isn't on these cars

* 2018 too

* clean up

* rm abs

* add missing versions!

* Revert "add missing versions!"

This reverts commit 45d36a49363a9c540841e6618c1a73cd3948c754.

* need this to fingerprint!

* Add FW from CAN fingerprinting cars last 90 days on 0.9.5-release

* need this temporarily

* Add rest of dongles

* update docs

* remove FINGERPRINTS

* Apply suggestions from code review

* Update selfdrive/car/fw_versions.py
2024-01-24 21:29:18 -08:00
Justin Newberry 3676ae4da3 test_ui: add onroad state (#31148)
add onroad
2024-01-24 16:51:06 -08:00
kovat74 ae25a13594 Added firmware fingerprint IONIQ 2020 EV (#31049) 2024-01-24 16:15:20 -08:00
Cameron Clough 1a202a55c1 Ford: add missing Mach-E fw (#31145)
From the route 83a4e056c7072678/2023-11-13--16-51-33 (which is already
in selfdrive/car/tests/routes.py, added in #30691).
2024-01-24 15:37:32 -08:00
Harald Schäfer f55e6a3b81 Los Angeles Model 2 (#31135)
* 7045fb53-6739-4338-8426-20cbd4ad7832/600

* Update constants

* Update parse

* Typos

* Update ref

* 26057144-130f-48e1-8a98-00fae53ae7db/700

* Update ref
2024-01-24 15:26:22 -08:00
Justin Newberry e2ec5be6ee test_ui: create test ui screenshots and html report (#31147)
* test ui

* report + common

* in ci

* fix

* dont enable in ci yet
2024-01-24 13:54:31 -08:00
Adeeb Shihadeh 7f35d0a909 disable TestManager.test_clean_exit for now 2024-01-24 11:53:03 -08:00
Justin Newberry 1bade14fda car porting examples: subaru fuzzy fingerprinting (#31139)
initial commit
2024-01-24 10:23:59 -08:00
Justin Newberry dd0c474e6c LogReader: replace get_first_message with LogReader.first (#31146)
* first

* str
2024-01-24 10:21:57 -08:00
Shane Smiskol e5fe1d2885 Chrysler: add Pacifica 2023 FW versions (#30934) (#31144)
* Revert "Revert "Chrysler: add Pacifica 2023 FW versions (#30934)""

* ICE
2024-01-24 01:56:33 -08:00
Shane Smiskol ee716a6d9d Revert "Chrysler: add Pacifica 2023 FW versions (#30934)" (#31143)
Revert "Add Pacifica 2023 fingerprint"
2024-01-24 01:29:05 -08:00
Kenny K 1b82e77ed9 Chrysler: add Pacifica 2023 FW versions (#30934)
* Add Pacifica 2023 fingerprint

* add FW

* remove can

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2024-01-24 01:01:15 -08:00
Justin Newberry 88dcaa51c4 LogReader: no redownloading on multiple iterations (#31141)
* no redownload

* sort
2024-01-23 23:54:11 -08:00
Shane Smiskol b9ad854451 Nissan: log FW responses on bus 0 (#31138)
* nissan: log FW responses on bus 0

* update refs
2024-01-23 23:12:48 -08:00
Justin Newberry ac71c30ad5 auto_source: add commaCarSegments source (#31137)
add source
2024-01-23 21:40:04 -08:00
Justin Newberry abf2801122 use get_first_message for auto_fingerprint 2024-01-23 20:59:32 -08:00
Justin Newberry 3d9b483e10 comma_api_source: fix qlogs (#31136)
fix qlogs
2024-01-23 20:51:15 -08:00
Justin Newberry 998eb8cde2 test_fw_query_on_routes: use new LogReader (#31134)
a
2024-01-23 17:41:43 -08:00
Shane Smiskol 780f1222ad fw_versions: add extra_fw_versions param (#31132)
* add param

* fix

* fix
2024-01-23 17:21:48 -08:00
Justin Newberry f22b6681d6 CI: test the car_porting example notebooks (#31131)
* dont use route

* fix and cleanup

* test the example notebooks
2024-01-23 14:57:31 -08:00
Justin Newberry d574013d7b LogReader: don't use route for max_segment (#31129)
* dont use route

* fix and cleanup
2024-01-23 14:51:45 -08:00
Shane Smiskol a2028cbfd5 New MY! 2024-01-23 14:29:31 -08:00
Shane Smiskol ebc916e25c Export fingerprints 2024-01-23 14:23:11 -08:00
Justin Newberry 0234cadec3 LogReader: remove redirect message for internal data (#31088)
fix logging
2024-01-23 12:55:50 -08:00
Justin Newberry 65490bb3c5 plotjuggler: auto fallback to qlogs with prompt (#31110)
* qlog fallback

* show a warning for that

* qlog fallback

* fix

* wording
2024-01-23 12:53:19 -08:00
Justin Newberry 35e1e8ecd2 SegmentRange: __str__ get preferred format (#31126)
get canonical
2024-01-23 11:40:22 -08:00
Shane Smiskol ea57336005 Fingerprints: automatically add missing FW versions from users [bot] (#31116)
Export fingerprints
2024-01-23 02:19:32 -08:00
Hoang Bui 403610eed9 CI: enable virtual audio sink for soundd (#31120)
* enable virtual sound

* mv install to dockerfile

* cleaner

---------

Co-authored-by: Justin Newberry <justin@comma.ai>
2024-01-22 23:10:17 -08:00
Adeeb Shihadeh 88757c12b3 Revert "Switch from json11 to nlohmann/json (#31093)"
This reverts commit ee036482b8.
2024-01-22 22:41:59 -08:00
mtribiere ee036482b8 Switch from json11 to nlohmann/json (#31093)
* Initial commit

* fix release/file_common

* Update common/swaglog.cc

* Swtiched serialize cc

* move to lfs

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2024-01-22 22:35:47 -08:00
Adeeb Shihadeh 827aa2e4fa timed: always pull time and timezone from GPS (#31112)
* timed

* rm timezoned

* just gps

* ok

* little more

* fix

* datetime

* sleep a little

---------

Co-authored-by: Comma Device <device@comma.ai>
2024-01-22 18:35:11 -08:00
Justin Newberry 389b8ca30d add example of using the comma car segments database (#31117)
* add vin fingerprinting example

* perhaps!

* remove segment

* easier
2024-01-22 18:23:07 -08:00
Justin Newberry caa9153974 CommaCarSegments: public database of segments for each platform (#31114)
* comma car segments

* comma car segments for test_models

* oneliner

Co-authored-by: Shane Smiskol <shane@smiskol.com>

* better name

* not used here

* sort

* remove print

* better comment

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2024-01-22 17:33:03 -08:00
Adeeb Shihadeh 694fc378dd loggerd: speedup unit tests (#31115)
* first speed it up

* pytestify

* no sleep
2024-01-22 17:24:42 -08:00
Justin Newberry 3846130d8e pytest: add marker for sharing the download cache (#31082)
* fix cache

* with a marker
2024-01-22 16:30:59 -08:00
Harald Schäfer 7c9530f743 Code for running legacy models (#31111)
* Code for running legacy models

* Optional outputs
2024-01-22 14:44:48 -08:00
Brad Slavin 95d33164fd Hyundai: add missing Ioniq 5 2024 RWD Limited FW (#30864)
Update fingerprints.py

Added 2024 RWD Limited
2024-01-22 12:09:17 -08:00
Adeeb Shihadeh 77d051f5ec Bump submodules (#31107)
bump submodules

Co-authored-by: jnewb1 <jnewb1@users.noreply.github.com>
2024-01-22 09:15:58 -08:00
Adeeb Shihadeh eb04935b95 Update Python packages and pre-commit hooks (#31108)
Co-authored-by: jnewb1 <jnewb1@users.noreply.github.com>
2024-01-22 09:15:22 -08:00
Harald Schäfer 0067cf3eb1 Los Angeles Model (#31037)
* 1c888f5b-c213-4c1c-9eba-c587afd047fc/700

* Move to action

* Updates

* Add steer delay

* Update curvature grep

* clip speed

* No car params for now

* Add delay back

* Update

* fix lint

* fix lint

* update model regf
2024-01-22 00:58:06 -08:00
Justin Newberry 81516216b1 Simulator: fix metadrive (#31104)
fix metadrive
2024-01-21 17:34:26 -08:00
Bruce Wayne 3b01733900 Revert "Refactor modeld (#31099)"
This reverts commit 599325718e.
2024-01-21 17:29:32 -08:00
Harald Schäfer 7ebd841a0b Deprecate lat planner (#31097)
* Deprecate lat planner

* Bump cereal
2024-01-21 17:10:49 -08:00
Harald Schäfer 599325718e Refactor modeld (#31099)
* First commit

* Allow

* Just camerastream helper
2024-01-21 17:10:40 -08:00
Adeeb Shihadeh 139b0ae3b6 fix test_startup (#31103)
* fix test_startup

* real fix
2024-01-21 16:55:47 -08:00
Adeeb Shihadeh 74a2e3178f pre-commit: only check translations on update (#31102) 2024-01-21 16:40:12 -08:00
Adeeb Shihadeh b1f457bdc8 pytest: cleanup manager procs on teardown (#31101) 2024-01-21 16:39:52 -08:00
Adeeb Shihadeh 78e20cff39 cleanup tests that are now useless (#31098)
* disable that onoe

* e2e tests catch this

* rm more useless checks
2024-01-21 14:49:57 -08:00
Bruce Wayne ec72cdca00 Bump cereal 2024-01-21 12:10:55 -08:00
Harald Schäfer e6c97c3846 Delete lat planner (#31089)
* Initial commit

* Fixup

* typo

* ignore lateral plan

* Update cereal

* Remove lateralPlan

* Fix release build

* Fix release build

* give car params

* Add carParams to include_all_types

* Write car param in powerdraw test

* add demo mode

* Update model regf

* proc replay ref commit

* Try

* Move enum definition

* Update cereal

* typo

* Write car param for modeld test

* Update ref

* Update model ref again

---------

Co-authored-by: Kacper Rączy <gfw.kra@gmail.com>
2024-01-21 12:09:48 -08:00
Justin Newberry 2c86c023fe sanitizer: sanitize vin number (#31090) 2024-01-21 12:22:32 -05:00
Adeeb Shihadeh e0d0896dcf test_power_draw: check msgs expect first for cleaner error 2024-01-20 17:20:21 -08:00
Adeeb Shihadeh 332a21965d jenkins: cleanup /dev/shm (#31095) 2024-01-20 15:24:34 -08:00
Justin Newberry dc9ffd2f10 car tests on namespace (#31080)
cars
2024-01-19 14:53:52 -08:00
Justin Newberry 5c2b7882bf speedup replay test (#31086)
* speedup replay test

* better name

* comment not required
2024-01-19 14:39:08 -08:00
Adeeb Shihadeh 7cd9568423 remove dashcam branch (#31081)
* remove dashcam branch

* fix

* more cleanup

* remove param

* one more
2024-01-19 14:05:03 -08:00
Justin Newberry 18467c8383 fix cache permissions (#31084)
* fix cache permissions

* chown
2024-01-19 13:57:10 -08:00
Comma Device 574fd03208 fix tici build 2024-01-19 13:45:06 -08:00
Andrei Radulescu 28028aef17 Support for newer versions of Qt (#31072)
* Dynamic QtGui version

* Fixed use of undeclared identifier 'va_start'

* Fix for Qt deprecations

* Fix for dynamic QtGui version

* Update selfdrive/ui/SConscript

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2024-01-19 13:28:29 -08:00
Justin Newberry c907dd9e70 CI: fix post run cache (#31078)
* post cache only

* fix

* newline

* really github???
2024-01-19 13:25:41 -08:00
Adeeb Shihadeh 8a26b4383f bump that up 2024-01-19 13:19:41 -08:00
Hoang Bui f0f7e86dcc Enable cache for pre-commit (#31071)
* enable cache

* test cache

* commai cache

* remove id

* only save on master

---------

Co-authored-by: Justin Newberry <justin@comma.ai>
2024-01-19 13:06:02 -08:00
Justin Newberry bbbe94bc3e CI: auto-cache add option to save cache (#31076)
* save cache option

* inputs
2024-01-19 12:43:47 -08:00
Adeeb Shihadeh 16cd20f4eb don't block startup on time (#31074)
* don't block startup on time

* cleanup

* unused
2024-01-19 11:51:58 -08:00
Adeeb Shihadeh f3689ef561 remove old ref to manager_prepare 2024-01-19 10:44:46 -08:00
ugtthis a6695e4489 UI/close_btn: Removed unused border code (#31073) 2024-01-19 10:38:11 -08:00
Justin Newberry dfb56abf91 silence xvfb (#31069)
silence
2024-01-18 22:40:28 -08:00
Justin Newberry 35ed8a0886 CI: use namespace.io (#31064)
* namespace

* mkdir

* fix

* restore only

* restore

* v3

* disable provenance
2024-01-18 22:13:19 -08:00
Adeeb Shihadeh b4ebba384b cleanup startup params (#31068) 2024-01-18 22:09:55 -08:00
Adeeb Shihadeh 7a6463b2b4 remove early RTC time pull (#31066) 2024-01-18 21:05:57 -08:00
Adeeb Shihadeh e3b17d10f3 speedup prebuilt check (#31065)
* speedup prebuilt check

* one place
2024-01-18 21:02:18 -08:00
Adeeb Shihadeh ce947ffe9a manager: merge prepare and init 2024-01-18 20:45:41 -08:00
Comma Device e2df83089f fix param path 2024-01-18 20:12:04 -08:00
Adeeb Shihadeh c4362bd958 bootlog doesn't block startup (#31061)
* bootlog doesn't block startup

* keep params

* fix

* cleanup
2024-01-18 20:04:08 -08:00
Shane Smiskol 29536324c1 Toyota: combine more hybrid platforms (#31057)
* Combine

* migrate test models segs

* fix highlander engine

* no change
2024-01-18 18:51:24 -08:00
Justin Newberry 23cbfe9eb3 Revert "CI: use namespace.so" (#31060) 2024-01-18 17:35:24 -08:00
Justin Newberry 9ee0a8a2b1 CI: use namespace.so (#31056)
* namespace

* mkdir

* fix

* restore only

* restore

* v3
2024-01-18 17:17:53 -08:00
Adeeb Shihadeh 00b5424407 time to remove this 2024-01-18 16:38:46 -08:00
Justin Newberry d98b33adc8 replace pytest-timeouts with pytest-timeout (#31053)
* one timeout

* timeout

* higher timeout for now

* bump
2024-01-18 16:19:49 -08:00
Adeeb Shihadeh 1c09ae99eb Bump submodules (#31054)
bump submodules

Co-authored-by: jnewb1 <jnewb1@users.noreply.github.com>
2024-01-18 15:06:02 -08:00
Adeeb Shihadeh 292f2ea288 Update BOUNTIES.md 2024-01-18 11:51:39 -08:00
Adeeb Shihadeh 5791afda15 update bolt bounty 2024-01-18 11:50:17 -08:00
Adeeb Shihadeh 2280ac50b7 uploader: restrict qcam upload on metered connctions (#31047)
* uploader: restrict qcam upload on metered connctions

* route requesting

* rename

* str

* cleanup

* strip dongle

* upload bookmarked segments

---------

Co-authored-by: Comma Device <device@comma.ai>
2024-01-17 21:41:58 -08:00
Shane Smiskol f96aa247cc FW query timing test: mock inconsistent, timing-based functions (#31048)
* Revert "Revert "FW query timing test: mock get_data function for timeout" (#30696)"

This reverts commit b1ecfd55ce.

* no thread

* clean up a bit

* no thread!

* combine functions

* re-enable total time check

* back to 5

* minimal diff

* minimal diff
2024-01-17 19:05:31 -08:00
Adeeb Shihadeh 005a6e4f17 thermald: match metered param to packet 2024-01-17 17:45:22 -08:00
Adeeb Shihadeh 19630c5af9 uploader: delay uploading crash and boot logs on metered connections (#31045)
* uploader: delay uploading some files on metered connections

* just crash and boot for now
2024-01-17 17:43:41 -08:00
Adeeb Shihadeh 4c2bb9f380 updated: only fetch on metered connection when necessary (#31041)
* updated: only fetch on metered connection when necessary

* button always fetches
2024-01-17 16:30:08 -08:00
Harald Schäfer d36103791c No curv rate for lateral control (#31042)
* No more Curvature rate for lat control

* Update cereal

* Update

* Fix lat control test
2024-01-17 16:00:50 -08:00
Justin Newberry 840db1f1b7 prevent typing issue in azure_container (#31044)
prvent that issue
2024-01-17 15:34:24 -08:00
Adeeb Shihadeh 5f1e7649e3 update param in loggerd unit test 2024-01-17 15:08:36 -08:00
Adeeb Shihadeh 7ce29ef08e cleanup old params (#31039)
* cleanup old params

* one more
2024-01-17 14:42:07 -08:00
Shane Smiskol 8c544d9139 Fix f-string in test_fw_query_on_routes.py 2024-01-17 14:39:31 -08:00
Adeeb Shihadeh 0b5fd7287e uploader cleanup (#31035)
* Reapply "uploader cleanup" (#31033)

This reverts commit 5e4df41b2f.

* always sleep

* more cleanup

* little more

* fix linter

* little more
2024-01-17 14:24:09 -08:00
Justin Newberry 3f0b56b364 cleanup azure handling (#31034)
* wip cleanup

* Wip

* fixes

* fix

* cleanup

* keep this for now

* dest
2024-01-17 14:21:47 -08:00
Justin Newberry 5e4df41b2f Revert "uploader cleanup" (#31033) 2024-01-17 11:07:38 -08:00
Justin Newberry f6cd009c77 Update PR templates + autogenerate (#31032)
* update templates

* same as before

* no tuning

* same as before

* move up
2024-01-17 10:36:47 -08:00
YassineYousfi 86ac700805 update onnxruntime to 1.16.3 (#31024) 2024-01-16 20:22:05 -08:00
Adeeb Shihadeh c6c6a441eb uploader cleanup (#31029)
* cleanup

* startup cleanup

* step

* Update test_uploader.py
2024-01-16 19:54:07 -08:00
Shane Smiskol 60a4102892 Fingerprints: automatically add missing FW versions from users [bot] (#31027)
Export fingerprints
2024-01-16 19:32:21 -08:00
Adeeb Shihadeh baa4e801fe athena: remove MockParams from tests 2024-01-16 19:11:59 -08:00
Justin Newberry 49586fc30e CI: auto_pr_review fix error when label doesn't exist (#31030)
* bot template

* catch error
2024-01-16 18:23:33 -08:00
Justin Newberry 1bf8e04f54 CI: only apply bot-review label when it doesn't pass (#31028)
bot template
2024-01-16 18:02:26 -08:00
Justin Newberry b933825231 fix typo 2024-01-16 17:30:11 -08:00
Justin Newberry 2967cada71 auto_source: optimize api calls and use head to determine if file exists (#31025)
* fast

* catch all

* source

* fix file_exists

* remove duplicate reset

* test multiple loops

* iterations

* cleanup imports
2024-01-16 17:24:37 -08:00
Justin Newberry 5c24527683 test_models: sanitize segment before running test (#31026)
to ensure sanetized routes will work
2024-01-16 15:08:44 -08:00
Moritz Wörmann 8a05d212ec CI: Add GH Actions workflow Bot to check for a PR template (#30999)
* Add GH Actions workflow to check for a PR template

* switch to headings and checkboxes for template detection

* check for bold text in template too

* move template check over to auto_pr_review action and remove label only if check succeeded

* only run template check on external PRs

* wording

---------

Co-authored-by: Justin Newberry <justin@comma.ai>
2024-01-16 13:40:38 -08:00
Justin Newberry 61fe705160 LogReader: fix plotjuggler not reading properly (#31023)
* fix plotjuggler

* simpler

* fix juggler

* fix that
2024-01-16 12:40:49 -08:00
Justin Newberry 7d400112df LogReader: move opci to tools/lib (#31021)
move opci
2024-01-16 10:58:51 -08:00
Justin Newberry 0739d5d7b2 LogReader: support lists of identifiers (#31020)
* support lists of logs

* mark as slow instead
2024-01-16 10:40:00 -08:00
Justin Newberry 4da8d16514 LogReader: support only_union_types (#31019)
support only-union-types
2024-01-16 10:03:55 -08:00
Shane Smiskol 8e9be48b7b Revert "docs: include dashcam" (#31017) 2024-01-15 23:49:07 -08:00
Justin Newberry e1a05deadd test_athena: make test more independent (#31012)
get port auto
2024-01-15 16:57:12 -08:00
Justin Newberry 94cd4c9046 Subaru: ensure consistent firmware version size (#31001)
* fix copying mistakes

* fix SA

* remove print

* ensure size is same

* fix SA

* not in database
2024-01-15 12:52:15 -08:00
Adeeb Shihadeh a8afaf39d4 Update Python packages and pre-commit hooks (#31003)
* Update Python packages and pre-commit hooks

* fix

---------

Co-authored-by: jnewb1 <jnewb1@users.noreply.github.com>
2024-01-15 10:34:25 -08:00
Adeeb Shihadeh a4fac38cf9 Bump submodules (#31002)
bump submodules

Co-authored-by: jnewb1 <jnewb1@users.noreply.github.com>
2024-01-15 10:34:08 -08:00
Shane Smiskol f256225f29 docs: include dashcam (#31004)
include dashcam
2024-01-15 04:58:43 -08:00
Justin Newberry 4c6f7da404 Subaru: remove incorrect fingerprints from other brands queries (#30984)
s
2024-01-14 19:55:15 -08:00
Adeeb Shihadeh fe6aff0131 more unit test speedup (#30997)
* that's super slow

* fix startup test

* fix
2024-01-13 22:21:43 -08:00
Adeeb Shihadeh e17e66180c CI: speedup unit test job (#30995)
* start

* mv to buildjet

* fix
2024-01-13 21:16:35 -08:00
Adeeb Shihadeh 3e601b5e8f camerad: move ae test to pytest/catch2 (#30994)
* mv ae gray test

* cleanup
2024-01-13 15:40:25 -08:00
Adeeb Shihadeh 66ddfece82 speedup devcontainer ci job (#30993) 2024-01-13 15:01:35 -08:00
Korben 2f744f5df4 Update French language (#30992)
Update main_fr.ts

validation of new elements
2024-01-13 13:03:23 -08:00
Justin Newberry 884de6e457 test_proclog: fix conflict with pytest (#30989) 2024-01-13 00:30:55 -05:00
Shane Smiskol dafde02da3 Fingerprints: automatically add missing FW versions from users [bot] (#30988)
Export fingerprints
2024-01-12 20:58:13 -08:00
Lee Jong Mun f55d04c172 kor translation update (#30990) 2024-01-12 20:44:03 -08:00
Alexandre Nobuharu Sato 4178f7c1e1 Multilang: Update pt-BR translation (#30987)
* add instructions to my fork

* Revert "add instructions to my fork"

This reverts commit 46fbee3ebe7ecbb211d855e63b2d4c8919c31b63.

* test llm

* Revert "test llm"

This reverts commit fc531f0a1ba81b3444a34a1be8d02a51a060ec7a.

* update pt-BR translation
2024-01-12 18:25:41 -08:00
Justin Newberry d39b31aed1 remove get_url instances (#30986)
rm
2024-01-12 17:36:38 -08:00
Justin Newberry 28e5d1bb49 Metadrive: fix map config on main (#30983)
* Fix map api too

* dont render
2024-01-12 14:42:40 -08:00
Justin Newberry 3d73512c07 rename segmentrangereader to logreader (#30981)
* Replace multilogiterator

* replace logreader

* update readme

* fix from_Bytes

* new section

* reset before iter

* selector

* fix internal

* whitespace
2024-01-12 12:53:50 -08:00
Justin Newberry 9f1b72ac79 Replace multilogiterator (#30980) 2024-01-12 11:43:32 -08:00
Jason Young ba792d576a VW MQB: Add FW for 2018 Volkswagen Tiguan (#30951) 2024-01-11 23:16:04 -08:00
Adeeb Shihadeh 5da573ff39 navd: handle errors in parsing api response (#30977) 2024-01-11 23:15:29 -08:00
Adeeb Shihadeh ef73ee7b37 simple navd test (#30976)
* simple test

* can't check that

* cleanup
2024-01-11 22:55:58 -08:00
royjr 96c91c486e networking: add hidden network option (#30808)
* init

* once

* match

* fix

* maybe

* maybe

* Revert "maybe"

This reverts commit 8386a0a381d5cfe94d7bbf0187d5e311d4b4e9c3.

* Revert "maybe"

This reverts commit 3abf7b19836e5f353fbb94c9bee52b185bd3fc17.

* Revert "fix"

This reverts commit 09e0146f4deeac07b9c26e916a75b70c7dcff1f1.

* Revert "match"

This reverts commit 39a90c6cf88f310623d5e9058152d025ee7213ea.

* fix not at bottom

* padding

* match

* Update networking.cc

* min chars

* translations

* shouldn't need

* need!

* just in case

* Revert "just in case"

This reverts commit a3c1e090682e30400ba9c20b04407b9e5677ad7a.

* finish translations

* not secret

* optional

* allow open networks

* fix

* try

* working

* add divider

* update translations

* fix

* better name

* translate hidden network

* auto

* v2

* remove v1

* fix

* fix translations
2024-01-11 19:42:20 -08:00
Justin Newberry f2c73039d7 fix metadrive after bump (#30967)
* fix clip

* wip

* oop

* 1.22

* ... ugly

* fix tuning
2024-01-11 18:09:39 -08:00
Justin Newberry e7657d896f Subaru: fix disable eyesight enum (#30974)
value
2024-01-11 17:15:37 -08:00
Justin Newberry d7e7659852 move plotjuggler to segment range reader (#30969)
* pj

* limit test to 2 segs

* remove

* fix test
2024-01-11 17:02:47 -08:00
Justin Newberry eb09294fc2 segmentrangereader: support direct parsing (#30973)
* use correct source

* revert

* cleanup imports

* clean

* direct parsing

* rename

* move up

* fixes

* fix that

* better error message
2024-01-11 16:56:48 -08:00
Shane Smiskol 68bcb6b8da Fingerprints: add missing FW versions from users (#30972)
Export fingerprints
2024-01-11 15:57:04 -08:00
Justin Newberry 8d9e431f43 car porting examples: add example of plotting the response of brake_pressure vs acceleration (#30958)
* another example

* add comment

* fix that

* oop

* fix link
2024-01-11 13:35:50 -08:00
Justin Newberry 042ccb9244 move can replay to segmentrangereader (#30971)
can replay
2024-01-11 13:11:59 -08:00
Justin Newberry fb994ae782 segmentrangereader: support more sources (#30970)
* support more sources

* remove this
2024-01-11 12:55:19 -08:00
Justin Newberry 7e9843b5e6 replace more tools with SegmentRangeReader (#30968)
* replace lrfros

* and those ones too
2024-01-11 11:46:31 -08:00
Hoang Bui f820b7cd94 FIx violations and enable --warn=all (#30854)
* --warn=all

* setoption default warn=all

* to old test yaml

* cleanup

* advanced cscanner

* SCons conditional scanner

* not time  yet

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2024-01-11 11:16:09 -08:00
Adeeb Shihadeh ed153141fc rm old debug script 2024-01-11 10:56:46 -08:00
Justin Newberry 0320fb385a fix static analysis 2024-01-11 10:54:53 -08:00
Justin Newberry be814ed447 SegmentRangeReader: log type selector (#30960)
* log type selector

* test this too

* and this

* invalid selector

* use strenum

* don't hardcode size

* oneline
2024-01-11 10:25:24 -08:00
Justin Newberry 32dfb3f8f2 More migration to segmentrangereader (#30959)
* filter log message

* ffr

* gtfs

* gtfs
2024-01-11 10:14:10 -08:00
Shane Smiskol 3c74a61c97 Honda: remove hud ECU from CR-V Hybrid (#30965)
remove almost absent ECU
2024-01-11 00:39:26 -08:00
Shane Smiskol bef6d7f0bb pre-commit: speed up translation step (#30966)
* formatting

fix

* fix missing class attr warning

* add translation_files option, remove pluralonly, type hint

* updates

* update
2024-01-11 00:39:15 -08:00
Adeeb Shihadeh b92e71a2b6 updated: persist more state between runs for UI (#30963)
* persist branches and more

* fix target

* typo

---------

Co-authored-by: Comma Device <device@comma.ai>
2024-01-10 23:23:13 -08:00
Adeeb Shihadeh e9e8f4df38 update count_events.py to SegmentRangeReader 2024-01-10 23:19:16 -08:00
Adeeb Shihadeh 3918039e29 manager: clean exit on ctrl-c 2024-01-10 19:37:10 -08:00
Hoang Bui 1da08460cb Enable variable pass between test and metadrive processes (#30961)
pass started between processes
2024-01-10 18:13:21 -08:00
Justin Newberry af1b7e5c59 Revert "buildjet: pin location to de" (#30956)
Revert "buildjet: pin location to de (#30955)"

This reverts commit 576cba217d.
2024-01-10 15:11:20 -08:00
Justin Newberry 576cba217d buildjet: pin location to de (#30955)
* pin location

* stringify

* Fix

* fromjson

* flip the parens

* and those
2024-01-10 13:48:35 -08:00
Justin Newberry cfb23eb2d1 segmentrangereader: support sort_by_time (#30954)
support sort-by-time
2024-01-10 13:36:55 -08:00
Justin Newberry 926793b17f migrate can_print_changes to segmentrangereader (#30953)
more tools
2024-01-10 13:02:39 -08:00
Justin Newberry 0d126e1e9e SegmentRangeReader: new format for reading multiple segments (#30940)
* segment range reader

* rename that

* revert that

* cleanup

* revert this for now

* revert this for now

* Fix + test

* rm that

* rm that

* use for auto_fingerprint

* simpler

* for notebook too

* match numpy indexing

* just use numpy directly

* remove that

* spacing

* spacing

* use qlog for auto fingerprint

* add 'read mode'

* pass in read mode

* add test for modes

* numpy indexing

* fix that case

* more examples

* fix the notebook

* cleanup the notebook

* cleaner

* fix those
2024-01-10 11:55:19 -08:00
ugtthis db3ef3e1d8 UI/MapETA: Increased contrast of widget texts for better readability (#30952) 2024-01-09 20:32:23 -08:00
Jason Young 61ebb5b668 VW MQB: EA driver inactivity workaround (#24711)
* VW MQB: Emergency Assist mitigation

* elide superfluous newline

* update refs

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2024-01-09 19:24:46 -08:00
Nelson Chen 4eba5fe68d Add permissions to build_masterci in release workflow so it can push master-ci (#30949) 2024-01-09 16:46:09 -08:00
Adeeb Shihadeh cd1d7eb4d2 OS04C10 support (#30658)
* getting frames

* ok

* support both output

* cleanup

* fix unused

* undo

* fix release files

---------

Co-authored-by: Comma Device <device@comma.ai>
2024-01-09 14:19:10 -08:00
Nelson Chen 221f81bbd3 Add more permissions for pushing in prebuilt workflow (#30948)
Continuing on from https://github.com/commaai/openpilot/pull/30947
2024-01-09 11:35:14 -08:00
Nelson Chen 2a074eefac Fix badges workflow blocking release/prebuilt workflows from permission and Git-LFS complications (#30947) 2024-01-09 10:40:45 -08:00
Shane Smiskol ca57d329e2 Toyota: add 2024 RAV4 (#30909)
* add 2024 RAV4 ICE FP

* docs

* also try vin bus 0 toyota

* it works!
2024-01-09 00:48:48 -08:00
Adeeb Shihadeh af137bac58 GM: remove GMLAN dash msg (#30547)
* remove GMLAN

* update refs
2024-01-08 19:49:22 -08:00
Shane Smiskol 1d370a0880 Fingerprints: add missing FW versions from users (#30945)
Export FW versions
2024-01-08 19:46:27 -08:00
YassineYousfi d6cece756c longplanner: expose dt (#30941) 2024-01-08 19:46:13 -08:00
Jason Young 88e445ef15 VW MQB: Improved longitudinal starting and stopping (#30874)
* VW MQB: Improved stopping and starting

* get longcontrol to take off sooner

* oops

* use the carParam instead of the constant

* update refs

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2024-01-08 19:40:41 -08:00
Hoang Bui 7fdd5c4a7d Python camerad for webcam (#30930)
* webcamd

* remove destroy windows

* block

* shebang execute

* executaleeeee

* executableeeeeee

* she bang for camerad.py

* listener

* no signal?

* good

* ruff fix

* delete listener

* recover sim

* remove assert

* refactor

* fix shell

* fix namedtuple

* little change

* to tuple

* cleanup

* update readme

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2024-01-08 19:22:21 -08:00
Adeeb Shihadeh 90010754d6 unpin metadrive package (#30944)
* unpin metadrive package

* lock
2024-01-08 17:16:15 -08:00
Adeeb Shihadeh c8df0bd1d0 Bump submodules (#30938)
bump submodules

Co-authored-by: jnewb1 <jnewb1@users.noreply.github.com>
2024-01-08 17:02:40 -08:00
Shane Smiskol d689a4e653 Fix string indentation (#30943)
* fix bad spacing

* more

* these aren't important
2024-01-08 15:36:43 -08:00
Adeeb Shihadeh 5f191321fd tici: check that peripherals are fully booted (#30942)
* tici: check that peripherals are fully booted

* default

* typo

* fix

---------

Co-authored-by: Comma Device <device@comma.ai>
2024-01-08 15:09:38 -08:00
Adeeb Shihadeh 6743487d78 Update Python packages and pre-commit hooks (#30939)
Co-authored-by: jnewb1 <jnewb1@users.noreply.github.com>
2024-01-08 13:54:09 -08:00
Adeeb Shihadeh 91c5c5eca7 camerad: log request id (#30935)
* camerad: log request id

* bump cereal

* bump cereal
2024-01-08 09:16:50 -08:00
Nelson Chen 2a49f94872 Add necessary permissions/tokens for "lewagon/wait-on-check-action" so it can run nightly (#30923) 2024-01-07 15:02:25 -08:00
Adeeb Shihadeh 073fc89ad4 Revert "UI: single-threaded CameraView (#30397)"
This reverts commit 17ac1d3c7b.
2024-01-07 14:54:39 -08:00
Adeeb Shihadeh e867aa40db ignore "car port" for stale pr detection 2024-01-07 14:34:04 -08:00
Adeeb Shihadeh 7997fccdfa update mapsd cpu 2024-01-06 17:46:44 -08:00
Adeeb Shihadeh f0ccb84ae3 remove common.profiler (#30927)
* remove common.profiler

* cleanup
2024-01-06 16:20:28 -08:00
Shane Smiskol 084871ed5b Auto translate: fix prompt & formatting (#30922)
fixes
2024-01-05 23:44:54 -08:00
Meir 2378f311d2 Auto translate with OpenAI (#30899)
* auto translate with OpenAI

* change model

* fix mypy typing errors

* update

* fix lint errors

* check api key after args parser

* fix input args

* use languages.json

* just print

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2024-01-05 22:28:56 -08:00
Justin Newberry 03d6233743 move profiling tools to tools/profiling (#30917)
move profiling
2024-01-05 16:22:45 -08:00
Justin Newberry 4cc48b75e8 add sanitizer function (#30919)
* sanetizer function

* spelling

* better

* move to helpers
2024-01-05 16:20:37 -08:00
Adeeb Shihadeh 46f3fdc090 Update Python packages and pre-commit hooks (#30597)
* Update Python packages and pre-commit hooks

* fix

---------

Co-authored-by: jnewb1 <jnewb1@users.noreply.github.com>
2024-01-05 15:17:49 -08:00
Justin Newberry 239b228ca6 add the notebook example to car port docs (#30920)
* add the notebook example

* fix link

* add image

* no lfs

* no lfs
2024-01-05 13:57:02 -08:00
Justin Newberry e86d74b347 move car porting tools to tools/car_porting (#30916)
just this for now
2024-01-05 11:53:03 -08:00
Justin Newberry 15e0a906ad tools: add car porting example notebook (#30918)
* add car porting example notebooks

* not required
2024-01-05 11:52:24 -08:00
Shane Smiskol 002ab5637b Car docs: utilize post init (#30912)
move these to earlier post_init
2024-01-04 22:16:39 -08:00
Shane Smiskol 397c1e373c selfdrive/test: fix indentation
no ruff rule for this
2024-01-04 19:53:23 -08:00
Justin Newberry 1148c65d23 add read_seglist helper (#30908)
add helper
2024-01-04 17:52:07 -08:00
Shane Smiskol 63f0d775bc Fingerprints: add missing FW versions from users (#30906)
Export fingerprints from Fingerprint stage
2024-01-04 15:54:50 -08:00
Shane Smiskol 43b0b0f022 Revert "Fingerprints: add missing FW versions from users"
This reverts commit e85e401d07.

Meant for another branch.
2024-01-04 00:51:38 -08:00
Shane Smiskol e85e401d07 Fingerprints: add missing FW versions from users 2024-01-04 00:50:30 -08:00
Adeeb Shihadeh 3c4150c542 timezoned: set only from gps (#30904)
* timezoned: set only from gps

* unused
2024-01-03 20:18:29 -08:00
Adeeb Shihadeh fe40905849 Revert "Fingerprint for '21 Explorer ST (#30877)"
This reverts commit ff0fed07ed.
2024-01-03 20:07:58 -08:00
duetschlandftw ff0fed07ed Fingerprint for '21 Explorer ST (#30877)
* carparams gave me a new firmware entry for "shiftByWire" from 'ford', so i added it here, as well as a new fw value under ecs.engine

* Update selfdrive/car/ford/fingerprints.py

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2024-01-03 19:43:59 -08:00
DevTekVE 28cf3155e2 [HKG-CAN] Consider FCW alerts from SCC (#30885)
* FCW is triggered differently when SCC is active

* Update selfdrive/car/hyundai/carstate.py

* Update selfdrive/car/hyundai/carstate.py

* cmt

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2024-01-03 19:34:13 -08:00
Adeeb Shihadeh 115047d858 timezoned: run while onroad (#30903) 2024-01-03 17:53:40 -08:00
Justin Newberry 4430944b29 jenkins: lock "pc" label to limit concurrent workers (#30902)
* lock pc label

* remove that
2024-01-03 16:55:16 -08:00
Shane Smiskol 318d1204e5 CI: bump other lewagon/wait-on-check-action 2024-01-03 14:11:11 -08:00
Dean Lee 17ac1d3c7b UI: single-threaded CameraView (#30397)
* single-threaded CameraView

* updateFrame

* inherit from CameraWidget

* clear frame on offroadTransition

* check frame_id

* optional

* unique_ptr

* CameraView

* cleanup

* cleanup

* log skipping frame

* fix driverview

* disconnectVipc

* debug inconsistent frame

* skip frame if uiPlan is outdate

* cleanup

* set connected = false

* support camerad reboot&seeking in replay

* cleanup

* qDebug

* use deque

* cleanup

---------

Co-authored-by: Comma Device <device@comma.ai>
2024-01-03 13:14:29 -08:00
Shane Smiskol 7f398e1cf9 test_models: fallback to public route when route isn't uploaded to CI bucket (#30893)
* not sure why this is a test

* Revert "not sure why this is a test"

This reverts commit c13e16311eb882df65d216bbd59acb5702e985e6.

* no ruff for this pattern :(

* this is always caught

* should fail

* simpler

* Revert "should fail"

This reverts commit 21bd15275c46cd42fd19b058245334bae83cce77.

* fix

* cleanup this

* better comment

* better

* this can be more localized

* better names

* better names

* should fail

* Revert "should fail"

This reverts commit c58495e8b3417ce351df8048752ec60177827cb3.

---------

Co-authored-by: Justin Newberry <justin@comma.ai>
2024-01-03 11:54:22 -08:00
Adeeb Shihadeh 8fbe382fa7 make scons parallel by default (#30901) 2024-01-03 11:16:54 -08:00
Shane Smiskol 633fef5a96 Fingerprints: add missing FW versions from users (#30837)
Export Toyota fingerprints from last 2 weeks, 0.9.5-release
2024-01-02 21:48:31 -08:00
Shane Smiskol 8c4930d2d3 Revert "test_models: fallback to public route when route isn't uploaded to CI bucket (#30794)" (#30896)
* fails if no skip function

* Revert "fails if no skip function"

This reverts commit ff3d697d38dce56057c83f06033a689f2301a29d.

* Revert "test_models: fallback to public route when route isn't uploaded to CI bucket (#30794)"

This reverts commit 05dc0b51e6.
2024-01-02 17:22:06 -08:00
Shane Smiskol de4bc31ba6 Toyota: add 2024 RAV4 Hybrid (Canada-built) (#30887)
* add 2024 RAV4

* bump reeleases

* fix star link in PR comments

* ?

* consistent
2024-01-02 17:14:51 -08:00
Shane Smiskol 543cd4460a HKG: fix 2021 Niro Hybrid harness (#30895)
* originally was Hyundai F in the database, but one user on Discord (US) and one in support (SK) both needed hyundai D

* bump
2024-01-02 17:10:23 -08:00
Shane Smiskol 205a78f02d PR comments: fix image links 2024-01-02 14:18:52 -08:00
Justin Newberry 9b25bfc618 CI: set CI=1 in docker image (#30889)
* ci=1

* wrong spot
2024-01-02 13:48:16 -08:00
Adeeb Shihadeh 9cf57cc4e4 CI: bump lewagon/wait-on-check-action 2024-01-02 13:34:35 -08:00
Mitchell Goff 7e71fd7bae new delhi model (#30822)
* 027a1efa-10fb-4291-ad58-90cf0ff150b5/700

* debug

* rm for now

* bump refs

* revert that

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2024-01-02 13:27:15 -08:00
Justin Newberry 86bd337952 CI: set CI=1 globally (#30888)
ci=1
2024-01-02 13:17:19 -08:00
Justin Newberry fba521ecc6 url_file: fix non-200 files being cached (#30886)
* fix + test

* fix unclosed

* easier to read

Co-authored-by: Shane Smiskol <shane@smiskol.com>

* fix that

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2024-01-02 12:42:08 -08:00
royjr 9d7f618bc5 multilang: parameterize unit tests (#30842)
* init

* fix indents

* remove import

* safer

* TemporaryDirectory

* much cleaner

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2024-01-01 14:54:16 -08:00
stevenworks 0f72467558 Typo fixes / Grammar corrections (#30860)
* CONTRIBUTING.md: Misspelling

* BOUNTIES.md: Misspelling

* SAFETY.md: Grammar

* realtime.py: Comment consistency

* revert for now

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2024-01-01 14:39:01 -08:00
Kacper Rączy 65ece2081a metadrive: Change camera position to reflect typical height of a vehicle (#30831) 2024-01-01 14:36:37 -08:00
Sliicy 6ccf2cbfde Fixed joystickd.py incorrect steering control (#30879) 2024-01-01 14:29:01 -08:00
Adeeb Shihadeh d3cdd837fa Bump submodules (#30881)
bump submodules

Co-authored-by: jnewb1 <jnewb1@users.noreply.github.com>
2024-01-01 14:28:34 -08:00
Robbe Derks eb805e889e [Cabana] Fix segfault in sparkline (#30870) 2023-12-31 13:02:05 -08:00
Justin Newberry 331ea60422 Add link to contributing channel (#30876) 2023-12-31 14:54:37 -05:00
royjr fd88990006 multilang: bad language translation check (#30783)
* compare bad against list

* use web

* Update test_translations.py

* uncomment

* override

* wrap

* AssertionError

* better

* detent

* selfish

* check numerusforms

* already checked

* use name

* not again

* combined

* sets

* assume available

* fix assume

* check regardless of other tests

* assert not print

* raise for status

* better

* done

* useless

* happy ruff

* better set

* quiet

* clean

* obvious

* clearer

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>

* IGNORED_WORDS

* assert match

* direct assert

* show bad word

* fix numerous empty string checks

* fix IGNORED_WORDS

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2023-12-31 10:58:15 -08:00
Justin Newberry a58baf48fe Subaru: longitudinal cleanup and dash status fixes (#30868) 2023-12-29 23:47:55 -05:00
Justin Newberry 9520153b6a bump submodules (#30866) 2023-12-29 19:39:17 -05:00
Justin Newberry d33c5bccc6 CI: update labeler to 5.0.0 release (#30862)
* update labeler

* update labeler

* update labeler

* Update labeler (#63)

* update labeler

* update labeler

* update labeler

* fix that

* Update labeler (#65)

* update labeler

* update labeler

* update labeler

* fix that

* and that

* Update labeler (#66)

* update labeler

* update labeler

* update labeler

* fix that

* and that

* fix that
2023-12-28 10:54:09 -08:00
Adeeb Shihadeh 6810c5b644 script for checking out a pr 2023-12-26 19:22:34 -08:00
royjr 4df85062c5 setup: Enhance URL Handling to Support Partial Inputs (#30681)
* easy urls

* better
2023-12-26 19:08:57 -08:00
Dean Lee a1f53c70e6 uploader.py/listdir_by_creation: list directories only (#30806)
list only directories

Co-authored-by: Comma Device <device@comma.ai>
2023-12-26 16:05:45 -08:00
pencilpusher ee3544d283 replay ui: fix typo in variable name (#30851)
fix typo in variable name
2023-12-26 16:03:59 -08:00
Adeeb Shihadeh 1f9970ba3d stricter file size limits (#30839)
* move all pics to lfs

* wav and rest of so

* more to lfs

* ignore a few

* push that up
2023-12-26 15:22:59 -08:00
Jason Wen c09b651bd7 Update CARS.md 2023-12-26 12:14:34 -05:00
Adeeb Shihadeh 7638572e38 Bump submodules (#30849)
bump submodules

Co-authored-by: jnewb1 <jnewb1@users.noreply.github.com>
2023-12-26 01:58:40 -08:00
Jason Wen ce4235f8ec Update CHANGELOGS.md 2023-12-24 13:29:37 -05:00
Jason Wen a6cf11ef39 lower to 0.9.5.3 2023-12-24 13:16:35 -05:00
Shane Smiskol 5e6290c4a2 Fingerprints: add missing FW versions from users (#30833)
Export fingerprints from Fingerprint stage
2023-12-21 03:55:15 -08:00
Shane Smiskol b38c580c2e format fingerprints: simplify sorting (#30826)
* unique + sort + don't modify FW_VERSIONS

* clean up

* not here

* self expl
2023-12-20 15:51:56 -08:00
Justin Newberry cfc85f016b Pytest: exclude teleoprtc (#30829)
exclude
2023-12-20 15:22:48 -08:00
Justin Newberry a6b17fb1f6 Simulator: fix keyboard ctrl messing with pytest (#30827)
fix
2023-12-20 15:10:11 -08:00
Justin Newberry abe4780fdb Docs: fix old docs still being populated (#30825)
* fix push

* also remove cached files

* fix readme

* add readme

* remove that wip submodule
2023-12-20 13:56:34 -08:00
Justin Newberry 33e7baee40 Docs: fix push and running locally (#30823)
fix push
2023-12-20 13:27:27 -08:00
Justin Newberry 3d8c78d6b3 format_fingerprints: automatically sort fw fingerprints (#30819)
* Auto sort fingerprints

* add comment
2023-12-20 11:54:31 -08:00
Justin Newberry 05dc0b51e6 test_models: fallback to public route when route isn't uploaded to CI bucket (#30794)
* wip

* add public comment

* fix that

* wip

* retrigger
2023-12-20 11:29:19 -08:00
Justin Newberry 3713e4d5ea add script to automatically format fingerprints file (#30792)
* Add script

* fix script

* fix script

* fix for subaddr

* run the script

* old style can fingerprints

* cleanup

* sort imports, make executable, fix path

* newline w/o newline

* match og can formatting

* match og formatting

* generate template once

* standard name

* less nested

* can fingerprints comments

* fix spacing

* no need for PLATFORM_TO_ENUM_NAME!

* prep for PRs

* comments for all, add honda comments

* Auto-generated fingerprint PR from fuzzy fingerprinting cars

* Revert "Auto-generated fingerprint PR from fuzzy fingerprinting cars"

This reverts commit 97bc9e3bdb9d819dcbe684ceba92ea702d40eaf0.

* even closer to original

* readd this comment

* and run script

* add to precommit

* add comments

* add comments

* add to release

* use for auto fingerprint

* disable precommit for now

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-12-20 11:18:29 -08:00
Shane Smiskol adb04b5dc5 fingerprints: fix formatting (#30814)
formatting
2023-12-19 23:47:34 -08:00
Shane Smiskol 1a165c6580 interfaces: fix get_interface_attr typing (#30813)
* fix

* Update selfdrive/car/interfaces.py
2023-12-19 23:35:31 -08:00
Shane Smiskol 426072bd87 fix bad CAN fingerprint type (#30809)
fix bad wrong type
2023-12-19 20:30:42 -08:00
Dean Lee 5f04517677 cabana: add csv export (#30800)
export csv
2023-12-19 11:50:16 -08:00
Justin Newberry 8017c25f0b Simulator: only send camera frames at rate that they are generated (#30802)
only send frames at rate that they are generated
2023-12-19 10:45:07 -08:00
Dean Lee 3646ca0a14 refactor swaglog (#30795) 2023-12-19 10:36:35 -08:00
Justin Newberry adca970ca9 cleanup fingerprinting typing (#30801)
* wip

* undo + add can fingerprints

* add can fingerpints

* those should go there
2023-12-19 09:41:09 -08:00
Shane Smiskol 5052b55c44 test_models: fuzz test panda and CarState (#30443)
* pre-hypothesis

* some hypothesis junk

* this kinda works but is really slow due to counter check

* choose addrs from fingerprint

* stash

* honda nidec brake pressed mismatches fixed

* bump panda

* stash

* tesla: use DI_torque2 (panda msg)

* run

* run

* ah this honda mismatch too

* no more multi can msgs

* clean up, remove old file

* add todo

* prob can remove urandom

* stash, huge examples

* fix pq standstill mismatch

* yuge

* yup there's a leak somewhere

* try to find leak

* skip dashcam (pq and tesla)

* PR comments

* bump

* draft stash

* fix alt brake hondas

* bump

* bump

* bump

* some clean up

* minor clean up

* more clean up

* stash

* fix honda bug

* more

* 100 examples

* revert tesla

* no memory leak any more?

* bring back tests with skips

* parameterize max_examples

* skip interceptor

* is jenkins on my branch?

* ooh that's fast

* 50 is not bad for GH CI

* 300 might be better with rest of test_models

* no more detection

* bump

* need CS_prev to catch bugs where openpilot changes and panda doesn't (eg. not setting interceptor safety mode)

* need to simplify all this

* need a warm up first, since some signals are 1 by default (toyota's gas_released!=1)

* changes

* set honda safety param

* set toyota safety param

* bump panda

* clean up honda

* rm interceptor

* thought interleaving addrs might help, but we can fine tune later

* Revert "thought interleaving addrs might help, but we can fine tune later"

This reverts commit 153301384b48c9f33f9e2af3c224241eaeec41c1.

* get size from dict

* what

* add nocapture marker

* clean up

* try to raise logging level

* need to run last as pytest_runtest_call, since it starts capturing

* get capman conditionally

* mark

* type fingerprint

* should use gen_empty_fingerprint

* no longer needed

* draft

* no longer need gc

* clean that up

* test everything!

* more clean up

* more

* no point

* fix that

* fix errors

* bump

* nice even 300 examples for 300 segs

* final bump :fingers_crossed:

* better import order

* remove debugging prints

* warm up kinda works

* Revert "warm up kinda works"

This reverts commit 7fc77b07d592edb13eadca77deb49540954a7d69.

* random seed

* revert

* strat

strat

* add expl comment

* cmt

* check controls allowed

* Revert "check controls allowed"

This reverts commit e82a0e5396810dd4670e6847aa555194a709e10f.

* not unittests

* run tests!

* run tests 2!

* run tests 3!

* seed unused

* revert

* add shrink phase, and remove health check suppression

* hello

* oncemore

* Update selfdrive/car/tests/test_models.py
2023-12-19 03:18:54 -06:00
Justin Newberry 10b3a22897 Add GH project to bounties.md (#30791)
* update bounties

* just replace the link
2023-12-18 17:12:21 -08:00
Adeeb Shihadeh cee84381f3 Update README.md (#30793)
* Update README.md

* Update README.md

* Update README.md
2023-12-18 17:05:24 -08:00
Adeeb Shihadeh b0b4ae9c15 run test_fuzzy.py with pytest 2023-12-18 14:38:57 -08:00
Justin Newberry 28eed156e0 Move all fingerprints to fingerprints.py (#30790)
* move fingerpints

* fix circular imports

* fix circular imports

* fix auto fingerprint

* fix those tests

* and controlsd

* add labeler rule

* no defaultdict
2023-12-18 14:04:27 -08:00
Dean Lee b9080d2362 camerad: zero memory before returning from MemoryManager::alloc (#30781)
* zero memory

* remove redundant memset

---------

Co-authored-by: Comma Device <device@comma.ai>
2023-12-18 13:54:11 -08:00
Dean Lee ab0b26d2b8 camerad: cleanup includes (#30782)
* cleanup includes

* continue

---------

Co-authored-by: Comma Device <device@comma.ai>
2023-12-17 22:42:52 -08:00
Adeeb Shihadeh 846be323d5 packages cleanup, part two 2023-12-17 16:37:33 -08:00
Adeeb Shihadeh 51a93cf9aa fix unused 2023-12-17 16:32:56 -08:00
royjr 70624ffc81 dependency: remove pycurl package (#30771)
* Update qcomgpsd.py

* Update url_file.py

* remove pycurl

* requests -> urllib3

* unused

* redundant

* fix import

* Revert "requests -> urllib3"

This reverts commit 7ca39e618917986f50356519d2795a432e3a5280.

* headless

* fix trail

* use requests.exceptions.RequestException

* use fp.tell

* fix indents

* reorder imports

* change timeout

* fix debug timing

* remove exception

* add timeout

* missing headers

* move to constructor

* move import

* unused import

* fix debug

* try

* no retries
2023-12-17 16:25:25 -08:00
Adeeb Shihadeh 8c1176ca83 more common/ pruning (#30778) 2023-12-17 11:40:46 -08:00
Andrei Radulescu b75cdd1542 wifiManager: fix for lteConnectionPath not set on boot (#30517)
Co-authored-by: Justin Newberry <justin@comma.ai>
2023-12-17 11:07:48 -08:00
Adeeb Shihadeh 2c30421b16 move common.window to xx (#30777) 2023-12-17 10:50:45 -08:00
Adeeb Shihadeh 77bafb0708 Bump submodules (#30776)
bump submodules

Co-authored-by: adeebshihadeh <adeebshihadeh@users.noreply.github.com>
2023-12-17 10:43:14 -08:00
Adeeb Shihadeh 1421551297 Cython KF1D to Python (#30773)
* Cython KF1D to Python

* cleanup

* set x

* less nesting

* fix release

* Revert "fix release"

This reverts commit 97e5d0f80405660efb861c7b9df7fbfd5dda5dd9.
2023-12-16 23:45:28 -08:00
Adeeb Shihadeh 7aeefaad65 jenkins: only do replay when relevant files change 2023-12-16 23:35:43 -08:00
Adeeb Shihadeh a07060b24b common: remove statlog (#30774)
* common: remove statlog

* fix release
2023-12-16 23:33:55 -08:00
Adeeb Shihadeh 4b54c0b3cd better uploader cpu thresholds 2023-12-16 22:37:35 -08:00
Adeeb Shihadeh 2d466e70cd ui: show wifi password by default (#30766)
* ui: show wifi password by default

* update immediately
2023-12-16 22:36:26 -08:00
Adeeb Shihadeh 1346704426 common/file_helpers: remove xx stuff (#30772)
* remove xx stuff

* cleanup
2023-12-16 22:19:50 -08:00
royjr 7f9e41ce2e dependency: remove atomicwrites package (#30769)
* Update file_helpers.py

* remove dependency

* Revert "remove dependency"

This reverts commit e2bd5f4edab7d14b75f65c296631855d886e38d1.

* remove atomicwrites

* allow overwrite

* fix indents

* add type hints

* Update poetry.lock

* optional

* wrap
2023-12-16 21:58:19 -08:00
Adeeb Shihadeh bc54ed794b remove PyYAML package (#30770)
* remove PyYAML package

* remove those

* add comments back

* fix lock

* fix those
2023-12-16 20:48:57 -08:00
Maxime Desroches 6239cf6780 CI: Close PRs not against master (#30768)
* check branch

* Update labeler.yaml

* Update labeler.yaml

* Update labeler.yaml

* rename

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2023-12-16 19:29:45 -08:00
Adeeb Shihadeh a7828eba3c remove sconscontrib package (#30767)
* remove sconscontrib package

* lock
2023-12-16 19:16:34 -08:00
Adeeb Shihadeh dfa2e9146f cleanup python dependencies (#30764)
* less

* try to remove that

* little more

* update

* ugh still need this
2023-12-16 18:52:15 -08:00
Dean Lee ea7e701052 camerad/CameraBuf: remove deprecated rgb_stride (#30758) 2023-12-15 19:48:26 -08:00
Dean Lee f9ee7bff00 ui: remove unused roadCameraState from submaster (#30757) 2023-12-15 19:32:25 -08:00
Adeeb Shihadeh cb53e6579f Bump submodules (#30755)
bump submodules

Co-authored-by: jnewb1 <jnewb1@users.noreply.github.com>
2023-12-15 17:44:54 -08:00
Shane Smiskol d9a8846d58 test_models: use gen_empty_fingerprint (#30752)
use gen_empty_fingerprint
2023-12-15 17:16:19 -08:00
Shane Smiskol 123ef46af3 Revert "test_models: check consitency between panda and openpilot for velocity (#30750)" (#30753)
This reverts commit 1ca1cf3922.
2023-12-15 17:16:01 -08:00
Justin Newberry 1ca1cf3922 test_models: check consitency between panda and openpilot for velocity (#30750)
* sanity check on velocity

* import from there

* use raw

* just check last

* ignore body

* reduce tolerance and bump panda

* its not average anymore

* slightly higher tolerance
2023-12-15 14:50:37 -08:00
Adeeb Shihadeh 1733b04741 jenkins: always do the copy in safe_checkout 2023-12-14 23:46:25 -08:00
Adeeb Shihadeh 6f143f6c45 full clean for onroad device 2023-12-14 23:00:07 -08:00
Justin Newberry d6eb1265a0 Docker: cleanup .git and test folders (#30747)
docker cleanup
2023-12-14 22:31:29 -08:00
Adeeb Shihadeh 37351cbdc1 uploader: reduce max qlog/qcam size (#30746) 2023-12-14 22:30:46 -08:00
Adeeb Shihadeh 10ea451831 test_onroad: fix test_log_sizes when running inside a prefix 2023-12-14 22:24:09 -08:00
Justin Newberry da12a34ff6 Metadrive: set near clip (#30745)
set near
2023-12-14 21:03:02 -08:00
Kacper Rączy 5fe9f1459c metadrive: fix dual_camera mode (#30743)
* Use wide cam in metadrive

* 120 fov
2023-12-14 20:51:06 -08:00
Adeeb Shihadeh 0830f62b36 also run qcomgpsd on path update 2023-12-14 20:44:14 -08:00
Adeeb Shihadeh 2cad6dfa58 jenkins: only run pandad tests when paths change (#30741)
* jenkins: only run pandad when paths changed

* fix

* ugh shadow
2023-12-14 20:41:11 -08:00
royjr 05d5056e8c car docs: remove outdated video link (#30737)
remove outdated link
2023-12-14 20:36:33 -08:00
Adeeb Shihadeh 303f1cf9cf jenkins: run test_onroad in the normal env (#30740) 2023-12-14 19:59:16 -08:00
Justin Newberry 977dd033c4 Simulator: fix safety param (#30738)
fix param
2023-12-14 19:34:06 -08:00
Justin Newberry 23c20bce8f test_athena: remove slow memory leak test (#30734)
way too long
2023-12-14 17:24:47 -08:00
Justin Newberry 5d668701cb CI: move test_maprenderer to GH actions (#30610)
maprenderer to ci
2023-12-14 16:59:28 -08:00
Shane Smiskol 582743fdb5 Use a safety param for gas interceptor (#30719)
* bump

* bump

* space

* remove from boardd

* set flag for honda to pass tests

* migrate

* Update ref_commit

* final bump

* bump cereal

* bump to master
2023-12-14 16:53:22 -08:00
Adeeb Shihadeh 5b909c7d52 Update CONTRIBUTING.md 2023-12-14 14:51:56 -08:00
YassineYousfi e82d5419a8 remove carla from README (#30731) 2023-12-14 14:43:42 -08:00
Justin Newberry bd9d5f363d make the main photo link to the comma shop (#30729) 2023-12-14 14:13:11 -08:00
Adeeb Shihadeh f78e7ed175 jk 2023-12-14 13:59:22 -08:00
Adeeb Shihadeh f36866c898 better video thumbnails 2023-12-14 13:50:30 -08:00
Adeeb Shihadeh 57b9e75d6d Docs update (#30726)
* update readme

* three videos looks way better

* shorter picture

* even smaller

* Update README.md

* Update README.md
2023-12-14 13:24:48 -08:00
Justin Newberry 075e6ff3e6 Docker: add xvfb (#30727)
add xvfb
2023-12-14 12:46:24 -08:00
Adeeb Shihadeh b69c71eda9 Update CONTRIBUTING.md 2023-12-14 11:25:09 -08:00
Adeeb Shihadeh 0c24126a6b add comma10k to contributing 2023-12-14 10:42:43 -08:00
Adeeb Shihadeh 2b12a499f7 bump up installer size (#30722) 2023-12-13 21:18:20 -08:00
Adeeb Shihadeh bd8a99ba28 fix put_nonblocking reference 2023-12-13 20:52:43 -08:00
Dean Lee b53b505d2e boardd: improve the performance of PandaUsbHandle::list() (#30673)
* improve list performance

* revert test_onroad

---------

Co-authored-by: Comma Device <device@comma.ai>
2023-12-13 20:48:51 -08:00
Dean Lee 3c4c4d1f7f common/params: support nonblocking write (#29808)
* Safe and efficient asynchronous writing parameters

* call putNonBlocking in locationd

* remove space

* ->AsyncWriter

* remove semicolon

* use member function

* asyc write multiple times

* add test case for AsyncWriter

* merge master

* add missing include

* public

* cleanup

* create once

* cleanup

* update that

* explicit waiting

* improve test case

* pass prefix to asywriter

* move to params

* assert(queue.empty())

* add comment

* add todo

* test_power_monitoring: remove patch

* rm laikad.py

* fix import

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2023-12-13 20:36:01 -08:00
Jason Wen fcc671297e torqued: cache bucket points every minute while onroad (#30515)
* torqued: cache bucket points every minute while onroad

* use put_nonblocking

* remove caching on exit

* unused

* more unused

* remove logging
2023-12-13 20:30:33 -08:00
Adeeb Shihadeh ea94a6d89f athena: cleanup unused methods 2023-12-13 20:27:54 -08:00
Justin Newberry abe76065a9 update docs 2023-12-13 20:26:51 -08:00
Dean Lee dbda641cee ui: destroy egl_images in main thread (#30253)
* call eglDestroyImageKHR in ui thread

* assert
2023-12-13 20:18:45 -08:00
Justin Newberry 5f24078a48 Subaru: enable alpha longitudinal for gen1 cars (#30714)
* enable alpha long

* update docs

* added footnote about eyesight

* only for these cars

* add alpha

Co-authored-by: Shane Smiskol <shane@smiskol.com>

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-12-13 20:17:33 -08:00
Jason Wen 8009b11516 Hyundai CAN-FD: Panda safety config assignments cleanup (#29733)
* Hyundai CAN-FD: Interface small cleanup

* some more

* Do this too

* fix

* cleaner

* use flag

* consolidate

* do it there

* Fix

* hda2 only

* cleaner

* default to False

* in another PR

* lint
2023-12-13 20:15:25 -08:00
Harald Schäfer 8c25741e46 Ford: radar + long control fixups (#28948)
* enable radar

* manual new track

* Don't filter points

* cleanup

* Update radar_interface.py

* This is non-zero in stock

* add speed

* more extreme

* A few more things

* fixes

* cleanup

* revert that

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2023-12-13 19:54:06 -08:00
Adeeb Shihadeh fe24bdc689 read params in a thread 2023-12-13 19:00:22 -08:00
Adeeb Shihadeh ae85ee0932 fixup can replay for jungle v2 and tres 2023-12-13 17:00:14 -08:00
Dean Lee 33987d4cc9 ui/onroad: avoid drawing invalid lanes and leads (#29666) 2023-12-13 14:51:09 -08:00
Adeeb Shihadeh 2a1403a46b bounties docs (#30718) 2023-12-13 13:57:50 -08:00
Justin Newberry a3c0e2bd25 CI: add codecov token (#30716)
* add codecov token

* retrigger with token
2023-12-13 11:50:44 -08:00
Isaac 26a67641d2 Ford: Add Mach-E (#30691)
* Update interface.py

* Update values.py

* Update routes.py

* Update override.yaml

* Update selfdrive/car/ford/values.py

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>

* Update interface.py

* order

* only have dongles for these

42f08a29af3699f4
83a4e056c7072678

from https://github.com/commaai/openpilot/pull/30444

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-12-13 09:05:41 -08:00
Jason Wen d6465e39bd Hyundai: Car Port for Staria 2023 (#30672)
* Hyundai: Car Port for Staria 2023

* camera scc!

* add test route

* Update RELEASES.md

* Apply suggestions from code review

* bump down max torque

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-12-13 08:23:10 -08:00
Adeeb Shihadeh 7ca440fe51 ignore tools/ in codecov (#30711) 2023-12-12 23:59:38 -08:00
Shane Smiskol c4759c0a50 Car docs: fixes (#30710)
* always lower case

* more fixes

* link

* rm ()
2023-12-12 20:41:43 -08:00
Shane Smiskol 77066a2260 Ford: consolidate comments about unsupported hybrid platforms (#30709)
* fix typo, move comments to one place

* -appear

* Update selfdrive/car/ford/carstate.py
2023-12-12 20:37:37 -08:00
Isaac 2192cc170c Ford: Add F-150 Lightning (#30692)
* Update interface.py

* Update values.py

* Update routes.py

* Update override.yaml

* Update values.py

* Update interface.py

* Update selfdrive/car/ford/interface.py

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2023-12-12 20:07:59 -08:00
Cone Guy fb977e45cd Link to setup guide in WORKFLOW.md (#30708)
* Mention dev containers and WSL

* Update WORKFLOW.md

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2023-12-12 19:24:36 -08:00
Adeeb Shihadeh 73db7e8e3a Revert "compressed_vipc: fix issues with VisionIpcServer in ZMQ mode (#30115)"
This reverts commit 0e5cfa3426.
2023-12-12 19:16:46 -08:00
Dean Lee a4179a7c23 encoder: reduce memory allocations and copying (#28704)
* reduce memory allocations and copying

* #include <vector>
2023-12-12 19:15:47 -08:00
Justin Newberry 5d80858a16 cleanup car port docs (#30707)
readme
2023-12-12 18:17:10 -08:00
Justin Newberry 02373fcb05 jenkins: retry docker_build (#30629)
* retry docker build

* retry docker build

* retry docker build

* does this work nicely?

* docker fail!

* Revert "docker fail!"

This reverts commit ab227a1ea37fad3d6413081e4516211b474b0712.
2023-12-12 18:12:19 -08:00
Justin Newberry 93cd19e3a5 jenkins: retry pc setup (#30659)
* retry pc setup

* sleep and retry

* exception

* throw e

* remove force exit

* make a function for it

* remove force exit

* move to top

* separate exception
2023-12-12 17:54:17 -08:00
Justin Newberry c066fdd7a3 jenkins: remove old root user permission fixes (#30684)
* Batman

* add debug stuff

* Revert that for now

* remove debug stuff
2023-12-12 17:48:03 -08:00
Adeeb Shihadeh 3a97bde863 Update contributing (#30705)
* update

* Update CONTRIBUTING.md

* Update CONTRIBUTING.md

* Update CONTRIBUTING.md

* Update CONTRIBUTING.md

* Update CONTRIBUTING.md

* Update CONTRIBUTING.md

* Update CONTRIBUTING.md

* Update CONTRIBUTING.md
2023-12-12 17:27:42 -08:00
Justin Newberry 595041ffc0 add car porting docs (#30704)
* add car porting docs

* add cabana

* absolute link

* absolute link

* absolute link

* selfdrive/car
2023-12-12 16:40:21 -08:00
Justin Newberry 4f3a186a6f soundd/micd: retry getting stream (#30701)
retry soundd/micd
2023-12-12 15:58:24 -08:00
Yassine 8184186dd3 update release notes 2023-12-12 15:53:15 -08:00
Adeeb Shihadeh 7931561416 workflow docs (#30703)
* start workflow docs

* update

* update

* linter

* update

* update
2023-12-12 15:19:57 -08:00
Kacper Rączy e62756596b controlsd: require joystick mode param for the body (#30680)
* Update joystick mode in step

* Stop putting the body in joystick mode by default

* Toggle JoystickDebugMode by default for notCars in process_replay

* Remove subsection about web joystick

* Update param only in non-cars

* Make joystickDebug non-static event, and add it in a loop

* Add comment
2023-12-12 14:14:51 -08:00
Kacper Rączy 43e1409fd2 metadrive: fix wasd steer signs (#30623)
* Swap AD signs

* Fix type annotation

* fix user torque

---------

Co-authored-by: Justin Newberry <justin@comma.ai>
2023-12-12 14:09:07 -08:00
YassineYousfi dd54ec9aa8 blue diamond model 💎 (#30504)
* c53b1113-ca16-434f-a3e7-457a36ba98cc/700

* 672ee0a5-0466-420d-be18-0610c5d71b6d/700

* update model replay ref commit
2023-12-12 11:24:04 -08:00
Jason Young aaff6aebca VW MQB: Add FW for 2020 Škoda Superb (#30699) 2023-12-12 10:57:12 -08:00
Justin Newberry be33d29d7a Simulator: --simulator is no longer an argument (#30700)
these are also gone
2023-12-12 09:45:34 -08:00
Rabin Karki a03a931737 HKG: Add FW Versions for Kia Carnival 2022 (#30677)
* HKG: Add FW Versions for Kia Carnival 2022

* 2022

* should

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-12-12 00:52:36 -08:00
Shane Smiskol fc0daa9693 Revert "2022"
This reverts commit ad0a882c1c.
2023-12-12 00:51:05 -08:00
Shane Smiskol ad0a882c1c 2022 2023-12-12 00:50:42 -08:00
Shane Smiskol 1c011e6024 Ford: add CAN FD harness info (#30698)
* add correct harness to f150 and angled mount

* can remove this
2023-12-12 00:45:13 -08:00
Shane Smiskol b1ecfd55ce Revert "FW query timing test: mock get_data function for timeout" (#30696)
Revert "FW query timing test: mock get_data function for timeout (#29712)"

This reverts commit 4028cb6121.
2023-12-11 22:12:21 -08:00
Dean Lee 62670e66bf camerad/CameraBuf: rename yuv_type to stream_type (#30695) 2023-12-11 21:53:27 -08:00
Justin Newberry 11ec5bf25e Simulator: remove carla (#30690)
* no carla

* no arg and stylize metadrive
2023-12-11 20:38:37 -08:00
Jason Wen 9807bd99db HKG: Car Port for Kia Niro Plug-in Hybrid 2022 (#30576)
* HKG: Car Port for Kia Niro Plug-in Hybrid 2022

* Update CARS.md and add test route

* add to releases

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-12-11 20:32:36 -08:00
Sparkguys d2583d64f0 Update values.py for VW Passat MK8 (#30646)
Update values.py

Added FW for Passat MK8
2023-12-11 19:25:55 -08:00
Justin Newberry 4028cb6121 FW query timing test: mock get_data function for timeout (#29712)
* use a mock function to simulate timeout

* Cleanup

* Cleanup

* clean refs

* tolerance can also go down

* fix

* better name

revert refs

* use unittest

* revert

* Revert "use unittest"

This reverts commit 7a1d6a6fc72fa129a66590e0e5998c2438ecbe55.

* order

* local

* use a context

* revert

* stress test it

* let's try

* it's consistent

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-12-11 19:24:01 -08:00
Justin Newberry b0831fb117 soundd/micd: increase stream buffer size (#30685)
* increase buffer

* update cpu refs

* go to 100ms

* correct spot
2023-12-11 17:25:37 -08:00
Adeeb Shihadeh 3a70708228 Revert "remove extra sleep", weston is fixed but a couple other things relied on this
This reverts commit d2d4802ad0.
2023-12-11 16:21:19 -08:00
Lukejb14 76c53e4742 Add 2021 Mazda CX-5 engine fingerprint (#30616) 2023-12-11 15:41:51 -08:00
Kacper Rączy 8049731553 run_process_on_route: qlog and fingerprint options (#30688)
Add --qlog and --fingerprint options for run_process_on_route
2023-12-11 15:38:59 -08:00
Justin Newberry 7b5d4d031a Revert "Process Replay: move to pytest (#30260)" (#30687)
This reverts commit 90c873ab1d.
2023-12-11 14:46:56 -08:00
Adeeb Shihadeh 5a518243dd Bump submodules (#30682)
bump submodules

Co-authored-by: jnewb1 <jnewb1@users.noreply.github.com>
2023-12-11 09:28:47 -08:00
royjr 84a3b10da9 cabana: fix typo (#30678) 2023-12-10 16:46:41 -08:00
Dean Lee 48cf7eb6d9 ui/driverview: inherit from CameraWidget (#29769)
* refactor DriverViewWidow to inherit from CameraWidget

* emit done on visible

* merge master

* cleanup

* lock_guard

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2023-12-10 12:12:27 -08:00
Adeeb Shihadeh 702c4392a4 three way merge 2023-12-10 12:10:40 -08:00
Adeeb Shihadeh 3831bf19e4 remove Qt wrapper scripts (#30454)
* remove Qt wrapper scripts

* revert those
2023-12-10 11:45:35 -08:00
Adeeb Shihadeh f09ee083a2 helper script for fixing up repo size (#30028)
* small

* mv
2023-12-10 11:33:40 -08:00
Dean Lee 13e5e708c2 boardd: cleanup includes (#30674)
cleanup includes

Co-authored-by: Comma Device <device@comma.ai>
2023-12-10 09:18:44 -08:00
Shane Smiskol 86ab1dca18 bump 2023-12-09 17:37:48 -08:00
Jason Wen 63bf098017 Hyundai CAN-FD Longitudinal: Enable for ICE camera-SCC cars (non-HDA2) (#30034)
* Hyundai CAN-FD Longitudinal: Enable for all camera-based SCC platforms (non-HDA2)

* allow ice camera scc longitudinal

* allow ice camera scc longitudinal

* Update docs

* Merge commaai#30021

* Update CARS.md

* revert unrelated changes

* add test route

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-12-09 17:36:34 -08:00
Shane Smiskol e03f1282a8 bump panda (#30670) 2023-12-09 17:13:36 -08:00
Shane Smiskol b3908e3c82 Volkswagen: update MY for Tiguan 2023-12-09 15:05:06 -08:00
hodgiers dd034bbfb7 Volkswagen: Tiguan R-Line 2024 Fingerprint (#30605)
* Update values.py

2024 Tiguan R Line

* Update values.py

Removed extraneous text

* already here

* Update values.py

Updating model year for Volkswagen Tiguan to include 2024.

* Update values.py

Correcting Tiguan fingerprint values

* Apply suggestions from code review

* Update selfdrive/car/volkswagen/values.py

---------

Co-authored-by: Hodge <rhodge@Hodge-MBP.local>
Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-12-09 15:04:27 -08:00
hanyiabc 5051ff0b84 Added fingerprint for 22 Kia Stinger KIA_STINGER_2022 (#30589)
* added fingerprint for my 22 kia stinger

* Apply suggestions from code review

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-12-09 14:46:40 -08:00
TerryWloch 6d9629b0e1 VW: add missing FW for Skoda Kodiaq 2017 (#30665)
* Update values.py

Added FingerPrint for my Skoda Kodiaq 2017 14. tsi DSG 4x4

* Apply suggestions from code review

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-12-09 14:35:15 -08:00
Shane Smiskol ac83318ac4 test_models: randomize internal segment list (#30653)
* randomize internal seg list segments

* random

* pytest-randomly sets random.seed to a consistent value for all the workers/processes

* noeol

* update

* Revert "update"

This reverts commit aff9a69c4e5e3934deebaa33986b42f44b55b002.

* lock

* don't randomize by default

* remove random-order

* strict

* random

* one fix

* test

* does nothing

* rm tests

* Revert "rm tests"

This reverts commit b548e3fcd48e60538695506888d863c01b459d27.

* (can't repro locally) just athena should be fine

* bs1

* bs2

* bs3

* bs4

* bs5

* wrong way

* no controls

* no car

* no board

* controls?

* crazy -common

* Revert "crazy -common"

This reverts commit 02365d712b3d09cab1893cce2261a4b418bb3851.

* test athena

* test athena 2

* test athena 3

* test athena 4

* test athena 5

* test athena 6

* test athena 7

* test athena 8

* test athena 9

* ??

* in one commit

* common?

* car and board

* -controls -board

* random-order

* no board

* revert

* car/tests

* least likely

* try

* try 2

* draft

* draft

* so much better

* cmt

* use randomly

* not needed here

* directly modify option works

* bb

* test time

* Revert "test time"

This reverts commit 2c5caabe2b470b47b7322e37800680b92773fccc.

* tmut

* i concur

* revert
2023-12-09 14:28:32 -08:00
Shane Smiskol 97da129e11 ruff: check newline (#30668)
* check newline

* nothing catches this
2023-12-09 13:24:18 -08:00
Dean Lee aa744e8437 cabana: cleanp code (#30666) 2023-12-09 08:12:11 -08:00
Dean Lee 8a530621b4 camerad: Remove deprecated 'fps' parameter (#30662)
remove parameter fps
2023-12-09 08:10:53 -08:00
Shane Smiskol 2afff9a0cb athena tests: patch instead of juggling function (#30664)
patch instead of juggling function
2023-12-09 05:06:30 -08:00
Shane Smiskol 90c2aee6c3 athenad: use socket constant (#30663)
Update athenad.py
2023-12-09 04:53:15 -08:00
Shane Smiskol e78b80c8fe jenkins: run all car tests with one command (#30661)
* run all jenkins car tests in one script, less down time?

* fix

* speed up

* u
2023-12-08 22:15:27 -08:00
Shane Smiskol 17d71d2829 test_athena: remove no-op line (#30660)
* test

* Update selfdrive/athena/tests/test_athenad.py
2023-12-08 21:40:15 -08:00
Justin Newberry bc70c94f75 soundd/micd: more robust setup procedure (#30640)
* just use the default device :/

* Ruff

* this seems like the most reliable way

* Ruff

* move comments too

* wait for devices

* fix that

* and that

* ruff

* add logging for avaliable devices

---------

Co-authored-by: Comma Device <device@comma.ai>
2023-12-08 17:59:31 -08:00
Adeeb Shihadeh e909f634f5 Bump submodules (#30655)
bump submodules

Co-authored-by: sshane <sshane@users.noreply.github.com>
2023-12-08 16:44:07 -08:00
Adeeb Shihadeh 371c1366d4 bump cereal 2023-12-08 16:34:23 -08:00
Justin Newberry bb9dda9764 simulator: set valid flags (#30656)
sim set valid
2023-12-08 16:31:30 -08:00
Dean Lee ea0b8920f5 camerad: remove camera_id (#30654)
* remove camera_id

* use variable
2023-12-08 16:15:58 -08:00
Shane Smiskol bf4026ed7e Toyota: enable LTA (#30109)
* bump panda

* enable lta

* try upper/lower delay similar to longcontrol lag comp

* add comment about eps torque rate limits

* more clear

* more clear

* Revert "try upper/lower delay similar to longcontrol lag comp"

This reverts commit 8e85333ee6e2456fcda076af4c31a9e9babbc897.

* bump

* no driver torque limiting to test

* fix the setme_x3

* bump

* bump

* enable inactive safety

* use vEgoRaw

* rename

* fix

* some comments/organization

* bump

* docs

* no corolla

* shorter name

* bump

* bump

* add to releases

* bump panda

* remove camry

* bump

* bump

* rm

* bump

* bump

* bump again

* bump
2023-12-08 15:31:10 -08:00
Dean Lee 21d5d7d07a camerad: move ar0231_register_lut to AR0231 (#30652) 2023-12-08 14:57:29 -08:00
Adeeb Shihadeh 80bc5833e7 remove common/xattr.py 2023-12-08 14:44:39 -08:00
Dean Lee fb2f2d9cb2 camerad: c++ sensorInfo (#30650)
* move remaining sensor parameters to CameraInfo

* same order

* member functions

* fix segfault
2023-12-08 14:27:28 -08:00
Dean Lee 011b1a6e6a ui/ParamControl: do not create ConfirmationDialog on every click (#30496) 2023-12-08 13:48:31 -08:00
Dean Lee 8fdcddec8a camerad: define the constants directly in ctor (#30651) 2023-12-08 13:01:41 -08:00
Adeeb Shihadeh e757d9bae7 camerad: renames (#30649)
* sensorinfo

* drop the camera
2023-12-08 11:39:40 -08:00
Adeeb Shihadeh 2590cf8615 update plannerd cpu usage 2023-12-08 11:39:30 -08:00
Dean Lee ef262ff9eb camerad: move sensor related code to /sensors (#30647) 2023-12-08 11:19:10 -08:00
Dean Lee 51328609d2 camerad: refactor sensor parameters to struct (#30644)
* refactor camerainfo

* include <memory>
2023-12-08 00:01:16 -08:00
Dean Lee 9bff8ccd0f camerad: fix use of uninitialized CameraInfo in camera_open() (#30642) 2023-12-07 20:11:44 -08:00
Shane Smiskol 49317e3903 Ford: add Explorer 2020 FW (#30638)
* 49cead668ca2ac46

* docs

* b18d8435f1460528
2023-12-07 16:37:59 -08:00
Adeeb Shihadeh 0586f86ad0 Revert "camerad: refactor sensor parameters to struct (#30639)"
This reverts commit a70911d639.
2023-12-07 16:21:16 -08:00
Dean Lee a70911d639 camerad: refactor sensor parameters to struct (#30639)
* refactor camerainfo

* include <memory>
2023-12-07 16:06:55 -08:00
Dean Lee bdf868ddc2 camerad: split sensor_ic2.h (#30641)
* split sensor_ic2.h

* move start_reg,stop_reg
2023-12-07 15:45:49 -08:00
Jason Wen d92246638a bump to 0.9.6.1 2023-12-07 16:22:30 -05:00
Dean Lee ecfe201a57 camerad: move AR0231 functions to camera_ar0231.cc (#30635)
* move AR0231 functions to camera_ar0231.cc

* move to sensors/aro231.cc
2023-12-07 11:48:17 -08:00
Shane Smiskol 1cd7b04e6f Ford: add Explorer 2023 FW (#30637)
* 49cead668ca2ac46

* docs
2023-12-07 11:37:18 -08:00
Kacper Rączy 7f07f47302 locationd: disable locationd temporary error alert on the body (#30608)
* Disable locationd temporary error alert on the body

* Disable locationd/paramsd/planner alerts on body with joystick mode

* joystick_enabled param not joystick_mode
2023-12-07 10:53:33 -08:00
Dean Lee 8bf78399e2 sensor2_i2c.h: add #pragma once (#30636) 2023-12-07 10:21:14 -08:00
Adeeb Shihadeh 2f2b9c782e qcomgpsd: retry quectel setup (#30632) 2023-12-06 20:56:20 -08:00
Jason Wen 20e6c58611 Update CHANGELOGS.md 2023-12-06 23:23:08 -05:00
Adeeb Shihadeh 51fa7b227a qcomgpsd: move retry logic to a decorator (#30633)
* qcomgpsd: move retry logic to a decorator

* make that same

* fix

* fix that
2023-12-06 19:55:27 -08:00
Adeeb Shihadeh 35f819c823 swaglog.py goes in common/ (#30631)
* swaglog.py goes in common/

* all of these go in release

* we'll even include the pyx
2023-12-06 17:27:51 -08:00
Justin Newberry 36bebb1aa0 jenkins: retry build_devel (#30628)
* will it work

* retry build devel

* correct p[ath

* try a failure

* Revert "try a failure"

This reverts commit ba4e6a0a2096b94887fcfbf7d011e34aa2a16c41.
2023-12-06 17:22:32 -08:00
Justin Newberry f16df8e4b7 pytest: group test_models by route instead of car name (#30625)
* group by route

* dont need those
2023-12-06 16:00:59 -08:00
Justin Newberry 3777bf7fb9 jenkins: disable xdist on tici (#30624)
to preserve it
2023-12-06 15:51:29 -08:00
Justin Newberry 9dc8ecf722 ruff: ignore teleoprtc repo (#30627)
ignore it
2023-12-06 15:33:17 -08:00
Adeeb Shihadeh 492ba68cfc Update RELEASES.md 2023-12-06 15:32:46 -08:00
Justin Newberry 5600a82889 Soundd: only update ambient db when not playing an alert (#30620)
* move to soundd + only when quiet

* not filtered
2023-12-06 14:59:16 -08:00
Justin Newberry 31ab43ce41 jenkins: remove pytest tici conf (#30621)
* remove pytest conf

* remove that too
2023-12-06 11:13:22 -08:00
Greg Hogan db35dcd0b5 replace common.file_helpers.mkdirs_exists_ok with python os.makedirs funtion (#30618)
replace common.file_helpers.mkdirs_exists_ok with python os.makedirs function
2023-12-06 09:55:29 -08:00
Adeeb Shihadeh 3985103974 update mapsd cpu usage 2023-12-05 21:32:55 -08:00
Adeeb Shihadeh 3b89c5fe29 agnos 9 (#30543)
* agnos 9

* new build

* update

* Soundd: use alsa (#30617)

* update release notes

* agnos does this now

* prod manifest

---------

Co-authored-by: Justin Newberry <justin@comma.ai>
2023-12-05 21:17:49 -08:00
Shane Smiskol 67d6186bbd Toyota: LTA unit test (#30613)
LTA unit test
2023-12-05 19:24:28 -08:00
Justin Newberry abe39e5076 Soundd: move to python (#30567)
soundd python
2023-12-05 18:10:01 -08:00
Justin Newberry f32e3ae799 Docker: pull image before building (#30614)
* pin to a specific version

* pull latest version

* dont need version debug
2023-12-05 15:48:26 -08:00
Kacper Rączy 7948a61b0e bodyteleop: toggle joystick debug mode (#30611)
* Enable joystick debug mode in web

* Remove mutable vals

* Rename thread back to main
2023-12-05 15:00:05 -08:00
Kacper Rączy 6c62a31466 joystickd: remove WEB (#30612)
Remove WEB option from joystickd
2023-12-05 14:42:44 -08:00
Justin Newberry 56b8a1a5db pytest: add durations to tici (#30609)
add durations to tici
2023-12-05 12:24:03 -08:00
Kacper Rączy f46f00b373 webrtcd: endpoint for message schema retrieval vol. 2 (#30607)
* webrtcd: endpoint for message schema retrieval (#30578)

* Capnp json schema conversion

* Schema get endpoint

* Type annotation for generate_field

* Filter empty services

* Add schema.py to release
2023-12-04 23:51:52 -08:00
Shane Smiskol 2ae7d99143 Revert "webrtcd: endpoint for message schema retrieval" (#30606)
Revert "webrtcd: endpoint for message schema retrieval (#30578)"

This reverts commit 10eb70daf7.
2023-12-04 22:59:35 -08:00
Jason Wen 3ad2b60eb8 Update CHANGELOGS.md 2023-12-05 00:18:42 -05:00
Shane Smiskol 09a9ba6de1 joystick: bump max angle (#30602) 2023-12-04 21:16:33 -08:00
Shane Smiskol 3fed87dbb7 Toyota: rename LTA torque wind down signal (#30603)
* bump

* rename

* bump
2023-12-04 21:16:12 -08:00
Kacper Rączy 10eb70daf7 webrtcd: endpoint for message schema retrieval (#30578)
* Capnp json schema conversion

* Schema get endpoint

* Type annotation for generate_field

* Filter empty services
2023-12-04 20:43:19 -08:00
Kacper Rączy 6a354ddab7 webrtcd: stop cereal proxy runner when data channel is closed (#30601)
Stop the proxy when channel reaches invalid state
2023-12-04 19:14:11 -08:00
Dean Lee 33ee7530b3 cabana: add test case for parsing all opendbc files (#30584)
* test opendbc files

* bump opendbc

* bump opendbc

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-12-04 17:12:22 -08:00
Adeeb Shihadeh 36ccbc8bbe Bump submodules (#30596)
bump submodules

Co-authored-by: jnewb1 <jnewb1@users.noreply.github.com>
2023-12-04 17:02:48 -08:00
Adeeb Shihadeh 99d51bf02c Revert "Simplify passive mode handling (#30593)" 2023-12-04 15:05:05 -08:00
Justin Newberry 05e932b088 Fix passive mode (#30600)
remove passive
2023-12-04 13:58:43 -08:00
Adeeb Shihadeh ce4bac8218 remove unused last_actuators arg from lateral controllers (#30595) 2023-12-03 15:54:18 -08:00
Adeeb Shihadeh bd0ab957b1 add carParams.passive (#30594) 2023-12-03 14:09:37 -08:00
Adeeb Shihadeh 5ccff25d88 Simplify passive mode handling (#30593)
* simplify passive handling

* makes more sense
2023-12-03 13:59:59 -08:00
Adeeb Shihadeh a1d36961cf new msgs default to invalid (#30587)
* new msgs default to invalid

* fix lm

* set more valid

* update rest

* update refs

* fix logMessage

* more valids

* cleanup

* fix llk test

* pigeond is also valid

* more valids
2023-12-03 10:50:17 -08:00
Adeeb Shihadeh a2b48efa20 process replay: check valid flag (#30588) 2023-12-02 10:47:08 -08:00
Adeeb Shihadeh 8971e2c177 longitudinal tests: cleanup old hacks (#30585) 2023-12-02 10:01:28 -08:00
Adeeb Shihadeh c028688a65 bump cereal (#30582)
* bump cereal

* fix dmonitoringd

* update refs

* update refs
2023-12-02 01:16:07 -08:00
Adeeb Shihadeh 531e62fc03 clear non-release params on startup (#30583) 2023-12-01 23:57:54 -08:00
Adeeb Shihadeh b97e5b0e03 rename carEvents -> onroadEvents (#30577)
* rename carEvents -> onroadEvents

* bump cereal

* bump cereal
2023-12-01 22:48:29 -08:00
Adeeb Shihadeh 8e00ce672d controlsd: remove old process replay sentinel (#30581) 2023-12-01 22:42:43 -08:00
Shane Smiskol 54517c0638 Toyota: LTA cleanup (#30579)
* have been running this for a few weeks: good

* set setme_x3 closer to stock

* add comment to values about additional EPS torque rate safety

* rename some variables

* should use vEgoRaw here to match panda!

* switch

* more notes

* specify

* smaller

* for

* oof
2023-12-01 22:27:29 -08:00
Kacper Rączy f058b5d64e webrtcd: webrtc streaming server (audio/video/cereal) (#30186)
* WebRTCClient and WebRTCServer abstractions

* webrtc client implementation

* Interactive test scripts

* Send localDescriptions as offer/asnwer, as they are different

* Tracks need to be added after setting remote description for multi-cam streaming to work

* Remove WebRTCStreamingMetadata

* Wait for tracks

* Move stuff to separate files, rename some things

* Refactor everything, create WebRTCStreamBuilder for both offer and answers

* ta flight done time to grind

* wait for incoming tracks and channels

* Dummy track and frame reader track. Fix timing.

* dt based on camera type

* first trial of the new api

* Fix audio track

* methods for checking for incoming tracks

* Web migration part 2

* Fixes for stream api

* use rtc description for web.py

* experimental cereal proxy

* remove old code from bodyav

* fix is_started

* serialize session description

* fix audio

* messaging channel wrapper

* fix audiotrack

* h264 codec preference

* Add codec preference to tracks

* override sdp codecs

* add logging

* Move cli stuff to separate file

* slight cleanup

* Fix audio track

* create codec_mime inside force_codec function

* fix incoming media estimation

* move builders to __init__

* stream updates following builders

* Update example script

* web.py support for new builder

* web speaker fixes

* StreamingMediaInfo API

* Move things around

* should_add_data_channel rename

* is_connected_and_ready

* fix linter errors

* make cli executable

* remove dumb comments

* logging support

* fix parse_info_from_offer

* improve type annotations

* satisfy linters

* Support for waiting for disconnection

* Split device tracks into video/audio files. Move audio speaker to audio.py

* default dt for dummy video track

* Fix cli

* new speaker fixes

* Remove almost all functionality from web.py

* webrtcd

* continue refactoring web.py

* after handling joystick reset in controlsd with #30409, controls are not necessary anymore

* ping endpoint

* Update js files to at least support what worked previously

* Fixes after some tests on the body

* Streaming fixes

* Remove the use of WebRTCStreamBuilder. Subclass use is now required

* Add todo

* delete all streams on shutdown

* Replace lastPing with lastChannelMessageTime

* Update ping text only if rtc is still on

* That should affect the chart too

* Fix paths in web

* use protocol in SSLContext

* remove warnings since aiortc is not used directly anymore

* check if task is done in stop

* remove channel handler wrapper, since theres only one channel

* Move things around

* Moved webrtc abstractions to separate repository

* Moved webrtcd to tools/webrtc

* Update imports

* Add bodyrtc as dependency

* Add webrtcd to process_config

* Remove usage of DummyVideoStreamTrack

* Add main to webrtcd

* Move webrtcd to system

* Fix imports

* Move cereal proxy logic outside of runner

* Incoming proxy abstractions

* Add some tests

* Make it executable

* Fix process config

* Fix imports

* Additional tests. Add tests to pyproject.toml

* Update poetry lock

* New line

* Bump aiortc to 1.6.0

* Added teleoprtc_repo as submodule, and linked its source dir

* Add init file to webrtc module

* Handle aiortc warnings

* Ignore deprecation warnings

* Ignore resource warning too

* Ignore the warnings

* find free port for test_webrtcd

* Start process inside the test case

* random sleep test

* test 2

* Test endpoint function instead

* Update comment

* Add system/webrtc to release

* default arguments for body fields

* Add teleoprtc to release

* Bump teleoprtc

* Exclude teleoprtc from static analysis

* Use separate event loop for stream session tests
2023-12-01 21:13:37 -08:00
Adeeb Shihadeh e34ee43eea camerad cleanup (#30573)
* misc cleanup

* rm those

* rm utils

* fix build

* rm pool

* little more

* goodbye imgproc
2023-12-01 20:10:07 -08:00
Adeeb Shihadeh 5dba9187e5 CI: speedup docs build (#30574) 2023-12-01 19:55:27 -08:00
Hoya 169132c6cc Hyundai: add FW for 2019 AZERA_HEV_6TH_GEN (#30548)
* added AZERA_HEV_5TH_GEN (2019)

* Update values.py

* Update interface.py

* Update values.py

* Update hyundaican.py

* Update hyundaican.py

* Update interface.py

* Update values.py

* one line

* didnt see harness change

* Update selfdrive/car/hyundai/values.py

* docs

---------

Co-authored-by: Justin Newberry <justin@comma.ai>
Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-12-01 14:59:49 -08:00
Adeeb Shihadeh afd5877be8 bump model unit test timeout 2023-11-30 21:48:11 -08:00
Dean Lee d87191c1c1 cabana: fix missing opendbc files (#30555)
* fix missing dbc files

* remove suffix
2023-11-30 20:46:31 -08:00
Shane Smiskol e687be939e FW fingerprinting timing: fix refs (#30566) 2023-11-30 16:36:20 -08:00
Adeeb Shihadeh 6ac75e492a bump panda (#30563) 2023-11-30 15:28:46 -08:00
Adeeb Shihadeh 613ccf4b74 falsify rx checks (#30564) 2023-11-30 14:53:33 -08:00
Greg Hogan 7e0f0165f4 replay: get api url from env var (#30562) 2023-11-30 10:42:18 -08:00
Justin Newberry 4086795c29 Pytest: more post-test path cleanup (#30556)
* test cleanup

* missed this one

* remove that

* static class
2023-11-30 09:55:48 -08:00
Justin Newberry b1e2e0f565 Revert "Subaru: log eyesight fault as a cruise fault" (#30560) 2023-11-30 07:57:29 -08:00
Justin Newberry a2bb41e0ec Subaru: non-obd FW queries logging (#30552)
* add subaru logging fw

* whitelist + comma

* whitelist is empty for the other requests

* all whitelisted
2023-11-29 17:47:09 -08:00
Justin Newberry 44ef143ae7 Subaru: add 2023 forester (#30554)
23
2023-11-29 14:53:43 -08:00
Shane Smiskol 4f8a232382 Car docs: add '19-'20 Santa Fe video (#30553)
* Add '19-'20 Santa Fe video

Add link to YouTube video for 2019-2020 Hyundai Santa Fe

* update docs

---------

Co-authored-by: Steve J <easternpa@gmail.com>
2023-11-29 14:27:37 -08:00
ebo2k e61ea66415 Ford: add missing engine FW for Bronco Sport 2021 (#30483)
Update values.py

Updated to have correct engine firmware
2023-11-29 14:26:20 -08:00
DriftedPrism dcbff66f0c Kia: add missing fwdCamea FW for Sorento PHEV 4th gen (#30526)
* Update values.py

Adding Ecus for KIA Sorento PHEV 4th gen

* Update values.py

added fwdCamera version

* fix

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-11-29 14:16:17 -08:00
Justin Newberry 9634e7b8af Subaru: log eyesight fault as a cruise fault (#30546)
log cruise fault
2023-11-29 12:55:52 -08:00
Vivek Aithal 573db49deb torqued: Update HYUNDAI TUCSON 4TH GEN offline values (#30513)
* update tucson offline values

* modify params, compute max accel
2023-11-28 15:10:30 -08:00
Shane Smiskol 2e45a7c2fd Toyota: add test route for 2023 RAV4 (#30465)
* test rav4 2023 (stripped)

* don't use initData, remove relay malfunction tolerance!

* all passes!

* some clean up

* more

* uncomment

* rm line

* remove ignore_addr_checks_valid

* right

* some changes for stripping data

* clean up

* check exist

* shouldn't be possible

* should be success if here

* no delete

* ""

* rm

* rm

* cleanup

* one list comp

* more clear

* not used

* add back legit source

* clean up

* copy files we don't need to strip (need sas to copy between accounts)

* default to strip

* revert
2023-11-28 14:55:03 -08:00
Keen-coffee c56c8a719c Add 2022 Maverick engine and abs fingerprint (#30467) 2023-11-28 14:40:04 -08:00
Justin Newberry 5030824572 jenkins auto cpu count (#30544)
* auto cpu

* build too

* need bash
2023-11-28 14:34:00 -08:00
Vincent Wright 0b41d1c6e8 Chrysler: add Ram HD 2500 2024 FW versions (#30505)
* New Ram HD firmwares. Dongle ID is 0f88f104416b674a.

* docs

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-11-28 14:17:20 -08:00
Hoya a7d3eb87c7 Kia: Add missing fwdCamera for KIA_CARNIVAL_4TH_GEN (#30540)
* Update values.py

Dongle ID : f9ec55916091ba61

RouteName : f9ec55916091ba61_2023-11-28--13-53-02

KIA_CARNIVAL_4TH_GEN finger need to be added 

Thanks

* Update values.py

* Update values.py

* Update values.py

* Update values.py

* Update values.py

* Update selfdrive/car/hyundai/values.py

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-11-28 14:01:00 -08:00
Adeeb Shihadeh 07e75c7cb8 athena: remove primeActivated endpoint (#30542) 2023-11-28 11:43:01 -08:00
Jason Young 2f5c0bd016 JEEP_CHEROKEE -> JEEP_GRAND_CHEROKEE (#30539) 2023-11-27 18:19:03 -08:00
Justin Newberry 7a387962c6 CI: automatically create PR for submodule bump (#30538)
* add job

* add job (#52)

* add body

* Bump submodules (#53)

* add job

* add body

* add .

* rm that

* need submodules too

* better message

* monday at 4am

* i thought i was still est lol
2023-11-27 17:09:32 -08:00
Adeeb Shihadeh 749d192f54 bump panda 2023-11-27 16:36:26 -08:00
Adeeb Shihadeh d2d4802ad0 remove extra sleep on startup 2023-11-27 14:57:40 -08:00
Adeeb Shihadeh ae4e848285 Update Python packages and pre-commit hooks (#30534)
Co-authored-by: jnewb1 <jnewb1@users.noreply.github.com>
2023-11-27 09:57:37 -08:00
Adeeb Shihadeh e0ab068273 Revert "CI: automatically create PR to bump submodules (#30523)"
This reverts commit 6f073aed5f.
2023-11-27 09:40:37 -08:00
Adeeb Shihadeh 6f2af97381 Bump submodules (#30533)
bump submodules

Co-authored-by: sshane <sshane@users.noreply.github.com>
2023-11-27 01:18:27 -06:00
Jason Wen e93e51d000 Update HOW-TOS.md 2023-11-26 18:01:55 -05:00
Adeeb Shihadeh eb3833037f Update Python packages and pre-commit hooks (#30529) 2023-11-26 09:31:20 -08:00
Adeeb Shihadeh 1d0538bdef Bump submodules (#30528) 2023-11-26 09:31:08 -08:00
Justin Newberry 6f073aed5f CI: automatically create PR to bump submodules (#30523) 2023-11-26 08:27:25 -08:00
Adeeb Shihadeh e25f788318 bump panda (#30519) 2023-11-25 11:47:04 -08:00
Justin Newberry 4b0d0b0f1e cleanup cameraview shader (#30520)
cleanup shader

Co-authored-by: Comma Device <device@comma.ai>
2023-11-24 20:17:51 -08:00
Justin Newberry f845c69b43 Subaru: ignore eyesight faults when openpilot is controlling long (#30390)
ignore eyesight faults
2023-11-23 11:10:44 -08:00
Justin Newberry 8d3bf1f41a Pytest: add cpp harness (#30471)
cpp harness
2023-11-22 13:45:49 -08:00
Kacper Rączy f65e6bc30e locationd: remove models unused in openpilot (#30481)
* Remove filters used exclusively by xx

* Update SConstruct

* Remove from release

* Accomodate rednose build changes

* Update rednose ref

* rednose/helpers in rpath

* Add rednose_filters to files_common

* Change rednose_root

* Copy rednose site_scons to docker images

* Remove rednose from rpath

* Bump rednose

* Bump rednose

* Bump rednose
2023-11-22 13:25:29 -08:00
Justin Newberry 7f14bdfb22 allow onscreen cpu rendering (#30510)
* spinner POC cpu

* should be single threaded

* how tf did that get added

* allow non offscreen

---------

Co-authored-by: Comma Device <device@comma.ai>
2023-11-22 12:44:32 -08:00
Adeeb Shihadeh 2a55ff4f55 Update Python packages and pre-commit hooks (#30509)
Co-authored-by: adeebshihadeh <adeebshihadeh@users.noreply.github.com>
2023-11-21 11:50:35 -08:00
Harald Schäfer 8e88366955 Qcomgpsd: Dont use system timezone (#30508) 2023-11-21 11:12:39 -08:00
Adeeb Shihadeh afd61352d0 bump panda (#30501)
* bump panda

* bump

* bump

* fix renamed variables

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-11-20 14:45:51 -08:00
Justin Newberry 7a4a8c9a4a update profiler docs again (#30503)
update SD docs again
2023-11-20 13:30:16 -08:00
Justin Newberry 631691c212 SDProfiler: update readme (#30479)
* update instructions

* fix that

* and that too
2023-11-20 10:56:50 -08:00
Adeeb Shihadeh 31ef352234 CI: manage stale PRs (#29367)
* CI: manage stale PRs

* before_close

* rename to ignore stale

* no push

* prod mode!

---------

Co-authored-by: Justin Newberry <justin@comma.ai>
2023-11-18 23:31:33 -08:00
Adeeb Shihadeh 4cae08e636 rename rawgpsd to qcomgpsd (#30493)
* rename rawgpsd to qcomgpsd

* fix more paths

* that moved

* forgot the d
2023-11-18 23:23:16 -08:00
DevTekVE 2a9986d948 [cabana] fix clang17 warning (#30490)
[cabana] Improve signal timing calculation in findsingal.cc

The variables `first_sec` and `last_sec` have been separately initialized first before being used in `std::minmax` for signal timings. This resolves compilation warnings and potential risks of using temporary values of these variables.
2023-11-18 23:05:10 -08:00
Logan Lasiter 5b2bcf6bf2 adding --local-partial-types mypy opt (#30491) 2023-11-18 22:47:11 -08:00
Dean Lee 335237aea0 modeld: remove modeldata.h (#30423)
* remove modeldata.h

* remove TRAJECTORY_SIZE
2023-11-18 22:45:26 -08:00
Adeeb Shihadeh c055fdc853 one more 2023-11-18 22:22:31 -08:00
Adeeb Shihadeh 3d36a0f70d rm old loggerd debug scripts 2023-11-18 22:20:10 -08:00
Dean Lee 17cab9bb50 ui/controls.cc: fix QLabel leak (#30382)
fix QLabel leak
2023-11-18 22:14:05 -08:00
Dean Lee c5f73a748e replay: support for setting a custom playback speed (#30462)
* support for setting a custom playback speed

* rename to playback speed
2023-11-18 22:12:35 -08:00
Dean Lee 3527c1da67 loggerd: c++ LoggerState (#25869)
* c++ LoggerState

* trigger ci

* trigger ci

* merge master

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2023-11-18 22:11:13 -08:00
Adeeb Shihadeh 99fbd4b150 updated: wait 1m before first cycle (#30492) 2023-11-18 21:55:56 -08:00
Jason Wen 758f58c5e9 bump to 0.9.5.2 2023-11-18 08:54:19 -05:00
Jason Wen 55979b27a0 Update CHANGELOGS.md 2023-11-17 22:47:43 -05:00
Jason Wen b157b4d1b0 Update CHANGELOGS.md 2023-11-17 22:43:10 -05:00
Adeeb Shihadeh fa353401f4 bump to 0.9.6 2023-11-17 18:44:05 -08:00
Adeeb Shihadeh d3aad9ca46 esim is metered (#30486)
* esim is metered

* it's an enum

---------

Co-authored-by: Comma Device <device@comma.ai>
2023-11-17 15:29:52 -08:00
DevTekVE 05e4d908df Enhance SConstruct by enabling arbitrary compiler flags (#30484)
* Update SConstruct allow no-inline

Allows disabling inline functions when compiling to help with the debugging process

* Update SConstruct

typos

* Update SConstruct
2023-11-17 13:53:16 -08:00
Adeeb Shihadeh 3b1e9017c5 Update RELEASES.md 2023-11-16 19:17:36 -08:00
Adeeb Shihadeh 460d9af5b7 more esim config (#30480)
* load single conn

* high priority

---------

Co-authored-by: Comma Device <device@comma.ai>
2023-11-16 19:12:36 -08:00
Adeeb Shihadeh e6e073d099 Revert "tici: use BASEDIR to lookup nm connection path"
This reverts commit 30ab9f8482.
2023-11-16 14:20:55 -08:00
Adeeb Shihadeh 30ab9f8482 tici: use BASEDIR to lookup nm connection path 2023-11-16 14:19:02 -08:00
Dean Lee 3d9f394533 cabana: update message count after filtering (#30461)
update message count after filtering
2023-11-15 23:43:59 -08:00
Shane Smiskol c2af245b85 CI: use azure-storage-blob for uploading (#30478)
* use azure-storage-blob

* fix pattern

* nsp
2023-11-15 21:22:14 -08:00
Shane Smiskol 0addee2b4b openpilot CI: fix azure bucket names (#30477)
fix azure bucket names
2023-11-15 21:15:10 -08:00
Adeeb Shihadeh 9cd60de0b9 we don't go in the release notes 2023-11-15 19:56:02 -08:00
Shane Smiskol fc8cfe1280 test_models: check if in relay-breaking safety mode (#30476)
* remove initData, remove tolerance

* can check faster now

* don't
2023-11-15 18:57:37 -08:00
Shane Smiskol e44d84a7f9 test_models: remove ignored address check list (#30475)
* remove ignore_addr_checks_valid

* lessgoooo
2023-11-15 18:50:39 -08:00
Justin Newberry 291c04163a CI: disable registry caching (#30474)
* Revert "CI: separate image for docker cache (#30413)"

This reverts commit 361ffb5e54.

* Revert "CI: enable buildx for registry cache (#30473)"

This reverts commit edf90f3e76.
2023-11-15 18:21:57 -08:00
Justin Newberry edf90f3e76 CI: enable buildx for registry cache (#30473)
* just registry cache

* enable buildx
2023-11-15 17:53:00 -08:00
Justin Newberry 361ffb5e54 CI: separate image for docker cache (#30413)
just registry cache
2023-11-15 17:48:43 -08:00
Adeeb Shihadeh 0f0acc190b ui: add purple prime def 2023-11-15 17:04:07 -08:00
Justin Newberry ba3067a560 Revert "Pytest: run tests in random order" (#30469)
Revert "Pytest: run tests in random order (#30134)"

This reverts commit a5d99e0ebb.
2023-11-15 10:41:11 -08:00
Justin Newberry a5d99e0ebb Pytest: run tests in random order (#30134)
* enable random order

* logprint info

* revert that

* better logging

* go to dfu

* try to flash every panda if not up to date

* revert panda debugging
2023-11-15 10:16:51 -08:00
Kacper Rączy 2de13bea91 Remove laika submodule (#30453)
* Remove laika submodule

* Remove laika check for minimal builds

* Fix minimal build check

* Bring back exclude for opendbc in codespell

* Fix typo

* Copy GNSS indices from laika

* Delete laika dependencies
2023-11-15 10:06:37 +01:00
Dean Lee 7ded7a0720 cabana: fix double comparisons (#30468)
compare double with epsilon
2023-11-14 21:44:22 -08:00
Shane Smiskol 102687e1ac Sort car ports 2023-11-14 18:45:31 -08:00
Justin Newberry 31c682d407 Pytest: load by group by default (#30466)
* wip

* use a class marker

* this one should be grouped too
2023-11-14 17:33:47 -08:00
Justin Newberry f99939426f thermald: recover from modemmanager restart (#30464)
* test modem recovery

* static analysis

* also test lte reload

* this should just be try catched as well

* maybe we can find a better way than this

* rm the test

* make it clear

---------

Co-authored-by: Comma Device <device@comma.ai>
2023-11-14 16:57:34 -08:00
Adeeb Shihadeh b3c7a0c871 remove mui 2023-11-14 15:43:57 -08:00
Adeeb Shihadeh 51207aaae2 Update Python packages and pre-commit hooks (#30463)
Co-authored-by: adeebshihadeh <adeebshihadeh@users.noreply.github.com>
2023-11-14 15:18:42 -08:00
Tam Chau 96eee13836 Mazda: add CX5 2022 fingerprint values (VN 2023) (#30342)
Add mazda cx5 VN 2023 values
2023-11-14 03:36:26 -08:00
Saber 06fbaacefe VW MQB: Add FW for 2021 Tiguan (#30401)
* VW MQB: Add FW for 2021 Tiguan

route name:f3946aa3bdb4bfc7|2023-11-06--14-53-07--0

The carParams always show transmission as "Hyundai", cant get VW format

* add correct transmission

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-11-14 03:29:57 -08:00
Dean Lee 86a5ac383e cabana: highlight dowloaded segments (#30459)
highlight dowloaded segments
2023-11-14 03:23:33 -08:00
Viktor Hansson 6ce66dee4f VW: Add FW versions for Passat GTE 2018 (#30450)
* VW: Add fw-versions for Passat GTE 2018

* Remove duplicate fw-versions for PASSAT_MK8

* Removed duplicate fw version for PASSAT_MK8

One of them included \023 and the other \x13 which was interpreted as the same character in python

* Apply suggestions from code review

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-11-14 03:13:33 -08:00
Erich Moraga b643aca8d6 Lexus: add several ECU versions for 2018 Lexus RC (#30322)
`OQO0#8618` 2018 Lexus RC  DongleID/route 01762a5235a24145|2023-10-24--17-44-27
2023-11-14 03:03:56 -08:00
Saber 78ccef28a8 VW MQB: Add FW for 2020 Golf (#30375)
route name:0bbe367c98fa1538|2023-10-25--11-23-54--0
2023-11-14 02:58:20 -08:00
ohber 919303ec08 Kia: add 2023 Stinger FW (#30344)
* Added 2023 Kia Stinger Fingerprint

* Fixed type on FP value

* Fixed typo on fingerprint value

* update docs

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-11-14 02:56:04 -08:00
Saber 5b50cc2954 VW MQB: Add FW for 2023 Kamiq (#30376)
* VW MQB: Add FW for 2023 Kamiq


route name:0bbe367c98fa1538|2023-11-04--12-56-37--0

* update docs

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-11-14 02:47:04 -08:00
Vadim Pronin 62d4f464a0 VW MQB: Add FW for 2018 and 2022 Volkswagen T-Roc (#30315)
* Added ECU values for VW T-Roc 2022

* Added ECU values for VW T-Roc 2018

* fix docs

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-11-14 02:43:11 -08:00
Calvin Chui 2647a4b4a9 Toyota: Add Lexus GS F 2016 (#30245)
* added GSF ECU values

* Added Lexus GSF data

* added route for GSF

* test RC code

* revert fingerprints back from RC test to GSF

* fixed type for route

* specify route segment for GSF

* added GSF to torque substitute

* removed year designation for GSF

* added MY back to all "Lexus GSF"

* removed route, don't think it does anything

* move GSF ecu values to better place

* remove whitespace from toyota > interface.py

* added in public route for LEXUS_GSF

* added GSF to docs

* update test route

* update test route

* update 266 Supported cars

* trying different dbc

* updated to working route

* clean up

* add to releases

* updated test route

* new route

* docs

* slightly better torque params

---------

Co-authored-by: cchui <cchui@eogresources.com>
Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-11-14 02:31:27 -08:00
Jason Wen a534e974e6 Update CHANGELOGS.md 2023-11-14 01:54:32 -05:00
Adeeb Shihadeh e323191299 new sim connection settings (#30457)
* new sim connection settings

* fix att conflict

* sim id

* clenaup

---------

Co-authored-by: Comma Device <device@comma.ai>
2023-11-13 21:38:22 -08:00
Adeeb Shihadeh cc32a6bf9f tici: fix leftover APN config from AT&T (#30458) 2023-11-13 21:33:22 -08:00
Harald Schäfer c0942dbf9f Rm laika deps in rawgpsd (#30452)
* Rm more laikad references

* rawgpsd usage of laika

* bugfix
2023-11-13 20:38:24 -08:00
Harald Schäfer 95c6d5140a Rm more laika references (#30451)
Rm more laikad references
2023-11-13 16:52:57 -08:00
Shane Smiskol 32a0b10983 Toyota: bump Camry model years to 2024
3d35748a8816ca62
2023-11-13 15:43:28 -08:00
Justin Newberry 90c873ab1d Process Replay: move to pytest (#30260)
* process replay pytest

* enable long diff

* readd job name

* make it executable

* cleanup imports

* retrigger
2023-11-13 13:50:23 -08:00
Justin Newberry 2ad82cbfb0 Pytest: default settings on PC improvements (#30441)
* always multithreaded

* multithreaded

* pkill correct process

* escape more

* load for interfaces
2023-11-13 10:45:24 -08:00
Dean Lee da95fd3019 replay: simplify the code for allow/block list (#30449)
simplify allow/block list
2023-11-13 09:19:39 -08:00
Tim Wilson d3b91f266a C3: add gps_vs_llk plotjuggler layout (#30448)
add gps_vs_llk plotjuggler layout
2023-11-13 09:19:23 -08:00
Jason Wen 602bd1090f FCR: sync with upstream supported car platforms 2023-11-12 17:02:08 -05:00
Jason Wen cb28eb44f0 bump cereal 2023-11-12 15:14:59 -05:00
Dean Lee 9e06525642 replay: remove deprecated support for PANDA_STATE_D_E_P_R_E_C_A_T_E_D (#30447) 2023-11-12 10:54:08 -08:00
Jason Wen 4a9bd576e5 Sync: commaai/openpilot:master into sunnyhaibin/sunnypilot:master 2023-11-12 00:56:10 -05:00
Jason Wen 9d47fa2fb3 bump panda 2023-11-12 00:55:47 -05:00
Jason Wen 09a4536b8a Merge branch 'upstream/openpilot/master' into sync-20231112
# Conflicts:
#	panda
#	selfdrive/car/subaru/interface.py
2023-11-12 00:49:42 -05:00
Shane Smiskol 816c18a4ec bump panda (#30437)
* bump

* bump
2023-11-10 20:59:14 -08:00
Hoya 252531e1bb Hyundai: Add FW for Genesis G80 2018 (#30425)
* Update values.py

* Update selfdrive/car/hyundai/values.py

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-11-10 20:58:59 -08:00
Adeeb Shihadeh 5f7143df02 jenkins: use build.py to manage cache size (#30440)
* jenkins: use build.py to manage cache size

* label

* set pp

* double

* cleanup

* non mimimal build on PC

---------

Co-authored-by: Justin Newberry <justin@comma.ai>
2023-11-10 16:55:25 -08:00
Justin Newberry 2629417320 CI: codecov for multiprocessing (#30432) 2023-11-10 10:02:05 -08:00
Shane Smiskol e94c3c5569 Hyundai CAN: update driver braking signal (#30424)
* use DriverOverride

* bump
2023-11-10 01:20:23 -08:00
Adeeb Shihadeh 72cc2e34cb camerad: reduce to 1s of buffers 2023-11-09 20:52:21 -08:00
Dean Lee 86efd70fa9 cabana: allocate qt objects on the heap instead of stack (#30374)
allocate qobject in heap
2023-11-09 20:20:48 -08:00
Jason Young db3f56a6f6 VW MQB: Add FW for 2020 Volkswagen Atlas (#30430)
* VW MQB: Add FW for 2020 Volkswagen Atlas

* oops
2023-11-09 20:18:35 -08:00
Adeeb Shihadeh 515e57402a SOM boot recovery (#30427)
* SOM boot recovery

* bump

* master
2023-11-09 18:09:18 -08:00
Dean Lee 26a82e70d5 replay: make speed_ atomic (#30429)
make speed_ atomic
2023-11-09 18:02:48 -08:00
Nickolas Komarnitsky cf2d4fd7ea Subaru: Add FW for 2022 Legacy (#30434)
Update values.py
2023-11-09 17:42:36 -08:00
Eric Brown bd00fba980 Fix typo in CARS.md (#30433) 2023-11-09 17:11:44 -08:00
Justin Newberry 863fdec50e Revert "CI: codecov for multiprocessing" (#30431)
Revert "CI: codecov for multiprocessing (#30428)"

This reverts commit 1e91cf92a1.
2023-11-09 15:52:28 -08:00
Justin Newberry 1e91cf92a1 CI: codecov for multiprocessing (#30428)
* concurrencty codecov

* its a list

* retrigger ci

* increase delay
2023-11-09 15:19:10 -08:00
Justin Newberry 5c2796a104 CI: label codecov uploads (#30426)
* label

* matrix
2023-11-09 11:12:19 -08:00
Adeeb Shihadeh f9a5f64498 bump panda 2023-11-09 10:54:24 -08:00
Justin Newberry eed0ddc3b8 bump panda (#30419) 2023-11-08 16:30:22 -08:00
Justin Newberry 53b6ab9e18 CI: pytest for the rest for GHA (#30418)
* pytest car

* all pytest

* need more time

* keep release test short

* keep it short
2023-11-08 16:04:02 -08:00
Vivek Aithal 2eb487c9a5 params: Remove separate CarParams from each daemon (#30405)
* remove separate previous route carparams from each daemon and add centrally to controlsd

* extract out sigint handler

* make process replay work for torqued

* don't write param if None
2023-11-08 15:25:41 -08:00
Justin Newberry 844cbd95e7 build_release: increase timeout again (#30417)
* inc timeout

* 3 minute timeout
2023-11-08 14:32:16 -08:00
Justin Newberry fa9d3ec1f5 build_release: increase timeout (#30416)
inc timeout
2023-11-08 14:15:15 -08:00
Justin Newberry d02dd50749 Pytest: consistent codecov (#30408)
* seed only

* random seed

* ignore version.py

* increase max examples

* increase default max examples
2023-11-08 13:43:32 -08:00
Jason Wen 24aa478376 Sync: commaai/openpilot:master into sunnyhaibin/sunnypilot:master 2023-11-08 16:30:11 -05:00
Jason Wen 1a87a204d3 bump submodules 2023-11-08 16:19:11 -05:00
Jason Wen a667364b59 Merge remote-tracking branch 'commaai/openpilot/master' into sync-20231108
# Conflicts:
#	cereal
#	panda
2023-11-08 15:58:35 -05:00
Adeeb Shihadeh 4967377b3f Update RELEASES.md 2023-11-08 11:05:23 -08:00
YassineYousfi 84d2fa68f7 modeld: handle division by zero (#30411)
* modeld: avoid division by zero

* undefined at 0
2023-11-08 10:06:30 -08:00
Shane Smiskol 1d7caa80aa bump panda (#30415)
bump
2023-11-07 20:04:46 -08:00
Justin Newberry aec7cea30d Pytest: tici mark for skipping on-device tests (#30412)
* mark tici

* not those ones

* missed that one

* add those

* add pypoetry

* oops
2023-11-07 17:35:44 -08:00
Kacper Rączy c419376bbd controlsd: reset axes in joystick mode if message is old (#30409)
Reset joystick if it wasnt received after 0.2 sec
2023-11-07 15:48:13 -08:00
Dean Lee 0f6b16d1e0 ui/wifi.cc: fix small QPixmap leak (#30395)
fix QPixmap leaks
2023-11-07 15:22:43 -08:00
Harald Schäfer 37ba6d8503 Update RELEASES.md 2023-11-07 13:29:30 -08:00
Justin Newberry c9915ceba9 Codecov: ignore selfdrive/test (#30407)
* ignore

* fix that
2023-11-07 13:16:23 -08:00
Adeeb Shihadeh d2edc239fd jenkins: disable ciui for now 2023-11-07 11:27:56 -08:00
Harald Schäfer 9118973ed0 Farmville model (#30392)
* slightly different

* Revert "slightly different"

This reverts commit 8a470ecab40c295f3b8c777b82cb7a22890d116e.

* d09c9c88-1797-4ed5-ab2d-9dca5b12340b/700

* Update power draw

* Revert "Update power draw"

This reverts commit 1c95b663ec9c507604dd8580ff6386497b5391a8.

* Update ref
2023-11-07 11:17:37 -08:00
Adeeb Shihadeh 3c043ba570 Update Python packages and pre-commit hooks (#30403)
Co-authored-by: adeebshihadeh <adeebshihadeh@users.noreply.github.com>
2023-11-07 10:58:01 -08:00
Harald Schäfer c9fae805bc Tinygrad: use compile2 (#30400)
* Tinygrad: use compile2

* unused

* compile2 file

* slightly different

* Revert "slightly different"

This reverts commit 8a470ecab40c295f3b8c777b82cb7a22890d116e.

* slightly different ref

* add release file

* rm default args
2023-11-07 09:54:48 -08:00
Harald Schäfer 11855eab5d power draw test: improve verbosity (#30402)
* improve verbosity

* unused import
2023-11-07 08:39:23 -08:00
Justin Newberry 60b21b55d2 Subaru: initial eyesight disable support (#30373)
* initial eyesight disable

* disable_eyesight

* comment
2023-11-06 22:13:39 -08:00
Adeeb Shihadeh af86e30566 remove mapsd exit code exception (#30398) 2023-11-06 21:26:52 -08:00
Justin Newberry 9257066c4e Mapsd: disable threading on PC too (#30396)
single threaded rendering
2023-11-06 16:36:48 -08:00
Shane Smiskol d2c3c92fb4 Revert "ui/wifi.cc: fix QPixmap leaks" (#30394)
Revert "ui/wifi.cc: fix QPixmap leaks (#30377)"

This reverts commit b4e1ad5e62.
2023-11-06 13:55:23 -08:00
Dean Lee b4e1ad5e62 ui/wifi.cc: fix QPixmap leaks (#30377)
fix QPixmap leaks
2023-11-06 13:31:00 -08:00
Justin Newberry ace14698c4 Subaru: 2019-2020 forester is also rate limited (#30391)
* forester rate limited

* better comment

* better comment
2023-11-06 13:22:58 -08:00
Adeeb Shihadeh 08054e9800 bigger map tile cache (#30228)
* bigger map tile cache

* start with 2x default

* Update selfdrive/ui/qt/maps/map_helpers.cc
2023-11-06 09:18:42 -08:00
Justin Newberry bdf2fa0f83 Mapsd: move on the CPU (#30349)
* mapsd -> cpu

* link directly to mesa

* Fix gitignore

* without launcher script

* dont change that

* dont need that

* add to files_common

* rename to configure cpu rendering

* without a symlink!

* update time refs

* update ref

* update ref

* remove duplicate include

* bump up again

---------

Co-authored-by: Comma Device <device@comma.ai>
2023-11-06 09:04:53 -08:00
Justin Newberry df79ec5314 Subaru: improve longitudinal tuning (#30389)
subaru long tuning
2023-11-05 17:53:42 -08:00
Justin Newberry 0fbc36bce1 Subaru: forester 2017 fingerprint (#30388)
forester fw
2023-11-05 01:21:46 -07:00
Justin Newberry 1463fd3917 Subaru: 2015 outback fingerprint (#30387)
subaru outback fw
2023-11-04 22:31:09 -07:00
Justin Newberry b791c0296b Subaru: 2016 legacy fingerprint (#30386)
legacy fw
2023-11-04 22:09:43 -07:00
Stephen Marin 240f43b421 Subaru: Fingerprint for 2021 Outback XT (#30380)
* Fingerprint for 2021 Outback XT

* that one already exists

---------

Co-authored-by: Justin Newberry <jnewberry0502@gmail.com>
2023-11-04 22:04:54 -07:00
Dean Lee fb3c0934d8 ui/body.cc: fix QMovie leak (#30379)
fix QMovie leak
2023-11-04 07:07:45 -07:00
Dean Lee f5279284f5 cabana: fix QChart leak (#30369)
fix QChart leak
2023-11-03 11:16:58 -07:00
Dean Lee a46544f708 cabana/sparkline: Fix "Painter not active" warning (#30370)
fix painter not active
2023-11-03 11:16:48 -07:00
Justin Newberry 983ac6c235 Mapsd: test render performance (#30367)
* cleanup and fix test

* sa

* fix test failing

* increase tolerance more for stddev

* increase that more

---------

Co-authored-by: Comma Device <device@comma.ai>
2023-11-03 10:59:07 -07:00
Dean Lee bf932c6277 cabana: remove dependence on opendbc (#30329)
* remove dependence on opendbc

* move into function
2023-11-02 22:37:56 -07:00
Adeeb Shihadeh 0788573a73 add lfs pull to setup instructions 2023-11-02 22:36:53 -07:00
Justin Newberry a73412b39d Cabana: fix wsl compilation (#30366)
fix wsl
2023-11-02 20:59:38 -07:00
Adeeb Shihadeh bb828f0cda Revert "Mapsd: test render performance (#30363)"
This reverts commit 676ba9f951.
2023-11-02 20:19:13 -07:00
Justin Newberry c52f2ec19b model_replay: allow skipping modeld/dmodeld (#30365)
* skip model

* sa

---------

Co-authored-by: Comma Device <device@comma.ai>
2023-11-02 18:10:11 -07:00
Justin Newberry 676ba9f951 Mapsd: test render performance (#30363)
* cleanup and fix test

* sa

---------

Co-authored-by: Comma Device <device@comma.ai>
2023-11-02 16:07:30 -07:00
JGO51810499 446f57040f Add missing LEXUS_RX_TSS2 FW (#30301)
LEXUS RX 2020

dongle_id:b00aaa46833ddfa1
route_name:b00aaa46833ddfa1|2023-10-18--17-57-48--0
2023-11-02 14:35:22 -07:00
YassineYousfi 4c2bd853e4 (New) Lemon Pie Model 🍋 (#30209)
* 6f6e3749-1b7c-42e8-a33b-03929b7fc476/700

* oops deleted too much

* 1b4308b7-a659-4ebd-b4c6-c81c1c3890f8/700

* 1be192f3-f407-4217-9757-78b9ad92750a/700

* remove some todos

* more cleanup in lat planner

* vego > min_speed

* regen and update process replay refs

* update model replay ref

* update model replay ref commit again

* Revert "update model replay ref commit again"

This reverts commit 922cb796b8dfe264b0cce7a18206bb898b18bcb3.

* update again

* bump cereal
2023-11-02 14:01:00 -07:00
Shane Smiskol ac471036fb GM: update harness parts (#30361)
GM harness parts
2023-11-01 22:38:25 -07:00
Kacper Rączy 0c6101e267 bodyteleop: fix browser audioinput (#30360)
Fix browser mic in bodyteleop
2023-11-01 18:04:28 -07:00
Justin Newberry ddbdaf3cf9 test_onroad: assert the procs that use the GPU (#30359)
* test gpu

* keep it localiized

* has to be later

* reduce diff

---------

Co-authored-by: Comma Device <device@comma.ai>
2023-11-01 17:31:54 -07:00
Adeeb Shihadeh 7bee13e2d1 raise gpu clock (#30358)
* raise gpu clock

* update modeld power draw
2023-11-01 14:48:49 -07:00
Shane Smiskol ab637f2ae0 Hyundai: add missing Tucson Hybrid 2024 FW (#30356)
* add missing hev tucson 2024 fw

* bump MY
2023-10-31 20:34:06 -07:00
Dean Lee bf5a45ed98 cabana: fix messages not updated correctly after seekto() (#30351)
fix messages not updated correctly after seekto
2023-10-31 11:34:54 -07:00
Adeeb Shihadeh c04e019af4 Update Python packages and pre-commit hooks (#30352)
Co-authored-by: adeebshihadeh <adeebshihadeh@users.noreply.github.com>
2023-10-31 11:31:57 -07:00
Kacper Rączy e5eea7276f regen: update refs with dummy dcamera (#30347)
Update refs
2023-10-30 15:33:17 -07:00
Kacper Rączy 7a5d85232f regen: dummy dcamera support (#30323)
* DummyFrameReader

* dummy_dcam_if_missing flag

* Blank dcamera for all neo segments, as dmonitoringd does not support neo camera feeds

* Remove trailing whitespace

* zero_dcamera staticmethod

* enable dmonitoring in test_regen

* Simplify. User decides wether to use dummy or not

* Moving some stuff

* rename to dummy_driver_cam
2023-10-30 15:17:32 -07:00
Shane Smiskol d67276a45d bump panda (#30346) 2023-10-30 13:08:43 -07:00
Adeeb Shihadeh 57c8304c25 jenkins: retry on failed git checkouts (#30345)
* jenkins: retry on failed git checkouts

* test

* Revert "test"

This reverts commit ea57ba025630eb3105a9ccdce3bdc17f72678c72.
2023-10-30 09:58:57 -07:00
Dean Lee 01610128bb cabana: support suppress highlighted bits (#30336)
* support suppress highlighted bits

d

* faster filtering and sorting

* improve livestream

* specify the context in the connections

* remove inline
2023-10-30 09:47:23 -07:00
Dean Lee 61288dfe06 athenad: fix memory leak in _do_upload() (#30237)
* fix memory leak

* test: stash

* clean up

* clean up

* ruff

* rm

* add py memory profiler

* test compress and no compress

* proper test

* comment

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-10-29 07:08:28 -10:00
Jason Wen 0eea00e887 ui: Always display Wi-Fi list when navigating to Network panel (#30333)
* ui: Display Wi-Fi list when navigate to Network panel

* pertain to PR description
2023-10-29 07:06:34 -10:00
Dean Lee fe4ad96701 cabana: support multiple cameras (#30339)
support multiple cameras
2023-10-29 07:05:59 -10:00
Adeeb Shihadeh 91380f085b fix up docker script 2023-10-29 07:05:13 -10:00
mitchellgoffpc eecdaf9950 Added sentry hooks for modeld 2023-10-25 21:37:54 -07:00
Jason Wen 4cfdd2b119 Hyundai: Car Port for Kona 2019 Non-SCC (#234)
* Hyundai: Car Port for Kona Non-SCC 2019

* add car name
2023-10-25 22:10:11 -04:00
Kacper Rączy c27e977475 URLFile: exception type for failed requests (#30330)
URLFileException for URLFile request errors
2023-10-25 16:20:12 -07:00
Kacper Rączy 4094d584f3 process_replay: use frame dimensions from FrameReader (#30332)
Use dimensions from FrameReader to setup vipc server
2023-10-25 15:46:16 -07:00
Kacper Rączy 21715d7f81 process_replay: migrate cameraStates of segments without driverEncodeIdx (#30331)
Migrate camera states of segments without driverEncodeIdx
2023-10-25 15:42:06 -07:00
Shane Smiskol 2acb22fada selfdrive_tests: allow manual run (#30307)
* allow manual run

* Apply suggestions from code review
2023-10-25 15:17:17 -07:00
Adeeb Shihadeh 9c7e5ca6ea rawgpsd: add flag for cold start (#30224)
* rawgpsd: add flag for cold start

* other datasheet is wrong

* keep things in a good state
2023-10-25 15:05:07 -07:00
Shane Smiskol f62ee97cb0 cabana: rename signal node
More clear what this is

Receiver Nodes
2023-10-25 15:03:27 -07:00
Madnevil 82291a247f Honda: add FW for Civic Sport 2023 (#30316)
* Update values.py

* Update values.py

* Update values.py

* removing duplicate

* Update values.py

* Update values.py

* this is from a logging request

* Add missing FW

* bump MY

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-10-25 14:57:08 -07:00
Dean Lee ae26280118 cabana: fix two ui bugs (#30327)
fix ui bugs
2023-10-25 14:39:52 -07:00
Dean Lee b73329092c cabana: save settings to user-specific directory (#30328)
* save settings to user-specific directory

* include
2023-10-25 14:39:41 -07:00
Jason Wen 3ea399f9a6 FCR: sync with upstream supported car platforms 2023-10-25 15:28:04 -04:00
Jason Wen b0dd2a3ddb Sync: commaai/openpilot:master into sunnyhaibin/sunnypilot:master 2023-10-25 15:21:44 -04:00
Jason Wen 08a271b678 Merge remote-tracking branch 'commaai/openpilot/master' into sync-20231025
# Conflicts:
#	README.md
#	selfdrive/car/hyundai/interface.py
2023-10-25 15:18:53 -04:00
Dean Lee 952838335d cabana: improve playback controller (#30325)
improve playback controller
2023-10-25 10:57:09 -07:00
Dean Lee 57621afcb0 cabana/chart: populate the points incrementally (#30326)
* populate the points incrementally

* less spacing
2023-10-25 10:56:49 -07:00
Dean Lee 691c7c2c66 cabana: add Node column to message table (#30317)
* add Node column

* add views menu to toolbar

* match NODE

* rename fetchData to filterAndSort

* simplify sortMessages
2023-10-25 10:56:07 -07:00
Dean Lee f47723d1d1 cabana: fix sparkline glitch (#30320)
fix glitch
2023-10-24 11:25:50 -07:00
Adeeb Shihadeh d3d51980bc Update Python packages and pre-commit hooks (#30321)
Co-authored-by: adeebshihadeh <adeebshihadeh@users.noreply.github.com>
2023-10-24 11:25:39 -07:00
Dean Lee e287a5f164 cabana: remove the qlog parsing thread (#30319)
remove the qlog thread
2023-10-24 10:38:50 -07:00
Jason Wen 57e135cdf9 Fix upstream conflicts (#232) 2023-10-24 00:22:58 -04:00
Dean Lee 0431bbaa8b cabana: set the COMMA_CACHE environment variable (#29849)
* set COMMA_CACHE enviroment

* use /tmp/comma_donwloand_cache
2023-10-23 20:51:39 -07:00
Justin Newberry 412f4cbc1a Pytest: fix local params overriden (#30312)
* fix local params being overriden

* just reset prefix after completion
2023-10-23 17:41:19 -07:00
YassineYousfi 1802de3f01 modeld: fix prev brake probs shapes (#30309) 2023-10-23 15:22:32 -07:00
Shane Smiskol c626078e9d Toyota: combine rest of hybrid platforms (#30259)
* Highlander TSS2: merge

* Highlander TSS2: remove duplicate FW

* Highlander TSS2: merge torque params

* C-HR TSS2: merge

* Alphard TSS2: merge

* Avalon 2019: merge

* Avalon TSS2: merge

* Camry TSS2: merge

* Camry TSS-P: merge

* Camry TSS-P: remove duplicate FW

* RAV4 TSS 2022: merge

* RAV4 TSS 2023: merge

fix

* clean up tss2 car list

* fix from merge

* rename internal seg list platforms

* fix test
2023-10-23 11:41:42 -07:00
Jason Wen 8b01831aa8 FCR: sync with upstream supported car platforms 2023-10-23 11:14:54 -04:00
Harald Schäfer 56dea7b0b4 Rm laikad (#30299)
* rm laika

* Rm laika

* Needed this

* More rm

* More rm
2023-10-23 00:15:39 -07:00
Adeeb Shihadeh 67f2321060 delete clocksd (#30252) 2023-10-22 14:47:38 -07:00
Shane Smiskol 964460c0c3 Hyundai: remove Kona EV and Ioniq 6 from radar-ACC set (#30214)
* ADAS ECU sends SCC

* try non-silenced

* leave rx enabled?

* revert

* also not a radar scc car

* make a canfd unsupported long set

* comment
2023-10-21 04:25:16 -07:00
Jason Wen 820cccf8d9 Hyundai: split Elantra and Elantra GT (i30) platforms (#29969)
* Hyundai: Add FW Versions for 2019 Elantra

* wrong platform

* Update selfdrive/car/hyundai/values.py

* split platforms again

* add engine and other trans

* legacy: don't trust long

* fix

* elantra has no eps and i30 has no dates as well

* 19 still has no sng

* new harness

* todo comment

* Update CARS.md

* re-did

* add back

* rev

* Add Elantra 2017 FW from f6f9e1708bae2ef6

* Add Elantra 2017 FW from 5af39b105269f0f3

* Add Elantra 2017 FW from 2e158bb0e7396dd9

* should be all i30 and elantra drivers

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-10-21 03:16:50 -07:00
Tim Wilson b95d69ae1b Car port: CADILLAC ESCALADE ESV 2019 (#29913)
* add CADILLAC ESCALADE ESV PLATINUM 2019

* add test route

* Update selfdrive/car/gm/interface.py

* combine params

* that's just a trim

* wow, there's a huge torque offset (left is 1.2 m/s^2, right is 1.9 m/s^2 max lat accel)

* don't hard code

* Update selfdrive/car/torque_data/override.yaml

* consistent formatting

* add to releases

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-10-21 02:04:24 -07:00
Erich Moraga 6e8301410c Toyota: add ABS ECU version for HIGHLANDERH_TSS2 (#30230)
* Toyota: add ABS ECU version for HIGHLANDERH_TSS2

`@doodoo6163` 2021 Highlander Hybrid Platinum 
 daae45a94e9e3ac6|2023-10-12--12-33-25

* sorted

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-10-21 01:34:03 -07:00
systwo 880afedbb8 Toyota: Added missing Highlander Hybrid FW versions (#30255)
Added Highlander hybrid fingerprint values
2023-10-21 01:29:17 -07:00
Jason Young 0b7e512a58 VW MQB: Add FW for 2023 Volkswagen Tiguan (#30271) 2023-10-21 01:14:33 -07:00
stevenaa123isme 48209b4644 Added FW for 2022 Audi Q3 (#30275)
* Added 2022 Audi Q3 to Fingerprint

* Fingerprinted 2022 Audi Q3/ cleaned up code

* add missing srs

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-10-21 01:13:23 -07:00
Dean Lee ac19ecee6f cabana: remove the installed handlers on exit (#30297)
remove the installed handlers on exit
2023-10-20 23:48:48 -07:00
Adeeb Shihadeh 54db997d80 add CNAME for docs.comma.ai 2023-10-20 20:28:21 -07:00
Jason Wen 512f8b053f Sync: commaai/openpilot:master into sunnyhaibin/sunnypilot:master 2023-10-20 16:56:59 -04:00
YassineYousfi b7cc6983c3 modeld: send_raw_pred under a flag (#30298)
* modeld: SEND_RAW_PRED under a flag

* not twice
2023-10-20 13:53:22 -07:00
Jason Wen 1ee8df2d28 Merge remote-tracking branch 'commaai/openpilot/master' into sync-20231020
# Conflicts:
#	selfdrive/car/chrysler/interface.py
2023-10-20 16:53:09 -04:00
Dean Lee 9e01f4a85e replay: make installDownloadProgressHandler thread safe (#30296) 2023-10-20 12:41:18 -07:00
Adeeb Shihadeh 2338f76fdd eSIM profile management (#30262)
* eSIM profile management

* start download

* loaded a profile

* more stuff

* fixups

* fix linter

---------

Co-authored-by: Comma Device <device@comma.ai>
2023-10-19 14:54:11 -07:00
YassineYousfi cad17b1255 modeld: parsing and publishing in python (#30273)
* WIP try modeld all in python

* fix plan

* add lane lines stds

* fix lane lines prob

* add lead prob

* add meta

* simplify plan parsing

* add hard brake pred

* add confidence

* fix desire state and desire pred

* check this file for now

* rm prints

* rm debug

* add todos

* add plan_t_idxs

* same as cpp

* removed cython

* add wfd width - rm cpp code

* add new files rm old files

* get metadata at compile time

* forgot this file

* now uses more CPU

* not used

* update readme

* lint

* copy this too

* simplify disengage probs

* update model replay ref commit

* update again

* confidence: remove if statemens

* use publish_state.enqueue

* Revert "use publish_state.enqueue"

This reverts commit d8807c8348338a1f773a8de00fd796abb8181404.

* confidence: better shape defs

* use ModelConstants class

* fix confidence

* Parser

* slightly more power too

* no inline ifs :(

* confidence: just use if statements
2023-10-19 14:23:51 -07:00
Adeeb Shihadeh 09c8866d17 Update test_onroad.py 2023-10-19 10:36:18 -07:00
Shane Smiskol 28a778b677 Lexus: enable fuzzy fingerprinting for ES & RX TSS2 (#30281)
* it's a freaking rx?!

* can unblacklist now!

* remove rest of FW from that PR

* Update selfdrive/car/toyota/values.py

* typing
2023-10-19 05:02:08 -07:00
Shane Smiskol b35658e21f docs: fix model year formatting 2023-10-19 04:11:18 -07:00
colin-cho 0c0682d88f HKG: add missing FW for Kia Sorento Hybrid 2021 (#30247)
* Update values.py

2021 Kia Sorento HEV add

* missing radar

* update docs

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-10-19 03:10:42 -07:00
Adeeb Shihadeh 13bf8c26f3 Update Python packages and pre-commit hooks (#30269)
* Update Python packages and pre-commit hooks

* fix pyqt

---------

Co-authored-by: adeebshihadeh <adeebshihadeh@users.noreply.github.com>
2023-10-18 20:18:08 -07:00
Greg Hogan 68acb26aa2 framereader: eliminate tempfile usage (#30289) 2023-10-18 19:48:26 -07:00
Adeeb Shihadeh 13d780a5f2 test_onroad: log sizes check (#30265)
* test_onroad: check log sizes

* fix

* check logs

* rb

* len

* pytest

* mb

* corolla log is small

* adjust qlog
2023-10-18 19:44:46 -07:00
Adeeb Shihadeh 71a9b2c24c jenkins: clear commacache dir (#30290) 2023-10-18 19:37:29 -07:00
Greg Hogan 59e947dc6c fix ffprobe on device (#30286)
* fix ffprobe on device

* use FileReader

* no more requests
2023-10-18 18:31:14 -07:00
Justin Newberry b86567d330 compare_logs: separate format_process_diff into a new function (#30284)
support separate
2023-10-18 15:12:43 -07:00
Shane Smiskol 3707bbadef Ram 1500: fix temp steering fault from incorrect steer speed (#30280)
starts with 68
2023-10-18 04:47:21 -07:00
Shane Smiskol c32927de96 Toyota: don't calculate angle offset when angle rate is high (#30277)
* comment

* debug

* clean up
2023-10-18 03:59:39 -07:00
Jason Wen 396fab62a8 Sync: commaai/openpilot:master into sunnyhaibin/sunnypilot:master 2023-10-18 01:20:41 -04:00
Jason Wen 4de4821dfc bump panda 2023-10-18 01:18:44 -04:00
Jason Wen 04e21399f1 Merge remote-tracking branch 'commaai/openpilot/master' into sync-20231018
# Conflicts:
#	panda
2023-10-18 01:08:29 -04:00
Yassine 52b5a33d35 Revert "update model replay ref commit"
This reverts commit 40817b6810.
2023-10-17 19:49:42 -07:00
Yassine 40817b6810 update model replay ref commit 2023-10-17 19:49:13 -07:00
Shane Smiskol 2f1ece0716 bump panda (#30276)
bump
2023-10-17 18:10:52 -07:00
Justin Newberry 1820b5f259 Proc Replay: cleanup iterable log typing (#30261)
* cleanup log typing

* use iterable

* fix those

* Cleanup

* cleanup

* missed that one
2023-10-17 12:58:28 -07:00
George Hotz 50d720fc2e Bump tinygrad to master (0.7) (#30254)
* bump tinygrad to master

* ops_cpu is required now

* and that one too

* tinygrad is getting out of hand with all the files

* bump tinygrad

* update ref commit

* tinygrad master

* Revert "update ref commit"

This reverts commit e7284152899d6dd8a986d9570e6021addfbc6b0f.

* bump tinygrad repo

* bump master

* update ref commit
2023-10-17 10:05:28 -07:00
Shane Smiskol ffeb99db54 events: fixup printing script (#30268)
* fix typing, no need for ordereddict, show priority name again

* just repr
2023-10-17 01:52:20 -07:00
Mars ec30897912 Add missing COROLLA_TSS2 engine (#30267)
* Add missing COROLLA_TSS2 engine

* Missing abs

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-10-17 01:10:51 -07:00
alex 6b303cea4c Added firmware values for 2020 VW Passat NMS (#30233)
* Update values.py

Added FW for NMS Passat 2020

* Update interface.py

Removed requirement for force dashcam.

* Update interface.py

Uncommented the dashcam mode line.
2023-10-17 01:07:59 -07:00
Dean Lee 1866e53957 ui.py: support strided buffer (#30236)
fix crash
2023-10-17 01:03:56 -07:00
Justin Newberry def2b93895 compare_logs: better names for short/long diffs (#30263)
* better names

* dont need that

* those too
2023-10-16 17:04:14 -07:00
Justin Newberry d23f5d2ec5 test_processes: assert that mazda is tested (#30258)
mazda left dashcam mode
2023-10-16 12:18:25 -07:00
Justin Newberry db460762c2 add fingerprinting template (#30257)
Add fingerprint template
2023-10-16 11:32:31 -07:00
Jason Wen fafdf82409 Subaru: Fix brake light signal for Pre-Global platforms (#225) 2023-10-16 11:44:37 -04:00
Jason Wen 0cafd36f15 Sync: commaai/openpilot:master into sunnyhaibin/sunnypilot:master 2023-10-16 11:37:26 -04:00
Jason Wen adc9b2f3bb bump submodules 2023-10-16 11:32:08 -04:00
Jason Wen 0e8a762fdd brakeLights -> brakeLightsDEPRECATED 2023-10-16 11:18:24 -04:00
Jason Wen cfeba34d5d Merge branch 'upstream/openpilot/master-20231016-sync' into master-20231016
# Conflicts:
#	cereal
#	panda
#	selfdrive/car/hyundai/interface.py
#	selfdrive/car/hyundai/values.py
#	selfdrive/car/subaru/values.py
#	selfdrive/controls/controlsd.py
#	selfdrive/controls/plannerd.py
#	selfdrive/monitoring/dmonitoringd.py
2023-10-16 11:03:27 -04:00
Adeeb Shihadeh f616dd77a1 loggerd: add wall time to initData (#30251)
* loggerd: add wall time to initData

* bump cereal

* fix
2023-10-15 15:21:51 -07:00
Justin Newberry 998763b4bc Subaru: 2021 impreza fingerprint (#30249) 2023-10-15 17:15:41 -04:00
Adeeb Shihadeh 0336219b6a CI: update to checkout@v4 (#30248) 2023-10-14 23:25:41 -07:00
Adeeb Shihadeh f8a7def515 docs: move to gh pages (#30242)
* mv to pages

* cleanup

* push static

* mv that

* new name for the orphan

* only master

* build op
2023-10-14 23:03:57 -07:00
Adeeb Shihadeh f0aa631818 cleanup up old lib64 references (#30246)
* cleanup sensord

* rm rest

* fix that

* update that
2023-10-14 20:39:15 -07:00
Dean Lee 383964cd5b ui: make default_face_kpts_3d constexpr (#30239) 2023-10-14 09:14:20 -07:00
Adeeb Shihadeh b68cfbb332 cleanup old sm pm args (#30241)
* cleanup sm pm

* fix controlsd

* fix
2023-10-13 23:27:04 -07:00
Vivek Aithal 9e24a11f17 torqued: Refactor to share code with magd (#30238)
* refactor to extract common functions and classes out

* Add helpers.py to release files

* refactor
2023-10-13 17:24:04 -07:00
Dean Lee 818d29818f cabana: reduce minimum size (#30223)
reduce minimumsize
2023-10-12 11:09:32 -07:00
Dean Lee 47813ae8b5 cabana: fix crash when switching dbc file (#30227)
fix crash when switching dbc file
2023-10-12 11:09:17 -07:00
Shane Smiskol e030a701fa Kia: add missing K5 2024 FW (#30220)
* Add missing K5 FW

All it took was the extra few months for the camera FW date

* update docs
2023-10-10 15:17:09 -07:00
Adeeb Shihadeh ac21dcbdcb Update Python packages and pre-commit hooks (#30215)
Co-authored-by: adeebshihadeh <adeebshihadeh@users.noreply.github.com>
2023-10-10 10:37:54 -07:00
Christian B. G. Ta 66d5914175 Hyundai: add missing FW versions for Kona EV 2022 (#30200)
* Update values.py - Hyundai Kona 2022 fingerprints

Car was new in summer 2023 in EU/Norway

* Update selfdrive/car/hyundai/values.py

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-10-09 16:58:45 -07:00
Jason Young 8e247e063e VW MQB: Add FW for 2023 Volkswagen California (#30207) 2023-10-08 15:21:34 -07:00
Shane Smiskol c14b765623 Toyota: parse FW versions for more reliable fuzzy fingerprinting (#28641)
* add test from hyundai

* found tss2

* abs and engine are very rarely shared (avalonh tss2 and camryh tss2 is one example)

* some bad regex

* some pattern work

* some work

* .

* some conceptual clean up

* fix short fw pattern

* hyundai test

* clean up values.py a bit

* print platform codes

* hyundai fuzzy

* pass test

* move around constants

* clean up

* clean up hyundai

* fix print

* more clean up, fix med pattern

* add documentation

* use major version

* some clean up from merge

* some clean up from merge 2

* spot check

* clean up imports

* missing FW_QUERY_CONFIG

* short version: always prefixed with 3, get real platform code

* limit to max chunks seen (3)

* rm engine

* fix that

* get_platform_codes returns dict

* tests

* comments

* fix test

* enable a test

* fix script

* print ecu parts

* enable old test

* clean up some tests

* clean up

* more clean up

* static

* this is all it took?

* add note

* ...

* use less ECUs

* bump

* todo

* clean up fuzzy fp function

* make deterministic in a feat of engineering

* add temp exclude_fw argument for testing

* fix logic

* add blacklist

* add platform and its matches

* fix for nb

* remove fw exclusion

* Revert "remove fw exclusion"

This reverts commit 0e3b47c5a30ebdb647caf5d792b10f517cbdf48f.

* clean up

* Revert "Revert "remove fw exclusion""

This reverts commit 42c55f006a4a0596ff404c67db1a88eb64b45d9e.

* these two have similar chassis according to wikipedia (but mass is relatively different)

* Revert "Revert "Revert "remove fw exclusion"""

This reverts commit 0f874233422d2007cc87bfb1c714cabed6e80049.

* Revert "Revert "Revert "Revert "remove fw exclusion""""

This reverts commit 2411967f5a2b0712773d614ee589321cca4d52a5.

* oof

* shadows global variable

* rm comment
2023-10-07 18:09:52 -07:00
Adeeb Shihadeh 1a74ed91ee hyundai: add comment with link to PR for corner radars 2023-10-07 16:23:47 -07:00
DevTekVE 9ce273765c FIX mac m1 compilation - Add sstream library to onroad.cc (#30205)
Add sstream library to onroad.cc

Needed to solve a bug when compiling on mac m1.

Co-authored-by: Miguel Fernandez <miguel.fernandez@cimpress.com>
2023-10-07 15:55:12 -07:00
fpjuojyv810059 62e812f4e1 Lexus: add missing FW for Lexus ES 2024 (#30198)
* Lexus: add missing FW for Lexus ES 2024

* already here

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-10-07 07:12:12 -07:00
Hiroshi Nomiyama a8c37ba29b Lexus: add 2023 RX hybrid firmware (#30193)
* Update values.py

* Update values.py

* add FW (camera already here!)

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-10-07 07:06:52 -07:00
Jason Young 8a10d1f5ae VW MQB: Add FW for 2021 Audi Q3 (#30182) 2023-10-07 07:01:24 -07:00
Shane Smiskol 3cd0e392eb Toyota: combine similar TSS2 hybrid platforms (#30194)
* combine corolla

* corolla tss2: remove duplicates

* remove gas pedal hybrid signal

* combine RX TSS2

* we only split for static DSU msgs, or sng differences

* Combine NX TSS2

* remove nb

* Combine ES TSS2

* Combine RAV4 TSS2 (torque params for each EPS variant are similar enough, and eps and fwdcamera all are identical)

* Merge TSS-P Lexus NX

* TSS-P Lexus NX: remove duplicates

* TSS-P C-HR: merge

* TSS-P C-HR: remove duplicates

* fix routes

* re-did everything: no diff 🎉

* update test models seg list

* Update ref_commit
2023-10-07 01:26:49 -07:00
Justin Newberry 7fd52cd0d1 Codecov: ignore tests files (#30202)
codecov ignore test
2023-10-06 20:13:52 -07:00
Dean Lee d02558c400 cabana: check if index is valid (#30204) 2023-10-06 20:13:08 -07:00
Adeeb Shihadeh 1abea5a259 don't upload crash logs from forks (#30203)
* don't upload crash logs from forks

* fix
2023-10-06 15:30:43 -07:00
Justin Newberry 8b2b72499f CI: run jenkins as batman (#30184)
* I'm batman

* chown batman

* sudo

* add batman to sudo group

* try without cleanup

* Revert "try without cleanup"

This reverts commit f59554f2f373417f2c59fd250463eca2fda4d49e.

* comment
2023-10-06 11:12:41 -07:00
Shane Smiskol 9350b7e179 Car tests: fix serialize error on fail (#30185)
* Update test_toyota.py

* fix others

* fix
2023-10-06 00:07:37 -07:00
Greg Hogan 6f98a987af vidindex improvements (#30196)
* vidindex improvements

* fix spelling
2023-10-05 22:48:50 -07:00
Justin Newberry 2884fd6e3d Simulator: set params enabled (#30195)
set params enabled
2023-10-05 22:19:38 -07:00
Greg Hogan 86b90a8ba2 filereader cleanup (#30191)
* filereader cleanup

* make name return url

* remove unused imports
2023-10-05 19:45:46 -07:00
Greg Hogan f8e488f881 convert vidindex to python (#30176)
* convert vidindex to python

* fix whitespace

* corrupt file option

* fix up typings

* fix return type

* update framereader

* change length delimiter to uint32 value

* change length to uint32 value

* move url_file changes to separate PR

* cleanup caching

* revert whitespace change

* fix frame type param type
2023-10-05 18:40:24 -07:00
Justin Newberry 7f945f10c6 Subaru: Outback 2023 fingerprint (#30190)
fingerprint
2023-10-05 17:15:26 -07:00
Justin Newberry d731c85b2e Docker: add batman to sudo group (#30188)
add batman to sudo group
2023-10-05 15:53:07 -07:00
Adeeb Shihadeh f80db10720 UI: remove drive stats (#30183)
* UI: remove drive stats

* little more

* vanish
2023-10-05 14:53:49 -07:00
Kacper Rączy 3aa74c28fc CI: add regen job (#30157)
* Ability to whitelist/blacklist cars in regen_all

* Add CI job for regen, running on 2 segments

* Run regen_all, not regen

* Use coverage run

* Add test_regen

* Use test_regen in ci test

* Add test case names

* ONNXCPU = 1

* Add mazda segment

* Use RUN_CL

* build cl image before running

* unset PYTHONWARNINGS

* Create regen cache

* Replace daemons with processes

* Skip ford

* Skip mazda

* Add comment about commented segments

* Update selfdrive/test/process_replay/test_regen.py

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>

* Remove unset pythonwarnings

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2023-10-05 13:59:00 -07:00
Dean Lee 29f10fd2aa cabana: fix parsing multiple line comment (#30178)
fix parse error
2023-10-05 01:48:56 -07:00
Shane Smiskol ed0f506359 Toyota: add missing engine FW for TSS-P Camry Hybrid (#30177)
* missing FW for 2ed432126627c66a

* dups

* dups
2023-10-05 01:24:05 -07:00
Shane Smiskol a1ca5dc484 scripts: format diff when comparing logs (#30174)
* move format diff to compare_logs to pretty print

* smaller
2023-10-04 22:59:03 -07:00
Justin Newberry f4b2b70791 Metadrive: fix slow acceleration and enable past 50 mph (#30171)
metadrive tuning
2023-10-04 17:25:44 -07:00
Justin Newberry 56b16e77a4 Metadrive: no preloading models (#30170)
no preloading
2023-10-04 15:49:05 -07:00
Kacper Rączy 18f41d1910 regen: skip fetching camera files when not needed (#30169)
* Fetch only camera files which are needed in current setup

* Refactor daemons to processes
2023-10-04 15:00:50 -07:00
Justin Newberry d00832cb2b Devcontainer: initial windows support (#30168)
* windows support

* windows support
2023-10-04 14:58:21 -07:00
Kacper Rączy 898acb13f2 process_replay: migrate panda/peripheral/manager states (#30141)
* Migrate pandaStates

* Fix import

* Make pandaStates migration optional, so process_replay still works on logs without carParams

* peripheralState migration if its not available

* Do nothing if log file has peripheralStates

* Add migrate_managerState

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-10-04 13:41:50 -07:00
Justin Newberry fa51bbc236 URLFile: don't cache non-existent file's lengths (#30071)
* urlfile empty

* simplify with mock

* better test name

* PR cleanup

* cleanup the length file
2023-10-04 12:57:56 -07:00
Justin Newberry 786f13b0e3 cleanup environment variables between tests (#30167) 2023-10-04 11:51:44 -07:00
Justin Newberry 2048808827 add random order plugin (#30166)
add random order
2023-10-04 11:51:24 -07:00
Kacper Rączy cf3549fe8a process_replay: migrate cameraState timestampSof if its missing (#30153)
Migrate timestampSof if its missing
2023-10-03 19:46:24 -07:00
Justin Newberry 7f69f8458a Tests: fix pandad setup (#30160)
fix panda test
2023-10-03 18:54:40 -07:00
Kacper Rączy 5cb9291de8 modeld: don't attempt to connect extra vipc client if its not available (#30154)
Do not connect extra client if it's not available
2023-10-03 15:54:21 -07:00
Adeeb Shihadeh 4f769d0a38 pandad: ensure panda is in a good state before each test case (#30151)
* pandad: ensure panda is in a good state before each test case

* less overhead

* fix pc

* update that

* Update selfdrive/boardd/tests/test_pandad.py

* update
2023-10-03 15:42:04 -07:00
Adeeb Shihadeh 377722fd5e Update Python packages and pre-commit hooks (#30149)
* Update Python packages and pre-commit hooks

* fixes

* Update common/transformations/README.md

Co-authored-by: Shane Smiskol <shane@smiskol.com>

* fix

---------

Co-authored-by: adeebshihadeh <adeebshihadeh@users.noreply.github.com>
Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-10-03 15:31:26 -07:00
nickn066 c3479f8984 Fingerprint: 2023 Volkswagen Taos (#30126)
* Update values.py

Add 2023 Taos

* Update values.py

Removed additional space

* Update values.py

Removed trailing white space

* Update values.py

removed duplicate ecu.srs for CAR.TAOS_MK1

* Update values.py
2023-10-03 14:28:16 -07:00
Harald Schäfer 3c0a7d6986 Night Strike Model (#30148)
* baab2a46-f0c3-46eb-8756-00c55354945b/700

* Update model replay ref
2023-10-03 14:25:30 -07:00
Justin Newberry c6ad15e52f CI: label for research and fix CI/testing label (#30152)
* research label

* add jenkinsfile
2023-10-03 13:48:17 -07:00
Justin Newberry 8cc8952d81 Subaru: crosstrek hybrid is a B harness (#30150)
its a b harness
2023-10-03 13:29:07 -07:00
Shane Smiskol c003048269 Toyota: whitelist hybrid ECU (#30110)
0x7e2: OBD query, 0x7d2: UDS query
2023-10-03 03:30:32 -07:00
Shane Smiskol 661edd7d8b regen: fix wide road camera msg name (#30147)
fixed
2023-10-02 21:21:49 -07:00
Shane Smiskol 0a5e50b5a7 Kia: update harness & package for 2018 Kia Sorento
only aus 2018 sorento has LKAS (US has LDWS -- not supported) - https://resource.digitaldealer.com.au/pdf/200674377859eeaf8eb22c1234370909.pdf
2023-10-02 20:28:32 -07:00
Kacper Rączy 9c5bbe1a91 process_replay: fix support for single cam segments (#30143)
* Fix assertion for vision_pubs

* Get camera states from meta

* Convert deviceType to string

* Use neo instead of eon for frame sizes dict

* update vision_pubs of process config when creating vipc
2023-10-02 19:36:47 -07:00
Adeeb Shihadeh 0694d3b8f6 remove some python packages (#30135)
* less dependencies

* rm that

* add that back for now

* revert for now
2023-10-02 17:13:45 -07:00
Adeeb Shihadeh c347096c3e finish hardware move to system/ (#30140)
* finish hardware move to system/

* fix release

* couple more
2023-10-02 16:49:07 -07:00
Justin Newberry 4d7caff0c8 Metadrive: fix reset (#30142)
* fix reset

* 2 seconds
2023-10-02 16:43:35 -07:00
Justin Newberry 3c55f76790 remove carla dependency (#30139)
* only docs and default

* remove carla dependency

* remove carla dependency
2023-10-02 16:11:56 -07:00
Adeeb Shihadeh f58969cb60 remove rtshield 2023-10-02 15:40:35 -07:00
Adeeb Shihadeh 67161a7174 remove panda flash logs (#30138)
* bump panda

* unused

* update test
2023-10-02 15:34:33 -07:00
Justin Newberry 78469b7ef6 Simulator: metadrive is the default (#30133)
only docs and default
2023-10-02 14:44:40 -07:00
Adeeb Shihadeh 8461cdb77e back to 0.9.5 2023-10-02 14:37:04 -07:00
Notstupe 364353d897 hyundai: fix ioniq5/6 sorting (#30122)
put ioniq5/6 back in there place
2023-10-02 13:47:53 -07:00
Justin Newberry f32294772d Update metadrive (#30128)
update metadrive
2023-10-02 13:18:03 -07:00
Jason Wen 925bc21912 Update CHANGELOGS.md 2023-10-01 11:32:22 -04:00
Jason Wen 61d39a5558 MSPA: Unused service (#218) 2023-10-01 02:10:49 -04:00
Jason Wen c8debe77db MSPA (#217)
* Cereal: Use custom reserved structs

* fix dmonitoring

* sync with upstream

* bump cereal

* bump cereal

* fix

* bump cereal

* fix

* unused

* check sm valid
2023-10-01 02:05:05 -04:00
Justin Newberry 05f7c96327 Tools: a basic auto fingerprinting tool (#30117)
* v1 auto fingerprint tool

* executable

* static analysis

* move to selfdrive/debug

* from any directory

* fix static analysis
2023-09-30 20:50:29 -07:00
Kacper Rączy 0e5cfa3426 compressed_vipc: fix issues with VisionIpcServer in ZMQ mode (#30115) 2023-09-30 18:45:45 -07:00
Justin Newberry 2dd13c60cc Revert "run unit tests in a random order (#29799)" (#30116)
This reverts commit b483efe764.
2023-09-30 17:23:38 -07:00
Justin Newberry 6ae465e4af Use StrEnum for car classes (#30114)
* str enum

* import sort

* fix car helpers

* fix that

* fix static analysis
2023-09-30 17:15:34 -07:00
Justin Newberry 205cf12258 Standardize line endings in repo (#30112)
use lf by default
2023-09-30 17:05:43 -07:00
Adeeb Shihadeh 1dd4ade197 delete some old files 2023-09-30 16:07:26 -07:00
Adeeb Shihadeh b483efe764 run unit tests in a random order (#29799)
* run unit tests in a random order by default

* bump panda

* fix startup

* re-add random order plugin

---------

Co-authored-by: Justin Newberry <justin@comma.ai>
2023-09-30 15:56:23 -07:00
royjr e156ab41ad ui: better Arabic translations (#30004)
* initial

* fix additional tag

* fix missing semicolon

* fix missing semicolon

* fix missing whitespace/punctuation

* dont translate

* fix deleted source

* mark missing as unfinished

* needs to be fixed

* typo

* dont translate

* translate wifi

* dont translate sidebar

* missing space

* dont translate

* these are good

* missing

* fix unfinished

* more fixes

* fix typo

Co-authored-by: Shane Smiskol <shane@smiskol.com>

* dont translate

* fix vanished translation

* add test_entities_error test

* fix entity

Co-authored-by: Shane Smiskol <shane@smiskol.com>

* dont translate comma prime

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-09-30 15:37:07 -07:00
Jiyong Youn 2fee341a90 HKG: Enable radar tracks for 2021 K5 Hybrid (#30113) 2023-09-30 15:19:12 -07:00
Adeeb Shihadeh 023792c431 Revert "ui: brighten cameraview (#29744)"
This reverts commit a08cdfdda7.
2023-09-30 15:14:48 -07:00
Mike Busuttil a21437a708 improved script for fetching images from routes (#30089)
* easily target desired camera

* easily target desired camera

* cleaner authentication fallback
2023-09-29 23:55:41 -07:00
Erich Moraga ca5a317a50 Toyota: add several ECU versions for 2023 Toyota RAV4 Hybrid (#30111)
`joshtheplumber` 2023 Toyota RAV4 Hybrid  DongleID/route a493a1ab8ea51c2a|2023-09-29--23-51-04
2023-09-29 20:35:26 -07:00
Shane Smiskol a067f86320 Toyota: add missing FW for ICE RAV4 2023 2023-09-29 20:16:57 -07:00
Kacper Rączy d15c2d951f devcontainer: use VirtualGL on mac hosts (#30090)
* Install virtualgl in a container

* Initialize virtualgl in bashrc

* Create virtual screen when starting

* Start vglclient on host

* Run Xvfb in separate tmux session to keep it running

* Add note about virtualGL in readme

* Add wget

* source vglrun

* Start xvfb only when forwarding x11

* Remove section about vglrun from readme

* HOST_DISPLAY implementation

* Add MOTD message instead of readme section
2023-09-29 17:45:06 -07:00
Justin Newberry ba90bdf7d9 Simulator: blinkers and lane changes (#30107)
blinkers and lane changes
2023-09-29 16:32:45 -07:00
Kacper Rączy 481f18710e devcontainer: expose zmq ports for bridging (#30072)
* Expose ZMQ ports for bridging

* Limit ports to 8070-8079
2023-09-29 23:40:11 +02:00
Justin Newberry 7ab14fa71f Docker: keep poetry installed (#30108)
keep poetry
2023-09-29 14:28:53 -07:00
Justin Newberry 84609f365b Simulator: update documentation for metadrive (#30002)
* update sim docs

* update docs
2023-09-29 12:44:12 -07:00
Justin Newberry 5c2cbec06e Simulator: wait for engageable (#30105)
wait for engageable
2023-09-29 12:18:49 -07:00
Justin Newberry 9d3dbd245a Metadrive: move to a separate process (#30103)
* split bridge into two files

* fix metadrive

* wip

* fix tests too

* separate process

* sepeprate process

* finish moving to another process

* remove spammy output
2023-09-29 11:45:14 -07:00
Mike McKay a5f2fd5b1a Update vw_mqb_config.py (#30101)
Added a message to tell the user to kill the comma process when running the script.
2023-09-29 11:00:44 -07:00
Jason Wen 44b0b11ff1 HKG: add Kia Seltos 2023-24 Non-SCC platform (#215)
* HKG: add Kia Seltos 2024 Non-SCC platform

* 2023 MY also works

* Update CHANGELOGS.md

* add fw

* fix

* fix list
2023-09-29 08:56:50 -04:00
Shane Smiskol 571ebf77fa CI: fix building prebuilt image (#30099)
* fix prebuilt and test it

* that does not work
2023-09-29 02:19:10 -07:00
Shane Smiskol 5bf117ce29 Toyota docs: expand Camry Hybrid years to 2024 (#30098)
we've seen a 2024 camryh

1de6c58d0ee17682|2023-09-28--06-37-11--0
2023-09-29 01:01:49 -07:00
Shurui Gui 0d7272ea19 Mazda: add FW versions for CX-5 2024 (#30093)
* Port CX-5 2024

* update docs

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-09-29 00:59:23 -07:00
Dean Lee 21f4af4d6d cabana: fix QCompleter leak (#30097)
fix QCompleter leak
2023-09-29 00:54:56 -07:00
Kacper Rączy bfddcdaf89 aarch64: onnxruntime (#30095)
base onnxruntime for aarch64
2023-09-28 22:32:21 -07:00
Justin Newberry 5af5469c66 Simulator: split bridge and world into two files (#30091)
* split bridge into two files

* fix metadrive

* fix tests too
2023-09-28 17:50:01 -07:00
Kacper Rączy 32ac71af37 README: mention git-lfs requirement (#30092)
Mention lfs in setup instructions
2023-09-28 17:45:01 -07:00
Shane Smiskol b918e06822 Car docs: update parts docs for 3X (#30076)
* add panda kit

* better: 3X is default

* how about

* replace more three refs
2023-09-28 16:20:03 -07:00
Harald Schäfer 2162d149e8 calibrationd: Pitch spread different tolerance (#30065)
* calibrationd: Pitch spread different tolerance

* Improve calibrationd tests
2023-09-28 14:27:50 -07:00
Sean Aguinaga a30d5d2b7a Ford: add 2023 Maverick Engine FW (#30085)
* Add 2023 Maverick Engine FW

* Pasted wrong line - corrected

* Update selfdrive/car/ford/values.py

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-09-28 13:59:05 -07:00
Justin Newberry fb89a2a6dd Devcontainer: run setup as batman user (#30084) 2023-09-27 23:40:02 -07:00
YassineYousfi 04e239f7ed onnxmodel: fp16_to_fp32 (#30080)
* onnxmodel: force fp32

* rename

* rename this too
2023-09-27 22:37:03 -07:00
Adeeb Shihadeh 2d5a2e3ab6 Update Python packages and pre-commit hooks (#30062)
Co-authored-by: adeebshihadeh <adeebshihadeh@users.noreply.github.com>
2023-09-27 21:42:41 -07:00
Adeeb Shihadeh 4f72e87ab7 CI: disable native mac build (#30082) 2023-09-27 21:15:53 -07:00
Vivek Aithal 0461ea8a82 paramsd: Add condition to sensor valid check (#30066)
add condition to sensorvalid check
2023-09-27 21:00:36 -07:00
mitchellgoffpc 86a334ae19 bump cereal 2023-09-27 17:51:24 -07:00
Shane Smiskol dbd8e24a17 Hyundai: update Optima Hybrid 2017 harness (#30079)
it's c
2023-09-27 16:15:29 -07:00
Lee Jong Mun c7e1eb12c6 kor translation update (#30073) 2023-09-27 10:58:01 -07:00
Justin Newberry 2792e5f2db Simulation: engage on startup, print help message (#30044) 2023-09-27 07:21:46 -07:00
Justin Newberry 09325b01ff Simulator: Looping metadrive world (#30068) 2023-09-27 07:20:54 -07:00
Shane Smiskol 61c5618f15 torqued: useParams field reflects if using torque control (#30059)
fix useParams
2023-09-26 17:23:10 -07:00
Justin Newberry f18d66fa3e Simulator: cleanup old common stuff (#30069)
cleanup
2023-09-26 17:05:46 -07:00
Adeeb Shihadeh a4aa801fbe simplify sensor alert (#29824)
* simplify

* update proc replay
2023-09-26 16:47:21 -07:00
Shane Smiskol 7073882f87 HKG tests: assert standard FW requests in database (#30061)
* test to help catch random FW in PRs

* just fwdCamera

* better?
2023-09-26 16:41:24 -07:00
Adeeb Shihadeh 0e02d8b8d1 CI: reduce master-ci build frequency 2023-09-26 16:18:41 -07:00
Adeeb Shihadeh fa06a69101 add extra debug info to onroad test (#30067) 2023-09-26 16:11:26 -07:00
Vivek Aithal 6d5f4f149d locationd: Replace allAliveAndValid with allValid (#30064)
* replace allaliveandvalid check with allvalid, all necessary time checks are already used

* update refs
2023-09-26 15:31:40 -07:00
Justin Newberry 0251742079 CI: use "slow" marker for pytest (#30063)
* skip to mark

* fix quotes
2023-09-26 13:44:18 -07:00
Pitte86 7d4fead1b8 Skoda: add FW versions for Superb MK3 (#30026)
* Update Skoda Superb MK3 values.py

* Update selfdrive/car/volkswagen/values.py

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-09-26 02:57:20 -07:00
Saber db50e42202 HKG: Car Port for Hyundai Custin 1st Gen (#29476)
* HKG: Car Port for Hyundai Cusitn 1st Gen

Hyundai Custin is asia only car ,named Custo in China.
Hyundai K , talk with Sotana CAN BUS
test route"0bbe367c98fa1538|2023-08-19--01-58-42--0"

It's my fisrt time to PR a port car. I must miss something I don't know. Waiting your instruction to complete it.

* Add route

Add route

* update interface.py

Add interface values

* Update values.py

type

* slight cleanup

* stock openpilot route

* Add credit to release note

* lkas11 fault fix

* Generate CARS.md

* SCC is standard

* crc8

* Update new route

Add a new route "0bbe367c98fa1538|2023-09-16--00-16-49--0"

* sort

* Update selfdrive/car/hyundai/interface.py

* rename platform var

* we want abs!

* was looking at a vw lol

* 096

---------

Co-authored-by: Jason Wen <haibin.wen3@gmail.com>
Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-09-26 02:56:32 -07:00
Jason Wen d3763039da Hyundai: add FW Versions for Santa Fe Plug-in Hybrid 2023 (#30036)
* Hyundai: Add FW Versions for Santa Fe Plug-in Hybrid 2023

* Update CARS.md
2023-09-26 02:31:05 -07:00
Jiyong Youn eb7d68ec1d Multilang: improve Korean translation (#30038)
* Improve Korean translation

* Korean translation: fixed typo, improved translations
2023-09-26 02:17:05 -07:00
Jaeseok Choi ef79f908fc Kia: add FW versions for KIA_K5_2021 (#30048)
* add fingerprint for KIA_K5_2021

* remove FW from other queries

---------

Co-authored-by: Jaeseok Choi <js01.choi@samsung.com>
Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-09-26 02:01:53 -07:00
Erich Moraga 8fbf62a608 Car docs: add Lexus IS 2022 (#30055)
* Car docs: add Lexus IS 2022

https://github.com/commaai/openpilot/pull/30032 was actually a 2022, so updating documentation accordingly.

* docs.py gen'd CARS.md w/ 2022 Lexus IS update
2023-09-26 01:33:25 -07:00
Adeeb Shihadeh 425fa316d1 pre-commit: always check all file sizes (#30050)
* pre-commit: always check all file sizes

* fix release
2023-09-25 22:22:48 -07:00
Adeeb Shihadeh e185e5ffcd move remaining big files into LFS (#30053) 2023-09-25 21:53:03 -07:00
Adeeb Shihadeh 7ac659ade4 remove old profiling tool 2023-09-25 20:20:24 -07:00
Adeeb Shihadeh f33874b0dc move fonts and training images into LFS (#30049) 2023-09-25 20:06:44 -07:00
Shane Smiskol aaed1b2790 HKG: add note for Kona EV 2nd gen (#30051)
* HKG: add note for Kona EV 2nd gen

* HKG: fix CAR_INFO dict formatting
2023-09-25 19:44:43 -07:00
Adeeb Shihadeh 8ecafa45a0 Revert "move big assets into LFS (#30030)"
This reverts commit eb97ff8a66.
2023-09-25 19:24:13 -07:00
Kacper Rączy 3cf58e55eb devcontainer: fix rc files, move CARLA_HOST to json (#30047)
* Download rc files to batman home directory. Fix links

* Move CARLA_HOST to devcontainer.json

* Remove user root
2023-09-26 04:11:57 +02:00
Kacper Rączy c054b665c2 devcontainer: force 256 color support in shell (#30045)
Hard-code 256 color support
2023-09-26 01:53:53 +02:00
Justin Newberry 98451611be Simulator: fix metadrive tick frequency (#30043)
sim rate fix
2023-09-25 16:28:09 -07:00
Dean Lee 2cca0cbde8 replay: fix missing events before INIT_DATA (#30039)
fix missing events
2023-09-25 15:16:41 -07:00
Justin Newberry dd3cdbf4cc Tests: speedup replay test (#30037)
speedup
2023-09-25 14:26:01 -07:00
Kacper Rączy 2fc307cc87 devcontainer: fix display override (#30041)
* Fix display override on mac

* Add newline
2023-09-25 22:56:23 +02:00
Justin Newberry 51674f61c1 Simulator: passthrough BLOCK on launch script (#30040)
sim block passthrough
2023-09-25 13:44:26 -07:00
Erich Moraga 9e64eabc3c Toyota: add several ECU versions for LEXUS_IS_TSS2 (#30032)
`@lawabidingcitizen#7036` 2023 Lexus IS350  DongleID/route 0a89412f77c48f02|2023-09-22--17-56-09
2023-09-25 12:24:23 -07:00
Nelson Chen ffeb9a93b7 Lexus: add engine FW for Lexus NX 2020 (#30031)
New Engine

Example Routes:

* 4c7b96026712d831|2023-09-24--14-16-17
* 4c7b96026712d831|2023-09-23--18-32-11
2023-09-25 12:19:51 -07:00
Justin Newberry 021effc5ac Devcontainer: use "batman" user instead of root (#29704)
* devcontainer user

* cleanup permissions

* remove that

* remove that since it's not used

* clean that up after merge

* build base image first

* remove the pull

* build base image

* ensure we can pip install

* build base image as batman user

* add user uid

* add temporary comment about chown instruction
2023-09-25 10:36:54 -07:00
Justin Newberry 003018fc46 Devcontainer: improve CI tests and support using local built image (#30012)
* improve devcontainer tests

* test full build with cache

* fix that

* fix the cache

* fix the cache
2023-09-24 17:24:44 -07:00
Adeeb Shihadeh eb97ff8a66 move big assets into LFS (#30030)
* move fonts

* move training
2023-09-24 10:08:06 -07:00
zaidhas0 d8480a0448 Hyundai: 2023 Santa Fe fingerprint (#30020)
* values.py

* Apply suggestions from code review

* Apply suggestions from code review

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-09-23 23:08:08 -07:00
Adeeb Shihadeh 045ed8a91e remove big gif file (#30029)
* remove big gif file

* remove
2023-09-23 21:16:45 -07:00
Jason Wen fb9a990184 FCR: sync with upstream supported car platforms 2023-09-24 00:09:50 -04:00
Adeeb Shihadeh efa9d73827 rm old boardd test file 2023-09-23 16:50:29 -07:00
royjr f7f8b769ef debug: update alerts (#30023)
* remove vehicleModelInvalid

* add locationdTemporaryError

* add paramsdTemporaryError
2023-09-23 08:31:20 -07:00
Jason Wen da58d5114b Fleet Manager: paths cleanup (#216) 2023-09-23 10:33:33 -04:00
Shane Smiskol c3d0bf7b5e Toyota: improve platform code understanding (#30015)
* return a dict where minor version is not in keys

* limit valid chunks to 3 (max seen)

* First short version character is always 3 (we were using wrong platform code)

* docs updates

* not here

* fixes for printing new platform code format

* ecu notes

* notes

* platform code tests

* no tuple

* can visualize the whole thing now

* make it clear there's no major versions

make it clear there's no major versions

* static analysis

* two minor versions

* fix

* not using dsu

* comment

* comment

* comment

* forgot this one
2023-09-23 02:13:58 -07:00
Jason Wen 3b776937fa Sync params 2023-09-23 01:31:57 -04:00
coffee-cake-isaac c43325fa17 joystick mode: add curvature control (#30010)
* Added curvature controls to joystick mode

* same line

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-09-22 21:53:31 -07:00
Shane Smiskol 2ebf0b186e Hyundai: use EV/hybrid car lists for ELECT gear signal (#30009)
* remove duplicate hybrid/ev list

* test
2023-09-22 21:52:29 -07:00
Shane Smiskol a0c8df3d73 ui: update calibration limits text (#30014)
* update translations

* update text

* round down
2023-09-22 21:38:07 -07:00
Jason Wen eb2a58185d Merge branch 'upstream/openpilot/master'
# Conflicts:
#	.pre-commit-config.yaml
#	README.md
#	cereal
#	opendbc
#	panda
#	selfdrive/car/torque_data/override.yaml
2023-09-22 23:49:13 -04:00
Justin Newberry f223b66b7b CI: remove warning messages (#30013)
remove ci warnings
2023-09-22 19:59:38 -07:00
Adeeb Shihadeh 5f318faf93 model replay: add cameraOdometry (#30007)
* model replay: add back cameraOdometry coverage

* update refs

* try again

* fix cmp log
2023-09-22 17:10:36 -07:00
Hoya e16d530da9 Hyundai: Car port for AZERA Hybrid 6TH Generation (#29984)
* Update interface.py

add AZERA HEV 6TH_GEN

* Update hyundaican.py

ADD AZERA HEV 6TH_GEN

* Update values.py

add AZERA_HEV_6TH_GEN

* Update override.yaml

add AZERA HEV 6TH GEN

* Update CARS.md

add AZERA HEV 6TH GEN

* Update CARS.md

* Update routes.py

Add AZERA HEV 6TH GEN

* Update routes.py

* Update values.py

* Update values.py

* Update routes.py

* Update routes.py

* Update values.py

* Update values.py

* Update CARS.md

* Update values.py

* Update RELEASES.md

* Update RELEASES.md

* Update routes.py

* Update routes.py

* Update routes.py

* The route driven by added value.py with engine and transmission finger.

* Update interface.py

I applied it with the actual vehicle spec value.

* move up release to 096

* fixes

* docs

* fix mass

---------

Co-authored-by: haram-KONA <88036668+haram-KONA@users.noreply.github.com>
Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-09-22 02:06:16 -07:00
Shane Smiskol f341baff8a Add Optima to release notes
It's the first OptimaH in release
2023-09-22 00:59:36 -07:00
Shane Smiskol 39c8bfc09c Kia: Optima Hybrid 2019 car port (#29992)
* add 2019 OptimaH

* fix

* fix gears

* rename

* should be in unsup long

* fix

* probable cause

* add test route

* update docs

* fix test

* spacing

* note it's only old
2023-09-22 00:58:14 -07:00
Adeeb Shihadeh 63068b936b disable panda flash logging (#30000)
* disable panda flash logging

* bump panda
2023-09-21 20:51:28 -07:00
Adeeb Shihadeh 362c0bf2ca Revert "modeld: remove extra cloudlog.bind, manager does this"
This reverts commit 754af893e9.
2023-09-21 20:13:13 -07:00
Adeeb Shihadeh 754af893e9 modeld: remove extra cloudlog.bind, manager does this 2023-09-21 20:06:46 -07:00
Jiyong Youn d62a1135af HKG: Add FW versions for Kia K5 Hybrid 2022 (#29988)
* HKG: Fingerprint for Kia K5 HEV 2022

* update docs

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-09-21 19:04:53 -07:00
Shane Smiskol d47e8f53a5 bump pandaStates to 10Hz (#29889)
* bump pandaStates to 10Hz

* run thermald at 2 Hz

* use service list for freq

* even better

* fix import

* use DT_TRML

* revert service list

* bump cereal

* no inter

* not sure why 5hz before

* revert

* revert peripheral

* poll on peripheralState

after pandaStates

* Revert "poll on peripheralState"

This reverts commit 5eecb83e070dd51b550a47f3e0e7a1600b8da4e4.

* revert this

* bump

* cmt

* fix

* bump to master
2023-09-21 18:35:14 -07:00
Shane Smiskol 7f073483bb services: capitalize constant service list (#30005)
* rename

* bump

* Apply suggestions from code review
2023-09-21 18:25:15 -07:00
Shane Smiskol 37422d0437 pre-commit: use non-deprecated lock file check command (#30003)
Update .pre-commit-config.yaml
2023-09-21 17:41:44 -07:00
Shane Smiskol fb8f7ba847 hypothesis: fix too slow health check (#30001)
* update hypothesis

* change less
2023-09-21 17:40:14 -07:00
Harald Schäfer 3799fe46b3 Optimus Prime Model 🤖 (#29752)
* b449f295-7e40-4f97-96a6-d858815955e5/700

* make it compile b449f295-7e40-4f97-96a6-d858815955e5/700

* simpler - b449f295-7e40-4f97-96a6-d858815955e5/700

* feature_len changed

* 0a833ab4-9fc7-4e51-a686-9bce3eafcb91/700

* Revert "0a833ab4-9fc7-4e51-a686-9bce3eafcb91/700"

This reverts commit 41708b88447cfcf302b16f21f0caa69450bbd3df.

* 0a833ab4-9fc7-4e51-a686-9bce3eafcb91/700 again

* Update ref

* update ref

---------

Co-authored-by: Yassine <yassine.y10@gmail.com>
2023-09-21 13:51:12 -07:00
Justin Newberry 2132e2358d Simulator: improve carla experience (#29996)
* wip

* carla improvments

* reset that
2023-09-21 10:38:06 -07:00
Dean Lee 494228e0e1 proclogd: fix test failures (#29971) 2023-09-21 10:25:35 -07:00
Justin Newberry 0857f4bb85 Simulator: add reset hotkey (#29995)
add sim reset
2023-09-20 17:28:41 -07:00
Justin Newberry f69a45faba Tests: power_monitoring disable nonblocking writes (#29994)
* better error logging

* fix power monitoring test

* revert that

* properly patch it
2023-09-20 16:51:46 -07:00
Justin Newberry 1f8ceb4ca1 Simulator: fix port issues in devcontainer (#29977)
* fix sim devcontainer

* use host.docker.internal instead

* devcontainer supports jsonc
2023-09-20 16:34:29 -07:00
Terry Huang feeb827369 Chinese translations update (#29993) 2023-09-20 13:58:37 -07:00
Justin Newberry 6f0affbcd2 CI: disable buildjet on PR's from forks (#29979)
* fix fork CI

* linter

* needed for docker build too

* slightly more clear

* you should have gone for the head
2023-09-20 13:15:23 -07:00
Justin Newberry e02519bb71 Simulator: add metadrive as optional simulator (#29935)
* Add metadrive sim

* use monotonic

* don't use cuda if it's not available

* Cleanup metadrive patches

* PR suggestions

* fix typo
2023-09-20 10:35:57 -07:00
Shane Smiskol 897566957d HKG: remove duplicate FW version 2023-09-20 03:00:05 -07:00
Shane Smiskol 16f0829404 Honda: add missing Ridgeline 2021 FW version (#29991)
add missing combo meter
2023-09-20 02:18:57 -07:00
kiwicolt 28e384e7a3 HKG: FW for ICE Kia Sportage 2022/23 Australia and New Zealand (#29990)
* Update values.py

* Update values.py

Added Kia Sportage 2022/23 for Australia and New Zealand.

* Update values.py

Added Kia Sportage for AUS and NZ
2023-09-20 02:07:09 -07:00
Jason Wen 6a4c4836b8 HKG: Add FW Versions for Kia Carnival 2024 (#29962) 2023-09-20 00:29:25 -07:00
Saber 9959a93a4a VW MQB: Add FW for 2019 Skoda Superb (#29955)
route name:0bbe367c98fa1538|2023-09-18--12-06-13--0
2023-09-20 00:25:24 -07:00
Shane Smiskol 8b962479dc pj: fix CAN bus layout for test 2023-09-20 00:19:34 -07:00
Adeeb Shihadeh 165157748c can debug pj layout 2023-09-19 21:25:20 -07:00
Adeeb Shihadeh cd75dcb03f Update Python packages and pre-commit hooks (#29974)
* Update Python packages and pre-commit hooks

* fix linter

---------

Co-authored-by: adeebshihadeh <adeebshihadeh@users.noreply.github.com>
2023-09-19 16:24:58 -07:00
Dean Lee 81d4595c19 params: log prefix on fail (#29973) 2023-09-19 16:22:33 -07:00
Adeeb Shihadeh a90a2cd656 bump version to 0.9.6 2023-09-19 16:18:39 -07:00
Justin Newberry 206fab9b4e Params: nogil at the end (#29983)
* nogil at the end

* Wrong pr

* Wrong pr
2023-09-19 15:07:54 -07:00
Shane Smiskol b50a769ae9 Revert "Toyota: use torque control for Japanese-made 2023 RAV4" (#29978)
Revert "Toyota: use torque control for Japanese-made 2023 RAV4 (#29896)"

This reverts commit 9dfd0579d4.
2023-09-19 14:29:54 -07:00
DevTekVE 32e514f421 mapd: Bump scipy to 1.11.1 (#209)
Update scipy version in custom_dep.py

This commit updates the version of scipy in custom_dep.py from 1.7.1 to 1.11.1. This change is done to allow installing from non prebilt branches as the former scipy requested is incompatible with python 3.11.

Co-authored-by: Jason Wen <haibin.wen3@gmail.com>
2023-09-19 17:06:51 -04:00
Justin Newberry bee40de703 Simulator: fix controlsd mismatch (#29976)
fix controls mismatch
2023-09-19 12:51:54 -07:00
Adeeb Shihadeh d0a31515a0 dev container: pull docker base image (#29968) 2023-09-18 19:45:12 -07:00
Adeeb Shihadeh 66e5531c25 add tmux and vim config to dev container (#29967) 2023-09-18 19:32:27 -07:00
Harald Schäfer 4b55d90af9 setup README: Native on 20.04, WSL on windows, otherwise devcontainer (#29928)
* Main README: Webcam needs work, don't mention

* Update README.md

* Link to VSCode guide

* Update README.md

* Fix formatting

* Update README.md

* little more

---------

Co-authored-by: Kacper Rączy <gfw.kra@gmail.com>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2023-09-18 19:01:32 -07:00
Justin Newberry 8aad9758cf Params: better error logging on constructor (#29954)
* ensure params path

* static anlysis

* revert that
2023-09-18 16:50:44 -07:00
Adeeb Shihadeh 747a6149b4 docs: don't show panda kit in shop (#29963) 2023-09-18 16:30:11 -07:00
Dean Lee 50cca99e45 cabana/chart: add contex menu (#29957) 2023-09-18 16:14:54 -07:00
Adeeb Shihadeh 4b7b234b9e CI: login to docker hub on BuildJet (#29961)
* CI: login to docker hub on BuildJet

* shell

* try quotes

* forward

* try this

* can't believe this is broken

* try

* fix process replay
2023-09-18 15:53:16 -07:00
Jason Wen 1f1d09d91b FCR: sync with upstream supported car platforms 2023-09-18 16:13:58 -04:00
Dean Lee a450eff89f cabana: fix QMenu leak (#29956)
fix qmenu leak
2023-09-18 11:25:35 -07:00
royjr da4d4cff7d ui: add missing Arabic translations & show in UI (#29881)
* Update languages.json

* update_translations.py

* update_translations.py + vanish

* fix unfinished

* use arabic language for name and move down based on similar

* goreless

* better

* Revert "better"

This reverts commit f19f6cb5ba31209bd2659a16953fcc20b3ce31e7.

* better again
2023-09-18 01:06:39 -07:00
Adeeb Shihadeh 844b2815d5 add ruff package 2023-09-17 15:44:34 -07:00
Dean Lee 6f9798745c cabana: add button to skip to the end of stream (#29953) 2023-09-17 15:20:21 -07:00
Alexandre Nobuharu Sato 8a0711a67d Duplicated #include in settings.cc (#29951) 2023-09-17 15:19:43 -07:00
Adeeb Shihadeh 079a51cfdf Revert "CI: login to dockerhub on aarch64 runners (#29915)"
This reverts commit c9ec7bc2a3.
2023-09-17 15:16:07 -07:00
Shane Smiskol 5cb4e83528 ruff: check mutable default values for data class attributes (#29945)
* Update pyproject.toml

* Update pyproject.toml
2023-09-16 15:11:09 -07:00
Narayan Babu 5831c05a11 Add Tiguan 2019 fingerprint (#29892)
* Added new ECU fingerprints

* Update values.py

formatting, syntax
2023-09-16 00:19:20 -07:00
venmer2 ce608d03b7 VW: missing FW for Tiguan 2019 (#29943)
* Update values.py for VW Tiguan 2019 SEL

Added all ECU Firmware Versions for VW Tiguan 2019 SEL model

* rm duplicates

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-09-15 23:24:30 -07:00
Quake4net f7d49ecca1 VW: fingerprint for Crafter MK2 (#29926)
* Update values.py

Added Crafter_MK2 fwVersions: Problem there where two engine ecu's with the same address, I added both into the fwVersion list.

* Update values.py

deleted the hyundai engine ecu fwVersion - Discord told me to ignore Hyundai parts so I deleted that one line again.
2023-09-15 23:11:20 -07:00
Kacper Rączy f0b8ecd14f macOS: add prompt about support in setup script (#29939)
* Add prompt about the state of macos support in mac_setup

* Change words

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2023-09-15 19:05:32 -07:00
Adeeb Shihadeh ccc8e099b6 sensord: test update for provisioning (#29942)
sensord: update for provisioning
2023-09-15 18:50:43 -07:00
Harald Schäfer ef50b4fdac Test modeld: 3s enough for modeld startup (#29936)
* Test modeld: 3s enough for modeld startup

* Always fails when you send frames before modeld is ready

* Wait for modeld to read
2023-09-15 14:59:46 -07:00
Justin Newberry ad7432b45d update metadrive (#29938) 2023-09-15 14:55:08 -07:00
Justin Newberry c6f1f36789 CI: reduce unittest timeout (#29937)
reduce timeout
2023-09-15 14:38:51 -07:00
next176 22e7aa3d98 Hyundai Ioniq 6 "EUR" fwdCamera fingerprint (#29930)
* Update values.py

Hyundai Ioniq 6 Premium AWD 2023 / EUR fingerprint

* Update routes.py

Ioniq6 EUR model

* Update selfdrive/car/tests/routes.py

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-09-15 14:05:44 -07:00
Justin Newberry 7f6718a7cb Simulator: cleanup in preparation for metadrive (#29903)
* sim bridge cleanup

* fix carla

* remove that exception

* pr cleanup

* update car in a thread

* more cleanup

* import sorting

* handle exits better
2023-09-15 14:02:09 -07:00
Kacper Rączy dd26a1faad devcontainer: expose host config, fix mac screen issues (#29932)
* export host config via .host/.env file. fix mac display issues

* append instead of replace for bashrc

* Log when mac display override happens

* Update xauthority path in json
2023-09-15 23:00:24 +02:00
Justin Newberry 09bef0a165 ignore temp translations (#29931) 2023-09-15 13:33:05 -07:00
Justin Newberry 7e54882458 test_locationd: don't redownload logs (#29929)
don't redownload logs
2023-09-15 13:11:39 -07:00
Adeeb Shihadeh e0edff65d5 Update RELEASES.md 2023-09-15 12:57:45 -07:00
mitchellgoffpc 33c51c122b Added release notes for new driving model 2023-09-15 10:26:38 -07:00
Dean Lee 6a72d53296 cabana/chart: fix value overflow (#29924)
fix value overflow
2023-09-15 03:20:27 -07:00
Shane Smiskol 05db624884 GM: use new ignition signal (#29923)
bump panda
2023-09-15 02:55:30 -07:00
Shane Smiskol 7ceccaf6c3 bump opendbc (#29922)
* change signals

* bump opendbc

* bump

* bump
2023-09-15 00:30:49 -07:00
Dean Lee c4df40a04a cabana: support ECU node names (#29897)
* support display&edit node name

* cleanup

* set validator for Node name

* modify validator to support multiple receivers

* set default to XXX in updateMsg

* add DEFAULT_NODE_NAME

* Update tools/cabana/commands.h

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-09-15 00:27:44 -07:00
Shane Smiskol 1410a1150c test_models: check controlsd events (#29907)
* test_moedls: check controlsd events

* clean up

* sort

* controlsd modifies CP

* fix

* can use any segment now

* final fix

* use constant
2023-09-14 20:20:49 -07:00
Adeeb Shihadeh 59c7a1d5d4 bump panda (#29917) 2023-09-14 19:05:17 -07:00
Kacper Rączy c9ec7bc2a3 CI: login to dockerhub on aarch64 runners (#29915)
* DOCKER_HUB_LOGIN command

* Add docker creds

* checkout runner name

* test again

* Use runner.name to distinguish between buildjet and GH runners
2023-09-14 17:08:49 -07:00
Shane Smiskol 9dfd0579d4 Toyota: use torque control for Japanese-made 2023 RAV4 (#29896)
* use torque for 2023 RAV4s that allow it

* FW

* better cmt

* better

* better values comment

* switch

* add torque params

* simpler

* better to use steerControlType

* ???

* fix condition

* adjust params

* pid is only for old cars

* add comment

* move comment up

* one if

fix

* invert

* better comment

* better here

* for

* add torque hybrid test route

* fix condition

* this might be simpler

* back to one if

fix

* better name

* other way

* this reads so much better

* last change

* better

* did i break ci?
2023-09-14 14:48:12 -07:00
YassineYousfi 880157f5a6 framereader: add cache_dir argument (#29904)
* framereader: add cache_dir argument

* make it an env var
2023-09-14 14:36:32 -07:00
Adeeb Shihadeh 7ef8898624 don't run test twice 2023-09-14 14:08:24 -07:00
Vivek Aithal e9edf1300a locationd: Unit tests for different scenarios (#29908)
* add different scenarios for locationd

* add locationd scenario tests to unit tests
2023-09-14 13:59:21 -07:00
Justin Newberry 6666413626 test_replay: speedup by preventing multiple downloads (#29901)
* Demo route fixture

* fix tests

* demo route download

* remove iostream
2023-09-13 19:19:06 -07:00
Dean Lee 82452ec66b cabana: use QStaticText to boost rending performance (#29900)
use QStaticText to boost rending performance
2023-09-13 19:00:00 -07:00
Vivek Aithal 01011c6c1d liblocationd: No longer used (#29909)
remove liblocationd
2023-09-13 18:59:32 -07:00
Justin Newberry a95c896b5f Simulator: launch simulator from any directory (#29910)
launch sim from any directory
2023-09-13 18:47:39 -07:00
Jason Wen 0d3cc2ae04 HKG: Car Port for Kia K8 Hybrid 2023 (HDA2) (#29899)
* HKG: Car Port for Kia K8 2023 (HDA2)

* Fix release docs

* add test route

* engaged segment

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-09-13 15:20:03 -07:00
Kacper Rączy fb804c9529 scons: delete SHARED flag (#29906)
Delete SHARED
2023-09-13 14:39:06 -07:00
Dean Lee 0bd9df3193 cabana: bug fixes (#29902)
* fix freq

* fix chart legend alignment issue
2023-09-13 12:52:56 -07:00
Dean Lee 34f5cad4e7 cabana/chart: use different colors to distinguish similar signals (#29890)
* Use different colors to distinguish similar signals

* check hueF value

* lighter
2023-09-13 03:03:16 -07:00
Jason Wen 748eb4a7c7 Hyundai: Car Port for Azera 6th Generation (#29876)
* Hyundai: Car Port for Azera 2022

* harness k

* not crc8

* use gen

* add test route

* Middle East only

* Revert "Middle East only"

This reverts commit 1abe795ad00d10344761e99f415a1cfc14f4c163.

* rename to 6th gen

* sorting

* has a little less torque

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-09-13 02:22:04 -07:00
Dean Lee 587f6ce0dc cabana: mark the undo stack as clean after save as (#29898)
Marks the undo stack as clean after save as
2023-09-13 01:14:12 -07:00
Dean Lee d9f107a2c9 cabana: improve precision of timeline (#29872) 2023-09-12 19:49:59 -07:00
Dean Lee f63dc51284 cabana: display warning if failed to write settings (#29873)
* display warning if failed to write_settings

* use Settings::filePath()
2023-09-12 13:13:59 -07:00
Adeeb Shihadeh ac2d052512 Update Python packages and pre-commit hooks (#29891)
Co-authored-by: adeebshihadeh <adeebshihadeh@users.noreply.github.com>
2023-09-12 13:12:55 -07:00
Varun Nair 9596a3c940 Updating the readme.md to make it easier to follow (#29820)
* upadting the readme.md to make it easier to follow

* addressing pr comments

* addressing the pr

* Update README.md

* bold

---------

Co-authored-by: Harald Schäfer <harald.the.engineer@gmail.com>
2023-09-12 11:38:29 -07:00
Greg Hogan 140a4ba558 importing auth_config.py should not have side effects (#29893)
import should not create directory
2023-09-12 18:00:18 +00:00
Erich Moraga 9b959dc86e VW MQB: Add missing FW versions for 2018 Skoda Superb (#29792)
VW MQB: Add SRS, transmission, & engine ECU versions for 2018 Skoda Superb

`@Gottmoz#6511` 2018 Skoda Superb  DongleID/route 54ada937747ef8ca|2023-09-06--06-40-46
2023-09-12 01:44:59 -07:00
Shane Smiskol 279377ec0b Hyundai CAN FD: disallow Manual Speed Limit Assist for EVs (#29888)
* bump opendbc

* block MSLA

* EV only

* Update selfdrive/car/hyundai/carstate.py

* Update selfdrive/car/hyundai/carstate.py

* Update selfdrive/car/hyundai/carstate.py

* Update selfdrive/car/hyundai/carstate.py
2023-09-12 01:34:33 -07:00
Shane Smiskol 3d60e8a2a0 Hyundai CAN: log nonAdaptive cruise state (#29880)
* log nonAdaptive

* bump opendbc

* test labeler

* test labeler 2

* revert
2023-09-12 00:09:09 -07:00
Justin Newberry a87d62ffa6 CI: fix setup retry sleep time (#29877) 2023-09-11 23:08:04 -07:00
Justin Newberry f9a60072f7 CI: never remove existing labels (#29885) 2023-09-11 23:04:53 -07:00
Dean Lee 11d157369b cabana/chart: fix rubber band precision issue (#29887)
fix rubber band precision issue
2023-09-11 22:56:40 -07:00
Shane Smiskol d0c922ce77 bump opendbc (#29884) 2023-09-11 20:58:30 -07:00
Kacper Rączy 57f0c3b8d5 macos: link qt5 during setup (#29879)
* link qt5 or prompt user to unlink existing qt installation if needed

* change condition

* version detection fixes

* fix wording
2023-09-11 17:00:08 -07:00
Vivek Aithal 00d1c682b0 Alerts: More understandable locationd, paramsd alerts (#29831)
* add locationd paramsd alerts

* remove more additions, just renames

* update refs

* Update selfdrive/controls/lib/events.py

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>

* Update selfdrive/controls/lib/events.py

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>

* resolve comemnts

* update cereal

* update refs

* remove nosensor in new alerts

* bump cereal

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2023-09-11 16:28:42 -07:00
freddiebd 30084bb1be VW MQB: Add FW for 2019 Golf R Estate (#29843) 2023-09-11 14:11:32 -07:00
Adeeb Shihadeh 2c1dfc2f34 use pytest for cpp tests (#29833)
* add pytest-cpp package (#29828)

* add pytest-cpp package

* disable for now

* use in ci

* use pytest cpp

* use my branch

* add missing tests

* that doesn't make sense

* it was merged upstream

* replace TEST_RLOG_URL with a publicly accessible url

* PR Cleanup

* assert instead

* update poetry lock

* add comment about  pytest-cpp

---------

Co-authored-by: Justin Newberry <jnewberry0502@gmail.com>
Co-authored-by: Justin Newberry <justin@comma.ai>
Co-authored-by: deanlee <deanlee3@gmail.com>
2023-09-11 14:01:50 -07:00
Dean Lee 5e1b5b36e4 cabana: use applicationPath for settings (#29875) 2023-09-11 13:18:40 -07:00
Angus Gratton 43210ca0e2 replay: Include cstdarg from util (#29871)
Fix compilation errors "use of undeclared identifier" for va_start & va_end.
2023-09-11 08:01:07 -07:00
Jason Wen 253d8ccb85 Hyundai longitudinal: enable for KONA_EV (#29779)
* Hyundai longitudinal: enable for `KONA_EV`

* add test route

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-09-10 20:48:41 -07:00
Shane Smiskol d7f8a489a3 bump panda (#29838)
* bump panda

* bump to master
2023-09-10 20:34:48 -07:00
Jason Wen 72d383262d HKG: Add FW Versions for Kia Carnival 2024 (#29840) 2023-09-10 20:33:02 -07:00
Jason Wen 29f32bc331 Fix upstream conflicts 2023-09-10 22:05:10 -04:00
Adeeb Shihadeh d036148550 jenkins speedup (#29869)
* jenkins speedup

* cleanup
2023-09-10 16:47:07 -07:00
Lee Jong Mun 238f9d65db cleanup remnants of LQR and INDI tuning (#29860)
* not use 'indi' cleanup

* bump cereal

* rm more

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2023-09-10 16:30:13 -07:00
royjr ece433f18e macOS: install gcc@13 to match panda requirements (#29868) 2023-09-10 16:26:27 -07:00
Dean Lee ef4c963c60 cabana: add comparision operator for CanEvent (#29864) 2023-09-10 16:09:22 -07:00
Adeeb Shihadeh a411af4f02 jenkins scripted pipeline (#29865)
* scripted

* exclude branches

* try that

* fix credentials

* fix

* tag with commit
2023-09-09 21:30:21 -07:00
Shane Smiskol 06233ca331 Toyota: get platform codes & docs (#29853)
* add get_platform_codes function

* add print_platform_codes.py

* add test

* not optional

* constant

* remove optional

* more
2023-09-09 19:48:44 -07:00
Dean Lee 95ae87659d test_util.cc: do not compare file contents in REQUIRE (#29861) 2023-09-09 08:47:52 -07:00
Justin Newberry 50b954d595 CI: fix pr labeler permissions (#29862)
* fix pr labeler

* fix that
2023-09-09 01:02:49 -07:00
Justin Newberry aa52cf3e81 CI: auto label PR's (#29842)
* auto label

* on pull request

* checkout

* yaml not yml

* recursive here too

* start with just car stuff and CI

* require all

* no fps

* add translations and fix CI
2023-09-08 17:24:19 -07:00
Kacper Rączy c417669cbd docker: fix cl tag (#29858)
unset TARGET_ARCHITECTURE before running build
2023-09-08 17:20:03 -07:00
Justin Newberry d3e5f66fc1 CI: fix aarch64 cache (#29857)
was not passed in
2023-09-08 17:13:18 -07:00
Mitchell Goff 9cc00c2101 Converted onnx runner to python (#29856) 2023-09-08 16:45:38 -07:00
Mitchell Goff 2d69f3d63e Update model input names to match onnx inputs (#29855)
Updated model input names to match onnx inputs
2023-09-08 16:06:16 -07:00
Shane Smiskol c61479b1ae Hyundai: add platform code fuzzy FW test (#29847)
add test to assert no crashing
2023-09-08 15:15:22 -07:00
Kacper Rączy b09ec6bb5b docker: fix multiarch tag push (#29850)
Fix multiarch merge script
2023-09-08 15:03:40 -07:00
Justin Newberry 0adc2f20c2 Prefix: cleanup more folders (#29848)
cleanup downloads folders
2023-09-08 14:54:15 -07:00
Kacper Rączy 1344a93a35 docker: multiarch images (amd64/aarch64) (#29691)
* arch specific tags

* merge multiarch script

* arm64 build and merge jobs

* update tag script

* casual ci test

* change image to 2204

* docker -v test

* arch specific naming

* Remove test_buildjet

* build -arch images only when CURRENT_ARCH_BUILD is set

* support new tags in tag_multiarch

* Toggle CURRENT_ARCH_BUILD on in ci

* Docker common

* Fix condition

* Fix path to docker_common

* Add more stuff to common

* Add build_arm job

* composite job for building

* Run checkout before build composite

* add shell arg

* move timeout to selfdrive_tests

* TARGET ARCHITECTURE var

* Support TARGET_ARCHITECTURE in workflow

* Rewrite to Single build job with matrix

* Remove shebang from docker_common

* Attempt for fix build matrix

* Remove setup arch

* build matrix for docker push

* Use 2vcpu for arm build

* 2vcpu for docker_push too

* temporarly unlock docker_push

* Remove requirement for target arch when pushing

* Unset target architecture in docker_push cl

* fix sha tags

* Rename action to compile-openpilot

* move push_image line to tag_multiarch step

* arch suffix for scons cache

* cache_key_prefix for setup-with-retry

* Re-disable docker_push on non-master

* Add newlines
2023-09-08 14:46:39 -07:00
Adeeb Shihadeh fb1b1f15aa mock car cleanup (#29835)
* mock car cleanup

* fix
2023-09-08 14:03:14 -07:00
Adeeb Shihadeh 947abbcba0 fixup power draw test output (#29844)
* fixup power draw test

* no pytest
2023-09-08 13:01:04 -07:00
Justin Newberry 110cfef1c2 Ruff: disallow non-openpilot imports (#29841) 2023-09-08 10:43:02 -07:00
Adeeb Shihadeh c96fe132e8 CI: increase model replay timeout 2023-09-08 10:41:54 -07:00
Jason Wen d9ce8ab716 Hyundai: Add FW Versions for Kona Electric 2023 (#29805)
* Hyundai: Add FW Versions for Kona Electric 2023

* Update selfdrive/car/hyundai/values.py

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-09-08 00:39:48 -07:00
Shane Smiskol 3a7a42cf5b Hyundai: add comment about date codes in ABS FW 2023-09-08 00:34:27 -07:00
Shane Smiskol aee6629690 bump panda (#29837) 2023-09-08 00:13:40 -07:00
Dean Lee e9c1cf3b5a cabana/Sconscript: add back dependency on #opendbc (#29832)
add dep on #opendbc
2023-09-07 23:59:02 -07:00
Dean Lee 7816edda57 common/params: not copyable (#29834) 2023-09-07 21:44:58 -07:00
Adeeb Shihadeh 0d042624ae Revert "add pytest-cpp package (#29828)"
This reverts commit 773d0944d8.
2023-09-07 20:40:25 -07:00
Mitchell Goff 503fa121ee Rewrite dmonitoringmodeld in python (#29740)
* Added dmonitoringmodeld.py

* Removed dmonitoringmodeld.cc

* Use ModelRunner helpers from runners/__init__.py

* Fixed DriverStateResult field ordering

* Some bug fixes

* Set calib input

* Look ma, no loop!

* Bump dmonitoringmodeld cpu usage in test_onroad

* Fixed memory leak caused by np.ctypes.data_as

* Formatting fixes

* chmod +x

* remove USE_ONNX_MODEL

* Realtime priority 1, formatting fixes
2023-09-07 19:46:43 -07:00
Adeeb Shihadeh 773d0944d8 add pytest-cpp package (#29828)
* add pytest-cpp package

* disable for now
2023-09-07 19:42:30 -07:00
Adeeb Shihadeh 4111ac36b2 ubloxd: remove unused file (#29829) 2023-09-07 19:29:34 -07:00
Shane Smiskol b822a57ed6 Hyundai: remove bad Kona EV 2022 query responses 2023-09-07 19:24:19 -07:00
Justin Newberry b0a71d4553 Pytest: enforce a default timeout (#29793)
* pytest: enforce default timeout

* disable that for now

* 30 second timeout on tests
2023-09-07 17:53:51 -07:00
Adeeb Shihadeh f197decbc9 fix RateKeeper test 2023-09-07 16:47:33 -07:00
Justin Newberry dde225221e CI: run unittests in parallel with xdist (#29756)
* parallel tests

* review suggesions

* add to pyproject

* add a bit more buffer on that

* fix rare athena issue

* remove from pypoetry
2023-09-07 16:29:36 -07:00
Justin Newberry fb06b98667 Subaru: remove 2020+ temporary steering faults (#29116)
* subaru steer faults

* it takes a bool now

* Update selfdrive/car/subaru/carcontroller.py

Co-authored-by: Shane Smiskol <shane@smiskol.com>

* that was removed

* should be abs

* bump panda

* bump panda

* subaru faults

* add fixme

Co-authored-by: Shane Smiskol <shane@smiskol.com>

* review suggestions

* still want zero steer when lat not active

* bump submodules

* move it under the non-preglobal section

* better comment for steer limited

Co-authored-by: Shane Smiskol <shane@smiskol.com>

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-09-07 15:28:46 -07:00
Mitchell Goff 0c0af682a1 Rewrite navmodeld in python (#29579)
* Added navmodeld.py

* Deleted navmodeld.cc

* Write SConscript config flags to config.py

* Remove deleted files from release/files_common

* Some more bug fixes

* Added config.py to gitignore

* Get rid of config.py

* Use set_realtime_priority

* A tiny bit more cleanup

* set realtime priority 1

* Use ModelRunner helper class from runners/__init__.py

* Formatting fixes

* mama mia that's a SPICY memory leak
2023-09-07 14:39:37 -07:00
Justin Newberry 73eda51a11 System: use paths for download folders too (#29818)
* use paths for download folders too

* trailing slash

* reset that
2023-09-07 12:49:03 -07:00
Justin Newberry bfe990b112 System: cleanup paths to use a common class (#29816)
* use OP prefix for logmessage

* cleanup paths too

* cleanup the paths too

* add hw.py to release

* fix those issues

* fix unittests

* fix unittests

* fix unittests

* do swaglog_ipc properly across all the files

* fix that

* fix swaglog in c++

* review suggestions
2023-09-07 11:32:47 -07:00
Dean Lee 74daab120d cabana: speed up exit (#29813) 2023-09-07 11:30:53 -07:00
Kacper Rączy 0267e0500c radard: expose radarTrackId for radar leads (#29809)
* Add radarState track identifier for debugging purposes

* update process replay ref
2023-09-07 11:24:54 -07:00
Dean Lee 0f942a228d cabana: regenerate car_fingerprint_to_dbc when DBC files change (#29815) 2023-09-07 11:22:03 -07:00
Justin Newberry 8fd4e1a7a7 bump panda (#29814) 2023-09-07 10:22:07 -07:00
Vivek Aithal dbada885ac locationd: Add camera-IMU cross-checks (#29727)
* camera-gyro cross checks, but one way

* increase factor to account for gyro noise (potholes, bad roads etc

* increase factor to reduce FP with device taps, bad roads, etc

* factor to 30

* add inputsok to sensoir data invalid alert

* bugfix

* move the sensors check

* add localizer catchall alert

* update refcommit

* remove permanent alert

* revert sensorDataInvalid alert change, split into new PR
2023-09-06 21:01:01 -07:00
Jason Wen ebfe40b76a Merge remote-tracking branch 'commaai/openpilot/master'
# Conflicts:
#	.github/workflows/selfdrive_tests.yaml
#	.pre-commit-config.yaml
#	cereal
#	opendbc
#	panda
2023-09-06 23:58:35 -04:00
Justin Newberry 338288df6e Subaru: don't copy eyesight counters, calculate manually (#29533)
* subaru manual counters

* update ref

* that isn't used

* review suggestions
2023-09-06 16:08:59 -07:00
Shane Smiskol 96fd66e4e2 navd: locationd is only trusted source (#29803)
* finish revert for https://github.com/commaai/openpilot/pull/27579

* comment out

* clean up
2023-09-06 15:47:21 -07:00
Adeeb Shihadeh ec479322d3 Revert "params: safe and efficient async writing parameters (#25912)"
This reverts commit 0d797f4e8b.
2023-09-06 13:44:20 -07:00
Dean Lee a1306114bc ui/CameraView: fix divide by zero issue (#29770) 2023-09-06 13:25:40 -07:00
Kacper Rączy 2487db14b0 disable metadrive on linux/aarch64 (#29802) 2023-09-06 21:29:36 +02:00
Justin Newberry 917f71d446 CI: retry setup on failure (#29785)
* try a setup action

* should be uses

* fix that formatting

* try conclusion

* continue on error

* try without hyphens

* only when failure

* make it optional

* continue on error

* those don't fail anymore

* what about 3 failures

* remove stuff for debugging

* cleanup

* review suggestions

* change that too

* fix pj
2023-09-06 11:11:15 -07:00
Justin Newberry d3c5ac5545 Precommit: do a sanity check on github workflows (#29790)
* sanity check on github actions

* That one doesn’t apply to us
2023-09-06 10:40:52 -07:00
Dean Lee 7f23e69cb1 cabana: fix stuck on exit (#29796)
fix ctrl+c can't exit when stream dialog displayed on startup
2023-09-06 10:34:15 -07:00
Dean Lee bbf133a2e5 replay: fix concurrency issues (#29797)
fix concurrency issues
2023-09-06 10:34:01 -07:00
Dean Lee 60593660e6 cabana: add empty check before insert events (#29798) 2023-09-06 10:24:58 -07:00
Igor Biletksyy 001df43194 bump panda 2023-09-06 10:00:36 -07:00
Justin Newberry ec945dc53d Subaru: add GEN1 longitudinal test route (#29753)
* add long route

* fix duplicates

* need to bump that slightly up

* commented for now

Co-authored-by: Shane Smiskol <shane@smiskol.com>

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-09-06 09:26:16 -07:00
Dean Lee 0d797f4e8b params: safe and efficient async writing parameters (#25912)
* Safe and efficient asynchronous writing parameters

* call putNonBlocking in locationd

* remove space

* ->AsyncWriter

* remove semicolon

* use member function

* asyc write multiple times

* add test case for AsyncWriter

* merge master

* add missing include

* public

* cleanup

* create once

* cleanup

* update that

* explicit waiting

* improve test case

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2023-09-06 08:50:28 -07:00
Dean Lee 0afcf12368 cabana: fix crash when no can events in the log (#29795)
fix crash when no events
2023-09-06 02:36:07 -07:00
Eric Day 89d6bc6c7b Toyota: detect TSS-P CAN filter device as smartDsu to enable long (#28387)
* detect tss-p canfilter device as smartDsu to enable long

* Add canfilter test case

* add comment, behind alpha long

* add doc

* safe

* update check

* cmt

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-09-06 01:36:16 -07:00
Shane Smiskol 2c87cd24ce PlotJuggler: add control gains to longitudinal layout (#29794)
* add longitudinal control gains to long layout

* needless changes

* needless changes

* needless changes
2023-09-06 01:33:52 -07:00
Jason Wen d7d751160d Nissan Altima: specify panda flag for alternate EPS bus (#29783)
* Nissan Altima: Specify panda flag for alt bus safety config

* bump

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-09-06 00:48:17 -07:00
Jason Wen a552fafd88 Hyundai longitudinal: enable for IONIQ_PHEV (#29777)
* Hyundai longitudinal: enable for `IONIQ_PHEV`

* add test route
2023-09-06 00:05:44 -07:00
DevTekVE 77f050bb4c Hyundai: Ioniq 2020 PHEV EUR fingerprint (#29775) 2023-09-06 00:04:31 -07:00
Jason Wen e0cc25c3e2 Migrate otisserv to pub (#205)
Migrate otisserv to pub
2023-09-06 01:06:02 -04:00
Jason Wen 7dbbc001eb Upstream merge fixes 2023-09-06 01:05:01 -04:00
Shane Smiskol 5d1550de87 test_models: detect when OBD multiplexing/fingerprinting (#29759)
* wait to leave elm mode before checking relay malfunction

* clean up

* clean up

* pycharm is best

* clean up

* more

* use pandaStatesDEPRECATED

* fix

* use constant

* only radar

* cmt

* set inline

* comment and re-arrange

* enable for relay malfunc check

* down here

* Update selfdrive/car/tests/test_models.py

* rm

* don't affect other tests

* up here

* one line

* update cmt

* no tolerance

* Revert "no tolerance"

This reverts commit 41b1c7e8beda87a878c3bb1f37ec96b256965966.

* comment is real solution

---------

Co-authored-by: Kacper Rączy <gfw.kra@gmail.com>
2023-09-05 21:22:36 -07:00
Adeeb Shihadeh 7b6afbc162 pytest: use a clean environment for all tests (#29788)
* pytest: use a clean environment for all tests

* rm that

* fix pj

* put build back

* fix params

* fix that

* handle no key

* that was removed

---------

Co-authored-by: Justin Newberry <justin@comma.ai>
2023-09-05 18:52:40 -07:00
Justin Newberry 4e69937d0d Precommit: ensure executable bit is set (#29784)
* precommit ensure executable

* exclude tinygrad

* bump submodules

* exclude tinygrad globally
2023-09-05 16:33:26 -07:00
Shane Smiskol 22487db9c8 bump panda (#29786)
bump
2023-09-05 16:01:28 -07:00
Adeeb Shihadeh 0908be80bd sensord: test updates for provisioning (#29768)
* sensord: test updates for provisioning

* fix

---------

Co-authored-by: Comma Device <device@comma.ai>
2023-09-05 15:32:57 -07:00
Jason Wen a0b49d5422 Hyundai longitudinal: enable for IONIQ (#29778)
* Hyundai longitudinal: enable for `IONIQ`

* add test route
2023-09-05 14:15:18 -07:00
Justin Newberry 16c99e3e7f Pytest: don't rerun cereal unittests (#29781)
pytest don't rerun cereal
2023-09-05 14:06:03 -07:00
Justin Newberry dcea56bcf3 Tests: speedup locationd (#29776)
* speedup locationd

* bump cereal
2023-09-05 12:45:18 -07:00
Adeeb Shihadeh e0eb4d726c Update Python packages and pre-commit hooks (#29774)
Co-authored-by: adeebshihadeh <adeebshihadeh@users.noreply.github.com>
2023-09-05 20:02:21 +01:00
ZwX1616 a08cdfdda7 ui: brighten cameraview (#29744)
* test

* test2

* Revert "test2"

This reverts commit 22e38f82ae81f625f00179413f4c5f869a6de23e.

* Revert "test"

This reverts commit 717490c1bcddcd5339aed85d4716a58495a5c52c.

* looks fine

* mid

* description

---------

Co-authored-by: Comma Device <device@comma.ai>
2023-09-05 10:59:58 -07:00
Jason Wen 27c485c621 bump to 0.9.5.1 2023-09-05 12:18:24 -04:00
Jason Wen 94e34f2539 bump panda 2023-09-05 12:17:10 -04:00
Jason Wen 7f8f9e2613 sunnypilot: fix duplicate ordinal 2023-09-05 11:55:45 -04:00
Jason Wen 9bc73b85ff Merge remote-tracking branch 'commaai/openpilot/master'
# Conflicts:
#	.github/workflows/selfdrive_tests.yaml
#	.pre-commit-config.yaml
#	README.md
#	cereal
#	common/version.h
#	opendbc
#	panda
#	selfdrive/car/chrysler/carcontroller.py
#	selfdrive/car/chrysler/carstate.py
#	selfdrive/car/chrysler/interface.py
#	selfdrive/car/gm/carstate.py
#	selfdrive/car/honda/carstate.py
#	selfdrive/car/hyundai/carcontroller.py
#	selfdrive/car/hyundai/carstate.py
#	selfdrive/car/hyundai/hyundaican.py
#	selfdrive/car/hyundai/interface.py
#	selfdrive/car/hyundai/radar_interface.py
#	selfdrive/car/hyundai/values.py
#	selfdrive/car/interfaces.py
#	selfdrive/car/subaru/carcontroller.py
#	selfdrive/car/subaru/carstate.py
#	selfdrive/car/subaru/interface.py
#	selfdrive/car/subaru/subarucan.py
#	selfdrive/car/torque_data/override.yaml
#	selfdrive/car/toyota/carcontroller.py
#	selfdrive/car/toyota/carstate.py
#	selfdrive/car/toyota/interface.py
#	selfdrive/car/toyota/toyotacan.py
#	selfdrive/car/volkswagen/carstate.py
#	selfdrive/controls/lib/desire_helper.py
#	selfdrive/controls/lib/longitudinal_planner.py
#	selfdrive/monitoring/dmonitoringd.py
#	selfdrive/thermald/power_monitoring.py
#	system/loggerd/uploader.py
2023-09-05 11:50:47 -04:00
sgtcurry ed7a0bf0f9 2023 Ford Maverick Ecoboost engine firmware (#29762)
* Update values.py

23 maverick ecoboost engine fw

* Update values.py

* Update values.py

* sorted

---------

Co-authored-by: Justin Newberry <justin@comma.ai>
2023-09-04 12:05:57 -07:00
Justin Newberry ca435d3447 CI: use pytest for unittesting (#29709)
* switch to pytest

* static analysis

* fix the helpers

* static analysis

* remove that

* more parallel test

* cleanup

* static analysis

* durations min and tolerance

* reduce those iterations

* sleep time could be decreased too

* in case it's negative

* try using caching

* remove parallelization for first PR

* PR Cleanup

* reduce diff

* fix that

* bump panda
2023-09-04 11:54:35 -07:00
Harald Schäfer 75ead2c389 Soundd: Give each alert a volume (#29767)
* Give each alert a volume

* Update sound.h
2023-09-04 11:15:06 -07:00
Justin Newberry f4f92f1a2f Subaru: impreza 22 fingerprint (#29765)
add fingerprint
2023-09-03 13:12:31 -07:00
Greg Hogan de97d32fe0 gnss raw measurements through nmea port (#29745)
* gnss measurements through nmea port

* document values

* flags always zero

* fix linter errors

* fix linter errors
2023-09-02 16:58:34 -07:00
Arun Kapil e51f50b034 HKG: Add fingerprint for US Kia Sorento Hybrid 2023 (#29757)
Added fwdCamera ECU fingerprint for US model of 2023 Kia Sorento HEV 4th Gen
2023-09-01 21:06:45 -07:00
Adeeb Shihadeh 9bef110ca7 comma three -> comma device 2023-09-01 17:06:31 -07:00
Justin Newberry a774809fdb Sim: fix openpilot directory (#29754)
fix simulator
2023-09-01 16:02:57 -07:00
haram-KONA f60ef530ca CAR docs: add video for Hyundai Kona Electric 2023 (KOR) HDA2 (#29749)
* CAR docs: add video for Hyundai Kona Electric 2023 (KOR) HDA2

CAR docs: add video for Hyundai Kona Electric 2023 (KOR) HDA2
update values.py

* Update CARS.md

* Update values.py

* Update values.py
2023-09-01 11:57:02 -07:00
Kacper Rączy 0bda43d71c encoderd: fix crash when filename is null (#29748)
Use publish_name for thread name and debugging messages
2023-09-01 11:51:59 -07:00
Shane Smiskol a18e97e954 Toyota: fix missing message check with radar disabled (#29747)
* add test route for radar-disabled toyota chr hybrid tss 2

* fix bug
2023-08-31 21:50:45 -07:00
Kacper Rączy 92a4c2f741 body: make mic optional (#29746)
Only request for media that is available
2023-08-31 20:07:56 -07:00
mitchellgoffpc 05993f50df Added cython bindings for commonmodel sigmoid 2023-08-31 19:40:53 -07:00
Adeeb Shihadeh 75081b2e54 don't rerun those here 2023-08-31 18:34:20 -07:00
Justin Newberry 4c039ab022 Tests: disable laika tests in CI (#29742)
skip laika
2023-08-31 17:17:07 -07:00
Justin Newberry b0144b129d bump panda (#29743)
bump it up don't you know
2023-08-31 16:47:19 -07:00
Adeeb Shihadeh 9719b22761 Update Python packages and pre-commit hooks (#29739)
* Update Python packages and pre-commit hooks

* fix linter

---------

Co-authored-by: adeebshihadeh <adeebshihadeh@users.noreply.github.com>
2023-08-31 15:00:13 -07:00
Adeeb Shihadeh afd35bf7ec CI: weekly poetry lock (#29738)
* CI: weekly poetry lock

* add that back

* title

* cleanup
2023-08-31 14:27:59 -07:00
Mitchell Goff d5a55136a1 Added ModelRunner helpers in modeld/runners/__init__.py (#29737)
* Added ModelRunner helper class

* import Runtime in __init__.py
2023-08-31 14:19:20 -07:00
Shane Smiskol 2dd7a6fc64 timezoned: set headers (#29725)
* timezoned: set headers

* Update system/timezoned.py

* this is useful

* newline
2023-08-31 14:11:51 -07:00
Adeeb Shihadeh 18fbc1c29a Update test_camerad.py 2023-08-31 14:09:52 -07:00
Justin Newberry 405d09714c Tests: expand temporary directory helpers for more directories (#29735)
* create helpers for testing

* document it

* fix other tests
2023-08-31 14:00:31 -07:00
mitchellgoffpc f91e955a86 Move Runtime into runmodel_pyx 2023-08-31 13:51:50 -07:00
mitchellgoffpc 857f747467 Remove unnecessary hardware check in modeld 2023-08-31 13:51:49 -07:00
Justin Newberry 4aff2621d3 Tests: parameterize following distance test (#29734)
* split

* parameterize it
2023-08-31 13:41:02 -07:00
Adeeb Shihadeh d344ed9be9 add metadrive sim package (#29736) 2023-08-31 13:38:30 -07:00
mitchellgoffpc 18526c58b6 Set ADSP_LIBRARY_PATH in snpemodel_pyx 2023-08-31 13:11:39 -07:00
mitchellgoffpc aebff37593 Set RPATH for snpemodel 2023-08-31 11:33:42 -07:00
fleetingbytes e7789173d6 Add skoda octavia 2016 fingerprint (#29729)
Co-authored-by: Cameron Clough <cameronjclough@gmail.com>
2023-08-31 13:01:37 +01:00
Cameron Clough 08903fb4e0 MapPanel: provide QObject::connect context (#29731) 2023-08-31 11:44:48 +01:00
Shane Smiskol 6a68944c63 map renderer: only log map states once fully loaded (#29722)
only log once fully loaded
2023-08-30 20:32:00 -07:00
Shane Smiskol f12a1c2584 car intrfaces: no test deadline (#29720)
set deadline to None
2023-08-30 15:30:37 -07:00
Mitchell Goff 88a36f4464 Cleaned up modeld SConscript (#29646) 2023-08-30 15:29:33 -07:00
Mitchell Goff 151ac4bf76 Combine update_calibration/get_warp_matrix (#29719) 2023-08-30 15:16:29 -07:00
Kacper Rączy d138a358eb scons: fix multithreaded builds (#29716)
* common_python export

* Single scons call

* transformations_python
2023-08-31 00:01:03 +02:00
Shane Smiskol d9fedaa0a4 Revert "ui/driverview: inherit from CameraWidget" (#29718)
Revert "ui/driverview: inherit from CameraWidget (#29661)"

This reverts commit 6c73a924fa.
2023-08-30 14:49:02 -07:00
Shane Smiskol c830ac0b06 Hyundai: update default Ioniq 6 torque params (#29715)
new ioniq 6 closer to other new can fds
2023-08-30 14:29:27 -07:00
Mitchell Goff 1eb60516cb Move update_calibration to modeld.py (#29688)
* Move update_calibration to modeld.py

* Updated ref commit
2023-08-30 14:12:52 -07:00
Justin Newberry 78a4bff4c0 Docker: split openpilot-base into two stages (#29714)
* wip

* wip

* split base image into ubutuntu and python dependencies

* uninstall poetry
2023-08-30 13:48:44 -07:00
Justin Newberry a5ef9febb9 Tests: loggerd reduce iterations (#29713)
* reduce those iterations

* sleep time could be decreased too

* in case it's negative
2023-08-30 13:36:55 -07:00
mitchellgoffpc 12d1020239 -DUSE_THNEED is dead 2023-08-30 12:58:31 -07:00
Adeeb Shihadeh 76392f5043 bump panda 2023-08-30 10:42:13 -07:00
Dean Lee 6c73a924fa ui/driverview: inherit from CameraWidget (#29661) 2023-08-30 16:41:58 +01:00
Cameron Clough 059cb0130d athenad: update typing 2023-08-30 12:05:30 +01:00
Jason Wen 7bc2667ab6 Hyundai: Car Port for Ioniq 6 2023 (HDA2) (#29486)
* Hyundai: Car Port for Ioniq 6 2023

* Update docs

* bump panda

* Attempt to block laneline information to suppress LFA

* Try 0x364

* Block 0x364|BYTE7

* Attempt to block LFA on 0x364

* Block all bus 2/6 messages

* Lowercase to match DBC

* Aight

* we don't use this

* Final test to block LFA

* No byte 7

* Fix

* Fix tx

* This platform does SCC from radar

* Generate CARS.md

* cleanup

* Fix

* Fix 2

* bump submodules

* add test route for HDA2

* Support non-HDA2 trims in future PR

* segment 6

* bump opendbc

* Update username

* Check for new LKAS addr instead

* Update comment

* sync with dbc

* Combine LFA suppress can sends

* Add new tx to unit test

* bump opendbc

* we'd need a new DBC for that

* update docs

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-08-30 01:10:28 -07:00
leZudiste c65027635c HKG: Add FW versions for EU Tucson Hybrid 2021 (#29655)
* Add Tucson Hybrid 2021 fingerprint

* Fix missing doc

* revert

---------

Co-authored-by: florian alles <florian.alles@csgroup.eu>
Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-08-30 00:23:41 -07:00
baldwalker 395be482a1 HKG: Add FW Versions for Kona EV 2022 (#29683)
* Update values.py

* shorter request already exists

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-08-30 00:16:50 -07:00
Jason Wen 030b47fd24 HKG: Add FW Versions for Kia Sorento ICE 2023 (#29707) 2023-08-30 00:13:05 -07:00
Justin Newberry f31b4ad25e Tests: remove sleep and prints from maneuver tests (#29711)
remove sleep and prints
2023-08-30 00:02:55 -07:00
Jason Wen fafca0e44d Hyundai: Car Port for Kona EV 2nd Generation (HDA2, 2023 Korean Ver.) (#28725)
* Hyundai: Car Port for Kona EV 2nd Generation (2023 Korean Ver.)

Co-authored-by: Shane Smiskol <shane@smiskol.com>

* gate with flag

* new blinker signals for 2nd Gen Kona

* add test route

* Update CARS.md

* bump opendbc

* match opendbc definition

* Attempt to block laneline information to suppress LFA

* Try 0x364

* Block 0x364|BYTE7

* Block all bus 2/6 messages

* Lowercase to match DBC

* Aight

* we don't use this

* Final test to block LFA

* No byte 7

* Fix

* Fix tx

* cleanup

* HDA2 support

* Update RELEASES.md

* bump opendbc

* from `liveTorqueParameters`

* add test route

* bump panda

* official spec

* Check for new LKAS addr instead

* Update comment

* sync with dbc

* Combine LFA suppress can sends

* bump opendbc

* Add new tx to unit test

* linter

* Consolidate

* rename and update torque params

* add note for blinker weirdness

* bump

* bump

* clean up block msg

* it uses LFA if long

* not used in multiple places

* bump panda

* correct name

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-08-30 00:02:19 -07:00
Adeeb Shihadeh 6333ff94e7 common/i2c: make thread safe (#29706)
Co-authored-by: Comma Device <device@comma.ai>
2023-08-29 18:34:30 -07:00
Justin Newberry d3befb2e04 CI: prepare for pytest by adding marker and avoiding duplicated tests (#29682)
prepare for pytest
2023-08-29 17:04:42 -07:00
Justin Newberry 7a4eaeaf9f bump submodules (#29705)
* bump submodules

* bump rednose

* fix dockerfiles
2023-08-29 17:02:38 -07:00
Kacper Rączy 39d2517d3d macOS: generate .pyenvrc during setup (#29698)
* Create .pyenvrc if it does not exist

* Replace source zshrc with pyenvrc

* Remove unnecessary variables if pyenv wasn't installed

* Add check fo PYENV_SHELL

* source instead of eval

* printf instead of echo

* leave previous pyenvrc path to source

* Add newline

* Change shebang

* Dont source the file after setup

* eval virtualenv-init too

* modify comment

* Just unset broken function on macos
2023-08-29 16:01:04 -07:00
Greg Hogan 5058f31908 rename GPIO pin with ublox in the name that is not ublox specific (#29702)
* rename UBLOX_PWR_EN to GNSS_PWR_EN

* add schematic label as comment
2023-08-29 22:24:37 +00:00
Justin Newberry 82ea2c5688 Devcontainer: add recommended extensions (#29703)
* add recommended extensions

* add cython and jupter
2023-08-29 15:05:17 -07:00
Mitchell Goff d998fd88a8 Added USE_THNEED environment variable and removed build flag (#29645) 2023-08-29 14:07:57 -07:00
Justin Newberry 5dc7028f91 Tests: logmessaged reduce global state (#29680)
* reduce global state

* use a decorator here too

* use that one

* use base imports

* ipchandler in setup

* move to common dir

* move to helpers

* wip

* fix the decorator
2023-08-29 13:36:26 -07:00
eFini 2d4f5ac8ea ui/map: fix icon naming (#29699) 2023-08-29 20:00:24 +01:00
Saber d37d179b5d VW MQB: Add FW for 2016 Skoda Superb (#29701) 2023-08-29 19:58:29 +01:00
Justin Newberry 5f0729791a Parser: assert no duplicate message checks (#29696)
* assert no duplicate checks

* bump

* remove duplicates

* are both messages present?

* guess we need this extra check

* this makes it more clear

* bump opendbc

* fix preglobal
2023-08-29 10:53:21 -07:00
Jason Wen 7fbb7254fa Carcontroller: consolidate can sends method imports (#29695)
* Carcontroller: consolidate can sends method imports

* fix

* ruff
2023-08-29 10:51:50 -07:00
Justin Newberry dd9b0231c6 Tests: test_caching reduce global state (#29681) 2023-08-29 10:06:32 -07:00
Shane Smiskol ddddc7a8cb Revert "IsoTpParallelQuery: extend timeout for every frame type" (#29693)
* Revert "IsoTpParallelQuery: extend timeout for every frame type (#29654)"

This reverts commit a160f1a624.

* bump

* bump to master

* figure out a clean way to exclude segments

* revert

* bump
2023-08-28 23:27:58 -07:00
Jason Wen 67177b2ca3 Hyundai CAN-FD HDA2: specify signals to suppress LFA (#29658)
* Hyundai CAN-FD HDA2: specify signals to suppress LFA

* bump opendbc

* Fix

* Update comment

* fix

* closer to original

* preserve behavior

* Revert "preserve behavior"

This reverts commit 6549c085ab6bdd093f7668e7df79cd85350bc028.

* preserve behavior

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-08-28 22:58:43 -07:00
Kacper Rączy 97865d751f radard: radar fault test (#29673)
* Radar fault test

* Remove i

* Add radar fault case for car interfaces

* Removed empty whitespace

* Fix typo
2023-08-28 22:34:47 -07:00
Kacper Rączy bb14ba4e5e process_replay: clean env vars after run (#29694)
Clean environ vars at the end of replay
2023-08-28 19:44:40 -07:00
Justin Newberry 3348cd3825 Subaru: cleanup and fix preglobal (#29690)
* cleanup and fix preglobal

* those are also duplicates
2023-08-28 19:37:04 -07:00
Shane Smiskol 3cc328163b FW query timing test: fix refs (#29692)
* fix refs

* don't round added values

* fix
2023-08-28 17:52:49 -07:00
Harald Schäfer 55b391509d Revert: Locationd: enable laikad (#29687)
* Revert: Locationd: enable laikad

* update ref
2023-08-28 16:27:11 -07:00
Jason Wen 5aed2e01e8 Hyundai: consolidate button messages creation (#29663)
* Hyundai: refactor button messages creation and consolidation

* one bool should be enough

* Use CLU11|0x4F1 to determine

* grammar pls

* action

* fix duplication

* move to bottom

* one area

* type

* Revert "one area"

This reverts commit c2b794f964b3df09a5ae9f35a3853e6cec69f93a.

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-08-28 15:23:02 -07:00
Shane Smiskol 21ffd807b6 Hyundai CAN FD: rename LKAS signal (#29685)
* bump

* now fix

* comment
2023-08-28 15:14:07 -07:00
Adeeb Shihadeh 17bd792eee pycurl is no longer just a dev dependency (#29684) 2023-08-28 14:49:59 -07:00
Dean Lee a49dfa2969 ui/networkmanager: add #pragma once (#29678)
#pragma once
2023-08-28 11:40:51 -07:00
Korben 4755a30e75 Update French translation (#29664)
* Update French translation - main_fr.ts

Hello

I noticed that some translations were sticking out a bit in the new interface, so I'm proposing an update to correct this. I've arranged for the translations that cause problems to have the same number of letters including spaces as the original sentence so that they fit in the UI.

@maxime-desroches if you can give me your feedback, that would be very kind. Thank you.

* Update selfdrive/ui/translations/main_fr.ts

Co-authored-by: Maxime Desroches <desroches.maxime@gmail.com>

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
Co-authored-by: Maxime Desroches <desroches.maxime@gmail.com>
2023-08-28 10:38:42 -07:00
Joshua Mack eafdcb89e4 Car docs: update alpha longitudinal name (#29670)
* Update Footnote 1

Updated Footnote 1 for new name for toggle "openpilot Longitudinal Control (Alpha)" as well as made it clearer on how to change to devel or master-ci branches, taken from comma.ai blog (https://blog.comma.ai/090release/#experimental-longitudinal-control).

* Add 3X

* Added to Docs_definitions

* just update name

* fix

* fix

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-08-28 10:30:15 -07:00
Adeeb Shihadeh 72e2e2c9ec pytest: strict config (#29676)
* pytest: strict config

* collection works

* fixes
2023-08-28 10:26:19 -07:00
Dean Lee c36774dfba ui: rename QDialogBase to DialogBase (#29675)
rename QDialogBase to DialogBase
2023-08-28 01:57:49 -07:00
Justin Newberry 5716dfc9b5 CI: fix sim/docs scons cache invalidation (#29639)
* fix sim and docs images

* fix that

* that's a weird issue

* exists should work fine

* as little diff as possible
2023-08-27 19:52:38 -07:00
Dean Lee 125bd2cd9e ui/network: move to selfdrive/ui/qt/network/ (#29656)
* move to ui/qt/network

* wifimanager->wifi_manager
2023-08-27 15:23:19 -07:00
vanillagorillaa 4005b6adde Docs: Toyota B harness connector (#29669) 2023-08-27 15:21:06 -07:00
Jason Wen 7f4b588495 Docs: Hyundai R Harness (#29662) 2023-08-27 10:58:18 -07:00
Dean Lee 3a46a853cb ui/driverview: use common SubMaster (#29660) 2023-08-27 10:57:31 -07:00
Dean Lee 4f915f4f1a cabana/MessageListModel: replace match |= with match = match || (#29667) 2023-08-27 17:56:49 +01:00
Justin Newberry ab05bff07d CI: fix proc replay download cache permissions (#29636)
chmod that
2023-08-27 09:45:16 -07:00
Cameron Clough 3d1a6f6146 ui/NavManager: parse location timestamp from API (#29665) 2023-08-27 16:18:42 +01:00
Dean Lee 12073c07af ui/MapSettings: sort destinations by recent activity (#29079) 2023-08-27 15:13:43 +01:00
Dean Lee 57ad4f02f8 cabana: use a monotonic buffer to allocate CanEvent (#29652)
* use a monotonic buffer to allocate CanEvent

* set the next buffer size to 6MB

* static

* cleanup

* use const iter

* rename to insert_pos
2023-08-26 08:42:50 -07:00
Dean Lee 0767a6dee5 AGNOS setup: multi-lang support (#25680)
* multilang

* update translations

* Specifies dependency

* load lang from json file

* update translations

* fix white border

* remove stretch

* update translations

* fix tr

* no default language

* update translations

* rm main_en.qm

* cleanup

* cleanup

* add language files

* remove type=unfinish

* build languages before assets

* depends lrelease
2023-08-26 08:17:07 -07:00
Dean Lee b6b255c103 ui/driverview: hide on interactive timeout (#29464)
* hide on interactiveTimeout

* cleanup

* requestDone->closeView

* dont reset timeout on hideEvent

---------

Co-authored-by: sshane <shane@smiskol.com>
2023-08-26 07:47:18 -07:00
Shane Smiskol a160f1a624 IsoTpParallelQuery: extend timeout for every frame type (#29654)
* recv returns updated

* bump panda

* bump

* bump
2023-08-26 07:00:46 -07:00
Shane Smiskol 74a0a8f7b7 Revert "ui/network: don't refresh on connect (#29651)" (#29653)
This reverts commit 6ea564b33e.

Revert "ui/network: refresh IP address on connect"

This reverts commit 46c32613fc.
2023-08-26 05:23:20 -07:00
Shane Smiskol 46c32613fc ui/network: refresh IP address on connect 2023-08-26 05:15:05 -07:00
Shane Smiskol 6ea564b33e ui/network: don't refresh on connect (#29651)
* don't refresh when showing connected status

* fix

* fix

* can remove that nowe
2023-08-26 04:13:19 -07:00
Dean Lee 9fe3df5d75 ui/networking: show "connecting" immediately after clicking on a network (#29378)
* fix connecting not show

* clear connect state

* pass network by value

* add comment

* move pass by value to anoter pr

* should always use function to set connecting_to_network

* remove connecting when forgetting

* out here

* can't do this :(

* Revert "can't do this :("

This reverts commit e06145202de34142e74667c876dc22442eb30796.

Revert "out here"

This reverts commit 8ca7b47a28854a92d95fcb5c5fc435e140f9af2c.

Revert "remove connecting when forgetting"

This reverts commit 671db0b5e76b6266a48f20bf4a1fd40cad4f90a4.

Revert "should always use function to set connecting_to_network"

This reverts commit a220b518fa2a4103046f9522afada80db76ae90d.

* makes sense to keep this the same

* not in between slots

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-08-26 03:54:19 -07:00
Dean Lee 547f69f5f3 ui/networking: fix icon label alignment issue (#29650)
fix align issue
2023-08-26 03:19:30 -07:00
Shane Smiskol 6bb97c416f wifiManager: empty path helper (#29648)
empty helper
2023-08-26 01:50:18 -07:00
martinl a1bf66a0d2 Subaru: Ascent 2023 dashcam mode (#27583)
* Subaru: Add support for 2023 Ascent

* Update supported cars list

* Remove tester present from fw query

* merge master

* fix merge issues

* minimize diff

* add comment about 23 ascent

* add comment

* correct spot

* fix name

* nocap

---------

Co-authored-by: Justin Newberry <justin@comma.ai>
Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-08-25 20:55:21 -07:00
Irene b3e4eb15dc Toyota: forward openpilot FCW to cluster when engaged (#25677)
* move ui message handling out of condition

* relay openpilot fcw to car

* only send normal fcw if DSU is unplugged

* add comment

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-08-25 20:17:05 -07:00
Shane Smiskol 3b69187b67 Kia: add test route for Optima Hybrid (#29520)
* add Optima H FW

* undashcam

* add to routes, but keep in dashcam mode for now

* rearrange
2023-08-25 20:12:57 -07:00
multikyd 5c6a8ac7cc HKG: Add Optima Hybrid to HEV and legacy safety mode lists (#29644)
* add Optima H FW

* undashcam

* HKG: Add to Hev and Legacy safety mode for Optima Hybrid

* remove extras

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-08-25 19:20:49 -07:00
mitchellgoffpc 807410e0ac Remove no-thneed build flag 2023-08-25 19:09:25 -07:00
mitchellgoffpc e0287fa93e Remove USE_THNEED check from run.h 2023-08-25 19:05:49 -07:00
Dean Lee 17bfff8e10 ui: add translation files to assets.qrc (#29597)
* move translation files to assets.qrc

* cleanup

* add main_en

* dynamically add

* not sure if required

* revert to master

* move translations above assets

* add translations to qrc file

* comment

* now add translations_assets_src to assets sources

* this is built

* add to .gitignore

* consistent name

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-08-25 19:05:35 -07:00
Kacper Rączy a4a0429fca modeld: fix bash scripts (#29643)
Fix shebang. Fix LD_PRELOAD
2023-08-25 18:56:06 -07:00
Adeeb Shihadeh d35beffbce CI: use buildjet for process replay (#29277)
* squash for pr

* backoff to 4vcpu

* review suggestions

* simplify

---------

Co-authored-by: Justin Newberry <jnewberry0502@gmail.com>
Co-authored-by: Justin Newberry <justin@comma.ai>
2023-08-25 18:50:21 -07:00
Shane Smiskol 2b4255b19e ui: rebuild translations when widgets are modified (#29640)
fix translations not being updated for widgets
2023-08-25 17:25:38 -07:00
Adeeb Shihadeh 683b3b5966 pandad: recover from bad bootstub (#29638)
* pandad: recover from bad bootstub

* more

* adjust that

* ugh guess multipanda is still a thing

* reset

---------

Co-authored-by: Comma Device <device@comma.ai>
2023-08-25 17:03:00 -07:00
Kacper Rączy 517499294a mpc_lib: fix dependencies (#29621)
* Remove common dependency of lateral mpc

* Replace cereal dir dependency with cereal lib in long mpc

* Add missing files to generated sources

* Typo fix

* messaging_python dep
2023-08-25 16:51:57 -07:00
Shane Smiskol 24f5a6170d car interfaces: handle buttons changing state without going unpressed (#26463)
* rename function first and foremost

* the function

* comment

* move usages over

* probably fine

* comments

* btn

* single line

* not comments

* fix keyword

* is it not clear?

* noEntry while holding cancel

* bumpo

* remove

* better?

* better?

* try this

* try this

* loop

* better

* more clear

* Revert "more clear"

This reverts commit 37e0277e4bfe6f1c553dbbcece6f532a280be62e.

* no optional

* fine

* add comment

* clean up honda

* one line

* can also do this

* but unclear

This reverts commit 1984a72cc8680b23c202695b8aeeb1aa28f7160c.

* bumppanda
2023-08-25 16:47:10 -07:00
Justin Newberry c46965fc27 CI: use local scons cache instead of building a separate image (#29634)
* use local

* added ci_sim

* revert scons

* dont need these anymore

* same for sim

* fix dockerfiles
2023-08-25 16:06:17 -07:00
Justin Newberry 584239ceb5 CI: add comment about building locally (#29635)
add comment about build
2023-08-25 15:49:07 -07:00
Dean Lee 2484548fdd cabana: improve frequency accuracy (#29631)
* improve frequency accuracy

* apply review

* 2 less lines!

* another!

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-08-25 15:15:16 -07:00
Adeeb Shihadeh 4d6bb32df2 process replay: parallel by default (#29633)
* process replay: parallel by default

* more is helpful
2023-08-25 14:41:43 -07:00
mitchellgoffpc ef8e0fef55 Remove thneed logic from snpemodel 2023-08-25 14:37:08 -07:00
Mitchell Goff 72a3c987c0 Rewrite modeld in python (#29230)
* Added modeld.py (WIP)

* No more VisionIpcBufExtra

* Started work on cython bindings for runmodel

* Got ONNXModel cython bindings mostly working, added ModelFrame bindings

* Got modeld main loop running without model eval

* Move everything into ModelState

* Doesn't crash!

* Moved ModelState into modeld.py

* Added driving_pyx

* Added cython bindings for message generation

* Moved CLContext definition to visionipc.pxd

* *facepalm*

* Move cl_pyx into commonmodel_pyx

* Split out ONNXModel into a subclass of RunModel

* Added snpemodel/thneedmodel bindings

* Removed modeld.cc

* Fixed scons for macOS

* Fixed sconscript

* Added flag for thneedmodel

* paths are now relative to openpilot root dir

* Set cl kernel paths in SConscript

* Set LD_PRELOAD=libthneed.so to fix ioctl interception

* Run from root dir

* A few more fixes

* A few more minor fixes

* Use C update_calibration for now to exactly match refs

* Add nav_instructions input

* Link driving_pyx.pyx with transformations

* Checked python FirstOrderFilter against C++ FirstOrderFilter

* Set process name to fix test_onroad

* Revert changes to onnxmodel.cc

* Fixed bad onnx_runner.py path in onnxmodel.cc

* Import all constants from driving.h

* logging -> cloudlog

* pylint import-error suppressions no longer needed?

* Loop in SConscript

* Added parens

* Bump modeld cpu usage in test_onroad

* Get rid of use_nav

* use config_realtime_process

* error message from ioctl sniffer was messing up pyenv

* cast distance_idx to int

* Removed cloudlog.infos in model.run

* Fixed rebase conflicts

* Clean up driving.pxd/pyx

* Fixed linter error
2023-08-25 14:36:26 -07:00
Dean Lee c6c6877263 util.cc: remove duplidate #include (#29632)
remove duplidate #include
2023-08-25 14:34:46 -07:00
Adeeb Shihadeh c9e227a9c0 update azure-storage-blob (#29411)
Co-authored-by: Cameron Clough <cameronjclough@gmail.com>
2023-08-25 22:01:10 +01:00
Harald Schäfer f1b8a86464 K1FD: generate kalman gain at init (#29610)
* K1FD: generate kalman gain at init

* Update interfaces.py

* Update interfaces.py

* Update interfaces.py

* Update ref_commit
2023-08-25 13:44:03 -07:00
Harald Schäfer 47a839ab1f bump laika (#29628) 2023-08-25 13:14:16 -07:00
Adeeb Shihadeh 6b5a0b3498 include all model runners in release 2023-08-25 12:02:22 -07:00
Dean Lee 1e62999e75 v4l_encoder: convert macro checked_ioctl to funtion (#29609)
* break to multiple lines

* convert to function

* format errno

* use safe_ioctl

* cleanup
2023-08-25 11:05:22 -07:00
Dean Lee 86386fd87f scons: fix always generating car_fingerprint_to_dbc.json (#29625) 2023-08-25 10:39:55 -07:00
Dean Lee 2709cd6538 common/tests: combine multiple test binaries into one (#29623) 2023-08-25 10:35:39 -07:00
Dean Lee 7270c64872 common/gpio: use util::safe_ioctl (#29624)
use util::safe_ioctl
2023-08-25 08:20:43 -07:00
Justin Newberry c0b9458a45 CI: move cache dir to workspace directory (#29622)
* comma dir

* mkdir

* fix issues

* test

* fix that

* fix

* do the other ones too

* missed that

* fix

* fix pr comments by moving into two different directories

* fix location

* fix that

* only change current

* fix
2023-08-25 01:41:04 -07:00
Shane Smiskol ed6e72ae1f car/__init__: missing ending newline 2023-08-25 00:43:29 -07:00
Shane Smiskol ae2a6537b7 fingerprinting: log FW query time (#27880)
* Update car_helpers.py

* put in carParams

* bumpcereal

* rename

* bump cereal

* add cached

* bump cereal

* just add to fingerprinted event
2023-08-24 21:11:01 -07:00
Adeeb Shihadeh 465a72a87d bump panda (#29619)
Co-authored-by: Comma Device <device@comma.ai>
2023-08-24 19:22:48 -07:00
Adeeb Shihadeh 36cc41f619 CI: remove redundant apt installs (#29617)
* CI: remove redundant apt installs

* split build and test

* faster build
2023-08-24 17:32:15 -07:00
Adeeb Shihadeh e863828051 CI: workaround syntax error in azure lib (#29618) 2023-08-24 17:18:11 -07:00
Justin Newberry 90cb417caa CI: use GITHUB_ENV for env variables (#29616)
export doesn't work across steps
2023-08-24 17:03:25 -07:00
Mitchell Goff e2e39d100b Added cython bindings for model runners and commonmodel (#29607)
* Added cython bindings for model runners and commonmodel

* Removed cython language_level=3

* loop to set CXXFLAGS for both envs
2023-08-24 17:00:26 -07:00
Harald Schäfer 8205590624 Locationd: enable laikad (#29570)
* experiment

* llk back

* update refs

* update ref

* no internet

* Update ref
2023-08-24 16:51:45 -07:00
Justin Newberry 1ee6ed4b16 Linter: remove pylint (#29611)
remove pylint
2023-08-24 16:30:54 -07:00
Justin Newberry ede9f2cda5 CI: fix docker push (#29614)
* fix those

* fix docker push too

* dont need that twice
2023-08-24 16:30:33 -07:00
Justin Newberry 3d9f238bf9 CI: use scripts for docker build (#29599)
* use scripts

* remove common

* do login in the workflow

* separate step

* cleanup

* one script is cleaner

* keep it consistent

* review suggestions

* move in ci too

* PR cleanup
2023-08-24 16:09:08 -07:00
mitchellgoffpc 7dae580441 Moved thneed src to top of modeld sconscript 2023-08-24 15:12:01 -07:00
Shane Smiskol b8fb260558 ui/map: clip vehicle speed to min of 10 m/s (#29601)
* all the changes I want to make

* Revert "all the changes I want to make"

This reverts commit c18132b73eb9bba4d7871631d7cd4155eb7efcd0.

* add initialized

* clip to 10 m/s

* fix bug

* rm

* here?
2023-08-24 15:09:30 -07:00
Bruce Wayne e7418cfa39 KF1D: add steady state kalman code 2023-08-24 15:04:47 -07:00
Adeeb Shihadeh 4917e22615 Minimal build (#29600)
* add build flag for minimum build

* add minimal build

* update

* fix pj

* bump opendbc

* update subaru
2023-08-24 14:58:30 -07:00
Shane Smiskol b9d77afd7e ui/map: initialize speed filter with current speed (#29605)
fix map starting from 0 zoom
2023-08-24 14:53:47 -07:00
mitchellgoffpc fc8c97e7a9 Some cleanup in modeld sconscript 2023-08-24 14:41:04 -07:00
mitchellgoffpc a184d40b7a Disable error message in thneed ioctl interceptor to fix pyenv issues 2023-08-24 14:41:04 -07:00
Shane Smiskol 54e98fa888 C++ FirstOrderFilter: add initialized flag (#29602)
add initialized flag with default to not change behavior
2023-08-24 14:33:11 -07:00
Dean Lee d54fa5c7f1 v4l_encoder: fix error handling for poll (#29166)
* fix error handling for poll

* revert

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2023-08-24 12:56:06 -07:00
Dean Lee 3930ec9fac locationd: passing eigen objects by reference (#28719)
pass eigen objects by reference
2023-08-24 12:55:47 -07:00
Dean Lee b234cb0223 ui: remove Q_PROPERTY from AnnotatedCameraWidget (#28745) 2023-08-24 11:09:26 -07:00
Shane Smiskol 821cfff56d car interfaces: long running fuzzy test (#29592)
* draft

* draft 2

* increase deadline and run

* imports

* run -> use
2023-08-24 10:45:50 -07:00
Dean Lee 7bfd3dac81 cpplint: add filter whitespace/comma (#29595) 2023-08-24 10:42:06 -07:00
Dean Lee 792ad7d816 ui/map: delete map after unsubscribing from prime (#29136)
Co-authored-by: Cameron Clough <cameronjclough@gmail.com>
2023-08-24 16:51:53 +01:00
Dean Lee 20e8170399 common/i2c: remove duplicate #include (#29594) 2023-08-24 16:21:03 +01:00
Dean Lee 9c7bf50703 cpplint: add filter whitespace/tab (#29588) 2023-08-24 08:06:58 -07:00
Cameron Clough 74b9a6af9e add missing openpilot prefix to imports 2023-08-24 15:46:56 +01:00
Dean Lee 21da5a216f cpplint: add filter build/include_subdir (#29585) 2023-08-24 15:42:17 +01:00
Adeeb Shihadeh d013f2174a manager: refactor process starting logic (#29574)
* refactor into sane api

* always set

* cleanup

* cleanup

* and there too

* fix order

* fail

* and ensure we test

* pass test

pass test

* order

* only diff not related

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-08-24 06:00:55 -07:00
Shane Smiskol d58cb9994f car interface test: pick from possible ECUs (#29593)
pick from possible ecus
2023-08-24 05:27:58 -07:00
Cameron Clough 05e91c074d ui: hasPrime/primeChanged helper (#29590) 2023-08-24 12:47:22 +01:00
Cameron Clough 102047013f bump cereal 2023-08-24 12:42:08 +01:00
Dean Lee 99279b8eef ui: use enum PrimeType for prime_type (#29491) 2023-08-24 12:26:45 +01:00
Shane Smiskol e38ce6087f car interfaces test: don't sleep (#29589)
don't sleep in test_car_interfaces
2023-08-24 04:24:22 -07:00
Shane Smiskol 84b897cf44 manager: test process exclusion (#29586)
* add test

* add comment

* Update selfdrive/manager/test/test_manager.py

* more accurate
2023-08-24 00:34:36 -07:00
Dean Lee 3c94d953ab replay: fix visionbuf alignment on device (#26913)
* align visionbuf

* update test case

* cleanup

* fix cpplint warning
2023-08-24 00:03:16 -07:00
Justin Newberry da7504e1e7 CI: Normalize file permissions (#29584)
* normalize file permissions

* comment

* add comment

* remove that

* shell

* should be on the top
2023-08-23 23:50:51 -07:00
Dean Lee 4ea7833060 ui/map_instructions: restore padding (#29548)
* restore padding

* fixes

* fix left and right margins

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-08-23 23:32:01 -07:00
Dean Lee ac93902983 cpplint: add filter whitespace/forcolon (#29582)
whitespace/forcolon
2023-08-23 22:46:02 -07:00
Shane Smiskol 3719be8b76 Subaru: Forester Hybrid 2020 dashcam (#24770)
* Add support for Forester Hybrid 2020

Co-authored-by: martinl <martin@mlp.ee>

* it's a param now

* make it work

* fix

* merge and cleanup

* remove duplicate

* should be forester

* bump submodules

* should be abs

* add missing params

* still need a test route

* still need a test route

* consitent

* here too

* todo

* more

* Update selfdrive/car/tests/routes.py

* clean up

---------

Co-authored-by: martinl <martin@mlp.ee>
Co-authored-by: Justin Newberry <jnewberry0502@gmail.com>
2023-08-23 21:30:12 -07:00
Irene cb342461f0 Toyota: add TODO comment for TSS-P BSM (#28396)
* Toyota: enable BSM on C-Hr

* Update selfdrive/car/toyota/carstate.py

Co-authored-by: Cameron Clough <cameronjclough@gmail.com>

* remove duplicate block

* Remove useless addition

* make this a comment for now

* remove extra bit

* clean up

* clean up

---------

Co-authored-by: Cameron Clough <cameronjclough@gmail.com>
Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-08-23 20:52:01 -07:00
Dean Lee 8b7004e68d swaglog: remove unnecessary string copy (#29164) 2023-08-23 20:10:23 -07:00
Dean Lee 95e9232963 encoder/VideoWriter: remove unnecessary call to avcodec_close (#29039) 2023-08-23 20:08:19 -07:00
Harald Schäfer f4f8047e97 Laikad: ignore more garbage measurements (#29569)
* Laikad: ignore more garbage measurememnts

* bump laika
2023-08-23 19:48:55 -07:00
Adeeb Shihadeh 973d90be77 Subaru: Crosstrek Hybrid dashcam mode (#25378)
* Subaru: Crosstrek Hybrid support

* hybrid cars in dashcam only

* revert that

* just dashcam

* tah should be abs

* remove unused import

* use the old dbc for now

* hybrid car exceptions in carstate

* need dashstatus until we get a proper cruiseactivated bit

* missing CP

* merge conflicts

* lets be consistent about extend

* cleanup

* fix and comments

* preglobal fix

* and the rest

* and this

* added hybrid to release

---------

Co-authored-by: Justin Newberry <justin@comma.ai>
2023-08-23 18:50:55 -07:00
Dean Lee ddd849a882 encoderd: remove unnecessary calls to encoder_close() on exit. (#28970) 2023-08-23 17:56:22 -07:00
Gellis12 a0f3b83062 Add initial fingerprint 2.0 for Nissan Leaf 2018-23 (#29505)
Initial fingerprint 2.0 for Nissan Leaf 2018-23
2023-08-23 17:46:34 -07:00
Justin Newberry 2fdde9b77d CI: switch to --cache-to type=inline for buildkit cache (#29575)
this is cleaner
2023-08-23 17:41:33 -07:00
Erich Moraga ba1ad422d7 Toyota: add engine & fwdRadar ECU versions for 2023 Toyota Camry Hybrid (#29508)
`@Varvaras` 2023 Toyota Camry Hybrid  Dongle ID/route 3a47f2dd831feb30|2023-08-20--19-41-21
2023-08-23 17:37:38 -07:00
pencilpusher 472151b6a0 ui/map: keep the car icon aligned to its bearing (#29482)
* rotate icon with current bearing

When user is rotating the map, the car icon should stay fixed on the cars bearing, not the map.

* spacing

* comment

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-08-23 17:33:58 -07:00
Dean Lee 5fcb7e9038 ui/PrimeUserWidget: cleanup layout (#29492)
cleanup layout

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-08-23 16:34:18 -07:00
Dean Lee 55cca6ed26 scons: remove missing MPC headers (#29485)
* remove invalid files

* Update selfdrive/controls/lib/lateral_mpc_lib/SConscript

Co-authored-by: Shane Smiskol <shane@smiskol.com>

* Apply suggestions from code review

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-08-23 15:43:27 -07:00
Justin Newberry 2e4f8e6608 CI: Docs rebuild base image (#29566)
* docs rebuild base image

* fix order
2023-08-23 15:33:23 -07:00
Jason Wen 3b01d99d30 Hyundai longitudinal (CAN): display AEB indicator on non-FCA cars (#29484)
* Hyundai longitudinal (CAN): display AEB indicator on dashboard on non-FCA cars

* clear up comment

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-08-23 15:22:52 -07:00
Dean Lee f203648de0 cpplint: add filter whitespace/semicolon (#29568) 2023-08-23 15:00:30 -07:00
Dean Lee 2c20a2b5d7 sound.h: add #pragma once (#29567) 2023-08-23 14:47:34 -07:00
Shane Smiskol af8af3209d thermald: type annotate main thread (#29414)
* type

* stash

* Revert "stash"

This reverts commit f5e5e0d08c967d1a5d9c239e6335f8a47890b1a1.

* bug in mypy
2023-08-23 14:42:27 -07:00
Dean Lee 5480d32bb5 cpplint: add filter whitespace/parens (#29565) 2023-08-23 14:25:05 -07:00
Adeeb Shihadeh 239d6a24be sensord: fix LSM magnetometer thermal variation (#29265)
* do set reset for every measurement cycle

* use one sensorvec

* convert from continuous to manual mode

* separate the set/reset and TM_M

* make magnetometer readings manual, set appropriate sleep

* add more sleep and check validity of values

* add magnetometer to a separate thread

* refactor

* bugfix

* each sensor in a new thread, handle generically

* bugfix

* rm global

* update cpu

* update test

* update test

* revert cereal change

* split out temp sensors

* little more

* fix

* fix

* bump cereal

* linter fixes

---------

Co-authored-by: nuwandavek <vivekaithal44@gmail.com>
Co-authored-by: Comma Device <device@comma.ai>
2023-08-23 14:21:10 -07:00
Adeeb Shihadeh d3fb75a972 sensord: run as many sensors as possible (#29564) 2023-08-23 14:07:00 -07:00
Adeeb Shihadeh 42769345d5 sensord: lower temperature sensor freq to 2Hz (#29563) 2023-08-23 14:00:26 -07:00
Adeeb Shihadeh e726505918 bump cereal (#29561) 2023-08-23 13:42:37 -07:00
Dean Lee 2d99521e75 cpplint: build/include_what_you_use (#29556)
* include_what_you_use

* remove comments

* include <memory>

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2023-08-23 13:25:17 -07:00
Harald Schäfer aa585b1757 Laikad: reset est pos when in bad state (#29559)
* reset est pos when cant delay correct

* was just for debug
2023-08-23 13:23:17 -07:00
Adeeb Shihadeh 6a66b75556 sensord: setup per-sensor threads (#29558)
* sensord: setup per-sensor threads

* revert cereal

* more cleanup

* bump cereal

* update test

---------

Co-authored-by: Comma Device <device@comma.ai>
2023-08-23 12:58:09 -07:00
Willem Melching 2b0e4d46bb cabana: socketcan support (#27952)
* empty socketcan class

* works on linux with vcan

* add open stream widget

* fix MacOS build

* update readme

* unused

* no socketcan on C3

* fix in cabana sconstruct

* serial -> device
2023-08-23 10:50:11 -07:00
Kacper Rączy 659795b1db devcontainer: handle hosts without X11 (#29537)
* Setup xauthority link on host in initializeCommand

* Create a dummy xauthority if it does no exist on host machine

* Remove xauthority line from ci test
2023-08-23 10:26:38 -07:00
Dean Lee 363740a497 cpplint: add readability/braces filter (#29554) 2023-08-23 10:13:46 -07:00
Shane Smiskol 365bdd3422 Revert "FW query: query one sub-address in parallel" (#29550)
Revert "FW query: query one sub-address in parallel (#28675)"

This reverts commit 861ceb2fee.
2023-08-23 01:41:28 -07:00
Shane Smiskol 861ceb2fee FW query: query one sub-address in parallel (#28675)
* put one subaddr in parallel_addrs

* p

* remove print

* update test refs

* test

* revert test changes

* do same in present ECU query, lower threshold to catch (~0.82 to ~0.72 right within bounds)

* type

* clean up

* update test ref
2023-08-23 01:31:04 -07:00
Harald Schäfer 8a7281d285 Laikad upgrades: prep for laikad lld (#29545)
* Laikad upgrades: prep for laikad lld

* Update ref commit
2023-08-23 00:13:10 -07:00
Shane Smiskol 1ea310b202 Update FW query total time 2023-08-22 23:58:29 -07:00
Shane Smiskol 7de9842245 FW Query: test noOBD queries on aux panda (#29547)
* huh, this test just works!

* fix

* Update selfdrive/car/tests/test_fw_fingerprint.py
2023-08-22 23:43:52 -07:00
Shane Smiskol 0aa6e2ce41 Toyota: prepare to disable radar (#29542)
* try to disable radar

* fix bug and bump panda

* prep

* always attempt longitudinal for testers

* fix rav4

* send ACC_HUD

* bump panda

* revert

* check for failure to disable

* fix arg

* bump to master

* revert to master

* comments only

* correct check

* carcontroller

* something like this

* or this

* use flag

* send PCS HUD

* clean up

* carstate checks

* fix from test models

* consistent
2023-08-22 21:17:30 -07:00
Shane Smiskol 16a8c9fbf1 Toyota: remove redundant car set union (#29546)
remove confusing union
2023-08-22 21:09:33 -07:00
Adeeb Shihadeh bb1b641812 build.py: retry with less threads (#29543)
* build.py: retry with less threads

* cleanup

* fix no output

* cleanup
2023-08-22 20:58:43 -07:00
Shane Smiskol cb36816315 Revert "Toyota: prepare to disable radar (#29541)"
This reverts commit 61653bf343.
2023-08-22 19:50:24 -07:00
Shane Smiskol 61653bf343 Toyota: prepare to disable radar (#29541)
* try to disable radar

* fix bug and bump panda

* prep

* always attempt longitudinal for testers

* fix rav4

* send ACC_HUD

* bump panda

* revert

* check for failure to disable

* fix arg

* bump to master

* revert to master

* comments only
2023-08-22 17:16:38 -07:00
Justin Newberry 979c96167d CI: enable missing tests (#29538) 2023-08-22 16:48:02 -07:00
Vivek Aithal 2fe3231b49 CHEVROLET SILVERADO 1500 2020: Make Silverado lateral tune non-linear (#29540)
add nonlinear values to silverado
2023-08-22 16:11:21 -07:00
Adeeb Shihadeh e0e139a233 soundd: update cpu usage 2023-08-22 15:16:38 -07:00
Adeeb Shihadeh 2cd311da29 add pytest-subtests package (#29536) 2023-08-22 14:31:03 -07:00
Kacper Rączy df9564e172 devcontainer: CI fix (#29534)
Export xauthority before running devcontainer
2023-08-22 14:14:14 -07:00
Harald Schäfer fda3106c28 Revert laikad llk (#29535)
* Revert "bump laika (#29522)"

This reverts commit 3523bef732.

* Revert "Locationd: switch to laikad (#29278)"

This reverts commit fd3b8a3d75.
2023-08-22 14:12:51 -07:00
Dean Lee 55c156dfb2 soundd: set volume on changes (#29389)
* set volume on change

* async set volumn

* Revert "async set volumn"

This reverts commit 7bc88c498353fff158b0de3d1923aa2c0f004a37.
2023-08-22 14:09:03 -07:00
Adeeb Shihadeh 65ad8fd8e7 bump cereal (#29532) 2023-08-22 14:03:27 -07:00
Adeeb Shihadeh 6a5725bb38 sensord: update cpu usage after removing light sensor 2023-08-22 14:03:15 -07:00
Dean Lee 5765c1d978 ui/settings: Don't apply styles to more elements than needed. (#29463) 2023-08-22 14:00:01 -07:00
Adeeb Shihadeh 952d720b6e add cpplint (#26855)
* setup cpplint

* only start that

* check line length

* check these

* rm exceptions
2023-08-22 13:55:23 -07:00
Shane Smiskol 2c835b81d9 Hyundai: remove Ioniq EV 2022 from legacy safety mode (#29531)
* fw

* remove from legacy

* update docs
2023-08-22 12:59:56 -07:00
Shane Smiskol f546e92774 Kia: move Optima Gen 4 FL out of legacy safety mode (#29530)
move Optima Gen 4 Facelift out of legacy
2023-08-22 12:41:52 -07:00
Robbe Derks d71a7190f1 Devcontainer (#29259)
* mvp devcontainer. builds, runs and UI works

* fix indentation

* enable color and fix openpilot_env path

* separate dockerfile for devcontainer

* use prebuilt image

* Fix openpilot_env setup

* Add dev container section in readme

* Fix typo

* Fix typo again

* Move dev dockerfile to .devcontainer dir

* Update README

* Add note about x11 forwarding on macos

* Update dev container json

* Fix typo

* Override DISPLAY on macOS

* Mention XAUTHORITY for macOS setup in README

* fix typo

* Add devcontainer CI test

* Rename to devcontainer

* Fix git issues

* ripgrep

* Link instead of vscode manual

* Replace raw path with containerWorkspaceFolder

* Fix typo

* Remove dev tools workflow

* Link away X11 forwarding setup isntructions for mac

* Remove fork consrtaint, add test run of scons

* Add submodules as safe.directories in postStartCommand

* Remove openpilot_env references

* Add scons cache volume

---------

Co-authored-by: Robbe Derks <robbe@localhost.localdomain>
Co-authored-by: Kacper Rączy <gfw.kra@gmail.com>
2023-08-22 11:47:09 -07:00
Adeeb Shihadeh 91dc8457ae Revert Qt MOC hacks (#29528)
* Revert "CI: prevent moc from running in cache population step (#29401)"

This reverts commit d1aedccfbe.

* Revert "SCons: respect cache read only (#29437)"

This reverts commit 59abb469ea.

* don't change moc path
2023-08-22 11:16:58 -07:00
Kacper Rączy d1aedccfbe CI: prevent moc from running in cache population step (#29401)
* Do not remove moc_files from cache

* Add cache cleanup script

* Use cache cleanup script

* Dry-run in cache population command

* Add newline

* Temporarly disable master only constraint for cache cleanup step

* Add test lines

* one more

* Fix shebang

* Remove debug lines

* Bring back master branch constraints
2023-08-22 10:47:56 -07:00
Adeeb Shihadeh c5c73c4ddb pre-commit: autoupdate hooks (#29524)
Update pre-commit hook versions

Co-authored-by: adeebshihadeh <adeebshihadeh@users.noreply.github.com>
2023-08-22 10:39:45 -07:00
Willem Melching e8094affae ratekeeper.h: add missing <cstdint> include (#29523) 2023-08-22 15:21:16 +01:00
Cameron Clough 92a7d702fc Ford: test FW query config and versions (#29016)
* Ford: test FW query config and versions

* comments about software p/n

* should keep it in bytes

* don't need car_model

* it prints nicely

* add todo

* Update selfdrive/car/ford/tests/test_ford.py

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-08-21 23:29:15 -07:00
Harald Schäfer 3523bef732 bump laika (#29522) 2023-08-21 23:16:49 -07:00
Harald Schäfer fd3b8a3d75 Locationd: switch to laikad (#29278)
* use_laika

* Update test

* fix spacing

* fix proc replay

* small fix

* Try correct std

* cast correctly

* experimental

* simpler

* update reset thresholds

* improve

* Ready for live running

* outlier reject

* update laika

* add fine speeds

* more experiments

* fixes

* all in laika

* more small tweaks

* outlier rejection not needed

* fix conflict

* no more gpslocation

* update test

* refactor to laika

* runs again

* Update ref
2023-08-21 22:51:02 -07:00
Felixowns 0c4b91975b Remove Sonata LF from LEGACY_SAFETY_MODE_CAR (#29521)
* Update values.py

remove sonata_lf from legacy safety mode. added sonata_lf to unsupported longitudinal car

* Update selfdrive/car/hyundai/values.py

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-08-21 21:28:13 -07:00
Justin Newberry 3492e80d19 CI: use xdist for car model tests (#29514)
* bump panda

* try multithreaded for car models

* need pytest-cov

* upgraded to poetry 1.5.1 and regenerated
2023-08-21 20:51:27 -07:00
Justin Newberry ec5e3bef95 CI: simulator disable pull to save local space (#29517)
we don't need to pull since the image is different most of the time
2023-08-21 20:01:52 -07:00
mitchellgoffpc 7699444816 Set paths for cl kernels and onnx_runner.py in modeld SConscript 2023-08-21 19:38:40 -07:00
mitchellgoffpc 72950cd9bc Add cl_create_context function 2023-08-21 19:32:48 -07:00
mitchellgoffpc 24090d2121 Move USE_RUNTIME flags into runmodel.h 2023-08-21 19:26:48 -07:00
mitchellgoffpc 8c478708ee exit if onnxmodel exec fails 2023-08-21 19:23:23 -07:00
Greg Hogan b24bbe4607 script to install only ubuntu dependencies (#29510)
* script to install only ubuntu dependencies

* update Dockerfile

* add shebang
2023-08-21 16:32:35 -07:00
Shane Smiskol b373e5d5ec Revert "Subaru: always show LKAS active (#27945)" (#29515)
This reverts commit 8f1e67f625.
2023-08-21 16:25:13 -07:00
Justin Newberry 9188c56069 CI: remove old docs base image push (#29512)
remove that push
2023-08-21 15:32:41 -07:00
Justin Newberry 197460e061 CI: use scons cache mount for building simulator and docs (#29436)
* build docker image with scons cache

* use setup

* scons cache

* added the dockerfile

* add the shell

* docs use cache

* dont pull lfs for docs

* simulator too

* dont pull the cache image

* fix inputs

* inputs

* booleans aren't supported

* bool not supported

* bool isnt supported

* fix

* readonly cache

* fix sim cache too

* respect readonly

* gitignore and move to correct folder

* also copy old

* move to tools/ci

* move to selfdrive/test

* just make the cache writable, it's discarded anyway

* minimize diff in this pr
2023-08-21 15:11:31 -07:00
Justin Newberry b20eba5f1d Subaru: longitudinal incorrect "inactive" rpm (#29496)
* fix incorrect base rpm issue

* "min" name is better
2023-08-21 14:54:42 -07:00
Jason Wen bfa714ef3b HKG: Car Port for Kia Sorento Hybrid 2023 (#29322)
* HKG: Car Port for Kia Sorento Hybrid 2023

* Update CARS.md

* Oops

* add test route

* specify segment

* all packages

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-08-21 14:34:53 -07:00
Shane Smiskol de7bcb04fc add enhancement todo for hyundai fuzzy FP 2023-08-21 14:32:56 -07:00
Shane Smiskol 229c43a808 Kia: update supported Sorento PHEV package (#29509)
* Sorento PHEV includes all

* update docs
2023-08-21 14:11:32 -07:00
Adeeb Shihadeh 985af1ce3c tici: add wait_for_power helper (#29507)
* tici: add wait_for_power helper

* deque

* cleanup

---------

Co-authored-by: Bruce Wayne <batman@z840-provisioning2.internal>
2023-08-21 13:46:00 -07:00
Justin Newberry fc9a623d69 Subaru: remove unused backoff rate calculation (#29368)
* cancel rate

* Update selfdrive/car/subaru/carcontroller.py

Co-authored-by: Shane Smiskol <shane@smiskol.com>

* leave it as it was for now

* cleanup

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-08-21 13:31:57 -07:00
Kacper Rączy 0f7be5b1e6 Setup cleanup vol. 2 (#29456)
* code from setup cleanup #29419

update ci

update ci

export variables for mac os

check env

what is in the profile script?

install pyenv the same everywhere

temporarily disable brew cache

temporarily disable brew cache

try fixing pyenv virtualenv-init

try this

inject shims path earlier

try alternate install method

switch back to brew install

try         eval "$(pyenv init --path)"

add eval "\$(pyenv init --path)"

* Add local .env file to the cache list

* Change .env paths

* debug line

* order?

* remove .env

* Add .venv to caches

---------

Co-authored-by: Greg Hogan <gregjhogan@gmail.com>
2023-08-21 13:30:48 -07:00
Caleb Stultz 551b0cc8f2 Remove Kia Sorento from LEGACY_SAFETY_MODE_CAR (#29502)
* Remove Kia Sorento from LEGACY_SAFETY_MODE_CAR

* Update values.py

* Added Kia Sorento to UNSUPPORTED_LONGITUDINAL_CAR
2023-08-21 10:43:31 -07:00
Dean Lee 71d8f41ed8 boardd: keepTime after failing to get ignition_opt (#29506)
* keep time after failing to get ignition_opt

* Update selfdrive/boardd/boardd.cc

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2023-08-21 09:41:17 -07:00
Adeeb Shihadeh f5071411cb sensord: rm light sensor (#29503) 2023-08-20 22:38:39 -07:00
Dean Lee 3eef63af9b common: C++ RateKeeper (#29374)
* c++ RateKeeper

* add to files_common

* use util::random_int

* improve monotor_time

* remove ~ratekeeper
2023-08-20 21:27:02 -07:00
Adeeb Shihadeh ff068dd722 move mypy config into pyproject.toml (#29501)
* move mypy config into pyproject.toml

* rm reference
2023-08-20 21:08:04 -07:00
Adeeb Shihadeh a9626f95b6 add openpilot prefix to imports (#29498)
* add openpilot prefix to imports

* more

* more

* fix docs

* fix linter

* bump submodules

* fix patched tests

* update dynamic imports

* debug

* Revert "debug"

This reverts commit db5e13b9911cc74438bee123bc3430da6c31b24b.

* fix pm test
2023-08-20 20:49:55 -07:00
Adeeb Shihadeh d61f86d339 replace custom clock helpers with time module (#29499)
* replace custom clock stuff wtih time module

* fix double

* fix release

* bump cereal

* update type

* fix one more
2023-08-20 18:50:58 -07:00
Harald Schäfer bc4b75822a update process replay timeout (#29478)
* Always dict differ

* Update selfdrive_tests.yaml

* bump up more

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2023-08-20 17:24:33 -07:00
Adeeb Shihadeh 5690386d8d update clone instructions (#29490)
* both

* Update README.md

* Update README.md
2023-08-20 15:13:24 -07:00
Lee Jong Mun 1f056f3217 kor translation update (#29493) 2023-08-20 15:05:25 -07:00
Harald Schäfer 1dea20e574 Proc replay: field tolerance unused (#29479)
field tolerance unused
2023-08-20 13:05:18 -07:00
Cameron Clough 3861fca940 agnos: alt system image 2023-08-20 20:18:52 +01:00
Cameron Clough 3972c85e97 agnos manifest: add alt system image (#29468) 2023-08-20 11:50:08 +01:00
Greg Hogan 012060ba32 fast clone instructions (#29455)
* fast clone instructions

* Support default ubuntu 20.04 git

---------

Co-authored-by: Harald Schäfer <harald.the.engineer@gmail.com>
2023-08-19 01:49:16 -07:00
Dean Lee 9ea2cd8d0b ui/map_instructions: center lanes (#29465)
* center lanes

* test

* similar spacing and no need for stretchj

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-08-19 01:23:42 -07:00
pencilpusher f2d22075eb ui/map: interactive counter fix (#29470)
* use interactive_counter instead of separate zoom and pan counters

* use interaction_counter instead of separate zoom and pan counters

* same styling

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-08-19 00:07:52 -07:00
Shane Smiskol ac07c205ed Nissan: add alt request for engine on Rogue (#29477)
* get engine

* \xda should work

* fix issue

* Update selfdrive/car/nissan/values.py

* bump ref

* other ref
2023-08-18 23:47:58 -07:00
Jason Wen 2bd4e71b24 Hyundai longitudinal (CAN): don't send FCA11 on non-FCA cars (#28479)
* Hyundai longitudinal (CAN): don't send FCA messages to non-FCA cars

* Update comments

* outside

* change to FCA11 only

* move down

* add todos

* Apply suggestions from code review

* add todo

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-08-18 23:38:36 -07:00
Shane Smiskol 1a08c2986e Revert "radard: tie radard frequency to modelV2 vol. 2 (#29240)" (#29474)
* Revert "static analysis fixes"

This reverts commit a1e85f3661.

* Revert "radard: tie radard frequency to modelV2 vol. 2 (#29240)"

This reverts commit 460f5c8e0b.

* update refs
2023-08-18 22:56:43 -07:00
Shane Smiskol 38f1523742 add Kia Niro Hybrid 2019 to legacy safety mode list (#29472)
* add Kia Niro Hybrid 2019 to legacy safety mode list

* list

* test

* update docs

* space
2023-08-18 20:57:42 -07:00
Shane Smiskol 6253dca9eb CAN fingerprint: timing test (#29461)
* test fingerprint frames (timing)

* guess not needed

* it checks both buses

* use case list

* this is safe since we call current test only in the current loop, never after

* prof

* test this too
2023-08-18 14:33:13 -07:00
Terry Huang 0c50dd9d0f Ford: Kuga 2022 fingerprint (#29449)
Ford: Kuga 2022 fingerprint
2023-08-18 13:11:50 +01:00
Shane Smiskol 19767da668 CAN fingerprint: test fingerprint response (#29462)
* test finger

* split up
2023-08-18 00:37:32 -07:00
Dean Lee efefcfdca5 ui/map: better rounding for distances (#29151)
* round distance

* use same format in ETA

* remove vanish

* restore translate

* use nearbyint

* update translations

* mark finished

* consistent style

* we don't include this anywhere in ui, needed?

* fix missing std

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-08-17 22:58:18 -07:00
Shane Smiskol d827cd6a83 map eta: use pair (#29460)
use pair
2023-08-17 22:42:12 -07:00
Jason Young f76ffbdbbc interfaces: add common STD_CARGO_KG to mass (#29416)
* cleanup std_cargo_kg

* fix Sonata mass

* remove snowflake construct

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-08-17 21:06:07 -07:00
Shane Smiskol 8dcd108972 Rename CivicParams (#29459)
* CivicParams -> ReferenceCarParams

* remove usage in interface

* better name

* revert
2023-08-17 21:02:09 -07:00
Shane Smiskol 6d2922b8e6 ui/map: slight turn lane types (#29446)
* add slight turns

* bump cereal

* revert

* hmm, i like this better

* whops

* fix

* bump
2023-08-17 20:51:52 -07:00
Adeeb Shihadeh 2fa09a9ad7 common/gpio: fix warning on re-export (#29457) 2023-08-17 16:32:23 -07:00
Shane Smiskol 3563292e65 test_models: remove body standstill exception (#29453)
* remove body exception

* bump to master
2023-08-17 16:26:30 -07:00
Eric Brown 111b6438c6 Swap belowSteerSpeed and resumeRequired alert priorities (#28795)
* GM: Don't send belowSteerSpeed when resumeRequired

* Set belowSteerSpeed alert to LOW priority, resumeRequired to MID

* Add script to output all events and their priorities by type

* Set CP, CS, sm

* Subscribe to same messages as controlsd

* Create callable alerts

* Remove event print script

* Remove sng check
2023-08-17 16:03:35 -07:00
Greg Hogan 282fd778aa venv in code directory (#29452)
put venv in code directory
2023-08-17 15:43:02 -07:00
Kacper Rączy 62a88e504d Unpin numpy (#29421)
* Unpin numpy

* Update lock file

* leave acados comment

* Fix warnings

* Fix more paramsd warnings
2023-08-17 15:36:14 -07:00
Dean Lee b8b1e17a21 ui/networking: do not skip the connected network (#29396)
* do not skip connected network

* simplify

* revert

* revert

* no implicit

* ifwt

* fix missing ssid

* makes more sense to only update security_type once (first vs. last)

* better comment

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-08-17 14:43:40 -07:00
Justin Newberry 1944945d9d Revert "setup cleanup (#29419)" (#29451)
This reverts commit ad32816fd6.
2023-08-17 13:23:06 -07:00
Dean Lee 61a00d2673 replay/logreader: use unique_ptr for mbr_ (#29440) 2023-08-17 11:42:35 -07:00
Dean Lee 1887d9197a ui/networking: pass network by value (#29448) 2023-08-17 11:37:42 -07:00
Justin Newberry 59abb469ea SCons: respect cache read only (#29437)
* respect readonly

* gitignore and move to correct folder

* also copy old
2023-08-17 10:30:55 -07:00
Greg Hogan ad32816fd6 setup cleanup (#29419)
* setup cleanup

* update ci

* update ci

* export variables for mac os

* check env

* what is in the profile script?

* install pyenv the same everywhere

* temporarily disable brew cache

* temporarily disable brew cache

* try fixing pyenv virtualenv-init

* try this

* inject shims path earlier

* try alternate install method

* switch back to brew install

* try         eval "$(pyenv init --path)"

* add eval "\$(pyenv init --path)"
2023-08-17 08:51:16 -07:00
Shane Smiskol fb94202014 Multilang: enable Thai (#29447)
enable thai in the ui
2023-08-17 03:16:31 -07:00
Dean Lee 202b2f2113 ui/map: hide icon if no maneuver type (#29084)
hide icon if no maneuver type
2023-08-17 02:05:19 -07:00
Dean Lee 3a277f1b81 ui/map: show map on destination set/change (#29327)
* show map on dest set/change

* check for rcv_frame

* clear current_nav_dest

* restore allow_open

* use requestShow

* cleanup

* one check

* revert behavior changes

* Update selfdrive/ui/qt/maps/map.cc

* more obvious

* Update selfdrive/ui/qt/maps/map.cc

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-08-17 01:32:22 -07:00
Shane Smiskol da38aed483 map: set destination marker visibility once (#29444)
set visibility once
2023-08-17 01:02:59 -07:00
Shane Smiskol fd8f8d8785 CAN fingerprinting test (#29427)
* timing test

* test

* fix

* print

* loop

* clean up

* wider range

* Update selfdrive/car/tests/test_models.py

* Apply suggestions from code review

* run many times

* Update selfdrive/car/tests/test_models.py

* run for many its

* run with unittest and print as list

* Update .github/workflows/selfdrive_tests.yaml

* Update .github/workflows/selfdrive_tests.yaml

* total time is super inconsistent (body)

* Update selfdrive/car/tests/test_models.py

* clean up

* clean up

* clean up

* this works!

* draft

* test suite not as modular

* try something like this

* can do kb, but not too representative

* clean up

* remove kb? it depends on signals

* clean up

* more clean up

* rename

* just measure all CANParsers

* can do all this manually

* but this is way simpler

* comment

* stash

* draft

* draft

* remove old script

* clean up

* revert

* use it

* remove test

* opt

* no partial

* remove

* revert test_models

* test can fingerprinting

* so much simpler!

* fix dict resizing

* simplify

* need to do this

* fix

* move to new file

* rename

* comment

* ignore function-uses-loop-variable
2023-08-17 00:57:12 -07:00
Shane Smiskol e4ecb511c9 upadte process replay refs 2023-08-17 00:45:44 -07:00
Shane Smiskol ac3f87bad5 internal test_models: run on more segments (#29443)
100 more
2023-08-17 00:25:14 -07:00
Shane Smiskol 9d0d59ac9b Hyundai: match panda standstill check (#29442)
* bump panda

* clean up

* common?

* Revert "common?" (not now)

This reverts commit 197af7cdbb6a8c8e58fcbccca94f7db004ce91e4.

* fix

* no failures!

* remove time

* bump

* bump

* undo
2023-08-17 00:06:38 -07:00
Shane Smiskol ebc5eb7df5 bump panda 2023-08-16 23:32:37 -07:00
Dean Lee f1568b960a ui: longer screen timeout for driver view (#27457)
* longer driverview timeout

* Update ui.cc

* reset timeout

* do cleanup

* Apply suggestions from code review

* Update selfdrive/ui/ui.cc

* reset to default timeout on hidden

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-08-16 22:22:39 -07:00
Arda d38dc64db0 Multilang: add Turkish language (#25765)
* Multilang: add Turkish language

* update translation

* vanish

* move up

* missing %n

* format args

* pass this test now

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-08-16 21:45:03 -07:00
Shane Smiskol 103d39259f Multilang: check format arguments are consistent (#29441)
* format args

* global
2023-08-16 21:30:47 -07:00
Shane Smiskol 549a4e9a97 Multilang: more translation sanity checks (#29439)
* tests

* test finished translations

* fix new test failure
2023-08-16 21:10:25 -07:00
Shane Smiskol 25ac9e2148 fingerprints: prevent global from changing (#29438)
prevent _FINGERPRINTS from changing
2023-08-16 19:52:41 -07:00
Jason Wen 57136b3e1a Toyota longitudinal: new TSS2 tuning (#200) 2023-08-16 21:57:31 -04:00
Justin Newberry ad00595ba5 CI: use setup script for docs and simulator (#29434)
* use setup

* dont pull lfs for docs

* fix inputs

* bool not supported

* bool isnt supported
2023-08-16 17:59:42 -07:00
Kacper Rączy 766b5e6e8b Disable pyqt5 on aach64 (#29430)
* Make pyqt5 x64 only

* Add comment regarding pyqt5 wheels
2023-08-16 14:11:45 -07:00
Justin Newberry d6c682b401 Subaru: Global gen1 experimental longitudinal (#28872)
* Add longitudinal support for Subaru Crosstrek and Impreza

* Update experimentalLongitudinalAvailable check

* Update supported cars list

* bump panda

* Remove/rename es_lkas_msg to es_lkas_state_msg

* Use stockAeb for AEB passthrough

* bump panda

* bump panda

* remove stockFcw from stockAeb

* Subaru: Add FCW_Cont_Beep to stockFcw signals

* bump panda

* bump panda

* update poetry deps: shellingham

* bump panda

* bump panda

* Revert "update poetry deps: shellingham"

This reverts commit 6e9b20964890c8a5c416a17b8aaad4cc16fddcfc.

* Merge fixes

* bump panda

* bump panda

* update supported cars list

* dont use counters for long control

* fix unittests

* submodules update

* only soft disable in long control

* use common functions and cleanup

* apply hystersis correctly

* move to comma repo

* use CanBus

* cleanup

* explicit copy

* behind a flag

* remove unrequired rpm checks

* add comment

* fix flag issue

* we still need to check rpm

* update docs

* enable long for a test route

* unit tests

* inactive throttle fix

* Update subarucan.py

* Update carcontroller.py

* Update carcontroller.py

* inactive throttle fix

* Delete settings

* fix rate limit

* bump submodules

* bump panda

* bump panda

* bump panda

* bump panda

* simplify initial implementation, remove AEB

* reduce initial complexity by not intercepting cruisecontrol or brake_status

* fix fwd hook test

* show pcb off warning

* cleanup and setup for tuning

* fix sumobuldes

* revert unrelated changes

* only whats required

* only whats required

* clean that up

* better comments

* behind the flag for now

* comments and minimize diff

* align stuff

* cleanup for PR

* apply review suggestions

---------

Co-authored-by: Martin Lillepuu <martin@mlp.ee>
2023-08-16 12:58:09 -07:00
Dean Lee e8e03197ca replay: fix seekTo issue (#29422)
* fix seekTo issue

* remove extra space
2023-08-16 11:01:14 -07:00
Kacper Rączy f07e4fb49a process_replay: prevent creating orphaned processes if replay fails during setup (#29426)
Fix the ability to cleanup, if process container fails during start
2023-08-16 10:37:19 -07:00
Shane Smiskol b9e36b7faa car_helpers: common CAN fingerprint function (#29417)
* timing test

* test

* fix

* print

* loop

* clean up

* wider range

* Update selfdrive/car/tests/test_models.py

* Apply suggestions from code review

* run many times

* Update selfdrive/car/tests/test_models.py

* run for many its

* run with unittest and print as list

* Update .github/workflows/selfdrive_tests.yaml

* Update .github/workflows/selfdrive_tests.yaml

* total time is super inconsistent (body)

* Update selfdrive/car/tests/test_models.py

* clean up

* clean up

* clean up

* this works!

* draft

* test suite not as modular

* try something like this

* can do kb, but not too representative

* clean up

* remove kb? it depends on signals

* clean up

* more clean up

* rename

* just measure all CANParsers

* can do all this manually

* but this is way simpler

* comment

* stash

* draft

* draft

* remove old script

* clean up

* revert

* use it

* remove test

* opt

* no partial

* remove

* revert test_models
2023-08-16 03:28:50 -07:00
Shane Smiskol 2703a8e378 bump panda 2023-08-16 00:08:54 -07:00
Shane Smiskol 2d636deb4e test_models: check panda cruise state (#29423)
* cruise state test

* add todo

* rename

* clean up

* remove
2023-08-15 23:55:53 -07:00
Shane Smiskol 4073ffb02b test_models: add full internal segment list (#29425)
full internal test models seg list

remove avalon and sienna

volt with ascm on

another volt with ascm on

9bc2ee633c361c3d|2023-07-28--20-17-51--2

dashcam mode

c4e21532b6fe3847|2023-07-05--08-34-05--1

can invalid (missing PSCMStatus)

cf6ba99592c48848|2023-07-01--11-36-56--20
2023-08-15 23:33:52 -07:00
Justin Newberry fd09de8a3e bump panda (#29424) 2023-08-15 23:25:54 -07:00
Jason Young e1a64260d3 HKG: Vehicle mass corrections (#29418)
* HKG: Vehicle mass corrections

* not gross

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-08-15 20:46:57 -07:00
Shane Smiskol e2910d0720 CANParser: perf benchmark on route script (#29324)
* timing test

* test

* fix

* print

* loop

* clean up

* wider range

* Update selfdrive/car/tests/test_models.py

* Apply suggestions from code review

* run many times

* Update selfdrive/car/tests/test_models.py

* run for many its

* run with unittest and print as list

* Update .github/workflows/selfdrive_tests.yaml

* Update .github/workflows/selfdrive_tests.yaml

* total time is super inconsistent (body)

* Update selfdrive/car/tests/test_models.py

* clean up

* clean up

* clean up

* this works!

* draft

* test suite not as modular

* try something like this

* can do kb, but not too representative

* clean up

* remove kb? it depends on signals

* clean up

* more clean up

* rename

* just measure all CANParsers

* can do all this manually

* but this is way simpler

* comment

* fix mypy

* this is correct too

* 3 seconds instead of 1.5
2023-08-15 20:06:15 -07:00
Shane Smiskol 6ec00f5ee2 test_models: more typing (#29420)
* not type checked, but we set this in test_car_model

* type this
2023-08-15 20:01:33 -07:00
Maxime Desroches 4c1b8b71d0 acados: update to 0.2.2 (#28821)
* use 0.2.2

* Add mac binaries

* Replace libqpOASES with symlink on larch64

* Add comment to build script

---------

Co-authored-by: Kacper Rączy <gfw.kra@gmail.com>
2023-08-15 15:53:21 -07:00
Justin Newberry 7ec52da33a Subaru: calculate steering angle rate (#29409)
* calculate rate

* added adeeb's comment

* move to selfdrive/car

* that makes way more sense

* much simpler

* fix rate

* preglobal doesn't have a counter

* update ref

* merge

* update ref after merging
2023-08-15 15:28:46 -07:00
Shane Smiskol 936f8b9817 test_models: some typing (#29413)
* type

* also type check this func

* unused
2023-08-15 15:25:36 -07:00
Jason Young 90c4bbe8e4 car interfaces: cleanup tire stiffness calculation (#28263)
* cleanup tire stiffness calculation

* bump cereal

* think these todos still apply

* gm: same default

* revert comments

* bump

* update refs

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-08-15 14:17:08 -07:00
Shane Smiskol 99a96c7f54 Revert "bump cereal (#29412)"
This reverts commit 899c1ece59.
2023-08-15 12:30:35 -07:00
Shane Smiskol 899c1ece59 bump cereal (#29412)
bump
2023-08-15 12:23:25 -07:00
Adeeb Shihadeh 3b849811e5 pre-commit: autoupdate hooks (#29407)
Update pre-commit hook versions

Co-authored-by: adeebshihadeh <adeebshihadeh@users.noreply.github.com>
2023-08-15 10:29:02 -07:00
Dean Lee 9dac6b66f9 cabana: set border color for scatter series (#29408) 2023-08-15 10:28:48 -07:00
Shane Smiskol 3e2903a0c1 Update TOTAL_SCONS_NODES
Should add a CI test for this
2023-08-14 17:34:19 -07:00
Dean Lee 613bbb7e6d ui/map: assign the return value to last_position (#29341)
assign the return value directly to last_position
2023-08-14 16:39:43 -07:00
Kacper Rączy ae649ec68d macOS: fix GH actions cache (#29399)
Add lz4 and xz to dep cache exceptions
2023-08-14 16:13:35 -07:00
Shane Smiskol fb235238ad jenkins: re-enable test_models (#29394)
* re-enable test_models

* now?

* Remove bad Volt segment

* Update Jenkinsfile

* use first n segments
2023-08-14 16:08:34 -07:00
Adeeb Shihadeh 6c3e5c4362 add PyQt5 package (#29400) 2023-08-14 15:13:42 -07:00
Kacper Rączy d8bda6feb4 replay: increase file descriptor limit macOS (#29346)
* Increase file descriptor limit for replay on macos

* Reword comment

* Move set_file_descriptor_limit to common/util.cc

* Include resource.h header
2023-08-15 00:05:27 +02:00
Justin Newberry f8cbdcfa40 CI: docs speedup by caching first stage (#29397)
* docs speedup

* fix tags on docs build

* build docs without build-push-action
2023-08-14 14:36:17 -07:00
Robbe Derks 5fd6589779 Build tools on aarch64 (#29393) 2023-08-14 13:46:14 -07:00
quinnp8703 c74daad0b9 volkswagen/audi: Additional S3 2015 firmware (#29366)
Update values.py

fingerprinting for early production 2015 audi s3
2023-08-14 13:34:44 -07:00
Dean Lee 37c3854623 util: fix typo in comment (#29392)
fix typo in comment
2023-08-14 12:05:38 -07:00
Harald Schäfer 0dacba96eb Rm poetry from packages (#29361)
no poetry dep needed
2023-08-14 09:50:39 -07:00
Dean Lee 22bc06fdaa common/util: move function random_int to util (#29388) 2023-08-14 09:37:16 -07:00
Dean Lee 29f2389cce ui/networking: bolding the connected network (#29385) 2023-08-14 15:18:41 +01:00
Dean Lee 9071c8a4fc ui/map_instructions: set margin-top to UI_BORDER_SIZE (#29387) 2023-08-14 12:43:32 +01:00
Justin Newberry 783bb1f878 Replay UI: Fix zip issue (#29384)
Update ui_helpers.py

resolves https://github.com/commaai/openpilot/issues/29383
2023-08-13 22:55:59 -07:00
Adeeb Shihadeh 0bacd98828 soundd: cleanup remnants from running while offroad (#29006)
cleanup
2023-08-13 22:17:54 -07:00
Justin Newberry c8cae714c6 Subaru: ES_Distance cruise cancel safety (#29362) 2023-08-13 22:14:13 -07:00
Adeeb Shihadeh de66ba0187 jenkins: remove test that's now run in Actions 2023-08-13 21:21:54 -07:00
Dean Lee 01089cf4bf UI: make wifi network sorting more stable (#29376)
* stable sort

* fix typo,rename to strengthLevel
2023-08-13 21:12:23 -07:00
Dean Lee 878d3f4cfc ui/sidebar: break long line for readability (#29379) 2023-08-13 18:03:38 -07:00
Adeeb Shihadeh 09ffce8073 add small ui for jenkins runners (#29382) 2023-08-13 18:01:51 -07:00
Adeeb Shihadeh db287496d8 Fixes for PYTHONWARNINGS=error (#29381) 2023-08-13 17:22:56 -07:00
Justin Newberry 106f49a00f Ford: Explorer 2020 fingerprint (#29372) 2023-08-13 16:41:35 -07:00
Dean Lee 373171afd0 ui/networking: remove dynamic property and style sheet (#29377) 2023-08-13 14:48:06 -07:00
Dean Lee fd8a9c8520 ui/networking: remove call to clearLayout (#29037)
* build list inplace

* move clearLayout to cabana

* cleanup include

* polish style

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2023-08-13 11:57:40 -07:00
Jason Wen 3a00149f56 Hyundai CAN-FD: carState cleanup (#29326)
* Hyundai CAN-FD: carstate cleanup

* Looks nicer

* Rearrange

* Fix

* Update selfdrive/car/hyundai/carstate.py

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2023-08-13 11:28:09 -07:00
Marcus Millspaugh 2c13dea1c8 additional Subaru fwVersion (#29365)
* Update Car/Subaru values.py to support 2022 Crosstrek

Tested via SP, just want support via stock OP

* remove duplicates

* started adding support for toyota bZ4X

* Add files via upload

* Update values.py

* Update values.py

* Update values.py

* Update values.py

* remove duplicates and mistakes

---------

Co-authored-by: Justin Newberry <jnewberry0502@gmail.com>
2023-08-12 22:05:33 -07:00
morrislee 060aa33b99 Closer Silverado 1500 Weight (#29355) 2023-08-12 17:24:12 -07:00
Adeeb Shihadeh b11b14aff8 CI: enable PYTHONWARNINGS=error (#29364)
* CI: enable PYTHONWARNINGS=error

* fixes

* more ignore

* more modeld ignore
2023-08-12 17:15:16 -07:00
Justin Newberry 46f75137f2 bump panda (#29363) 2023-08-12 14:57:39 -07:00
Dean Lee 51cdf155d9 encoderd: fix indentation (#29356)
fix indentation
2023-08-12 13:30:54 -07:00
Jason Young c76d24cec9 VW MQB: Add FW for 2017 Volkswagen Golf R (#29360) 2023-08-12 13:30:40 -07:00
Korben 518ced49ce Full French UI Localization (#29260)
* Update languages.json

French added

* Create main_fr.ts

French lang file

* git ignore

* update french lang
2023-08-11 21:36:58 -07:00
Adeeb Shihadeh d6857996d3 cleanup unused python packages (#29353)
* rm unused python packages

* lock
2023-08-11 21:34:47 -07:00
Adeeb Shihadeh 00a11a1a2b remove fastcluster (#29352)
* remove fastcluster

* lock

* rm there

* and from release files
2023-08-11 21:08:49 -07:00
Adeeb Shihadeh 0ced56b2ea remove xx dependencies (#29263)
* rm xx deps

* mv that

* fix

* fix a path

* relock

* relock

* update

* update sentry

* update

* revert sentry

* Update lock

* Dummy pip package

* Not needed with poetry

* dont need dummy

---------

Co-authored-by: Bruce Wayne <harald.the.engineer@gmail.com>
2023-08-11 20:05:44 -07:00
Shane Smiskol f5a361a111 FPv2: fingerprint on current brand's candidates (#28435)
* pass in brand

* needs to be flipped for exact matching since it's subtractive

* new helper

* makes more sense flipped

* clean up
2023-08-11 18:47:12 -07:00
Shane Smiskol 09ce869ee7 fw_versions: clean up some typing (#29350)
* another common type

* here too

* unused
2023-08-11 18:37:17 -07:00
Shane Smiskol 001d4e8729 test_models: match online fingerprinting behavior (#29306)
* draft

* 1x

* clean up

* final clean up

* fix

* self explan

* space

* space
2023-08-11 18:33:11 -07:00
Shane Smiskol a1e85f3661 static analysis fixes 2023-08-11 18:22:42 -07:00
Shane Smiskol 1099b3486a test_models: check relay malfunction (#29270)
* check relay malfunction in test_models

* draft

* actual relay malfunction (or ASCM was turned on)

* rav4: not dashcam and op enabled, but we're not sending anything

* clean up

* spaces

* more space

* flip

* better?

* combine

* for

* move up
2023-08-11 18:10:27 -07:00
Kacper Rączy 460f5c8e0b radard: tie radard frequency to modelV2 vol. 2 (#29240)
* radard: tie radard frequency to modelV2

Accumulate parsed messages until state is updated (toyota)

Same for honda

Rename rr to something more descriptive

* Change _update method name, since signature has changed

* Update ref commit

* Some renames

* Check for number of cans
2023-08-11 18:07:06 -07:00
Justin Newberry 2482b58968 CI: move other caches out of /tmp (#29348)
* also move other caches

* macos can stay
2023-08-11 17:41:23 -07:00
Justin Newberry e4ead4f183 Ruff: b905 (strict zip) (#29336)
* added mutable default args

* most of the Bs

* add comment about lrucache

* b905
2023-08-11 16:13:51 -07:00
Justin Newberry ace4d78e31 CI: move cache to home directory (#29347)
move cache to home dir
2023-08-11 15:45:38 -07:00
Vivek Aithal 81322a4805 [commabody] setup and run live stream encoders (#29087)
* op changes needed for body

* remove logmessaged callback

* add newlines

* add stream arg

* add stream_encoder to config

* supersets, avoid two encoderd

* fix recursive exit error

* fix loggerd crash

* add stream_encoderd cpu usage to test

* Update system/loggerd/loggerd.h

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>

* resolve comments

* stream_encoderd onroad to false

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2023-08-11 15:34:25 -07:00
Justin Newberry 62c1e65924 Ruff: enable most of bugbear (#29320)
* added mutable default args

* most of the Bs

* add comment about lrucache
2023-08-11 15:33:49 -07:00
Jason Wen 583bf38e6a bump to 0.9.4.2 2023-08-11 17:51:36 -04:00
Shane Smiskol 84fbf1c2e9 simulator: fix CANParser input args (#29343)
* we weren't testing?

* fix
2023-08-11 14:12:33 -07:00
Adeeb Shihadeh aeece52a06 setup openpilot package (#29338) 2023-08-11 14:11:28 -07:00
Justin Newberry a0f399677e CI: use default caching action (#29339) 2023-08-11 14:03:10 -07:00
Dean Lee 233e053842 scons: rename QT_MOCHPREFIX to QT3_MOCHPREFIX (#29334)
rename QT_MOCHPREFIX to QT3_MOCHPREFIX
2023-08-11 10:38:34 -07:00
YassineYousfi 9858754a02 camera transformations: pass intrinsics to get_calib_from_vp (#29323) 2023-08-11 10:24:30 -07:00
Jason Wen 3449d301ae Update CHANGELOGS.md 2023-08-11 09:49:38 -04:00
Misophist 4cad0a035d util: random_string is now more entropic (#29312)
* random_string now returns a significantly higher entropy random string

sizeof(char*) is going to be 8 on a 64-bit system, not the length of the
string. Before, only strings of integer values [0-6] were being generated. Also
switched to C++ constructs for simplicity.

* Update common/util.cc

* maintain repo style

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-08-11 03:46:47 -07:00
Shane Smiskol cc747e2166 ui/map_instructions: round <500 distances (#29333)
round
2023-08-11 03:33:40 -07:00
Dean Lee 4a89928a9a ui/map: fix CSS error (#29332)
fix css error
2023-08-11 03:31:13 -07:00
Shane Smiskol 52675b2739 ui/map_instructions: clean up lane icon selection (#29330)
* draft

* revert

* remove extra directions

* more clean up

* add todo

* revert rename

* I assume this is moot, but preserve behavior

* spacing
2023-08-11 03:27:32 -07:00
Dean Lee 80356b34f1 ui/map: check NavDestination only if navInstruction is invalid (#29331)
* check NavDestination only if navInstruction is invalid

* Update selfdrive/ui/qt/maps/map.cc

Co-authored-by: Shane Smiskol <shane@smiskol.com>

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-08-11 03:26:08 -07:00
Dean Lee 15bb9dd096 ui/map: set WA_NoMousePropagation to prevent mouse event from propagating up (#29329)
set WA_NoMousePropagation
2023-08-11 02:45:54 -07:00
Shane Smiskol 2a38f38be1 common_fault_avoidance: take a bool (#29328) 2023-08-11 00:27:53 -07:00
Jason Wen 22cf5421d6 ui onroad: utilize local variables for repeated capnp reader access (#29325) 2023-08-10 23:13:45 -07:00
Dean Lee cef693f309 ui/onroad: move duplicated code to drawIcon() (#29149)
* move duplicate code to function drawIcon

* fix center point
2023-08-10 23:08:46 -07:00
Shane Smiskol cbfcc40571 Car interfaces: remove hard-coded signal definitions (#27773)
* What if: no signals! 🙅🤌🎆

* do hyundai

* honda!

* do gm

* and vw! (sorry comments)

* do those

* -500

* little more

* fix subie

* change back

* bumpopendbc

* oof lol

* messages

* some clean up

* here too

* clean up honda radar_interface.py

fix

rm

* bump opendbc to master

* add todo

* rename checks in tesla/radar_interface

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2023-08-10 20:30:35 -07:00
Jason Wen e57d077fd3 Update CHANGELOGS.md 2023-08-10 22:45:00 -04:00
Jacob Pfeifer fbd4771469 mapd: utilize advisory speed limit in curves (#142)
Co-authored-by: Jason Wen <haibin.wen3@gmail.com>
2023-08-10 22:43:39 -04:00
Shane Smiskol 470b520d8a bump opendbc (#29321)
bump
2023-08-10 19:40:03 -07:00
Justin Newberry 8793cbff40 Ruff: enable flake8-builtins (#29315)
* enable flake8-builtins

* replace any with contains

* fix typo in pack

* fix type

* format is from the parent module, has to be enabled

* item_id

* fix item_id

* disable for id since that's what the remote server returns
2023-08-10 18:58:22 -07:00
Adeeb Shihadeh cd4bb412f5 CI: bump up model test timeout 2023-08-10 17:29:56 -07:00
Adeeb Shihadeh 01273d6224 ruff: check for unused noqa 2023-08-10 17:11:48 -07:00
Justin Newberry 69deed1f1a Ruff: Disallow implicit string concat (#29316)
* ruff enable isc

* also disallow multiline
2023-08-10 16:43:39 -07:00
Justin Newberry 4a9afd7554 Ruff: comprehensions conventions (#29317)
ignore c408
2023-08-10 16:40:30 -07:00
Justin Newberry af3ed37c5c Ruff: flake8 pie (misc lints) (#29318)
flake8 pie
2023-08-10 15:28:51 -07:00
Jason Wen fc59ed06f2 ui: remove Speed Limit Style 2023-08-10 16:07:13 -04:00
Adeeb Shihadeh 670fa9af5f pytest unit test running (#29261)
* setup config

* collect passes

* pytest system/ works
2023-08-10 08:23:19 -07:00
Harald Schäfer 4b57e71e93 Poetry lock: no poetry recursion (#29304)
* Poetry lock: no poetry recursion

* Make tests pass

* Update poetry

* Update pip too

* Update lock with new pip

* Needed for xx
2023-08-10 03:34:24 -07:00
eFini 8d7e909b53 map ui: Fixed ETA text alignment issue in CJK (#29311)
fixed ETA text alignment issue in CJK
2023-08-10 02:15:43 -07:00
Shane Smiskol 70b1e9dd75 test_models: run on route list (#26226)
* move to openpilot

* draft

* support internal urls

* not used

* update seg list

* regen segment list

* regen seg list

* regen

* regen

* regen

* no dirty segments

* regen seg list with no fuzzy or fixed fp

* regen segments with hda2 exception

* regen with added filters

* regen without bad dongle

* regen

* regenerate!

* regenerate, only OP enabled

* regen

* regenerate!

* regenerate!

* stash

* use SegmentName

* new route list

* add temp comment

* remove comment

* let's see if this works

* comment out other tests to speed up

* fix agent

* ?

* hmm

* oh whoops...

* add matrix

* fix

* how many levels do we need?

* fix values

* matrix can't be in parallel

* how about this

* try this

* Revert matrix

Revert "try this"

This reverts commit 8d0d91fd70c467c1fbb4e4e9aed511d15b2a30ef.

Revert "how about this"

This reverts commit a8e4fc53234824e77cbfb1e471277bc033e9dea1.

Revert "matrix can't be in parallel"

This reverts commit daaa6fcc3c75c74cbb90e97c565099a94123994c.

Revert "fix values"

This reverts commit df554b6a3371d124a574eb8d26bc51ef5b5b8fde.

Revert "how many levels do we need?"

This reverts commit 1a17320fa1c5e7220ef60e29981bbb3bb7da16c6.

Revert "fix"

This reverts commit e7eb6e404358fbd2eac3fea1901a8d30ea92d729.

Revert "add matrix"

This reverts commit a1b57e5725417d3c2f639f8edfc0c889b84b6753.

* use pytest instead! (5 jobs is ~150 mins)

* split lines, uncomment

* This Sienna seg has a fault SDSU that stopped forwarding/sending msgs

* picked a route with no PSCMStatus and no panda errors, recent routes are working

* this cadillac was dashcammed (no radar)

* opened an issue for this, it's 'expected' right now

* small clean up

* small clean up

* i don't think that worked

* is this needed?

* add to new PC tests

* cache

* draft

* Revert "draft"

This reverts commit 3b7f740dd4883118747300bc3687074c2d3c2116.

* probably should be function

* draft

* clean up

* add todo

* 600 random segments

* debug

* does this fix pythonpath issues?

fix

* try this

* mount?

* pytest again!

* no need for PYTHONPATH now

* Update Jenkinsfile

* ?

* convention

* clean up

* would be even more complex (have to unset ci which is class level)

* track

* is lfs pulled at all?

* ah no it's not
2023-08-10 00:45:23 -07:00
Cruise Brantley e8f33fb5b7 Hyundai: Additional Ioniq 5 firmware (#29307)
added fwdCamera
2023-08-09 23:10:54 -07:00
Adeeb Shihadeh 44c76257a1 rm some old tests 2023-08-09 22:31:47 -07:00
Jason Wen 07a81c16bb Update CHANGELOGS.md 2023-08-10 00:20:27 -04:00
eFini 5b4aa67864 Multilang: Chinese translations update (#29310)
* chinese translations

* Update selfdrive/ui/translations/main_zh-CHS.ts

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-08-09 20:40:39 -07:00
Shane Smiskol 6106876da7 test_car_model: remove duplicate argument (#29309)
* only need to pass test_route

* unused
2023-08-09 20:36:49 -07:00
Mitchell Goff c04e5d12fc Non-Inflatable Model 🎈 (#29003)
* Added all maneuvers to navInstruction message

* Added nav instruction logic to modeld

* New model: fcee01c1-96bb-414f-b00d-e4a994a00922/700

* Fixed bug in navd

* Added sharp/slight modifiers

* Updated refs
2023-08-09 19:56:45 -07:00
Adeeb Shihadeh e53f9597f3 remove rest of pylint (#29302)
* remove rest of pylint

* fix release build
2023-08-09 19:03:36 -07:00
Shane Smiskol 6ffdc32bfc Toyota: set stop and go if TSS2 car (#29303)
we should assume all TSS2 have stop and go (because we set them all manually)
2023-08-09 17:46:06 -07:00
Shane Smiskol 225ed2ed5a interfaces: test interface attributes (#29301)
* test

* draft

* draft

* clean up

* clean up

* better test

* clean up

* check car info

* uncomment

* rm space

* no loop

* use dbc

* more clear

* one line
2023-08-09 17:01:38 -07:00
Adeeb Shihadeh e9e0661771 ruff: fix running outside pre-commit 2023-08-09 16:45:09 -07:00
Adeeb Shihadeh 51831d03a3 Revert "interfaces: test interface attributes (#29297)"
This reverts commit 6a678cde6c.
2023-08-09 16:28:12 -07:00
Shane Smiskol 6a678cde6c interfaces: test interface attributes (#29297)
* test

* draft

* draft

* clean up

* clean up

* better test

* clean up

* check car info

* uncomment

* rm space

* no loop

* use dbc

* more clear

* one line
2023-08-09 16:10:30 -07:00
eFini 8ca7753c95 longitudinal_planner.py: cleaner variable assignment (#29290)
* cleaner variable assignment

* Update selfdrive/controls/lib/longitudinal_planner.py

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2023-08-09 15:17:19 -07:00
Adeeb Shihadeh c53545621e jenkins: cleanup all orphaned git locks (#29296) 2023-08-09 15:14:50 -07:00
Justin Newberry 7fdd9fc37c CI: Pylint to ruff (#29294)
* pylint to riff

* pylint to riff

* pylint to riff

* revert more

* undo exclude removal

* exclude tinygrad

* set line length

* pylint exclusions to ruff

* same excludes as old linter

* fix tools QA

* remove unrequired check

* revert linting third_party

* ignore e402
2023-08-09 13:26:54 -07:00
Justin Newberry cf64b27168 Linter: Fix >160 line length test (#29287)
* test

* fix line length

* fix line length

* fix file size

* revert poetry

* cleanup for PR
2023-08-08 17:13:35 -07:00
Shane Smiskol 9a09fa7b12 Update releases 2023-08-08 16:35:55 -07:00
LC 5ace930c5c Toyota: Lexus IS 2023 port (#29257)
* added LEXUS_IS_TSS2 to values.py

* added LEXUS_IS_TSS2 to interface.py

* Apply suggestions from code review

* add torque params

* add test route

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-08-08 16:34:37 -07:00
Irene 2bceb2425f Toyota: rename ACC_HUD to PCS_HUD (#29150)
* Toyota: rename ACC_HUD to PCS_HUD

* bump opendbc

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-08-08 15:24:57 -07:00
Justin Newberry a91764954b Revert "CI: pylint to ruff (#29276)" (#29284)
This reverts commit cb31a53d8a.
2023-08-08 14:24:04 -07:00
Vivek Aithal e7d307ca1b [commabody] Add new body teleop ui (#29282)
* Revert "Revert "[commabody] Add new body teleop ui (#29119)" (#29249)"

This reverts commit 623351e4ed.

* add to release files

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2023-08-08 14:12:51 -07:00
Shane Smiskol b34341e7e5 test fw query: fix migration import (#29283)
huh this was just broken
2023-08-08 13:48:11 -07:00
Justin Newberry cb31a53d8a CI: pylint to ruff (#29276)
* pylint to riff

* pylint to riff

* pylint to riff

* revert more

* undo exclude removal

* exclude tinygrad
2023-08-08 13:41:30 -07:00
Dean Lee 8076107b4f camerad: auto free the buffer when it goes out of scope (#28807) 2023-08-08 13:26:04 -07:00
Cameron Clough 748238f87c ui/map: update mapbox style (#29186) 2023-08-08 20:18:49 +01:00
Adeeb Shihadeh 825bc2aed5 bump opendbc 2023-08-08 11:23:29 -07:00
Cameron Clough 95289cb180 Ford: update Maverick 2022 docs (#29280) 2023-08-08 11:47:23 +01:00
Adeeb Shihadeh ee7a763ba3 macOS: remove old dependencies (#29275) 2023-08-07 21:13:09 -07:00
Adeeb Shihadeh 7f02cb9faf jenkins: rm tools copy in release tests (#29273)
* jenkins: rm tools copy in release tests

* rm that too
2023-08-07 19:14:45 -07:00
Adeeb Shihadeh 9bb7eba2d3 bump submodules (#29272) 2023-08-07 19:09:41 -07:00
Shane Smiskol 8d3e661f79 Toyota: rename Toyota A harness (#29269)
* add toyota b harness

* not used yet
2023-08-07 15:31:50 -07:00
Saber fa504b7bae VW MQB: Add FW for 2023 Skoda Karoq (#29264)
Co-authored-by: Cameron Clough <cameronjclough@gmail.com>
2023-08-07 22:38:59 +01:00
mitchellgoffpc c1be254657 Bump cereal 2023-08-07 14:02:54 -07:00
Adeeb Shihadeh ae8252c14a CI: move longitudinal tests into unit tests job (#29245)
* move long into unit test job

* try without these

* add that back
2023-08-07 06:48:06 -07:00
Adeeb Shihadeh 3da28d4df2 remove old debug scripts 2023-08-06 21:54:08 -07:00
eFini e883789c0e unused variables removal (#29247) 2023-08-06 21:41:13 -07:00
Jason Wen aa043a3073 bump cereal 2023-08-07 00:41:07 -04:00
Adeeb Shihadeh b420e6fb13 locationd: speedup unit tests (#29262) 2023-08-06 21:37:04 -07:00
Adeeb Shihadeh 1e3bb5be7e build_release: simplify panda building (#29252)
* build_release: simplify panda building

* cleanup
2023-08-05 16:56:30 -07:00
Harald Schäfer 623351e4ed Revert "[commabody] Add new body teleop ui (#29119)" (#29249)
This reverts commit a7304d059c.
2023-08-05 07:15:35 -07:00
Shane Smiskol cffc14e4d8 map: fix exit lane direction when active (#29159)
* fix

* clean up

* comment
2023-08-05 04:02:18 -07:00
Shane Smiskol 8bff75c010 GM: remove unused CANParser flag (#29244)
setting to 0 does same thing
2023-08-04 21:42:34 -07:00
Kacper Rączy 1774b4fc61 Revert "radard: tie radard frequency to modelV2 (#29063)" (#29243)
This reverts commit 255f5c13f2.
2023-08-04 20:25:40 -07:00
David Peterson b50ffc4360 Nissan: allow B drive mode for Nissan Leaf (#29228)
* CAR.LEAF: NissanCarInfo("Nissan Leaf 2018-22”), video_link= "https://youtu.be/vaMbtAh_0cY&t=0s"),

Add Youtube video 2019 Leaf

* Update selfdrive/car/nissan/values.py

* Update interface.py

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-08-04 20:21:04 -07:00
Adeeb Shihadeh 75ab960557 CI: add timeouts to selfdrive tests (#29239)
* CI: add timeouts to selfdrive tests

* ugh, so slow

* will have to come back to this one
2023-08-04 18:14:14 -07:00
Adeeb Shihadeh f714e7cb24 CI: update cache action (#29241)
* update that

* update one more
2023-08-04 17:59:55 -07:00
Adeeb Shihadeh 0df2cd4fa8 CI: only run on master + PRs (#29242) 2023-08-04 17:56:30 -07:00
mitchellgoffpc 4a40bde5aa Revert "special opencv is only for xx (#29161)" 2023-08-04 17:02:03 -07:00
Shane Smiskol 082fe6868d FPv2: fast fuzzy fingerprinting (#29233)
* fast fuzzy fingerprinting

* use match_fw_to_car helper

* fix and comment

* alone

* Update selfdrive/car/fw_versions.py

* Update selfdrive/car/fw_versions.py
2023-08-04 16:10:49 -07:00
Adeeb Shihadeh 8633e5f8ab CI: add timeouts to tools jobs (#29238) 2023-08-04 15:35:21 -07:00
Adeeb Shihadeh e3ca9f3e85 tici: reset panda state in amp test setup (#29237) 2023-08-04 15:07:01 -07:00
Jason Wen 259203e8b2 Update CHANGELOGS.md 2023-08-04 17:45:56 -04:00
Jason Wen 6a93469290 bump to 0.9.4.1 2023-08-04 17:41:01 -04:00
Shane Smiskol fffc4ae446 Chrysler: add new diagnostic address for Jeep Grand Cherokee 2016-18 (#29235)
not a standard diag address, or anything we query. only 2 messages

900dfa83b4addfe6|2023-07-31--08-33-51
2023-08-04 14:29:00 -07:00
mitchellgoffpc 66dfe8fd5e Added modeld gitignore 2023-08-04 14:14:45 -07:00
Vivek Aithal a7304d059c [commabody] Add new body teleop ui (#29119)
* add new ui

* move body tele op ui to new dir

* fix codespell errors

* resolve mediablackhole pylint error

* fix import error

* style fixes

* use logging, not print

* fix js styling

* resolve comments
2023-08-04 13:56:46 -07:00
Adeeb Shihadeh 7949dfe796 bump panda (#29234)
* bump panda

* bump
2023-08-04 11:09:20 -07:00
Kacper Rączy 255f5c13f2 radard: tie radard frequency to modelV2 (#29063) 2023-08-03 22:10:21 -07:00
Saber 8332abf015 VW MQB: Add FW for 2019 Skoda Kodiaq (#29225)
route name:0bbe367c98fa1538|2023-08-01--12-21-06--0
2023-08-03 16:37:54 -07:00
Saber 2ff53a62eb VW MQB: Add FW for 2018 Skoda Superb (#29222)
route name:77478022b2ebc4b6|2023-07-31--19-00-38--45
2023-08-03 16:37:34 -07:00
Justin Newberry a90f6d9163 Cabana: Fix >1 hour route time displaying (#29226)
fix greater than 1 hour
2023-08-03 13:27:17 -07:00
Shane Smiskol acc732efbb replay: new demo route (#29215)
* new demo route

* replace other references (except gps test)

* Apply suggestions from code review

* it's 13 segments
2023-08-03 13:18:44 -07:00
Shane Smiskol fbc56b6c73 athenad: remove duplicate exception clause (#29220) 2023-08-03 10:23:38 -07:00
Tenebrous c438f2ba17 Toyota: add missing C-HR Hybrid 2020 (UK) FW (#29223) 2023-08-03 15:05:10 +01:00
Shane Smiskol 0f7b775884 athenad: update comment about timeout constant (#29216)
* in socket!

https://bugs.python.org/issue26273

* clean up

* ignore mypy bug

* comment

* just comment
2023-08-03 04:24:51 -07:00
Shane Smiskol b53bf00555 athenad test: use helper function (#29217) 2023-08-03 11:54:12 +01:00
Christian Bull Gjertsen 24bfb2b44b car docs: update Toyota vote link (#29218)
* Update CARS.md

Dead link

* fix link

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-08-03 03:05:59 -07:00
Shane Smiskol 6ad6191e6a car docs diff bot: don't ignore failures
we have a test for this, so if that fails, doesn't matter if this fails too
2023-08-02 17:18:43 -07:00
Jason Wen 1c7e799cc8 bump to 0.9.4.1 2023-08-02 16:38:33 -04:00
Jason Wen 58e106c0d5 sunnypilot: fix upstream conflicts 2023-08-02 15:03:05 -04:00
Maxime Desroches f18ff752d3 docs: fix 3x shop link (#29212)
fix link
2023-08-02 10:50:07 -07:00
nathanoy 3fca1b4f8d Updated Carla to version 0.9.14 (#29210) 2023-08-02 08:41:36 -07:00
Robbe Derks b81dcef30d bump panda 2023-08-01 23:40:11 -07:00
Kacper Rączy 6bed72ddd6 third_party: remove curl binaries and headers (#29206) 2023-08-01 22:23:23 -07:00
Adeeb Shihadeh bc0aa1c598 manager: remove old unkillable process handling (#29209) 2023-08-01 22:18:58 -07:00
Jason Wen 35e8d675bc bump submodules 2023-08-01 23:04:11 -04:00
Jason Wen 8498b1a1c3 Merge branch 'upstream/openpilot/master' 2023-08-01 23:03:54 -04:00
Mitchell Goff 663fc0d8fe Clean up model_publish args to simplify cython bindings (#29203)
* Clean up model_publish args to simplify cython bindings

* pass by reference

* Move FCW and model confidence queues into PublishState
2023-08-01 19:23:18 -07:00
Adeeb Shihadeh feaad4ce42 bump panda 2023-08-01 16:41:45 -07:00
Kacper Rączy c640429406 aarch64: ubuntu build support (#29171)
* Add support for aarch64 pc linux

* Add new libyuv path to release files

* Add libyuv's x86_64 lib dir

* Move left-over platform specific dirs from files_common

* Remove libyuv/lib directory (duplicate)

* Fix mpc Sconscripts

* Remove acados lib path from mpc sources

* Fix typo

* Add watch3 exec on aarch64
2023-08-01 16:18:46 -07:00
mitchellgoffpc 3f0879544f Bump cereal 2023-08-01 14:17:42 -07:00
Shane Smiskol dba4492aa0 Clean up common steer fault avoidance code (#29200)
* fix spacing

* more spacing

* better names and comments

* this default doesn't make sense

* or this

* explicitly boolean since latActive is
2023-08-01 14:02:15 -07:00
Adeeb Shihadeh 42e106dd47 rawgpsd: accept alt assistance file (#29202)
Co-authored-by: Comma Device <device@comma.ai>
2023-08-01 13:38:08 -07:00
Shane Smiskol 4474cb734f Car docs: clean up docs_definitions (#29201)
* two spaces around class

* inch

* easier to read
2023-08-01 13:24:51 -07:00
Adeeb Shihadeh 39ce23420c pre-commit: autoupdate hooks (#29198)
* Update pre-commit hook versions

* fix

* bump submodules

* one more

---------

Co-authored-by: adeebshihadeh <adeebshihadeh@users.noreply.github.com>
2023-08-01 12:32:21 -07:00
Adeeb Shihadeh f310d501f4 rawgpsd: better download proc cleanup (#29199)
* rawgpsd: better download proc cleanup

* more

* cleanup

---------

Co-authored-by: Comma Device <device@comma.ai>
2023-08-01 12:31:04 -07:00
AlexandreSato 3eaf3555af Multilang: update pt-BR translation (#29197) 2023-08-01 11:01:25 -07:00
Justin Newberry a19f8dce92 Homogenize Steering Fault Avoidance (#29140)
* fix subaru fault

* try this!

* wip

* try this

* this more or less worked

* this is all under gen2

* that needs to be up there

* comment

* steer_angle

* test

* wip

* wip

* sync

* wip

* cleanup

* remove print

* use sets and fix unittests

* common fault avoidance

* common fault avoidance

* cleanup

* cleanup

* cleanup

* cleanup

* cleanup

* revert subaru to get this part merged

* revert name change

* revert name change

* revert name change

* same as before

* add test case

* also verify zero tolerance

* keep the current behavior

* split into multiple tests for easier debugging

* added comments and remove tests

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
Co-authored-by: Comma Device <device@comma.ai>
2023-08-01 10:27:06 -07:00
Justin Newberry ce679009ae Mapsd: Test recovery from internet drop (#29044) 2023-08-01 09:23:26 -07:00
Justin Newberry 1e1cc638d8 Car Docs: (optionally) Display a list of tools (#28782)
* display tools

* 5/16 also works

* cleanup

* static fix

* fix static analysis

* merge

* just use basepart

* use filter
2023-08-01 00:06:21 -07:00
Lee Jong Mun a61df2bdde controls: use common car interface acceleration limits (#29184)
* Duplicate Accel param

using interfaces accel param

* revert brand accel value

* import error

* sort

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-07-31 22:56:47 -07:00
Shane Smiskol 328bfefb5a FW query timing test: fix total time ref 2023-07-31 22:18:06 -07:00
Dean Lee da91555056 ui/OnroadWindow: do not update state when offroad (#29134)
do not updateState when offroad
2023-07-31 20:25:15 -07:00
Pavel Galashin 9992f852b2 Mazda: fingerprint 2023 Mazda CX-5 Carbon Edition (#29092)
fingerprint 2023 Mazda CX-5 Carbon Edition
2023-07-31 19:51:44 -07:00
Shane Smiskol c8050cf6b3 fingerprinting: always log CAN fingerprint (#29192)
* always log CAN fingerprint

* called finger
2023-07-31 18:26:05 -07:00
Dean Lee 940954c13e swaglog: enable type-checked against format string (#29096)
* check&fix fmt

* bump rednose

* correct format string

* bump rednose

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2023-07-31 17:49:50 -07:00
Kacper Rączy 547a033a3c process_replay: capture process output (#29027)
* Add ProcessOutputProxy

* Move launcher to its own field

* Move ProcessOutputCapture to its own file

* Return itself from __enter__ of OpenpilotPrefix

* Integrate ProcessOutputCapture into process_replay

* Add note about capture_output_store to README

* ipykernel import is optional

* Disable type checking for link_with_current_proc

* Remove assertion

* Decode outputs to utf-8

* read(self): return empty buf if its none

* Fix type annotations

* Replace fifo with regular file, to avoid hitting fifo size limit
2023-07-31 16:30:58 -07:00
Justin Newberry 38954418f0 Subaru: New LKAS Angle based cars in dashcam only (#29190)
* dashcam mode only

* fix name

* added those cars in dashcam mode only
2023-07-31 13:58:33 -07:00
Iamz 157568c0c1 Multilang: th translation update (#29183)
Update Thai translations
2023-07-31 13:39:01 -07:00
Nima Khodaveisi 24c7b044de dmmonitoringmodeld: remove unused libyuv import (#29180) 2023-07-31 13:23:13 -07:00
YassineYousfi 14e524d52b models/README: DM input is only luma (#29188)
dm input = only luma
2023-07-31 12:57:22 -07:00
Adeeb Shihadeh 3476205569 increase min duration of steer saturated alert (#29191)
* increase min duration of steer saturated alert

* update refs
2023-07-31 12:48:11 -07:00
Shane Smiskol 45dc13dd46 Update README.md (#29189) 2023-07-31 11:47:16 -07:00
Adeeb Shihadeh 1ebd41a3b5 add 3X support to 0.9.4 release notes 2023-07-31 10:07:16 -07:00
Cameron Clough efc9cdcca9 Update README.md 2023-07-31 15:01:37 +01:00
Kacper Rączy 7f1b13923f update_requirements: fix opendbc pre-commit hook installation (#29175)
Force poetry to stay in the same venv when installing pre-commit hooks
2023-07-31 00:47:00 +02:00
Cameron Clough 2fd6310352 docs: remove experimental mode comments from unsupported cars 2023-07-30 20:38:20 +01:00
Cameron Clough 2762a088f1 docs: CAN FD cars require a comma 3X or CAN FD panda kit (#29182) 2023-07-30 20:29:56 +01:00
Marcus Millspaugh d7e8577301 Update Car/Subaru values.py to support 2022 Crosstrek (#29177)
* Update Car/Subaru values.py to support 2022 Crosstrek

Tested via SP, just want support via stock OP

* remove duplicates

---------

Co-authored-by: Justin Newberry <jnewberry0502@gmail.com>
2023-07-30 10:05:21 -07:00
Kacper Rączy f911e5f028 libyuv: universal binary build for macOS (#29170)
* Create universal binary for libyuv

* Add comment about universal binaries to build script

* Remove duplicate license
2023-07-28 02:43:30 +02:00
Adeeb Shihadeh 7a5739c5a4 bump to 0.9.5 2023-07-27 15:30:37 -07:00
Shane Smiskol 6fe480b232 Experimental mode toggle description: missing spaces (#29167)
* Update settings.cc

* more missing spaces

* scons

* vanish

* fix that
2023-07-27 14:00:41 -07:00
Adeeb Shihadeh 73e3d69b8d build_release: rm panda obj dir 2023-07-27 13:14:21 -07:00
Adeeb Shihadeh fa310d9e25 add panda bootstubs to release files (#29163)
* add panda bootstubs to release files

* Update release/build_release.sh
2023-07-27 07:12:24 -07:00
Adeeb Shihadeh 2e634bc199 macOS: use bash_profile instead of bashrc (#29165)
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@Adeebs-MacBook-Air.local>
2023-07-27 00:31:42 -07:00
Vivek Aithal 156c7a84e8 [commabody] Add body packages to op (#29162)
* add body packages

* update poetry lock
2023-07-26 23:08:23 -07:00
Shane Smiskol 7c62c16196 map renderer: log unexpected map states (#29160)
log unexpected mapChange signals
2023-07-26 20:36:15 -07:00
Adeeb Shihadeh fb70913ffd special opencv is only for xx (#29161) 2023-07-26 20:31:52 -07:00
Shane Smiskol 3f33d72a4c map renderer: log when initializing layer (#29157)
Update map_renderer.cc
2023-07-26 16:34:23 -07:00
Maxime Desroches 922e27fa5a gpio_export return type (#29158)
return type
2023-07-26 16:01:26 -07:00
Adeeb Shihadeh e53ab3a18a CI: allow triggering fast release builds 2023-07-26 15:22:23 -07:00
Maxime Desroches eec99436c1 hardware: move gpio_export (#29154) 2023-07-26 15:12:01 -07:00
Adeeb Shihadeh 036888ec15 jenkins: reset USB (#29155)
* jenkins: reset USB

* fix non aux
2023-07-26 15:11:20 -07:00
Adeeb Shihadeh 77babcc60f thermald: don't show inavlid time alert until panda is up (#29153) 2023-07-26 14:31:53 -07:00
Adeeb Shihadeh 67ef6dd844 tici: add siren gpio 2023-07-26 11:35:11 -07:00
AlexandreSato 13822a0ec0 Multilang: update pt-BR translations (#29152)
update pt-BR translation
2023-07-26 09:54:10 -07:00
Adeeb Shihadeh ed07c3ceda tici: better cleanup in amp test (#29146) 2023-07-25 21:41:31 -07:00
Shane Smiskol cae1853ff7 nav: increase settings button resolution (#29147)
* Update icon_directions_outlined.svg

* simplify
2023-07-25 21:12:01 -07:00
Lee Jong Mun c354451216 kor translation update (#29145) 2023-07-25 20:34:16 -07:00
Adeeb Shihadeh 6b83724c50 jenkins: run tests with pytest (#29143)
* jenkins: run tests with pytest

* typo

* fix
2023-07-25 17:06:43 -07:00
Adeeb Shihadeh 48e10d1f94 boardd: add flag to skip fw version check (#29142) 2023-07-25 16:22:24 -07:00
YassineYousfi 2a027b9179 add apex to dependencies (#29139)
* apex back

* update lock

---------

Co-authored-by: ZwX1616 <zwx1616@gmail.com>
2023-07-25 14:57:06 -07:00
Adeeb Shihadeh 144f383cce Update RELEASES.md 2023-07-25 14:32:56 -07:00
Adeeb Shihadeh 0922a1040f ui: less confusing wifi training (#29137)
* ui: less confusing wifi training

* update

* cleanup

---------

Co-authored-by: Comma Device <device@comma.ai>
2023-07-25 13:32:00 -07:00
Harald Schäfer 9c3c7f0dda Experimental mode description: update nav (#29130)
* Update description

* Update releases

* Update RELEASES.md

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>

* Update selfdrive/ui/qt/offroad/settings.cc

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>

* small tweaks

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2023-07-25 10:31:25 -07:00
Shane Smiskol 431a2542c9 navd: fix hysteresis when reaching destination (#29032)
fix destination hysteresis when reaching destination
2023-07-25 01:43:28 -07:00
Shane Smiskol 412ed6a017 navd: don't use empty last step banner instructions (#29034)
* fix empty banner instructions when arriving at destination

* bug fixes

* hide distance on arrival

* stash

* simpler

* can also do this, but i don't like modifying the response

* clean up

* rm

* revert

* rm

* flip this order

* move up

* need to flip order

* Revert "need to flip order"

This reverts commit ba961b8e6aa5d9490ab0dc661866cff9c72db91d.

* Revert "move up"

This reverts commit f1a4d8ae883080d52547fdaf9472457050e40669.

* Update selfdrive/navd/navd.py
2023-07-25 01:28:17 -07:00
Mitchell Goff f0ae0c34cd Added python VisionBuf class (#29075)
* Added python VisionBuf class

* fixed property names

* Bump cereal
2023-07-25 01:08:39 -07:00
Shane Smiskol 0dd1dcc7d0 ui: new nav settings button (#29068)
* add image

* remove extra spacing

* add images

* use nav-settings-square-smaller.png

* draft

* clean up

* kinda works!

* nop need to update state

* can just use clicked

* MORE

* remove old button

* slightly smaller (todo change image))

* this works but is ugly

* remove old settings button

* draft

* no it's not

* draft 2.0

* clean up

* clean up

* let's make map_settings_btn public

* since we don't have map, use enabled

* fix image size

* can do clean up in another PR

show

* add line

* rename

* useless spacing

* use old nav icon

* handle DM icon (and test)

* clean up

* no reason

* remove old image

* don't use setCurrentIndex

* Revert "don't use setCurrentIndex"

This reverts commit 6fde765a3cd3a9ee39205614587a23fbfbc60950.

* also can use a ternary

* seems cleanest

This reverts commit f9287230704b94f46b6bb5376d9a17075a20caf7.
2023-07-24 22:27:01 -07:00
Harald Schäfer 1b90790b0f Update SAFETY.md (#29129) 2023-07-24 21:13:40 -07:00
Adeeb Shihadeh 571bf47b0a mapsd exit needs some work 2023-07-24 20:22:14 -07:00
Vivek Aithal 92448012f0 [commabody] Support both self-balancing bodies and the wheeled bodies (#29118)
* add wheeled body support

* add WheeledBody param

* make movement less jerky
2023-07-24 19:49:51 -07:00
Harald Schäfer a13cab302e Python packages: unpin (#29089)
* update scikit

* Unpin openpilot

* Unpin dev

* Unpin xx

* pin parametrized

* Poetry lock

* accidentally deleted
2023-07-24 19:01:09 -07:00
Shane Smiskol 13dc0325b2 ui/map: hide settings with showing map (#29127)
consistent map showing behavior
2023-07-24 18:25:46 -07:00
Adeeb Shihadeh dc25e7c3e3 boardd: handle false positive ignitions on red panda setups (#29126) 2023-07-24 16:47:19 -07:00
Adeeb Shihadeh 4cb8da91d7 boardd: reduce jitter around nacks (#29123)
* reduce jitter

* Update selfdrive/boardd/spi.cc

---------

Co-authored-by: Comma Device <device@comma.ai>
2023-07-24 16:37:23 -07:00
Jason Young 7ee9c4f94f VW MQB: Add FW for 2021 Volkswagen Atlas (#29125) 2023-07-24 16:34:30 -07:00
Adeeb Shihadeh 59d4fe736a bump panda 2023-07-24 15:13:11 -07:00
Erich Moraga 1776c16f9a Toyota: add fwdCamera ECU version for 2022 Lexus RX Hybrid (#29060) 2023-07-24 17:49:20 +01:00
Cameron Clough 4d10ba8af8 athena: stricter socket timeout when onroad (#29017) 2023-07-24 17:43:30 +01:00
Adeeb Shihadeh 3614ed942b Update RELEASES.md 2023-07-24 09:29:58 -07:00
Adeeb Shihadeh 14001be605 rawgpsd: retry injecting assistance data (#29115)
* rawgpsd: retry injecting assistance data

* sleep a bit

---------

Co-authored-by: Comma Device <device@comma.ai>
2023-07-23 22:10:36 -07:00
Adeeb Shihadeh 787d3b1714 tici: restart ModemManager if probing fails (#29114)
* tici: restart ModemManager if probing fails

* add comment

---------

Co-authored-by: Comma Device <device@comma.ai>
2023-07-23 20:36:13 -07:00
Shane Smiskol a31b1dcf16 disable_ecu: support sub-addresses (#29112)
allow sub_addrs
2023-07-23 18:34:35 -07:00
Dean Lee bcfb9d6940 ui/settings: use existing params instance (#29109)
use exsting params
2023-07-23 17:45:19 -07:00
Adeeb Shihadeh e2ae98e718 bump body: 2023-07-23 16:23:56 -07:00
Adeeb Shihadeh 9113816e1d rawgpsd: fix double setup (#29108)
* rawgpsd: fix double setup

* speedup test

* update that one

* minimal diff

---------

Co-authored-by: Comma Device <device@comma.ai>
2023-07-23 15:59:26 -07:00
Adeeb Shihadeh 5fb2f7072b rawgpsd: speedup tests (#29110)
* rawgpsd: speedup tests

* fix that one

* little more

* prevent subtle bugs

---------

Co-authored-by: Comma Device <device@comma.ai>
2023-07-23 15:38:47 -07:00
Dean Lee c0c00e1997 loggerd: check userFlag outside the while loop (#29095)
* improve check userFlag

* rename to ServiceState

* setxattr once
2023-07-23 12:33:06 -07:00
Adeeb Shihadeh 5831f9e5a0 common/gpio: switch to lru_cache for 3.8 compatiblity 2023-07-23 11:54:51 -07:00
Shane Smiskol 12ed894362 dmonitoringmodeld: initialize model first (#29080)
* hacky fix

* even better

* ordering

* clean up

* fix model replay

* add comment

* catch sigint
2023-07-23 09:28:22 -07:00
Adeeb Shihadeh 34389acbbf CI: run plotjuggler test on mac (#29102)
* CI: run plotjuggler test on mac

* source

* python path
2023-07-22 23:10:31 -07:00
Adeeb Shihadeh d92c9aef23 tici: speedup power save setting (#29100)
* speedup

* update type

---------

Co-authored-by: Comma Device <device@comma.ai>
2023-07-22 17:15:58 -07:00
Adeeb Shihadeh 128f261173 remove unused python packages (#29099) 2023-07-22 14:12:28 -07:00
Dean Lee 980ba1312f ui/map: remove unused variables (#29098) 2023-07-22 12:24:16 -07:00
Maxime Desroches 97eec45d42 Test scons multithreaded random build (#29082)
* random build

* name

* 2 pass

* clean after

* fail on this

* fix deps

* format

* var

* try without lfs
2023-07-21 21:57:27 -07:00
Vivek Aithal ee4fcff0c9 Fix mypy path error (#29091) 2023-07-21 18:36:51 -07:00
Adeeb Shihadeh e8b20b7f81 CI: fix no DNS after tests killed (#29090)
* CI: fix no DNS after tests killed

* fix
2023-07-21 18:35:29 -07:00
Adeeb Shihadeh 4bac67c0f5 torqued: fix cache loading (#29088)
* torqued: fix cache loading

* rm that
2023-07-21 17:28:04 -07:00
mitchellgoffpc 2e31d445c6 Remove PytorchNvCodec from poetry.lock 2023-07-21 15:10:06 -07:00
Kacper Rączy 4793772c47 test_fuzzy: fix keyword argument (#29083)
Fix fuzzy test
2023-07-21 14:58:14 -07:00
Saber422 33ac7ce44c VW MQB: Add FW for 2023 Skoda Scala (#28962)
* VW MQB: Add FW for 2023 Skoda Scala

route name:0bbe367c98fa1538|2023-07-15--11-42-25--0

* extend MY

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-07-21 13:18:45 -07:00
Dean Lee cc551fe24b ui/MapSettings: remove function shorten (#29078) 2023-07-21 19:51:25 +01:00
Vivek Aithal 3612c12b14 [GMC ACADIA DENALI 2018] Move to torque control, non-linear feed-forward (#28923)
* move GMC ACADIA to torque control, with a Bolt-like feedforward

* update offline values

* update offline values

* reduce friction

* update values

* update values

* cleanup
2023-07-21 11:28:48 -07:00
Shane Smiskol 80bbba14f7 test_models: panda safety tx test (#28949)
* draft

* assertrue

* this is way too complicated, even with unittest discover

* works

* test we can send resume button

* nice catches this

* fix

* fixed

* not needed

* draft

* works

* comment out to let catch

* clean up into a function

* clean ups

* final clean up

* no this is final

* bump

* simplify

* simplify

* pass

* bump

* globals don't work inside methods

* space
2023-07-20 23:16:43 -07:00
Shane Smiskol d70c4916db nav: improve no route alert text (#29076)
* kind of

* Revert "kind of"

This reverts commit 25abbbf1764b0f7e8fbcb83e37159ba6f8cdf641.

* more generic alert text, whenever we're waiting for navd.

* actual better comment

* update translations
2023-07-20 22:40:31 -07:00
Adeeb Shihadeh 1945c356c2 agnos 8 (#28843)
* agnos 8

* update to python 3.11.4 (#27452)

* rebase

* optional

* lower cython

* TEMP don't pull cl to use python3.11

* Revert "lower cython"

This reverts commit c5132f8a2727c212bdfc01e77aa53e50a17ead9d.

* fix cython

* remove tensorrt

* carla + opencv

* macos

* update timm and smp

* pynvc

* https

* downgrade numpy

* pin scipy

---------

Co-authored-by: Maxime Desroches <desroches.maxime@gmail.com>
Co-authored-by: Yassine <yassine.y10@gmail.com>

* revert that

* fix linter

---------

Co-authored-by: Maxime Desroches <desroches.maxime@gmail.com>
Co-authored-by: Yassine <yassine.y10@gmail.com>
2023-07-20 21:56:57 -07:00
Dean Lee 0b8d35b132 ui/map: fix ETA widget text spacing (#29065)
* fix eta spacing

* fix unit color

---------

Co-authored-by: Justin Newberry <jnewberry0502@gmail.com>
2023-07-20 21:10:17 -07:00
Justin Newberry a8396f6a12 Nav: Reset backoff on route clearing (#29067)
* nav backoff reset

* need to reset countdown as well

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-07-20 20:40:01 -07:00
Adeeb Shihadeh 716d0d5918 process replay: remove sorting before comparison (#29072)
* process replay: remove sorting before comparison

* keep ignore msgs
2023-07-20 19:22:59 -07:00
Kacper Rączy 0faab606b0 radard: cleanup and refactor (#29071)
Re-structure + add typing
2023-07-20 18:11:26 -07:00
Shane Smiskol e4dc86f44d ui: set global map transition duration (#29061)
* this works!

* revert properties

* more clean up

* more

* more

* add comment

* final
2023-07-20 16:11:23 -07:00
Kacper Rączy 81e8cf414e process_replay: ability to permanently unlock some sockets (#29070)
Add unlocked_pubs for keeping some sockets permanently unlocked
2023-07-20 16:03:58 -07:00
Adeeb Shihadeh 2ff33663a7 bump panda (#29066)
* bump panda

* update bootstub
2023-07-20 15:29:29 -07:00
Adeeb Shihadeh 0b71c395ce add seg preservation to release notes 2023-07-20 14:44:26 -07:00
Dean Lee 942a2f9760 ui/map: move MapInstructions & MapETA to separate files (#28976) 2023-07-20 21:58:46 +01:00
Cameron Clough 98a30f10f4 deleter: preserve flagged segments (#28814) 2023-07-20 21:30:26 +01:00
Shane Smiskol 5b368a67ea nav: show warning for routing problems (#29055)
* all my debugging stuff

* this works

* add comment

* bb navd

* navInstruction is valid when we get a non-empty route response

* now don't need this

* stash

* big cleanup

* clean up

* clean up

* debug

* final clean up

* one line

* flip order

* update translations

* is this simpler?
2023-07-20 04:01:55 -07:00
Shane Smiskol d0ea8be95f nav: set icon anchor for destination pin (#29054)
* anchor!

* whoops

* fix anchor
2023-07-20 01:28:21 -07:00
Mitchell Goff ba03e94290 nav: draw destination pin on top of navigation path (#29050)
* Draw destination pin on top of navigation path

* fix draw ordering

fix draw ordering

* add todo

* rename to feature

* draft

* clean up

* testing

* testing 2

* Revert "testing 2"

This reverts commit fc236aafbc14bbdc5ddb52fb56265302247ddf4b.

* Revert "testing"

This reverts commit 982a508ad701268ebdae910980fd5464454f44a8.

* clean up

* add todo

* show!

* Update selfdrive/ui/qt/maps/map.cc

* lgtm

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-07-20 00:54:42 -07:00
Adeeb Shihadeh a83dec9d94 CI: add docker images tagged with git commit (#29052)
* CI: add docker images tagged with git commit

* tag later

* debug

* fix tag

* test that

* cleanup
2023-07-19 23:35:33 -07:00
Maxime Desroches 2ec1a2cf70 bump rednose (#29051)
rednose
2023-07-19 20:48:34 -07:00
Harald Schäfer ca699e3989 radard: no clustering (#29010)
* First commit

* cleanup

* Update ref

* Doesnt deserve two files

* cleanup radard
2023-07-19 20:31:40 -07:00
Dean Lee 269ceca27a common/swaglog: remove trailing semicolon from macros (#29042) 2023-07-19 19:46:42 -07:00
Adeeb Shihadeh 83c5d11dff controlsd: write ControlsReady in thread (#29048) 2023-07-19 19:13:18 -07:00
Harald Schäfer 9054590c95 Rawgpsd: retry even more on setup (#29045) 2023-07-19 18:54:27 -07:00
Dean Lee 319ce562f2 cabana: cleanup MessageViewHeader & MessageBytesDelegate (#29040)
* cleanup

* remove double ;
2023-07-19 18:39:55 -07:00
Kacper Rączy f74f1def29 process_replay: API docs (#29041)
* Update process_replay README

* Expose get_custom_params_from_lr in top-level module
2023-07-19 17:50:26 -07:00
Robbe Derks 70bbb94dc5 Panda logs (#28511)
* log in pandaStates

* Revert "log in pandaStates"

This reverts commit 87ee283ac45c2eeed94d9a958927e3072ec4460f.

* log to param

* dumps datetime

* cloudlog instead

* add truncation

* fix

* try isotimestamp

* duh

* more fixes

* should be __class__

* add some time to account for log gathering

* use new fast interface

* Revert "add some time to account for log gathering"

This reverts commit 2c08ad48052dfc0546530059a0cda03b04c4939a.

* cleanup

* simple test

* fix wrong serial

---------

Co-authored-by: Comma Device <device@comma.ai>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2023-07-19 14:24:57 -07:00
Dean Lee 4584e883dc ui/networking: call isTetheringEnabled out of the loop (#29028) 2023-07-19 12:28:44 +01:00
eFini 7a5dbe6132 long_mpc: clean up get_T_FOLLOW() usage (#29033) 2023-07-19 02:07:01 -07:00
Adeeb Shihadeh 5cfb79e35f boardd: update cython syntax (#29031) 2023-07-18 23:58:51 -07:00
Shane Smiskol 527d13ad67 Toyota: add hybrid ECU FW versions for 2023 RAV4 Hybrid (#29023)
* add hybrid FW for a2c30de116fe186d

* add hybrid FW for 60b363805ee9fc06

* add hybrid FW for 5b05f9d3f9574132 & 459707e5f696e897

* remove from extra_ecus, we can't conditionally mark not logging

* add likely protocols
2023-07-18 23:04:55 -07:00
Adeeb Shihadeh 22882a0d22 CI: use locally built image as CL base (#29030) 2023-07-18 22:57:32 -07:00
Justin Newberry ce2708fa67 Updated: fix setting update time (#29004)
* sleep in launch

* set time loop

* log

* try longer delay + logging

* try longer delay + logging

* fix order of update

* fix order of update

* fix order of update

* revert panda

* also don't show connectivity error without failed checks

* slightly cleanup updated

* fix type error

* init overlay first

* minimal diff

* comment

* minimal diff

* minimal diff

* explicit parameter to make it clear

* explicit parameter to make it clear

* use finally

* dont use finally

* PR cleanup

* reduce frequency

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2023-07-18 21:26:05 -07:00
Adeeb Shihadeh 60d570349f navd: handle key present with none value (#29025) 2023-07-18 21:19:18 -07:00
Shane Smiskol 18cf253c62 test_car_interfaces: use DT_CTRL 2023-07-18 20:01:22 -07:00
Adeeb Shihadeh 2aa3000371 test_manager: skip mapsd check for now 2023-07-18 19:15:47 -07:00
Adeeb Shihadeh 9c307f2550 Revert "Update pycapnp and Cython (#29021)"
This reverts commit 76ef1b9b9f.
2023-07-18 18:47:35 -07:00
Kacper Rączy 1235110983 regen: blacklist-procs option (#29024)
* Add blacklist-procs option to regen

* Keep the original process order
2023-07-18 17:13:23 -07:00
Maxime Desroches 76ef1b9b9f Update pycapnp and Cython (#29021)
* cython + pycapnp

* from_bytes with context

* poetry lock

* limit numpy

* force build

* Revert "force build"

This reverts commit 8c7cb00421da9d0f1b7da2c94f75e9c43733f840.

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2023-07-18 16:40:36 -07:00
Maxime Desroches 56a0f9e074 Force build of openpilot-base for OpenCL tests (#29022) 2023-07-18 16:25:05 -07:00
Shane Smiskol 7a673c87ff nav: show green path when enabled (#29020)
* draft

* draft

* clean up

* clean up

* cleaner

* needs to be here to work

* or this works

* works too

* stash

* clean up qdebugs

* revert to master

* reapply changes

add bool

* consistent cmts

* clean up

* can be simpler combined

* clean up/fix
2023-07-18 15:52:59 -07:00
Kacper Rączy b2d0f74ec3 process_replay: support for replaying multiple processes simultaneously (#28829)
* first working ProcessContainer and _replay_multi_process implementation

* Setup controlsd config_callback

* Add vision ipc support

* Remove old code

* add todo

* Update estimated processing times

* Use deepcopy when getting configs

* Rework the API to support passing multiple names or configs

* Add get_custom_params_from_lr

* Add more typing

* Enable simulation for controlsd

* Fix typing issues

* Regen refactor

* Fix linter issues

* Make wideRoadCameraState optional

* Move DummySocket to helpers

* Improve typing in regen

* Minor improvements

* Maintain sort order of internal_pub_queue using heapq

* Move ProcessContainer elsewhere

* Fix internal heap

* Change comment

* Remove subtest_name from ProcessConfig

* Update cereal

* Add newline
2023-07-18 14:56:24 -07:00
Lee Jong Mun ced37db5e6 Multilang: kor translation update (#29018) 2023-07-18 11:41:09 -07:00
Vivek Aithal f7471f9108 [Qcom GPS] BearingAccuracyDeg should not be 0 when inaccurate (#28989)
change bearingAccuracyDeg from 0 to 180 deg, when invalid
2023-07-18 11:21:11 -07:00
AlexandreSato 889e118a1b Multilang: update pt-BR translations (#29015) 2023-07-18 10:37:51 -07:00
Shane Smiskol 29837b8728 IsoTpParallelQuery: log empty responses (#29014)
* check if None

* log instead

* clean up

* should mark done
2023-07-18 03:43:56 -07:00
Cameron Clough e7c858d590 Ford: align car groups with convention
no plural
2023-07-18 11:42:15 +01:00
Shane Smiskol c01ba907c0 Toyota LTA: limit max angle with applied torque (#28848)
* draft

* clean up

* there was a bug, need to subtract from last_angle essentially

* Revert "there was a bug, need to subtract from last_angle essentially"

This reverts commit a595e4af64523665519fd450dbeb2fefd293ce2b.

* maybe

* Revert "maybe"

This reverts commit cc96523cc28b82e74018011e5a476be2e6f68d92.

* or can do this

* this seems simpler and actually would work

* update comment

* fix that case

* joystick testing

* revert testing changes

* comment should be more clear

* can have full thing

* bump panda to lta

* revert cc

* this seems to work well

* constants

* try setme_x64

* 99 just winds up torque?!

* try less torque

* add corolla

* clean up

* clean up

* clean up

* clean up

* better name

* -which

* fix

* fix typo

* use params
2023-07-18 01:58:21 -07:00
Shane Smiskol c9f80e89b7 test car interface: fuzzy CarParams (#28931)
* bump

* should be bytes

* draft fuzzy car params

* stash

* bump

* bump

* this is explored!

* some clean up

* more clean up

* clean up

* can't easily

* clean up

* no import

* Apply suggestions from code review

* move into a function

* Update selfdrive/car/tests/test_car_interfaces.py

* Update selfdrive/car/tests/test_car_interfaces.py

* Update selfdrive/car/tests/test_car_interfaces.py

* come onn

* we know it will return a dict here
2023-07-18 01:49:01 -07:00
Shane Smiskol 44f7b312a0 test car interfaces: more GM coverage (#28954)
* Update test_car_interfaces.py

* Update selfdrive/car/tests/test_car_interfaces.py

* make it fail

* catches crashed, not blocked
2023-07-18 01:42:51 -07:00
Harald Schäfer 601d133bba qcom gps: Always pull in thread (#28951)
* Laikad: cleanup zmq cloudlog warnings

* Handle in cloudlog

* whitespace

* whitespace

* Always pull in thread

* Stop downloading when you have fix

* check if exist

* Atomic move after download

* Increase wait

* merge
2023-07-17 23:58:57 -07:00
Harald Schäfer 8f3037c956 Cloudlog: cleanup zmq cloudlog warnings (#28896)
* Laikad: cleanup zmq cloudlog warnings

* Handle in cloudlog

* whitespace

* whitespace

* suppress before reconnecting in thread
2023-07-17 23:06:13 -07:00
Shane Smiskol fccd334dc9 Revert "CANPacker: assert no undefined signals (#28942)" (#29013)
This reverts commit 13371b07a2.
2023-07-17 22:41:38 -07:00
Shane Smiskol 0bea1419e3 ui: change last reference to experimental longitudinal (#29009)
* change experimental longitudinal language to alpha

* vanish

* Update selfdrive/ui/qt/offroad/settings.cc

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>

* update translations

* vanish

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2023-07-17 21:33:06 -07:00
Shane Smiskol 358a86b636 nav: show when using navigate on openpilot (#28958)
* draft

* clean up

* helper

* comment

* debug

* Revert "debug"

This reverts commit d30ff3e996e73818e14f28b51afed206337bf6da.

* nav path

* transition

* revert width transition

revert width transition

* 400 is better, hard to see flicker at 500

* add width back

* tune

* tune

* 12 might be good

* 400ms is good

* lower case company lcc

* up here

* up here

* clean up

* multiple lines

* self explanetory
2023-07-17 21:28:10 -07:00
Shane Smiskol 6bc28fc769 experimental mode: gate nav (#29007)
* first draft copy, needs updates

* gate behind exp mode

* can be one line

* this is no longer true

* toggle isn't just e2e long now, rename

* don't enable/disable

* kinda works!

* remove old giant qstring

* comment clean up

* similar breakpoint

* more clean up

* fixup onroad

* preserve planner behavior, and we don't need to look at confirmed param if we're onroad

* update translations

* vanish translations

* use scene for op long

* lowercase!

* updated copy

* need to check longitudinal here now too

* clean up!

* here is better

* used

* no nav emoji

* don't check param if not valid

* revert this

revert this

* ed

* revert experimental mode longitudinal checks (still need to revert toggle change)

* revert

* logic works

* revert test

* fix

* update translation

* fix (reset and update)
2023-07-17 21:18:18 -07:00
Kacper Rączy 8ce72760e7 onnx_runner: force determinism (#29000) 2023-07-18 05:52:07 +02:00
Shane Smiskol 6e50706baa ui: rename experimental mode toggle variable 2023-07-17 20:38:38 -07:00
Shane Smiskol b5b431c12d Revert "experimental mode: gate navigate on openpilot (#28883)" (#29005)
This reverts commit f973d605b2.
2023-07-17 19:56:38 -07:00
Dean Lee 65fe3c8c34 encoder: remove function publisher_init, init PubMaster in constructor (#28980) 2023-07-17 19:25:41 -07:00
Shane Smiskol 35aaf90587 Nissan FPv2: use default diagnostic session (#28634)
* Revert "Nissan FPv2: log different diagnostic session types (#28585)"

This reverts commit 2f2b94758b.

* switch to standard KWP2000 diagnostic session type

* we're speedy again
2023-07-17 18:21:18 -07:00
Adeeb Shihadeh 2d6ff7b7b1 installer: openpilot-nightly installs nightly (#28997) 2023-07-17 17:01:41 -07:00
Shane Smiskol 047bb46d3a Ford: fix CAN FD fingerprinting (#28995)
* fix CAN FD fingerprinting for now

* comment

* this is the simplest for now

* revert

* cmt

* todo and fixme!
2023-07-17 16:56:13 -07:00
Cameron Clough f14447ad66 loggerd: fix whitespace and indentation 2023-07-17 22:55:20 +01:00
Adeeb Shihadeh 99c9cf0c02 mapsd: set nice value (#28994)
Co-authored-by: Comma Device <device@comma.ai>
2023-07-17 14:36:02 -07:00
Adeeb Shihadeh 9cec7fa1a8 Revert "mapsd: release MapRenderer on exit (#28988)"
This reverts commit 70b2a5220f.
2023-07-17 14:05:52 -07:00
Cameron Clough ed8f17df65 Ford: add back FW query ECU whitelists (#28993)
Partial revert of changes in #28974.
2023-07-17 13:46:47 -07:00
Dean Lee 70b2a5220f mapsd: release MapRenderer on exit (#28988) 2023-07-17 12:57:58 -07:00
Adeeb Shihadeh d2fa746b12 boardd: use full buffer size 2023-07-17 12:44:10 -07:00
Cameron Clough 915aec3f5c athenad: test connection timeout (#28864) 2023-07-17 20:21:52 +01:00
Adeeb Shihadeh cd02ab6358 mapsd: more reliable test (#28985)
* mapsd: more reliable test

* better wait

* should be good

* fix frame id

---------

Co-authored-by: Comma Device <device@comma.ai>
2023-07-17 10:58:39 -07:00
Cameron Clough 17e71cdf44 Ford: add F-150 2023 support (dashcam only) (#28974) 2023-07-17 16:16:28 +01:00
Dean Lee 1afdca2ef1 ui/MapSettings: remove call to clearLayout (#28961) 2023-07-17 15:32:28 +01:00
eFini 454a5e8a26 Multilang: Chinese (Traditional) translations update (#28984) 2023-07-16 21:54:55 -07:00
Adeeb Shihadeh 2720fdf2a1 pandad: check comms protocol version (#28983)
* proto version check

* bump panda

* update bootstub

* test

* bump panda

* fix that

* bump panda

* fix test case

* more fix

---------

Co-authored-by: Comma Device <device@comma.ai>
2023-07-16 21:33:24 -07:00
Eric Brown 22c413af6d Events: debug script (#28898)
* Move to separate branch

* Fix mypy

* Better printout

* Fix spacing

* cleanup

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2023-07-16 16:59:27 -07:00
Adeeb Shihadeh 5b86268635 nav: always publish map and run model (#28924)
* always render

* more test

* test case

* update test

* vipc checks

* clear cache

---------

Co-authored-by: Comma Device <device@comma.ai>
2023-07-16 15:37:13 -07:00
Adeeb Shihadeh e2b5d1e29a mapsd: rendering tests (#28981)
* mapsd: rendering tests

* run

* speedup
2023-07-16 14:39:34 -07:00
Dean Lee d47d8808d1 ui/map: update destination on param change (#28957)
* update destination on param change

* use ParamWatcher

* remove include
2023-07-16 13:48:33 -07:00
Dean Lee b4f7e76531 ui/util: add a helper class ParamWatcher (#28978)
* new class ParamWatcher

* Update selfdrive/ui/qt/util.cc

* Update selfdrive/ui/qt/util.h

* Update selfdrive/ui/qt/util.cc

* Update selfdrive/ui/qt/util.cc

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2023-07-16 13:17:16 -07:00
Cameron Clough d0e6076059 Ford: set CAN FD safety param (#28979) 2023-07-16 13:00:42 -07:00
Cameron Clough f30b859eca Ford: sort FW versions 2023-07-16 16:09:18 +01:00
Cameron Clough ccdf97f5a2 bump panda 2023-07-16 15:11:01 +01:00
Dean Lee 06aef9edd3 encoder: remove public function encoder_init (#28971) 2023-07-15 23:57:44 -07:00
Adeeb Shihadeh c933fbb074 boardd: misc cleanup (#28969)
* boardd cleanup

* no more front frame

* faster connect loop

* fix that on mac
2023-07-15 23:39:21 -07:00
Harald Schäfer 7613f6918b Laikad cpu usage: enable test onroad (#28926)
* enable test onroad

* Better

* specify range

* fix printing

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2023-07-15 23:06:42 -07:00
Adeeb Shihadeh ae6f13fb50 CI: update codecov action (#28967) 2023-07-15 22:55:33 -07:00
Adeeb Shihadeh a46ed955e6 pandad: enable tres release -> bootstub test (#28930)
enable tres

Co-authored-by: Comma Device <device@comma.ai>
2023-07-15 22:22:56 -07:00
Adeeb Shihadeh 3390f1e1df boardd: read spi resp len with ack (#28966) 2023-07-15 20:13:19 -07:00
Dean Lee cbed057789 encoderd: get avaiable streams from vipc server (#28935)
* get avaiable streams

* use std::thread

* assert buf size

* Update system/loggerd/encoderd.cc

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2023-07-15 12:41:49 -07:00
Dean Lee 713d2ec586 loggerd/encoder: refactor constructors to take EncoderInfo as parameter (#28921)
* refactor constructors to take EncoderInfo as parameter

* remove last arg codec

* use macro to init function pointers
2023-07-15 10:39:40 -07:00
Harald Schäfer 966c5f476a Qcom gps: retry logs setup (#28952) 2023-07-15 10:31:30 -07:00
Dean Lee 8dcd92253b dmonitoring: use sizeof(float) instead of hardcorded size (#28963) 2023-07-15 10:30:50 -07:00
Dean Lee 53934c7fee ui/map: fix wrong remaining time (#28960) 2023-07-15 13:28:21 +01:00
Dean Lee 187696977e ui/MapSettings: store destinations to load on widget init (#28950)
Co-authored-by: Cameron Clough <cameronjclough@gmail.com>
2023-07-15 11:37:41 +01:00
Shane Smiskol cbde480cb9 navd: add repr method to Coordinate (#28959)
* repr coordinate for debugging

* fix

* stash

* better formatting
2023-07-14 21:42:01 -07:00
Shane Smiskol f495c21805 FuzzyGenerator: typing (#28934)
* bump

* should be bytes

* draft fuzzy car params

* stash

* bump

* bump

* this is explored!

* some clean up

* more clean up

* clean up

* do we need draw??

* draft

* this was confusing

* revert

* draft

* Revert "draft"

This reverts commit c593a03474b04d4df2648d8149798196c991a108.

* draft

* more typing!

* complete typing

* fix that

* cleanup

* better
2023-07-14 21:41:30 -07:00
Shane Smiskol f6390c6e40 test_models: don't skip test cases with multiple pytest jobs (#28953)
* Update test_models.py

* Update selfdrive/car/tests/test_models.py

* Update selfdrive/car/tests/test_models.py
2023-07-14 16:24:07 -07:00
Shane Smiskol c9c636bdd7 test_models: fix rx message bus (#28947)
Update test_models.py
2023-07-14 14:04:24 -07:00
Dean Lee e958ce1c31 ui: set max brightness when showing the QR code (#28907)
* set max brightness when showing the QR code

* set brightness in ui

* set in device
2023-07-14 12:22:35 -07:00
Dean Lee ccfca97dfc ui/map: cache navigation images at startup (#28783)
Co-authored-by: Cameron Clough <cameronjclough@gmail.com>
2023-07-14 20:18:49 +01:00
Cameron Clough ce0717670b modeld: comment out unused variables (#28944) 2023-07-14 17:45:00 +01:00
Cameron Clough ab4f3fbf8d bump opendbc 2023-07-14 16:49:25 +01:00
Cameron Clough 5d45d1fadc loggerd: add types to tests and use pathlib (#28943) 2023-07-14 15:12:11 +01:00
Shane Smiskol dd98dc48a1 Hyundai: fix alt button cancel message always blocked (#28941)
* add missing values

* fixy
2023-07-14 06:00:59 -07:00
Shane Smiskol 653daba9ed GM ASCM: don't apply gas when stopping (#28699)
* don't apply gas when stopping

* simpler?

* todo

* fixme
2023-07-14 05:58:17 -07:00
Shane Smiskol f973d605b2 experimental mode: gate navigate on openpilot (#28883)
* first draft copy, needs updates

* gate behind exp mode

* can be one line

* this is no longer true

* toggle isn't just e2e long now, rename

* don't enable/disable

* kinda works!

* remove old giant qstring

* comment clean up

* similar breakpoint

* more clean up

* fixup onroad

* preserve planner behavior, and we don't need to look at confirmed param if we're onroad

* update translations

* vanish translations

* use scene for op long

* lowercase!

* updated copy

* need to check longitudinal here now too

* clean up!

* here is better

* used

* no nav emoji

* don't check param if not valid

* revert this

revert this

* ed
2023-07-14 05:26:59 -07:00
Shane Smiskol 13371b07a2 CANPacker: assert no undefined signals (#28942)
bump-opendbc-5
2023-07-14 05:08:11 -07:00
dkondratov 5d67fe2a91 Adding FW for 2023 Volkswagen Arteon (#28913)
5ac586afbb236b5d|2023-07-09--00-37-19

VIN: WVWTR7AN7PE011676

Co-authored-by: RC7777 <31451749+RC7777@users.noreply.github.com>
Co-authored-by: Cameron Clough <cameronjclough@gmail.com>
2023-07-14 11:58:08 +01:00
Shane Smiskol f99ac84b5c CanBusBase: fix offset calculation (#28938) 2023-07-14 11:06:22 +01:00
Shane Smiskol af7b2e4dd4 test car interfaces: support pytest (#28937)
sort
2023-07-14 01:48:36 -07:00
Shane Smiskol 4ed9dec6f4 test car interface: fuzzy experimental long (#28936)
fuzzy exp long
2023-07-14 01:25:01 -07:00
Shane Smiskol feaf3a3d91 bump opendbc (#28933) 2023-07-14 00:11:54 -07:00
Shane Smiskol c541074669 test_onroad: lower ui CPU usage (#28927)
lower from multiple runs
2023-07-13 23:47:12 -07:00
Shane Smiskol 77339af1c0 FuzzyGenerator: return bytes for data (#28932)
generate bytes
2023-07-13 23:43:08 -07:00
Adeeb Shihadeh 719d14f039 bump panda 2023-07-13 21:26:49 -07:00
Shane Smiskol 936bfcd7ba ui: use stencil buffer to draw polygons (#28902)
* Update ui.cc

* add a bunch of debugging stuff i don't want to lose

* Revert "add a bunch of debugging stuff i don't want to lose"

This reverts commit 2de6ab5b68bc528e913db68f7fe576b6ebe89a9b.

* enable stencil buffer

* lower ui CPU usage

* Revert "lower ui CPU usage"

This reverts commit 650241c0d89c1476de3995f1dc3f87f671dd1dd7.
2023-07-13 20:38:49 -07:00
Shane Smiskol d6e1796d92 multilang: ignore generated alert header file (#28910)
* Update .gitignore

* move up
2023-07-13 17:55:55 -07:00
Jason Wen 682a240c36 HKG: Add FW Versions for China Kia Carnival 2023 (#28918) 2023-07-13 17:51:58 -07:00
Harald Schäfer c8965b0e60 Qcom gps: retry assistance (#28723)
* Retry assistance

* rm whitespace

* Only inject when it's there

* will be rmd anyway

* Update test

* Actually disable internet in test

* Fix tests

* cleanup test

* fix tests more

* add late assist test

* use process

* Dont double clear

* ignore

* Small improvements

* Make tests

---------

Co-authored-by: Comma Device <device@comma.ai>
2023-07-13 14:52:47 -07:00
Adeeb Shihadeh 8d13ddb943 dmonitoringmodeld: add more logging around the init (#28920) 2023-07-13 11:58:51 -07:00
Cameron Clough a4630ef9f0 remove subprocess32 package (#28916) 2023-07-13 14:29:57 +01:00
Shane Smiskol bc24783657 Hyundai: add Ioniq 6 platform (#28915) 2023-07-13 12:49:38 +01:00
Dean Lee c3fe3c8162 ui/MapSettings: sort location JsonArray inplace (#28886) 2023-07-13 10:59:46 +01:00
Shane Smiskol daf80eaef5 map panel: show map on interactive timeout (#28904)
Co-authored-by: Cameron Clough <cameronjclough@gmail.com>
2023-07-13 10:35:57 +01:00
Dean Lee ae4a375dd6 ui/map: handle & display error in MapWindow (#28854) 2023-07-13 10:26:58 +01:00
Justin Newberry b69d18ea32 bump opendbc (#28909) 2023-07-12 19:18:05 -07:00
Shane Smiskol b8dd4dcc28 ui: singleton Device instance (#28908)
* singleton

* remove awake
2023-07-12 18:36:44 -07:00
Shane Smiskol d68bd905fc ui: fix timeout typo (#28905)
tim is out -> timeout
2023-07-12 13:09:42 -07:00
Kacper Rączy 72579a0e10 controlsd: support for SIMULATION mode for process replay (#28895)
* Support for simulation flag while replay

* Update cereal

* Enable simulation for controlsd

* Update ref commit

* Update cereal
2023-07-12 10:32:02 -07:00
Harald Schäfer 80eff1b6ce Rawgpsd: cleanup init (#28890)
* Rawgpsd: cleanup init

* back to default

* Fix injection time check

* add quotes

* change to 12 hrs

* Fixes
2023-07-11 23:05:25 -07:00
Mathew Locoteta ac9315f6a7 Honda: Car Port for Accord 4-Cylinder 9th Generation (#124)
* Add 2016/2017 Accord 2.4L (Serial Steering V3)

* No longer used

* bump opendbc

* bump opendbc

* bump opendbc

* IDE

* unused

* small cleanup

* platform rename

* some more

* add to docs

* shorter name

* add to FCR

* update footnote

* Update CARS.md

* Update CARS.md

* bump opendbc

* Update footnote

* Update CARS.md

* Update CHANGELOGS.md

---------

Co-authored-by: Jason Wen <haibin.wen3@gmail.com>
2023-07-12 01:16:26 -04:00
Dean Lee f1a1456f27 logger: use reference in range based loop (#28894) 2023-07-11 19:28:50 -07:00
Shane Smiskol c158537df6 ui: reset nav status on offroad transition (#28897)
* need to do this

* actually better to clear it on offroad transition, then onroad transition will be fine
2023-07-11 19:04:41 -07:00
Matt Barclay b56aabb74e Update Toyota RAV4H_TSS2_2023 Fingerprint (#28891)
Added eps value for japan built RAV4H 2023
2023-07-11 14:51:33 -07:00
Shane Smiskol 34a5e626d6 ui: show map with nav (#28867)
* accept touch events in map settings

* draft

* draft 2.0

* revert this stuff

* need this

* fix

* clean up debug prints

* fraft

* only show map on closeSettings if nav

* works!

* can't do it here

* I was going to connect signals from UIState to HomeWindow, then to OnroadWidget, but that seems like too much

* just need to keep track of it in onroad, seems like the cleanest option

* ideally we show the map where we set the scene variable, and that's in map.cc

* old variable

* comments

* less confusing

* app comment

* add back

* fix

* move to top

* remove this comment
2023-07-11 14:49:19 -07:00
Cameron Clough 9ecf98c4ce athenad: log connection retries and duration (#28888) 2023-07-11 21:40:59 +01:00
Cameron Clough 6643616c47 nav: hide settings on map request visible (#28884) 2023-07-11 21:40:33 +01:00
Harald Schäfer 47ee0932db Qcom rawgps: Timestamp svpolys (#28738)
* Timestamp svpolys

* leap seconds handled fine

* Fix error

* bump laika

* Update test route

* update ref
2023-07-11 13:22:09 -07:00
Lee Jong Mun 92b5f0b5e5 Multilang: kor translation update (#28885)
kor translation update
2023-07-11 13:06:11 -07:00
Harald Schäfer 0a510f2edd Qcom laikad: Update expected msgs (#28887)
Update expected msgs
2023-07-11 08:52:09 -07:00
Jason Wen 1dfa7c0039 Update CHANGELOGS.md 2023-07-11 09:29:32 -04:00
Jason Wen 06b1a862d9 bump to 0.9.3.2 2023-07-11 09:10:53 -04:00
Cameron Clough 4d61d680b2 UI: preserve recent destinations sort order (#28881) 2023-07-11 12:39:06 +01:00
Dean Lee 8149c07fac ui/map: singleton navigation requests (#28862) 2023-07-11 11:42:10 +01:00
Dean Lee d34138e275 ui: capnp best practices (#28877) 2023-07-11 10:26:57 +01:00
Dean Lee 4544b40b70 ui/map: don't clear eta when map is hidden (#28878) 2023-07-11 10:23:45 +01:00
Harald Schäfer 221cd0ab09 Laikad: fix qcom report collection (#28879)
* Make report aggregation variable

* Add laikad test now it passes

---------

Co-authored-by: Comma Device <device@comma.ai>
2023-07-11 01:25:49 -07:00
Shane Smiskol 305ab3cb3e ui: don't hide sidebar twice (#28868)
* draft

* draft 2

* comment and clean up

* delete

* better name

* even better?
2023-07-11 00:58:28 -07:00
Harald Schäfer 771e410262 Test rawgpsd: Make sure we get fix (#28875)
* Add fix test

* Add laika to test

* Add fix test

---------

Co-authored-by: Comma Device <device@comma.ai>
2023-07-11 00:51:26 -07:00
Shane Smiskol 28df811f42 ui: remove unused MapPanel function (#28874)
forgot about this
2023-07-11 00:46:59 -07:00
Shane Smiskol 71e001ee57 map settings: accept touch events (#28865)
* accept touch events in map settings

* use override

* revert this

* remove debug stuff

* add comments

* not the main purpose
2023-07-11 00:21:25 -07:00
Adeeb Shihadeh 69e7f386a7 revert accidental enable 2023-07-10 17:22:09 -07:00
Adeeb Shihadeh 24de4a6204 Update test_onroad.py 2023-07-10 16:40:09 -07:00
Adeeb Shihadeh e63e2dde18 don't block on reading ublox param (#28859) 2023-07-10 15:33:58 -07:00
AlexandreSato a812096464 Multilang: update pt-BR translations on prime ad (#28866)
update pt-BR translations on prime ad
2023-07-10 14:49:27 -07:00
mitchellgoffpc 1690cf4af6 Revert "UI: Indicate when Nav on OP is enabled (#28665)"
This reverts commit a66135665c.
2023-07-10 13:52:55 -07:00
Adeeb Shihadeh f2bbb33a8a rawgpsd: bring back SUPL config (#28858) 2023-07-10 13:26:50 -07:00
Robbe Derks c0e88991b0 Increase expected sensor frequency for LSM6DS3 (#28863)
expected freq of lsm accel/gyro is 104Hz
2023-07-10 16:21:13 +02:00
b801r 4b0cdf71f6 Fingerprint - 2020 Mazda CX-9 (#28805)
139b81648a954ae7|2023-07-04--13-46-16

VIN: JM3TCBDY7L0412945

Co-authored-by: Cameron Clough <cameronjclough@gmail.com>
2023-07-10 11:07:56 +01:00
Shane Smiskol ada6d844d4 Toyota: add missing FW for 2023 RAV4 Hybrid (#28861)
fw
2023-07-10 02:28:35 -07:00
Jason Wen 0621af480e car docs: add additional supported cars in sunnypilot (#192)
* car docs: add additional supported cars in sunnypilot

* Update non-SCC models

* Update non-SCC required parts

* sync
2023-07-09 23:51:08 -04:00
Jason Wen 2658378ebe HKG: disable experimental longitudinal for non-SCC platforms (#195)
* HKG: disable experimental longitudinal for non-SCC platforms

* CAN-FD also
2023-07-09 23:47:42 -04:00
Jason Wen 140d5272c8 HKG: specify required parts with no SCC models (#194) 2023-07-09 23:42:14 -04:00
Jason Wen 06960c04fe HKG: specify supported trims with no SCC (#193) 2023-07-09 23:35:16 -04:00
Dean Lee 289fd32699 ui: cleanup setMainWindow (#28768)
* cleanup

* revert that

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2023-07-09 16:46:50 -07:00
Mitchell Goff e346839c68 nav model: fix flicker in nav enabled state (#28815)
* Fix flicker in nav enabled state

* Move all relevant information for validity checks into navModel packet

* Ignore locationMonoTime in replay tests

* Check route valid in navmodeld

* sm update

* check that

* update refs

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2023-07-09 15:10:02 -07:00
joshslater f345d393cc 2023 Hyundai Sonata Hybrid Fingerprint (#28851)
* Update values.py

add 2023 hyundai sonata hybrid

* Include 2023 Sonata Hybrid

* remove duplicates

* fix and sort

* Revert "fix and sort"

This reverts commit 9fdd3c6b18d119284e4f2792705e43086afe72eb.

* fix

* update docs

* update docs again

* fix

* sort

---------

Co-authored-by: Cameron Clough <cameronjclough@gmail.com>
2023-07-09 21:31:12 +01:00
Dean Lee e1ea1d58e4 ui/map: reuse the Qlabels and remove call to clearLayout (#28788)
* dont clearlayout

* replace show with setVisible

* remove signals&connections, call updateDistance in updateInstructions

* refactor updateDistance to getDistance
2023-07-09 21:27:24 +01:00
ntegan1 0ddecd36cf v4l_encoder: enable hevc vui header timing info flag (#27156)
v4l_encoder: enable hevc vui timing info flag

Co-authored-by: Cameron Clough <cameronjclough@gmail.com>
2023-07-09 20:38:30 +01:00
Saber422 92b6f49c48 VW MQB: Add FW for 2018 Volkswagen Golf (#28852)
route name:0bbe367c98fa1538|2023-07-08--11-50-38--0
2023-07-09 19:57:04 +01:00
Dean Lee 7a42e51c90 ui/map: use overlay widget to simplify code and improve rendering performance (#28800)
* move widgets into overlay

* adjust margin

* add spacing
2023-07-09 16:03:51 +01:00
Dean Lee 060490bdf1 ui/map: draw ETA with rich formatted text (#28780)
* draw ETA with rich formatted text

* no rounded at the bottom corners

* add Params param to member

* fix font typo

* restore opendbc

* set antialiasing

* fix time format
2023-07-09 11:54:29 +01:00
Jason Wen 7ec767f53f Update CHANGELOGS.md 2023-07-09 01:38:20 -04:00
Adeeb Shihadeh 740380bf05 test onroad: stricter ui timings check (#28853) 2023-07-08 22:26:53 -07:00
Dean Lee b9cffac29c boardd: check fw version when connecting (#28823)
* Check fw version when connecting

* apply reviews

* mv to boardd

* don't keep looping

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2023-07-08 20:06:10 -07:00
Dean Lee 3ad434c5ca replay: emit segmentsMerged before updateEvent (#28849) 2023-07-08 17:09:54 -07:00
Shane Smiskol 54ca26ab26 Toyota LTA: prevent high driver torque fault (#28850)
LTA also suffers from this fault
2023-07-08 05:49:03 -07:00
JeanPierre Rousseau b349a8c940 Subaru: add footnote to docs for international models (#26381)
* Update Cars.md

Updated Subaru required specs

* Update values.py

* update docs

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-07-08 05:17:10 -07:00
Shane Smiskol 398dd77114 Hyundai: blacklist bad camera FW (#28318)
* cmt

* common parts

* add code and date

* Revert "add code and date"

This reverts commit 47f9ac84cae8d1e73dc2b5af7d5701adc83da6eb.

* Revert "common parts"

This reverts commit aa5683bbce5b5e8e8414f5b90df9add3998e98ab.

* add back to santa cruz

* todo

* part number test

* pass test

* Update selfdrive/car/hyundai/tests/test_hyundai.py
2023-07-08 01:33:41 -07:00
Shane Smiskol 221bbfe95e Toyota LTA: lower angle rate limits (#28847)
* lower limits a bit (matches ford and less wind up since Toyota EPS limits to 2 m/s up)

* revert down limits, up was too high
2023-07-07 23:06:11 -07:00
Dean Lee bde531d0bc ui/ExperimentalButton: Initialize engageable to false (#28846) 2023-07-07 18:46:41 -07:00
Shane Smiskol 3502971467 Toyota: add missing engine FW for 2023 RAV4 Hybrid (#28844)
add missing fw from 459707e5f696e897|2023-06-30--17-07-25
2023-07-07 15:39:19 -07:00
Dean Lee 1301e2d640 cabana: fix segfault when editing signal while filtering (#28836)
Fix the issue that editing signal will segfault when there is a filter string.
2023-07-07 15:39:03 -07:00
Adeeb Shihadeh 99f9d21e4b ui: add nav to prime features (#28842) 2023-07-07 15:07:37 -07:00
Robbe Derks f086656e80 Remove acados symlink (#28824)
seems to build fine without?
2023-07-07 16:05:10 +02:00
Robbe Derks 9774fb43e9 Compressed vipc improvements (#28837)
* debug flag

* make it easier to use
2023-07-07 16:04:23 +02:00
HNR001 a50e7fa60a Toyota: add FW for Prius Plug-In MY2022 (#27420)
Update values.py

Add missing FW for Toyota Prius Plug-In EUDM MY2022
2023-07-07 02:27:25 -07:00
weapons eeccb09504 Mazda CX-5 2022 fingerprint (#28803)
Update values.py

Updated Mazda CX-5 2022 fingerprint for my vehicle (2023 Mazda CX-5 UAE).
2023-07-07 02:10:24 -07:00
chzollib 75cfcc5cec VW: add MY23 Crafter FW (#28806)
* Update values.py with MY23 Crafter

* remove FW from another car

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-07-07 01:58:32 -07:00
Shane Smiskol 792a321a9d bump submodules (#28834)
* bump submodules

* bumppanda
2023-07-07 01:55:00 -07:00
Shane Smiskol 475a4a23a2 Hyundai: explicitly copy signals to forward (#28020) (#28604)
* Revert "Revert "Hyundai: explicitly copy signals to forward (#28020)" (#28406)"

This reverts commit cabcde38ad.

* CRUISE_INACTIVE doesn't exist
2023-07-07 00:10:18 -07:00
Shane Smiskol 048aacbd59 Toyota: log another permanent LTA fault (#28833)
* also 17

* common

* not acc
2023-07-07 00:09:45 -07:00
Mitchell Goff c9f00678af Refactor model runners (#28598)
* Started work on model runner refactor

* Fixed some compile errors

* everything compiles

* Fixed bug in SNPEModel

* updateInput -> setInputBuffer

* I understand nothing

* whoops lol

* use std::string instead of char*

* Move common logic into RunModel

* formatting fix
2023-07-06 22:26:11 -07:00
Shane Smiskol 938a8ea695 bump opendbc (#28828)
bumpopendbc
2023-07-06 14:04:52 -07:00
Shane Smiskol 164b81213e bump panda (#28827) 2023-07-06 14:04:45 -07:00
Dean Lee 940609956d cabana: preserve msg transmitter & signal receiver when saving DBC (#28825)
preserve transmitter&receiver_name
2023-07-06 12:39:58 -07:00
Dean Lee 219590885f ui: remove function configFont. use struct InterFont (#28773) 2023-07-06 12:17:56 +02:00
Jason Wen f1c604bde7 HKG: Car Port for Kia Carnival 2023 (HDA1) (#27785)
* HKG: Car Port for Kia Carnival (China only) 2023 (HDA1)

* add FW

* seems to be radar SCC

* Update CARS.md

* Update CARS.md

* Add test route

* Fix docs

* New route

* Fix docs formatting

* update with US model

* 2 total

* Update RELEASES.md

* add FW for US carnival 2023

* fix docs

* update test routes

* no rlogs for chinese route

* update docs

* revert chinese to merge now

* Apply suggestions from code review

* fine to fully remove

* less precise

* remove from releases

* Apply suggestions from code review

* Update selfdrive/car/tests/routes.py

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-07-06 00:37:49 -07:00
junhee Ahn 0e73c2db99 Hyundai: Add FW for Sonata 2020 (#28820)
Hyundai : Add fw for SONATA 2021
2023-07-05 21:10:14 -07:00
Shane Smiskol b7bd12135c bump opendbc (#28818)
* bump opendbc

* rename
2023-07-05 20:39:03 -07:00
Jason Young e816c81a5a nav ui: restore speed-adaptive map zoom level (#28796)
Revert "map: fix repeated call to m_map->setZoom (#25784)"

This reverts commit f0665911b2.
2023-07-05 15:45:32 -07:00
Dean Lee d9d5ce3634 ui: fix alert disappear when no controlState is received in a frame. (#28811)
* always return alert

* don't get old alert
2023-07-05 15:20:28 -07:00
Dean Lee 5991aea10a ui: more descriptive global names (#28813)
* rename global bdr_s to UI_BORDER_SIZE

* rename header_h to UI_HEADER_HEIGHT

* remove unused footer_h
2023-07-05 15:00:33 -07:00
bashiromar1795 ea5a0e2450 Lexus: add missing FW for UX Hybrid 2023 (#28766)
* Update values.py

* Revert "Update values.py"

This reverts commit e2293bee861fa2eb00e6c2ffd2c69d913c2165cd.

* add missing FW versions for uxh 2023

* update docs

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-07-05 11:08:18 -07:00
Dean Lee 2d37c219e7 ui: cleanup controls (#28809)
* cleanup controls

* restore LayoutWidget
2023-07-05 10:50:14 -07:00
Dean Lee 059529cae2 cabana: improve timeline (#28801) 2023-07-04 12:03:08 -07:00
Dean Lee 0bbe9bf46a ui/wifiManager: remove obsolete methods without definition. (#28802) 2023-07-04 11:34:00 -07:00
Cameron Clough 62ae247417 update modem script (#28793) 2023-07-03 18:21:31 +02:00
Cameron Clough 0cbc996de8 Partial revert "Update cell.sh (#27055)" 2023-07-03 08:04:18 -07:00
Cameron Clough b627ce6901 Ford: add Explorer 2022 FW (#28792) 2023-07-03 15:56:30 +01:00
Qi Liu aa85fed91d replay: fix segfault caused by pointer usage after freeing (#28779) 2023-07-01 23:01:47 -07:00
AlexandreSato 6495a18cc9 Multilang: update pt-BR translation (#28774)
update pt-BR translations
2023-07-01 18:45:01 -07:00
Adeeb Shihadeh 9529ee029f bump submodules, prep for python 3.11 (#28775)
* bump submodules, prep for python 3.11

* bump
2023-07-01 18:39:44 -07:00
Shane Smiskol ce7141383b CAN Parser: assert no missing signals (#28763)
* bump opendbc

* bump

* remove undefined signal
2023-07-01 02:55:35 -07:00
Jason Wen 122efe3a89 Use spFlags for sunnypilot specific features (pub) (#189)
* Use spFlags for sunnypilot specific features (pub)

* add remaining
2023-07-01 05:49:16 -04:00
Dean Lee 93413c43df UI: fix memory leak in MapSettings (#28759)
Co-authored-by: Cameron Clough <cameronjclough@gmail.com>
2023-07-01 09:45:05 +01:00
Dean Lee 081cc2eb79 ui/MapSettings: remove white border around destinations (#28771) 2023-07-01 08:40:06 +01:00
Dean Lee 32c5e6aafb modeldata.h: convert constants to uppercase (#28769) 2023-07-01 08:26:21 +01:00
Adeeb Shihadeh 010ef17da5 UI: adjust opacity instead of visibility to indicate engageability (#28765) 2023-06-30 19:18:35 -07:00
Mitchell Goff a66135665c UI: Indicate when Nav on OP is enabled (#28665)
* Indicate whether nav is enabled in UI

* update border spacing on both enabled and navEnabled change

* update less

* more

* cleanup

* simplify

* fix

---------

Co-authored-by: Cameron Clough <cameronjclough@gmail.com>
2023-06-30 19:00:36 -07:00
Mitchell Goff 531c13f2ac Moonrise Model (#28761)
* New model: 889463fc-5e5d-497d-9111-c8567a13cabf

* Updated model replay ref
2023-06-30 18:52:20 -07:00
Shane Smiskol 56a2d5d49b Toyota: rename undefined signal (#28762)
Update toyotacan.py
2023-06-30 14:39:17 -07:00
Dean Lee 5493cb4289 ui/settings: allow driving personality without CarParams (#28753)
* allow driving personality without CarParams

* rename to hasLongitudinalControl

* Update selfdrive/ui/qt/util.cc

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-06-30 13:45:58 -07:00
Irene Cheng Chi 155e0222d0 Toyota: Fix LDA message signal name, length, and description (#28755)
* bump opendbc

* LDA_SPEED_TOO_LOW -> LDA_MESSAGES

* bump opendbc

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-06-30 13:43:42 -07:00
Dean Lee 7ac22a0d7a ui/sidebar: Fix the inconsistent padding in different languages. (#28746)
cleanup
2023-06-30 13:40:28 -07:00
Adeeb Shihadeh 3e1ba3ff35 Revert "ui: fix memory leak in MapSettings (#28701)"
This reverts commit 5a00b42092.
2023-06-30 13:22:20 -07:00
Vincent Wright f0b65d3e92 Added new 2023 Ram 1500 FW (#28758)
* Added new 2023 Ram 1500

dongle id: 960a6270ac410199

* duplicate

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-06-30 12:57:12 -07:00
Jason Wen 32dd76bcb7 ui: Screen Recorder toggle display default on 2023-06-30 15:48:31 -04:00
Jason Wen 133fdcb43a ui: Screen Recorder toggle display prerequisites 2023-06-30 15:38:40 -04:00
Jason Wen c0df986710 Update CHANGELOGS.md 2023-06-30 15:37:40 -04:00
Jason Young c33a729201 VW MQB: Add FW for 2017 Škoda Superb (#28756) 2023-06-30 11:14:40 -07:00
Adeeb Shihadeh 260e83d8e4 manager: create params once (#28757) 2023-06-30 10:03:45 -07:00
Dean Lee 57e70278dc ui/device: remove method motionTrigger (#28754)
remove motionTrigger
2023-06-30 08:46:09 -07:00
Maxime Desroches 0ebec253d0 simple fuzzing test for all processes (#28661)
* Revert "Revert "simple fuzzing test for all processes (#28584)""

This reverts commit 7783dc602c.

* determinism

* fingerprint
2023-06-29 21:49:23 -07:00
Adeeb Shihadeh 336b5f7324 reduce startup alert duration (#28749)
* reduce startup alert duration

* update refs
2023-06-29 17:57:25 -07:00
Adeeb Shihadeh e090bd81f2 bump cereal 2023-06-29 17:37:00 -07:00
Adeeb Shihadeh 9ca96cc4b1 manager: write ublox param on change (#28748) 2023-06-29 16:05:00 -07:00
Jason Wen d79689b967 Update CHANGELOGS.md 2023-06-29 17:25:56 -04:00
Dean Lee 5a00b42092 ui: fix memory leak in MapSettings (#28701) 2023-06-29 13:37:19 -07:00
Adeeb Shihadeh 309eccad3a Revert "remove sleep on launch (#28236)"
This reverts commit 115fc66514.
2023-06-29 13:35:11 -07:00
Jason Wen 39e0a32bcb Update CHANGELOGS.md 2023-06-29 11:55:58 -04:00
Cameron Clough 949afb6038 Ford: add Escape 2021 FW (#28744) 2023-06-29 14:55:22 +01:00
Dean Lee c7f72698a6 ui: prevent constant clicking on experimental button (#27865)
Co-authored-by: Cameron Clough <cameronjclough@gmail.com>
2023-06-29 14:53:53 +01:00
Shane Smiskol d19d83ebf6 Ford: catch camera ACC faults (#28170)
* catch camera acc faults

* Update selfdrive/car/ford/carstate.py

* cmt

* needs to be CP
2023-06-29 02:29:58 -07:00
Shane Smiskol d59172bc19 Mazda: query and log FW on bus 0 (#28569)
* mazda: query FW on bus 0

* update refs
2023-06-29 00:14:09 -07:00
Shane Smiskol 16203cc856 FwQueryConfig: test request lists (#28741)
* request callbacks

* support in IsoTpParallelQuery

* tiny bit simpler

* shorter lines

* need to check length again, could return empty list

* takes in prev response

* typing

* test

* only test

* simple test

* revert this

* subtest!
2023-06-28 23:50:52 -07:00
Shane Smiskol bdd778592d Toyota: add documentation about KWP queries (#28739)
* bump cereal

* more queries (to see the new time)

* fix

* not sure what i want this to do yet

not sure what i want this to do yet

* no body

* no body

* add test

* spacing

* bodyless

* add documentation

* cmt

* cmt

* 1a

* oof

* just the comments

* revert

* ?
2023-06-28 22:32:59 -07:00
Shane Smiskol 3b8aec4b06 Toyota: essential ECU test (#28737)
* bump cereal

* more queries (to see the new time)

* fix

* not sure what i want this to do yet

not sure what i want this to do yet

* no body

* no body

* add test

* spacing

* revert

* check len

* static fix

* shorter cmt
2023-06-28 22:10:44 -07:00
eFini 1b98fea696 Toyota: experimental longitudinal when using smartDSU on radar-ACC TSS2 car (#28440)
* disallowed openpilotLongitudinalControl when experimental_long is off on radarUnavailable vehicle

* try this

* this is a better check?

* use it here

* use it here

* more explicit (pending more cleanup)

* some documentation

* clean up

* same

* this also works, but it adds a bunch of indirection

* Revert "this also works, but it adds a bunch of indirection"

This reverts commit 822095b96569faf10a6841cf3892b5db29f0c01b.

* Update selfdrive/car/toyota/interface.py

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-06-28 21:16:01 -07:00
Harald Schäfer 5c6efd2aab Laikad: more sensible ephemeris management (#28721)
* Laikad: more sensible ephemeris management

* Tow

* fix test

* Also publish qcom

* Update

* Update laikad.py
2023-06-28 21:08:18 -07:00
Shane Smiskol 1eee26931d Toyota: set and limit angle for LTA control (#28735)
* log angle

* comments

* apply limits + comments

* fix

* remove old comment

* flip order
2023-06-28 20:23:16 -07:00
Dean Lee 5df45dcef4 ui: ignore tap to wake device (#28656)
revert to first version
2023-06-28 18:01:31 -07:00
Shane Smiskol 11494118e8 Toyota: refactor carcontroller (#28732)
* use class params

* combine limiting, logic to create commands, and creating commands into one place

* remove super old debugging comment

* log angle

* Revert "log angle"

This reverts commit f5b763c59a2aeb8e2ca2b39236e8637efdd82964.

* add headers
2023-06-28 17:22:43 -07:00
Cameron Clough 47f948c5c6 Ford: show FCW alert on IPC (#27924)
* Ford: show FCW alert on IPC

* forward fcw from ipma

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-06-28 16:22:53 -07:00
Shane Smiskol dc83752bc0 Toyota carcontroller: use class variable (#28733)
* use params

* better names
2023-06-28 15:54:20 -07:00
Igor Biletskyy 6a64d9fd55 CAN health packet v5 (#28534)
initial
2023-06-28 15:18:11 -07:00
AlexandreSato cca5a1310d Multilang: Instructions to preview alerts (#28718)
* Multilang: Instructions to preview alerts

* move instructions to separete section

* Update README.md

* <br>

* move up

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* a step

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-06-28 14:59:42 -07:00
Jason Wen 799c6f513d Hyundai: Add FW versions for Santa Fe ICE 2023 (#28727)
* Hyundai: Add FW Versions for Santa Fe ICE 2023

* fix fw
2023-06-28 13:58:05 -07:00
Shane Smiskol dcb769982f ui: hide sidebar when map shows (#28490)
Co-authored-by: Cameron Clough <cameronjclough@gmail.com>
2023-06-28 16:26:09 +01:00
Shane Smiskol ca0ec1d62b car docs: use experimental long limits (#28709)
* Silverado: allow enable down to 0 without user brake

* update docs

* firmly

* better comments, fix docs

* revert GM stuff

* revert docs

* update docs

* comment

* uses

* better cmt
2023-06-27 20:19:41 -07:00
Harald Schäfer 85c4b1a400 Nav: show gps as long as it's 100m accuracy (#28713)
* Nav: show gps as long as it's 100m accuracy

* Get norm

* get std
2023-06-27 19:09:45 -07:00
Shane Smiskol 8bf5364b56 Toyota LTA: set actuator delay (#28722)
* higher actuator delay and raise steer limit timer

* add comment
2023-06-27 18:27:29 -07:00
Shane Smiskol 1e9f794abe Toyota LTA: show alert when steering angle sensor is initializing (#28717)
* add lockout for this case

* initialized

* angle sensor

* who
2023-06-27 16:56:40 -07:00
Maxime Desroches e85acfa365 car: use default_factory for mutable fields in dataclasses (#28669)
* call me

* copy
2023-06-27 16:48:43 -07:00
Shane Smiskol e8007950ae desire helper: fix text flicker when changing direction (#28720)
* draft

* or this works

* or simply this
2023-06-27 13:42:32 -07:00
Shane Smiskol abf72fd50f Ford: add missing 2020 Escape FW (#28712)
Update values.py
2023-06-27 13:37:11 -07:00
Adeeb Shihadeh e8e8b36142 ci: fix master-ci build 2023-06-27 13:10:54 -07:00
Harald Schäfer 2acf6c0b48 Update RELEASES.md 2023-06-27 10:55:47 -07:00
Harald Schäfer ced55e541b Update RELEASES.md 2023-06-27 10:53:11 -07:00
Shane Smiskol 82f2f9448b GM: allow enabling down to a stop for Silverado/Sierra (#28708)
* Silverado: allow enable down to 0 without user brake

* update docs

* firmly

* better comments, fix docs

* revert docs
2023-06-27 00:36:53 -07:00
Shane Smiskol 07e276d5cf Toyota: check Lane Tracing Assist (LTA) EPS faults (#28711)
* check LTA faults if using LTA

* add test

* add LTA_STATE

* add comment for 0 state

* why did test_models not catch this?

* code 21

* same behavior as LKA (only if LTA is used)

* common definitions!

* more comment

* directly

* fault

* :
2023-06-26 23:57:59 -07:00
Shane Smiskol 7171e052bf Toyota: cleanup steering fault definitions (#28716)
* check LTA faults if using LTA

* add test

* add LTA_STATE

* add comment for 0 state

* why did test_models not catch this?

* code 21

* same behavior as LKA (only if LTA is used)

* common definitions!

* more comment

* revert LTA

* no lta here

* revert test

* no period

* -LTA

* init
2023-06-26 23:52:34 -07:00
Erich Moraga a58272cf59 Toyota: add missing CAR.CAMRY engine f/w (#28679)
`@natey_af` 2019 Camry (ICE)  DongleID|route e308e578239ae93e|2023-06-24--10-30-22
2023-06-26 14:59:39 -07:00
Shane Smiskol 84965525b8 Toyota: set radarUnavailable (#28707)
toyota: set radarUnavailable
2023-06-26 14:27:43 -07:00
Dean Lee 5f6d947e36 cabana: fix 'QObject::connect: No such signal' warning in UnixSignalHandler (#28702) 2023-06-26 13:08:30 -07:00
Iamz 14b9aa7490 Multilang: Update th translations (#28700)
Thai translation update
2023-06-26 12:44:18 -07:00
Harald Schäfer 124522e363 Alerts: make standard alert more opaque (#28706)
More opaque standard alert
2023-06-26 09:33:24 -07:00
Jason Wen 31a7b305ee Update CHANGELOGS.md 2023-06-26 12:09:53 -04:00
Jason Wen 2b506e49f0 Toyota longitudinal: TSS2 custom tuning behind toggle (#186)
* Toyota longitudinal: TSS2 custom tuning behind toggle

* cleanup

* add param

* Update CHANGELOGS.md

* Update CHANGELOGS.md
2023-06-26 12:28:20 -04:00
Dean Lee 070bdcdf89 UI/AnnotatedCameraWidget: cleanup drawHud (#28167)
Co-authored-by: Cameron Clough <cameronjclough@gmail.com>
2023-06-26 14:17:19 +01:00
morrislee 2914fa9d12 GM camera ACC: add camera diagnostic address to fingerprints (#28331)
* add missing addresses FP for silverado

* add for all camera acc gm

* add test

* check both rx and tx

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-06-25 20:13:55 -07:00
Shane Smiskol e171364601 Lexus: add missing NX 300H 2021 FW (#28678)
* add missing FW

* rm line
2023-06-25 20:12:28 -07:00
Adeeb Shihadeh d4bd0a3213 tici: let gpu sleep sooner (#28698)
Co-authored-by: Comma Device <device@comma.ai>
2023-06-25 19:05:58 -07:00
Lucas Keller 0e34b87744 Document WSL bug workaround (#28696)
* Document WSL bug workaround

WSL developers may run into an issue while running GUIs, where GUIs will segfault or crash due to hardware rendering issues.

Use LIBGL_ALWAYS_SOFTWARE=1 if you see segfaults or other strange GUI failures even after setting up a fresh WSL.

History: https://github.com/commaai/openpilot/discussions/26091#discussioncomment-4258846 .

* make smaller

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2023-06-25 15:38:53 -07:00
Dean Lee 36fe84ccdd loggerd: pass encoder_info by reference (#28694) 2023-06-25 14:51:28 -07:00
Dean Lee 9784f61f23 camerad: remove unused frame_length from struct FrameMetadata (#28693)
* remove unused frame_length

* bump cereal

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2023-06-25 12:51:10 -07:00
eFini e8ed0c2f53 Multilang: CHT translations for new nav UI (#28690)
CHT translations for new nav UI
2023-06-25 12:47:45 -07:00
AlexandreSato dc06ce7ac3 minor typo on replay.cc comment (#28692) 2023-06-25 20:24:19 +01:00
Harald Schäfer dce060a798 Alerts: revert gradient removal (#28686)
revert gradient removal
2023-06-25 08:55:37 -07:00
Jason Wen f7f90fd847 ui: Sidebar Temperature selector prerequisites 2023-06-25 06:30:22 -04:00
Adeeb Shihadeh fdf1c328b9 jenkins: speedup build stage (#28687)
* jenkins: speedup build stage

* run in gh actions

* skip

* set that

* build

* python path

* cleanup
2023-06-24 22:33:06 -07:00
Adeeb Shihadeh 689ff7e060 rawgpsd: adjust startup time threshold 2023-06-24 22:25:31 -07:00
Jason Wen 8f192cb975 Update CHANGELOGS.md 2023-06-25 00:29:52 -04:00
Jason Young 0c223b4814 VW PQ: Extended standstill for FtS with EPB (#28248)
* VW PQ: Extended standstill for FtS with EPB

* update refs

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2023-06-24 21:28:10 -07:00
Jason Young 336a9ed54a VW: Prep for MLB, EPS timer cleanup (#27624)
* VW: Cleanup EPS timer handling, add Event

* add event

* revert that

* bump cereal

* remove accFaultedTemp
2023-06-24 21:26:51 -07:00
Dean Lee 76ce71c6d6 ui: scale training image to fit window (#28454) 2023-06-24 21:10:29 -07:00
Adeeb Shihadeh 4662a0de82 sim: fix paramsd error (#28685) 2023-06-24 20:46:03 -07:00
Adeeb Shihadeh 5992bf4acc rawgpsd tests (#28683)
* rawgpsd tests

* test xtra

* check freq

* fix

* restart lte

---------

Co-authored-by: Comma Device <device@comma.ai>
2023-06-24 20:04:58 -07:00
Shane Smiskol 3f8c976d99 FPv2: test timing for present ECUs and VIN queries (#28676)
* put one subaddr in parallel_addrs

* p

* remove print

* update test refs

* test

* revert that

* clean up

* clean up

* fix

* print results

* fixup cmt

* move down
2023-06-24 05:47:55 -07:00
Shane Smiskol ed86a4ae62 FPv2: cleanup FW query timing test (#28677)
* put one subaddr in parallel_addrs

* p

* remove print

* update test refs

* test

* revert that

* clean up

* clean up

* only clean up

* clean up

* rm

* type

* one line

* this is fine
2023-06-24 05:09:11 -07:00
Shane Smiskol a763712779 Toyota: more ECU documentation (#28674)
* more comments

* only

* by

* it exists, just doesn't respond
2023-06-24 04:36:30 -07:00
Shane Smiskol 0ae5e9dd50 Toyota: add alternate hybrid control ECU (#28671)
add alt address for hybrid control
2023-06-24 00:42:02 -07:00
Shane Smiskol 1b3965a0c4 Toyota: add HVAC ECU (#28670)
add comment for 2nd abs, could be missing one from non_essential_ecu cars
2023-06-23 22:42:23 -07:00
Shane Smiskol 613128062e Toyota: add ECU comments (#28667)
* add some comments about toyota ecus

* updates

* revert that

* update comms

* just move
2023-06-23 22:29:43 -07:00
Shane Smiskol b1ae79f381 Toyota: add alternate transmission address (#28666)
* A few cars have a tester present response on this address

* add comment

* another comment

* remove duplicate comment

* Revert "remove duplicate comment"

This reverts commit 51c822ddaa2d063e873693fdf77edbaf491a9192.

* revert 2

* revert 2

* revvy

* commenty

commy
2023-06-23 20:51:11 -07:00
Adeeb Shihadeh 23db0aa757 update offroad danger temperature (#28662) 2023-06-23 17:23:48 -07:00
Harald Schäfer ae3681f2bb Test and fix cruise speed all personalities (#28658)
* Fix cruise speed in non-standard mode

* Test all personalities

* Test only critical speeds

* 35ms max
2023-06-23 17:14:41 -07:00
Adeeb Shihadeh 4464383833 thermald: show temp value in offroad alert (#28664)
* thermald: show temp value in offroad alert

* update

* better for multilang

* update translations

---------

Co-authored-by: Comma Device <device@comma.ai>
2023-06-23 17:12:01 -07:00
Vivek Aithal c9f02ae905 [SUBARU OUTBACK 6TH GEN] Modify offline torque parameters (#28663)
* add new valkues for subaru, to try

* update refs

* update refs
2023-06-23 17:06:57 -07:00
ZwX1616 ce2dffe566 Modeld: send confidence class (#28625)
* 0.7

* magic

* faster magic

* more simple

* up

* empty

* more mid bits

* naive

* flatten

* dz

* that can stay

* this is fine

* what the

* what the

* giRevert "what the"

This reverts commit 1619ba68e6098dc581fe9b82e7ecb74562b619cc.

* Revert "what the"

This reverts commit 0037dd368290497a6d0009ca34adb2184b584d2e.

* 1x fine

* that was fine

* combined

* independent cum

* 0 is fine

* use metrics

* up cereal

* process and publish from modeld

* cleanup

* use s.output

* bg

* a greener approach

* dns

* serial

* update ref commit

* rebase

* ref

* cereal master

---------

Co-authored-by: Comma Device <device@comma.ai>
2023-06-23 16:49:14 -07:00
Adeeb Shihadeh a50c191f8d bump cereal (#28650)
* bump cereal

* fix pigeond test

* bump cereal

* bump cereal

* bump cereal

* bump cereal

* update refs
2023-06-23 16:01:21 -07:00
Dean Lee fe91ea1139 cabana: properly handle unix signals (#28657) 2023-06-23 15:27:51 -07:00
Kacper Rączy b6c3f69dc0 paramsd: expose filterState in debug mode (#28627)
* Update cereal

* Expose filterState in debug mode.
2023-06-23 13:45:40 -07:00
AlexandreSato fb3eb6f9ea Multilang: update pt-BR translations (#28659) 2023-06-23 21:25:26 +01:00
Justin Newberry 803c077dc1 Subaru: Signals Cleanup (#28602)
Co-authored-by: Cameron Clough <cameronjclough@gmail.com>
2023-06-23 21:24:27 +01:00
Dean Lee 6cc600e84f cabana: fixed the issue of parsing multiplexed signals (#28660) 2023-06-23 13:14:11 -07:00
Adeeb Shihadeh d081396102 pj: update thermal debug layout 2023-06-23 13:12:33 -07:00
YassineYousfi 46199c06d3 add huggingface transformers dev dependency (#28645) 2023-06-23 10:10:45 -07:00
Harald Schäfer af9edb020d Qcom localizer: erratic clocks have an erratic error rate too (#28654)
Erratic clocks drift erratically too
2023-06-23 09:44:37 -07:00
Shane Smiskol 164dd5015e Toyota: add central gateway ECU (#28653)
* add comment about central gateway

* add as ecu

* bump ref

* add to whitelists
2023-06-22 23:30:34 -07:00
Shane Smiskol 8dc35c14d5 Toyota: remove one hybrid control computer ECU address (#28652)
this one isn't queried by techstream
2023-06-22 23:09:39 -07:00
Shane Smiskol 3941aef89b Toyota: add transmission ECU (#28649)
* add transmission! this is not present on hybrids, since the hybrid computer controls the planetary gears (E-CVT)

* whitelist transmission

* comments
2023-06-22 21:45:24 -07:00
Adeeb Shihadeh 07a68ca032 UI: border is always engagement state (#27416)
* border is for engagement state

* round shading too

* alerts =/= status

* no debug print

* Full still full

* more cleanup

* more radius

* Update mui too

* normal black

* cleanup

---------

Co-authored-by: Bruce Wayne <harald.the.engineer@gmail.com>
2023-06-22 21:37:08 -07:00
Adeeb Shihadeh 7d6c22949a tici: improve amp test (#28648) 2023-06-22 20:57:36 -07:00
Mitchell Goff 4c2c73b152 Publish navEnabled from modeld (#28647)
* Publish navEnabled from modeld

* Bump cereal
2023-06-22 19:39:51 -07:00
Lee Jong Mun c7b62009ef Multilang: kor translation update (#28646)
kor translation update
2023-06-22 19:02:22 -07:00
Adeeb Shihadeh 60a3180661 Update RELEASES.md 2023-06-22 18:58:18 -07:00
Jason Wen 813d591204 Update CHANGELOGS.md 2023-06-22 21:11:46 -04:00
Kacper Rączy 2c617e0c7a process_replay: modeld and dmonitoringmodeld support (#28463)
* vipc support. modeld and dmonitoringmodeld configs

* Update cereal

* Add vision meta

* Use vision meta in process replay

* Exclude modeld and dmonitoringmodeld from test_processes

* Refactor other pieces of code to use vision meta

* remove unnecessary imports

* Add MAX_FRAMES_PER_SEGMENT

* cameraState migration

* Move camera state migration to migration module

* model_replay refactor

* Fix lint issues

* Reduce number of vipc buffers to 2

* Update spinner message

* Update model replay ref

* Support the new log order

* Replace CameraFrameSizes with dict. Add encode_index field

* Migrate camera states based on encode indices

* Refactor process replay

* Refactor model replay

* Remove unnecessary print

* Update model replay ref

* Make camera state migration optional

* Remove unused import

* Add ignore_alive_pubs field

* Add assertion for carParams inside fingerprinting callback

* Remove WideCameraOnly param setup

* Refactor ModeldCameraSyncRcvCallback

* Update model replay ref commit

* Fix camera state migration

* Only migrate camera states when process has vision pubs

* Refactor model replay again

* Fix linter issues

* One more linter fix

* Update model replay ref commit
2023-06-22 17:36:25 -07:00
Dean Lee e8db988f2a ui/map_settings: remove repaint (#28642) 2023-06-23 00:31:05 +01:00
Adeeb Shihadeh 7783dc602c Revert "simple fuzzing test for all processes (#28584)"
This reverts commit bac193bdd5.
2023-06-22 14:59:50 -07:00
Adeeb Shihadeh 16e3d4f69f jenkins: new replay devices (#28643)
* replay

* restart nm
2023-06-22 14:21:11 -07:00
Cameron Clough a2b7d2c867 update mapbox style (#28638)
updated map components and dataset
2023-06-22 22:10:42 +01:00
eFini 3b07bd5fcd Multilang: Chinese (Traditional) offroad alerts translation (#28636)
CHT translation for offroad alerts + minor changes to punctuation marks
2023-06-22 13:50:54 -07:00
Cameron Clough bc5a899024 UI: improved nav destination entry (#28476) 2023-06-22 19:57:29 +01:00
Jason Wen 54c4dbd49b Merge branch 'upstream/openpilot/master'
# Conflicts:
#	cereal
#	common/version.h
#	opendbc
#	panda
#	selfdrive/car/honda/carstate.py
#	selfdrive/car/honda/interface.py
#	selfdrive/car/hyundai/values.py
#	selfdrive/car/subaru/carcontroller.py
#	selfdrive/car/subaru/subarucan.py
#	selfdrive/controls/lib/longitudinal_planner.py
#	selfdrive/manager/manager.py
2023-06-22 14:52:51 -04:00
Jason Wen ac75b20104 Rename DevUIInfo 2023-06-22 11:54:19 -04:00
Dean Lee 2b800cf2e7 ui: multilang offroad alerts (#28512)
Co-authored-by: Shane Smiskol <shane@smiskol.com>
Co-authored-by: Cameron Clough <cameronjclough@gmail.com>
2023-06-22 15:04:28 +01:00
Cameron Clough a485e474c8 Ford: add some missing types 2023-06-22 12:14:26 +01:00
Shane Smiskol af42caa394 Toyota: add combination meter and SRS airbag ECUs (#28633)
* add combination meter and srs airbags

* whitelist
2023-06-22 03:59:14 -07:00
Cameron Clough bf8e815aba UI: fix DM icon margins (#28635) 2023-06-22 11:58:38 +01:00
Shane Smiskol 306aa9778c Toyota: add note about available ECUs (#28632)
add comment
2023-06-22 01:58:43 -07:00
Shane Smiskol 08112ebc37 Toyota: query hybrid vehicle control computer ECU (#28628)
* add comments

* we query abs

* lower

* add hybrid controller

* bump cereal to master

* another PR

* add hybrid to whitelists

* consistency

* check data for this
2023-06-22 01:53:32 -07:00
Shane Smiskol 2679f23002 gitignore: add file from a test (#28631)
* turns out only one needed

* up
2023-06-22 01:38:54 -07:00
Shane Smiskol d42231b51a Chrysler FPv2: rename Ecu.hcp to Ecu.hybrid (#28629)
rename hcp to hybrid
2023-06-22 01:27:15 -07:00
Shane Smiskol 4bec6b7ab7 car_helpers: add variable to disable FW cache (#28626)
* Update car_helpers.py

* actually caches the fw

* simpler
2023-06-22 01:20:40 -07:00
Shane Smiskol 9749b7eac2 bump cereal (#28630) 2023-06-22 01:10:46 -07:00
Kacper Rączy 3cae32a85f process_replay: custom params (#28624)
* Add custom params argument

* Fix default arguments

* Fix typing issues
2023-06-21 20:16:14 -07:00
Mitchell Goff ae5bfcf248 Remove get_model_yuv_transform function (#28568)
* remove yuv_transform from update_calibration

* Remove get_model_yuv_transform entirely
2023-06-21 20:02:44 -07:00
Larry Walters d8aab568c6 Hyundai: enable radar tracks for 2019 Santa Fe (#28623)
Hyundai: Adding second radar FW version for 2019 Santa Fe
2023-06-21 16:40:39 -07:00
Kacper Rączy f7c520b0d9 macOS: re-order CI caching jobs (#28622)
Save scons cache before dependency cleanup
2023-06-21 14:01:33 -07:00
Kacper Rączy 45a6834a74 macOS: fix build issues & re-enable CI (#28258)
* Uncomment build_mac job

* Add PYCURL_CURL_CONFIG

* Acados universal binary

* Remove x86 macos references from sconscript

* Add missing include in cabana

* Update cereal

* Update workflow

* Remove unnecessary libpaths for darwin

* Add missing path to cached dirs

* Fix path in cache preparation step

* Add poetry caches to CI cache

* Compile acados with lower deployment target for CI

* Update cereal

* Pass -rpath in linker flags as scons doed not support RPATH on macos

* Use scons api instead of os

* @rpath in install name of acados dylibs

* SConstruct cleanup

* fix liblocationd tests by adding lib suffix based on platform

* Update cereal

* Update opendbc

* Update opendbc

* Add acados gitignore to release files

* Update cereal

* Update cereal

* Add scons_cache to build cache

* Add Caskroom to cache

* Fix typo

* Link all packages at once, instead of one by one

* Run cleanup stage using poetry

* Remove casks from cache

* Move scons cache to separate cache step

* Save scons cache only on master

* Remove restore-keys from save-scons-cache step

* Uncomment if conditions for scons save

* Add gcc-arm-embedded cask cache to cache

* Custom handling of gcc-arm-embedded toolchain cache

* Rename dep cache key

* Exclude .fseventsd from cache

* Fix glob pattern

* Remove .feventsd before caching

* Run mac_setup only if dependency cache-hit != true

* Update cereal to master

* Add overwrite flag to brew link

* Remove manual casadi build from mac_setup

* Remove restore-keys from dependency cache

* Remove linux requirement for casadi

* Restore restore-keys to dependency cache
2023-06-21 13:14:20 -07:00
Cameron Clough e3233cdaf2 bump opendbc 2023-06-21 15:59:25 +01:00
Cameron Clough 8495510c29 networking: add forget btn pressed state (#28618) 2023-06-21 14:42:18 +01:00
Shane Smiskol ae0d1635b4 Toyota FPv2: log telematics ECU (#28613)
* add electronic parking brake ecu

* add

* add to whitelists

* update refs
2023-06-21 00:32:40 -07:00
Shane Smiskol 12be5afb8a Toyota FPv2: log electronic parking brake ECU (#28612)
* add electronic parking brake ecu

* add comment

* bump

* screw sequential subaddrs
2023-06-20 23:53:20 -07:00
Shane Smiskol a9c8a9d1ab bump cereal (#28614)
bump-cereal
2023-06-20 22:59:19 -07:00
sebmueller01 0416fe5183 Toyota: add missing engine FW for 2023 RAV4 LE (LTA) (#28611) 2023-06-20 22:55:39 -07:00
Kacper Rączy a4bba84f8c Update onnx to 1.14 (#28610)
* Update onnx to 1.14 and onnxruntime-gpu to 1.15.1

* Update lock
2023-06-20 17:32:42 -07:00
Kacper Rączy 30ccd442d4 Update casadi to 3.6.3 (#28609)
Update casadi to 3.6.3. Update lock file
2023-06-20 15:33:27 -07:00
Shane Smiskol 8660f69416 Toyota: remove bad FW (#28607)
Never seen last 720 days on this car
2023-06-20 14:54:11 -07:00
Shane Smiskol 07fe88b517 Toyota: rename KWP FW request (#28608)
rename toyota request to kwp (read ecu id)
2023-06-20 14:54:00 -07:00
Adeeb Shihadeh 4c6f7b5c84 boardd spi: prevent busy wait when TX buffers full (#28599) 2023-06-20 14:21:34 -07:00
Maxime Desroches bac193bdd5 simple fuzzing test for all processes (#28584)
* working test

* classmethod

* review

* add to ci
2023-06-20 10:57:02 -07:00
Dean Lee 3c398b2e2f cabana: simplifying endian conversion (#28601) 2023-06-20 10:56:40 -07:00
Adeeb Shihadeh 4b90117dd8 pre-commit: autoupdate hooks (#28605)
Update pre-commit hook versions

Co-authored-by: adeebshihadeh <adeebshihadeh@users.noreply.github.com>
2023-06-20 10:41:21 -07:00
Adeeb Shihadeh f259e87cb2 bump panda 2023-06-19 20:52:39 -07:00
James e81515ba7f Sort parameter list alphabetically (#28594) 2023-06-19 15:26:52 -07:00
Dean Lee e80440dc5d cabana: fixed the multi-threading issues of AbstractStream (#28590)
* fix multi-threading issues

* protect masks with mutex
2023-06-19 10:21:16 -07:00
Jason Young 2b49a4754b VW MQB: Add FW for 2023 Volkswagen Taos (#28596) 2023-06-19 09:52:57 -07:00
Jason Wen 6e781d3801 Update CHANGELOGS.md 2023-06-18 22:36:14 -04:00
Jason Wen 97a61463b2 HKG CAN: Smoother Stopping Performance prerequisites 2023-06-18 22:09:17 -04:00
Jason Wen 733cf3c521 Add SP flags 2023-06-18 20:49:05 -04:00
Jason Wen 30e455e367 bump to 0.9.3.1 2023-06-18 20:33:30 -04:00
AlexandreSato 3d909d3097 Multilang: update pt-BR 'alfa' translation (#28591) 2023-06-18 20:27:39 +01:00
Jason Wen d4fa3ad160 Update CHANGELOGS.md 2023-06-18 10:03:05 -04:00
Jason Wen 848718e0c1 Update CHANGELOGS.md 2023-06-18 07:14:01 -04:00
Dean Lee 2ebd7ab088 cabana: fix segfault when switching DBC files. (#28587) 2023-06-17 20:30:17 +01:00
Cameron Clough b2295c979e docs: fix footnote typo 2023-06-17 12:24:20 -07:00
Jason Wen e2f7da5cc9 Update CHANGELOGS.md 2023-06-17 12:37:51 -04:00
Cameron Clough 6e8671a712 add Ford Focus 2018 to release notes 2023-06-17 07:18:02 -07:00
Cameron Clough 78bb637993 Ford: remove Focus Mk4 from dashcam only (#28551) 2023-06-17 15:16:59 +01:00
Shane Smiskol 2f2b94758b Nissan FPv2: log different diagnostic session types (#28585)
* standard KWP2000 diagnostic session type

* draft

* clean up

* not needed

* update FP refs

* should log logging
2023-06-17 02:39:58 -07:00
martinl 5cb9360fa0 Subaru: log stock AEB (#28052)
* Subaru: log stock AEB

* Remove stockFcw from stockAeb

* Subaru: Add FCW_Cont_Beep to stockFcw signals

* add ES_Brake

* use actuation bit

* bump opendbc

* remove aeb from UI

fix

* Update selfdrive/car/subaru/carstate.py

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-06-16 22:48:09 -07:00
Shane Smiskol 6459d46086 Ford: add new engine FW for Bronco Sport (#28586)
add new FW

d5f0cbd9ceba7d0c|2023-06-16--17-14-20
2023-06-16 22:45:13 -07:00
Mitchell Goff aadd9ae269 Enable nav features in modeld (#28448)
* Enable nav features in modeld

* Enable mapsd/navmodeld

* Updated model_replay_ref_commit and added mapsd/navmodeld to test_onroad

* fixed process name

* always publish from mapsd
2023-06-16 21:27:35 -07:00
Adeeb Shihadeh 78b097a693 bump panda (#28583) 2023-06-16 20:38:51 -07:00
Mitchell Goff 9d835020fc Always publish from mapsd (#28581) 2023-06-16 20:13:24 -07:00
Mitchell Goff 6509cde41b Rename map_renderer -> mapsd (#28580) 2023-06-16 20:12:50 -07:00
Kacper Rączy 83d6552a15 lateral_planner: expose solverState, solverCost in debug mode (#28577)
* Update cereal

* Add xs, ys, solverCost support in lat planner

* Update cereal

* Add support for debug mode. Add solverState

* Read debug mode from env

* Update cereal
2023-06-16 19:51:37 -07:00
Mitchell Goff a9cb255017 New map model: 917a2539-5e7a-4374-878a-9b356f0f1922/500 (#28579) 2023-06-16 19:31:57 -07:00
Yassine fc61209f74 update model replay ref commit 2023-06-16 15:04:06 -07:00
YassineYousfi 4fcd82076a Nicolas Cage Model (#28547)
01697194-d32d-4c3a-a803-d8f61cdf24e9/449 2ff8e6a1-7efd-4984-9f29-974164a3747b/700
2023-06-16 13:36:56 -07:00
Adeeb Shihadeh 111b4eee30 fix a bunch of python warnings (#28576)
* fix a bunch of python warnings

* fix that
2023-06-16 13:22:30 -07:00
Adeeb Shihadeh 056bc05489 swaglog: fix ResourceWarning (#28575) 2023-06-16 12:25:17 -07:00
Adeeb Shihadeh d0369521ba tools: update windows instructions 2023-06-16 11:06:33 -07:00
Adeeb Shihadeh f332b4c7bb bump to 0.9.4 2023-06-16 10:56:17 -07:00
Adeeb Shihadeh 8704c1ff95 logmessaged: handle interrupted rollover (#28572) 2023-06-15 22:05:44 -07:00
Adeeb Shihadeh 51d71c0182 more release notes 2023-06-15 21:23:43 -07:00
Jafar Al-Gharaibeh 354b5be9c3 Mazda: Fix BSM detection with blinkers (#27919)
* Mazda: Fix BSM detection

Submitted-by: Samuel <samuel95_54@hotmail.com>
Signed-off-by: Jafar Al-Gharaibeh <to.jafar@gmail.com>

* bump opendbc

* use new signals

---------

Signed-off-by: Jafar Al-Gharaibeh <to.jafar@gmail.com>
Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-06-15 20:50:21 -07:00
YassineYousfi 90c0edcd6a update release notes 2023-06-15 20:29:50 -07:00
Adeeb Shihadeh f375289aa7 update release notes 2023-06-15 20:21:31 -07:00
Vivek Aithal dfbdcbad73 [paramsd] Add a hysteresis band for valid checks where applicable (#28546)
* add a hysteresis band for the slow offset valid check

* add hysteresis to total_ofset and roll valid cases

* bugfix: roll is in radians, offsets are in degs

* remove defaults

* remove kwarg

* remove slow offset check while loading params
2023-06-15 20:17:06 -07:00
Adeeb Shihadeh 692bfa55c9 thermald: adjust offroad danger temp (#28524) 2023-06-15 20:12:24 -07:00
Adeeb Shihadeh 77c9d65a71 thermald: remove offroad min time condition (#28567)
Co-authored-by: Comma Device <device@comma.ai>
2023-06-15 18:50:59 -07:00
wilderko 10a392a7f1 Added new fingerprint of VW California 2021 (#28504)
* Added new VW California 2021

* duplicate eps

* hex

---------

Co-authored-by: Pavol Luptak <wilder@pop-os.localdomain>
Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-06-15 18:48:15 -07:00
Adeeb Shihadeh 411cf094f3 thermald: log duration of startup block (#28566) 2023-06-15 18:16:59 -07:00
Adeeb Shihadeh 3072643363 thermald: fix temperature filter init (#28565) 2023-06-15 17:34:01 -07:00
Adeeb Shihadeh cb4c7118a5 thermald: log filtered max temp (#28564) 2023-06-15 17:08:47 -07:00
Maxime Desroches 3fc104fb6d test: car interface fuzzy testing + generating capnp structs (#28530)
* random car control

* format

* struct generation

* math

* staying real

* really staying real

* move

* split this

* format

* Revert "format"

This reverts commit a70a73952ee3833c4ae839d7b2729ee2a1e1a85b.

* Revert "split this"

This reverts commit ae96be63cbfbee230101e69a0f84c874f321fafa.

* space
2023-06-15 17:01:13 -07:00
Jason Young 150cda68c2 VW MQB: Add FW for 2016 SEAT Leon (#28561) 2023-06-15 16:46:25 -07:00
Jason Wen bac7873513 Update CHANGELOGS.md 2023-06-15 19:37:23 -04:00
Shane Smiskol 56614124f0 FPv2: don't add debug candidates to versions globally (#28562)
* debugging

* this test works, but find a better place

* make test more generic to start testing more than timings

no need to run again in another test function. eventually we
can simulate ECUs and have IsoTpParallelQuery work properly

* Revert "make test more generic to start testing more than timings"

This reverts commit 58e8536b1d8b138902d373e1e1194e70c9eb4b24.

* 2nd try

* clean up

* not even MappingProxyType works

* works

* test that too

* clean up

* refactor to avoid modification online

* revert tests

* more revert

* no longer needed

* clean up
2023-06-15 16:32:32 -07:00
Jason Wen d9b652af7c Update CHANGELOGS.md 2023-06-15 18:41:46 -04:00
Adeeb Shihadeh 7d6897fa38 thermald: save last offroad status packet on onroad transition (#28563)
* thermald: save last offroad status packet on onroad transition

* update param

* write every time

---------

Co-authored-by: Comma Device <device@comma.ai>
2023-06-15 15:04:22 -07:00
Jason Young 4b63feddec VW MQB: Add FW for 2017 Volkswagen Golf (#28559) 2023-06-15 13:18:35 -07:00
Dean Lee 4891a234e2 cabana: Prevent dialog that load autosaved file from blocking replay->start() (#28558) 2023-06-15 10:35:30 -07:00
Cameron Clough e57f3ab4da cabana: round signal raw value for value description 2023-06-15 12:46:08 +01:00
Jason Wen 7e3f6add58 Update CHANGELOGS.md 2023-06-15 07:09:38 -04:00
Shane Smiskol f1bf4f903f bump opendbc (#28556)
bump
2023-06-15 04:04:48 -07:00
Jason Wen 8dbfd8180e Update param 2023-06-15 07:02:53 -04:00
Jason Wen 7e86bdc371 Fleet Manager: toggle PIN requirement prerequisites 2023-06-15 07:02:27 -04:00
Dean Lee 6f54ebe110 cabana: use raw signal value to match value descriptions (#28554) 2023-06-15 11:50:14 +01:00
Shane Smiskol f788edb6a5 HKG: use platform codes to fuzzy fingerprint (#28531)
* get gas/ev/hev from FW (not all correct, poc)

* add test for essential ecus for fuzzy fingerprinting

* kinda works

* stash

* clean up

* add code

* simpler

* use the function

* test it with our cars

* no re

no re

no re

* debugging

* handle empty dict

* simpl

* this is promising

start on making existing fingerprinting functions use the config, instead of entirely replacing them

* needs to allow 1 match

* lay out how this should look

* changes

* executable

* some work

* use config

* fuzzy ecus

* config test

* comment and some clean up

* test platform codes

* use regex, simpler and fixes bug

* in func

* rm bad func

* typing for new func and remove old from dc

* todo done

* tested!

* remove fake platform codes

* thought we needed this, but actually...

* not needed

* not applicable any more

* use config for essential ecus

* first draft of test to make adding/removing fuzzy FP platform intentional

* compile

* clean up test

* even cleaner

* fix default ecus type

* temp fix

* this is mostly in tests now

* test every fuzzy ecu fw returns one platform code

* experiment with dates

* Revert "experiment with dates"

This reverts commit 3251b9cc5c3ca41ca92c8b75ad9b2234b720aa0b.

* clean that up

* comment

* test

* work on all cars

* fix fuzz_fw_fingerprint

* comment

* get first by search

* bit more clean up

* and more

* use compiled pattern for nicer syntax

* default

* flip dat around, much cleaner

* clean up hyundai test a bit

* flip order

same here

* rename test and flip subTest

* fix pylint

* revert fw changes

revert fw changes

* line

* add original functions to test

* needs to be a list

* cmt

* draft (need to count one ecu as a match)

* tiny clean up

* todo: date range

* only in notebook

* remove comment (still can be either list or set)

* same, only notebook

* more consistent signature

* copilot inspired

* copilot no good

* test for date parsing

* better name

* good, now we don't have to worry about the dates mismatching in another test/logic

* comment up+

* some stuff

* clean up

fix test

fix test

* test

* comment

* use utils

* clean up (utils are cleaner and less buggy)

* clean up (utils are cleaner and less buggy)

* fixup test

* use a dash (prettier) and remove some platforms that can fingerprint now!

* compile global pattern

* same as what we do in values

* remove comments

* fuzzy_get_platform_codes is one or none here

* more clean up

* sort imports

* woah woah woah

* add comment

* fix reassigning different types

* add types

* adapt fuzzy test recently added (nice it caught this!)

* update lock

* options

comments

* stash

* comments and fixes

* better comments

* better

* test: run on exact fuzzy matching logic, same results!

* use match_fw_to_car

* test all fw

* ex

* unused random

* this is a possibility

* this is more clear

* fix

* revert

* revert to needing both ECUs to match to reduce false positives, test

* fix excluded platform test :( but it's ok

* add comment

* we actually want to only test fuzzy ecus to make it explicit

* fix mypy

* comment for tomorrow

* just add matches with fuzzy FP

* add comment

* this was the cleanest I could think of, but still working on it. not very easy to understand

* think this is better, but also worse...

* comment: reframing how this works

* revert back to what we did before

* was swapped

* else set

* remove old comment

* fixes from merge

* remove fuzzy_min_match_count from this pr

* fix static analysis

* also unused

* different method first draft

* copy existing fuzzy func

* check all possible ecus exist, only platform codes, slightly refactor main loop

* fix

* Revert recent

Revert "fix"

This reverts commit 5cdb7bda835f1e48e750ab4195e891afe08e11ea.

Revert "check all possible ecus exist, only platform codes, slightly refactor main loop"

This reverts commit d3e918fa20fa4ce881445850f5f7428a3c11adf8.

Revert "copy existing fuzzy func"

This reverts commit 34c8c0545097c84f55f4b4f61907606c93760ddd.

Revert "different method first draft"

This reverts commit b91139055d7d1802c1eb726504798c156a183c9c.

* new func

* fixup test

* remove changes from v1 from fw_versions.py

* clean up a bit

* return part as part of code

* fix test

* add original fuzzy function

* add an ecu match if the date is within range (or date doesn't exist)

* add format for what we're going to do

* not working stash

* the exact matching function does more of what we want with less code and less custom logic

* we don't care about found versions, only codes and dates

* actually we do have an exception

* this works pretty nicely now

* up here

* this is better

* some minor clean up

* old function=now junk

* fix platform code test

* remove old platform code function

* now rename _new to

* use FW_QUERY_CONFIG

* clean up imports

* rename that too

* one line

* correct typing

correct typing

* draft tests

* so that works

* fixup excluded platform test now too

* this is tested by excluded platform test

* test parts and dates

* remove old comment

* old import

* take platform code stuff out of FwQueryConfig

* fix test

* revert debug script

* flip order

* make this a set by default

* revert this part

* correct typing

* clean up comments

* clean that test up too/pylint

* combine these three tests ina clean way

* not right

* more general

* be consistent with quotes

* comment

* comment

* comment in fw_versions

* flip order

* this is more readable

* could test all this, but it's tested in test_hyundai and doesn't do a lot here

* only assert brands which use this

* invalidate all CAN FD ICE and hybrid

* tuple

* can get away without filtering

* add comment reasons

* fix

* some review suggestions

* this works (first draft)

* this is better

* script to print platform codes and dates

* sanity check for dates are in correct ecus and platforms

* mypy

* better variable name and comment

* rename

* same

* slightly better name

* subset

* exclude platforms and live car without dates

* consistent

* self explan

* better name

* test to make sure the functions agree

* clean that up

* comment

* we get other responses from queries not in DB, only check any

* not used or typed
2023-06-15 02:50:45 -07:00
Shane Smiskol 2166adda5f HKG: test list of platforms with no fwdCamera dates (#28555)
* no dates test

* sorted
2023-06-15 02:14:33 -07:00
Shane Smiskol e771660fa3 FPv2: rename live FW versions dict (#28550)
rename
2023-06-15 01:29:55 -07:00
Jason Wen 97dce4ab17 Update CHANGELOGS.md 2023-06-15 04:11:59 -04:00
Adeeb Shihadeh a1b6697629 logmessaged: handle big cloudlogs (#28553)
* logmessaged: handle big cloudlogs

* revert

* switch
2023-06-14 22:48:51 -07:00
Harald Schäfer da3003ee41 Alpha long control no longer called experimental (#28437)
* Fix words

* vanish

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2023-06-14 21:51:55 -07:00
Adeeb Shihadeh 4a0b5dacbb pandad: update time from RTC (#28466)
* pandad: update time from RTC

* Update pandad.py

---------

Co-authored-by: Comma Device <device@comma.ai>
2023-06-14 21:42:33 -07:00
Jason Wen 20d5802010 Update CHANGELOGS.md 2023-06-14 23:51:49 -04:00
Harald Schäfer 6d25f66cf1 Laikad: Need to understand constellationId to understand clock (#28552)
Need to understand constellationId to understand clock
2023-06-14 19:54:51 -07:00
Shane Smiskol c453771492 HKG: add script to view platform codes (#28549)
add script
2023-06-14 15:54:04 -07:00
Cameron Clough 7a5b0b97e1 Ford Escape 2020 FW (#28545) 2023-06-14 15:53:58 +01:00
Jason Wen 1fbaab0b34 Auto Lane Change: Delay execution with BSM detection prerequisites 2023-06-14 07:28:45 -04:00
Jason Wen d5a7644209 Update CHANGELOGS.md 2023-06-14 07:27:22 -04:00
Harald Schäfer 155cab9ec4 Disable internet in laikad.py, even in CI (#28535)
* Limit OPENBLAS to 1 thread in manager

* Restrict openblas threads when running openpilot

* print in CI

* Disable internet for laika, even in CI

* update ref
2023-06-13 23:39:11 -07:00
Harald Schäfer c5c9d5b921 Fix CARLA simulation (#28541)
* logmessaged conflicts with onnxrunner

* More fixes, now engages

* Fix can properly

* Otherwise it faults

* Put check back

* remove more hacks

* remove more hacks

* Not relevant anymore

* Narrow camera default
2023-06-13 22:54:37 -07:00
Shane Smiskol d94c2a8ef7 Hyundai FPv2 unit tests: clean up (#28542)
* be consistent with quotes

* combine tests

* cmt
2023-06-13 22:17:47 -07:00
Shane Smiskol 6c619561ee FPv2 timing unit test: halve runs (#28540)
Update test_fw_fingerprint.py
2023-06-13 21:26:31 -07:00
Shane Smiskol 572a221a86 FwQueryConfig: remove platform codes (#28538)
* bring platform codes out of config for now (can re-introduce later)

* clean that up

* flake8

* comment

* comments and better test names

* typo

* Update selfdrive/car/hyundai/tests/test_hyundai.py

* Update selfdrive/car/hyundai/tests/test_hyundai.py
2023-06-13 20:41:03 -07:00
Maxime Desroches 348df9c974 Fix index out of bound error for body carcontroller (#28539) 2023-06-13 20:37:17 -07:00
Shane Smiskol fcc268b8be exact matching: use set for invalid (#28537)
use set
2023-06-13 20:00:54 -07:00
Kacper Rączy 15fcd0d9d4 regen: remove support for fake extra vision client (#28520)
* Remove extra client from camera replay

* Fix another device type check
2023-06-13 16:13:20 -07:00
Kacper Rączy 242e8d2ca8 locationd: initial value for gps_std_factor (#28533)
* setup_gps method

* Add LocalizerGnssSource

* slight refactor

* make it more readable

* Move gnss_source initialization to configure_gnss_souce

* Add gps_variance_factor, gps_vertical_variance_factor and gps_time_offset

* add header changes
2023-06-13 16:12:53 -07:00
Shane Smiskol 55e489db7c HKG: split up platform code parsing (#28532)
* test diff

* clean up

* clean up

* doesn't work :(

* fix mypy
2023-06-13 14:47:45 -07:00
Dean Lee e08569b0f3 cabana: support multiplexed signals (#28309)
* support muxed signals

* write multiplexor in generateDBC

* edit multiplex_switch_value in signalView

* no overlapping warning for mux signals

* group signals by multiplexer indicator

* display freq for each multiplexed signals

* remove all multiplexed signals after switch deleted

* disable switch value

* cleanup

* historyView: use getValue

* sort by switch value

* check address

* rename variables

* rename signale type

* parse multiplexed signals in dbcmanater

* cache signal color in member variable

* cleanup num_decimals

* remove sources from dbcmanager and cleanup code

* fix sort

* check mltiplex in operator==

* fix sizehint

* convert multipledxed to normal after changing multiplxor to normal

* throw error on multiple 'M' signals

* add comment

* parse multipled signals in test case

* cleanup

* change order

* cleanup open

* display multiplexed/overlapping signals in binaryview

* sort overlapped signals by size

* refactor dbcmanager

* trimmed

* parse multiplexed signals in test case

* cleanup

* merge master

* space

* use pointer for sigs

* alldbcFiles

* cleanup

* cleanup sparkline

* use std::vector

* skip draw sparkline if isnull

* bigger capacity
2023-06-13 13:22:03 -07:00
Dean Lee 7128daebba cabana: fix core dump when failed to connect to panda (#28529) 2023-06-13 10:49:59 -07:00
Jason Wen 728c65a14a Update CHANGELOGS.md 2023-06-13 13:45:25 -04:00
Jason Wen d576dfdf2d Update CHANGELOGS.md 2023-06-13 12:24:23 -04:00
Jason Wen 132762fd17 Update CHANGELOGS.md 2023-06-13 11:06:13 -04:00
Jason Wen e092e7ed19 Driving Screen Off: param updates 2023-06-13 11:05:58 -04:00
Jason Wen d66c7f18c8 bump to 0.9.2.3 2023-06-13 05:07:39 -04:00
Shane Smiskol e54d05b42f HKG: FW part number test (#28525)
* start on test

* better regex

* lookbehind

* comments to choose from

* i did not know that!

* common patterns in values.py

* messy messy

* need to remove these

* rmrmrm

* clean up test

* fixups

* not used yet

* none should be good enough

* Update selfdrive/car/hyundai/values.py
2023-06-13 02:01:40 -07:00
Jason Wen 676fdd31c8 Update CHANGELOGS.md 2023-06-13 04:55:01 -04:00
Shane Smiskol 7fffb892e4 Hyundai: remove old Sonata FW (#28527)
* Update values.py

* can't find last 2 years
2023-06-13 00:26:02 -07:00
Shane Smiskol 8c784ae558 Hyundai: remove old Elantra FW (#28526)
* Update values.py

* don't see this fw last 2 years

* add version from 3ea622c3c0ec3055

* Update selfdrive/car/hyundai/values.py
2023-06-13 00:14:49 -07:00
Shane Smiskol bce19bf187 Subaru: use latActive for steer request bit (#28453)
* subaru: use latactive

* Update ref_commit
2023-06-12 23:03:04 -07:00
Adeeb Shihadeh 58d32a70d7 manager: watchdog restart UI with SIGKILL (#28523) 2023-06-12 21:46:20 -07:00
Jason Wen 76896a910f Update CHANGELOGS.md 2023-06-13 00:26:28 -04:00
Jason Wen af6b2979d0 MADS: Toyota: gate LKAS button behind toggle default off 2023-06-12 23:22:44 -04:00
Kacper Rączy 4eb3d54149 modeld: use any available stream as main, if there's only one (#28514)
* Use whatever stream is available as main, if there's only one

* Move logw somewhere else

* Add wideRoadCameraState to ignore_alive if its not available
2023-06-12 20:13:56 -07:00
Jason Wen 5cf13b0a72 MADS: Toyota: gate LKAS button behind toggle prerequisites 2023-06-12 22:45:44 -04:00
Harald Schäfer 33a1959d26 bump cereal (#28519)
* bump cereal

* bump cereak
2023-06-12 19:31:56 -07:00
Jason Wen bd1c833920 Docs: Don't be a ghost @FrogAi 2023-06-12 21:28:13 -04:00
Dean Lee 825c5a87df laikad: move 'from_qcom_source' into try block (#28510)
fix not cached except
2023-06-12 17:05:43 -07:00
Adeeb Shihadeh 9bb9657c9c thermald: must be in yellow band to go onroad (#28517) 2023-06-12 16:33:33 -07:00
Erich Moraga 9444df4c80 Add several missing RAM_1500 firmwares (#28515)
`ProjectZ3d#8762` 2023 RAM 1500  DongleID|route 4e0a5220533d9a86|2023-06-11--19-45-36
2023-06-12 15:18:35 -07:00
Dean Lee 9632451d1d cabana: display signal details in tooltip (#28471)
* show details in tooltip

* display tooltip in signalView

* cleanup

* setHeader before sortByColumn

* more compact tooltip

* move to util
2023-06-12 13:58:41 -07:00
Adeeb Shihadeh d96361970b thermald: common min date (#28457)
* thermald: common min date

* add to release files
2023-06-12 13:50:38 -07:00
Dean Lee 4ae0378f63 automatically detect available camera streams (#27640)
* remove WideCameraOnly

* check in set_initial_state

* no block

* remove try block

* apply reviews
2023-06-12 13:40:43 -07:00
Harald Schäfer 2453d3a04b Encoderd: refactor msg getters and setters (#28509)
* Encoderd: refactor msg getters and setters

* whitespace

* whitespace

* whitespace
2023-06-12 00:08:00 -07:00
Harald Schäfer 5df4ac61d3 Encoderd: Give encoder threads good names (#28508) 2023-06-11 23:25:16 -07:00
Harald Schäfer ac45b77d3b Encoderd: give every camera stream list of encoder streams (#28480)
* Compiles

* fixed something

* CLEANUP

* todo

* More cleanup

* Add TODO

* Update loggerd.cc

* remove write here too
2023-06-11 22:23:40 -07:00
Jason Wen 3aa5a23118 bump to 0.9.2.2 2023-06-11 20:08:00 -04:00
Jason Wen 19e2cf185b bump to 0.9.2.2 2023-06-11 18:44:56 -04:00
Harald Schäfer d8f677c5eb Encoderd: encoders don't write, they only encode (#28499)
* Encoders dont write, they encode

* Delete words

* unused

---------

Co-authored-by: Harald Schaefer <torq_boi@Haralds-MacBook-Air.local>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2023-06-11 15:02:42 -07:00
Adeeb Shihadeh 2f117e88b7 test onroad: explicit memory leak check (#28502) 2023-06-11 14:43:25 -07:00
Dean Lee bd34124a84 replay: fix timeline issues (#28501) 2023-06-11 13:41:23 -07:00
Adeeb Shihadeh b22cadc04d thneed: cleanup duplicate GPU config (#28487)
Co-authored-by: Comma Device <device@comma.ai>
2023-06-11 13:26:41 -07:00
Jason Young 5250975fa3 VW MQB: Add FW for 2018 SEAT Leon (#28500)
aef9c04d6ec5cd57|2023-06-11--17-40-14
2023-06-11 13:07:46 -07:00
Cameron Clough a5a0d734ba add Lincoln Aviator 2020 FW (#28494)
0b91b433b9332780|2023-06-11--13-43-59

VIN: 5LM5J7XC9LGL15606
2023-06-11 12:57:22 -07:00
Dean Lee 3a3e38e425 replay: Improve the performance of the log parser (#28495) 2023-06-11 08:28:30 -07:00
Adeeb Shihadeh 5161c23645 Revert "Encoderd: encoders just encode, no writing (#28482)"
This reverts commit 1fd7542eae.
2023-06-11 08:27:09 -07:00
Jason Wen d78bdaafec Docs: update comma three branches (#183) 2023-06-11 08:58:06 -04:00
Jason Wen e57cdfe5fe Docs: update Installation section (#182)
* Start the cleanup

* add

* update some urls

* add version

* revert c2 instructions

* revert c2 instructions

* c3 only
2023-06-11 08:50:50 -04:00
Jason Wen 5ec32dcbe2 Updater: persistent superseded branch alert 2023-06-11 08:13:18 -04:00
Jason Wen cd1077e93e Updater: superseded branch alert prerequisites 2023-06-11 08:10:32 -04:00
Cameron Clough 96420555e5 Ford: shiftByWire ECU not used for fingerprinting (#28493) 2023-06-11 00:09:57 -07:00
Harald Schäfer 1fd7542eae Encoderd: encoders just encode, no writing (#28482)
Encoders dont write, they encode
2023-06-10 23:44:01 -07:00
Cameron Clough 30c12e4557 Ford: detect auxiliary panda (#28491) 2023-06-10 23:22:12 -07:00
Cameron Clough 28bf743693 selfdrive/car: reusable CanBus helper (#28489) 2023-06-10 22:50:19 -07:00
Cameron Clough 22ebd4fa8f UI: consider border when setting map width (#28488) 2023-06-10 22:09:48 -07:00
John P 1a7c469a13 Update README.md | Update Recommended Link (#168)
Update README.md | Update Link

The [1] marker mentions an old link to an old branch, so I fixed that.
2023-06-11 00:45:10 -04:00
Jason Wen 9f60ec8871 Update CHANGELOGS.md 2023-06-10 22:32:16 -04:00
Jason Wen 6cfa7445ac Update CHANGELOGS.md 2023-06-10 22:06:08 -04:00
Jason Wen f0eef38dc0 offroad ui: remove irrelevant comment (#28485) 2023-06-10 13:01:16 -07:00
Jason Wen 27f1df1a9b sunnypilot: bump version to 0.9.2.1 2023-06-10 06:36:19 -04:00
Shane Smiskol f5e032b67f FwQueryConfig: add platform code support and tests (#28475)
* add config options

* you know what, platform codes don't need to be related to fuzzy fingerprinting at all

* better comment?

* add comment

* add test from other PR

* add platform code function to hyundai

* comment and add eps!

* clean up config test

* fix test

* add error message to test

* until we have multiple ways a brand can set up fuzzy FP, let's leave func name fuzzy-specific

* rename in comment too

* hyundai tests

* simpler test!

* check all ecus with platform codes

* add types-python-dateutil = "^2.8.19.13"

* these aren't used any more

* Update selfdrive/car/hyundai/tests/test_hyundai.py

* not to imply this is active yet
2023-06-09 22:51:55 -07:00
Jason Wen 7d2eaa7d74 Fleet Manager: update instruction screenshot (#181) 2023-06-10 01:48:35 -04:00
Shane Smiskol fc9660c962 env: add dateutil types (#28478)
* add dateutil types

* lock
2023-06-09 22:04:56 -07:00
Adeeb Shihadeh a77d226f33 thermald: lower threshold to exit red band 2023-06-09 20:15:13 -07:00
Kacper Rączy 838346d8a3 process_replay: deprecated message migration (#28456)
* Move migration code to new file

* Migrate messages in process replay. Remove old code

* Fix old_logtime

* Keep old logtimes on migrated messages

* Update ref commit
2023-06-09 19:17:50 -07:00
Cameron Clough f7f5537af7 MapPanel cleanup (#28474) 2023-06-09 17:08:57 -07:00
Comma Device dec3c5a57d test_amp: wait for panda 2023-06-09 15:36:41 -07:00
Adeeb Shihadeh a412cd07b1 cloudlog process not running (#28472)
* cloudlog process not running

* error
2023-06-09 15:36:15 -07:00
Jason Wen a421b78972 Update CHANGELOGS.md 2023-06-09 18:08:52 -04:00
Jason Wen 88821fb8d8 ui: display CPU temperature on sidebar prerequisites 2023-06-09 18:02:53 -04:00
Adeeb Shihadeh d1499fa5d8 bump cereal and panda 2023-06-09 14:44:57 -07:00
Maxime Desroches 181b44b28e car docs: test print_docs_diff (#28459)
* test print docs

* delete

* remove this

* print
2023-06-09 14:13:22 -07:00
Shane Smiskol 7a64385fcd Honda: set autoResumeSng for docs (#28458)
set autoResumeSng for Honda
2023-06-09 11:20:42 -07:00
Dean Lee 376144dca3 cabana: add "view" menu to the menu bar (#28467) 2023-06-09 10:54:52 -07:00
Lee Jong Mun b2288b3666 kor translation update (#28469) 2023-06-09 10:54:39 -07:00
Dean Lee 0e67d41eef cabana: fix bg color issue for inactive item (#28468) 2023-06-09 10:50:25 -07:00
Jason Wen ceb2a6a721 Update CHANGELOGS.md 2023-06-09 09:20:26 -04:00
Cameron Clough f210b2da08 Update SSH README 2023-06-08 21:05:38 -07:00
Shane Smiskol 3234243c97 FPv2: add comment about nuance of fuzzy fingerprinting (#28465)
add comment describing this nuance of fuzzy fingerprint function
2023-06-08 20:47:55 -07:00
Jason Wen 73b2e4bb2a Update CHANGELOGS.md 2023-06-08 23:15:34 -04:00
Jason Wen 6d9eeced08 Custom Stock Longitudinal Control: temporary disable for HKG CAN-FD 2023-06-08 22:54:42 -04:00
Shane Smiskol 5736cb8a7e FPv2: fix accidental FW version concatenation (#28462)
* fix missing commas

* more

* Revert "more"

This reverts commit ebe481fee44f284a598ad9d5a83da37653faee99.

* only
2023-06-08 19:53:45 -07:00
Adeeb Shihadeh 6bf1f81859 boardd: log system and RTC time before sync (#28461) 2023-06-08 19:50:49 -07:00
Jason Wen cdb4bd0a4c FCR: Autogenerate HKG Non-SCC platforms (#180) 2023-06-08 22:37:48 -04:00
Shane Smiskol 6bb61780ab params: make ForcePowerDown persistent (#28460) 2023-06-08 19:36:23 -07:00
Jason Wen a937e82015 FCR: sync with upstream supported car platforms 2023-06-08 22:34:14 -04:00
Jason Wen 1dd4eb6fe0 Fleet Manager: rename process 2023-06-08 20:30:28 -04:00
Adeeb Shihadeh f3299b19cf pj: fix camera timings layout default tab 2023-06-08 16:08:20 -07:00
Dean Lee 9295aca8ea ui: disable longitudinal personality settings when using stock long (#28443)
* disable longitdinal personality settings

* disable title label

* Revert "disable title label"

This reverts commit ef315ac2770191f1309f774185266e0cd9fe54b0.

* gray checked button on disable
2023-06-08 16:03:18 -07:00
Dean Lee ff4aae85fe cabana: refactor dbc manager (#28445)
* rafactor signal

* cleanup

* refacto dbcmanager

* refactor dbcmanger
2023-06-08 13:41:55 -07:00
Dean Lee 3b9fdf206e cabana: fix hang on exiting with CTRL+C (#28455) 2023-06-08 13:30:19 -07:00
AlexandreSato a250e1cb2f Multilang: Fix text overlap in pt-BR translation (#28450)
* update pt-BR translations

* fix some cutoff texts

* update pt-BR translations

* Include the new relaxed explanation

* fix text overlaps
2023-06-08 12:54:23 -07:00
Jason Wen fd07250d2a Update CHANGELOGS.md 2023-06-08 11:43:50 -04:00
Jason Wen 8949ad0b8f Ram DT: handle lower speed alert (#179) 2023-06-08 10:32:08 -04:00
AlexandreSato 6fd591e4b5 Fleet Manager: Error log access support (#169)
* Update README.md

* add error troubleshooting and delScreenRecords btn

* Revert "Update README.md"

This reverts commit 5d22fe815f.

* complete coment at paths

* add button to delete screen record

* remove button to delete screen record

* index cleanup

* rename

* simpler

* same module

* no need auth on home

* ide

* name

* smaller text

* spacing

* Update README.md

* Update CHANGELOGS.md

* '\n on changelogs.md

---------

Co-authored-by: Jason Wen <haibin.wen3@gmail.com>
2023-06-08 10:19:24 -04:00
Jason Wen 0065709a25 Fleet Manager: redirect cleanup (#178) 2023-06-08 09:17:10 -04:00
Jason Wen 3790c6c756 Fleet Manager: One-Time Password cleanup (#177)
* init

* keep previous page from session
2023-06-08 08:48:37 -04:00
Jason Wen d9c348fb48 Ram DT: check EPS firmware explicitly to set minEnableSpeed to 0 (#173) 2023-06-08 06:42:20 -04:00
Adeeb Shihadeh 28980cf4c6 pandad: test release -> devel bootstub reflash (#28330)
* test

* release bootstubs

* rm that

* fixup

* skip earlier

---------

Co-authored-by: Comma Device <device@comma.ai>
2023-06-07 20:25:15 -07:00
Adeeb Shihadeh 3e3c8b7ddf soundd: only run onroad (#28449) 2023-06-07 16:24:54 -07:00
Kacper Rączy a2e75fdea6 process_replay: progress bar support (#28447)
* Add support for tqdm progress bar

* Fix argument name
2023-06-07 16:23:40 -07:00
Kacper Rączy d932aae327 process_replay: improved support for drained pubs (#28452)
Stop triggering empty update if there're no drained messages in the queue
2023-06-07 16:23:02 -07:00
Kacper Rączy 02841cede3 process_replay: remove get_car_params_callback when it's not needed (#28451)
* Add assertion for can msgs in get_car_params_callback

* Remove get_car_params_callback from processes that don't need it
2023-06-07 16:22:48 -07:00
Mitchell Goff 729d3ddcb5 Check msg count in test_power_draw (#28444)
* Check msg count in test_power_draw.

* Use drain_sock

* Bug fix

* Combine into a single table

* Check camera state msgs and no default value for Proc.msgs

* Update system/hardware/tici/tests/test_power_draw.py

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2023-06-07 14:06:11 -07:00
AlexandreSato 80430435bb Multilang: update pt-BR translations (#28431)
* update pt-BR translations

* fix some cutoff texts

* update pt-BR translations

* Include the new relaxed explanation
2023-06-07 12:09:25 -07:00
Jason Wen 462b20ac12 Dashcam Viewer ▶️ Fleet Manager (#174)
* Dashcam Viewer ▶️ Fleet Manager

* missed

* process
2023-06-07 13:56:36 -04:00
Jason Wen a34c596b76 Docs: add Patreon and GitHub Sponsor links 2023-06-07 12:41:23 -04:00
Shane Smiskol a92cd659ce ButtonParamControl: minimum button width (#28442)
* min width

* param
2023-06-07 01:11:41 -07:00
Jason Wen b30b1222d9 Add sunnypilot Patreon 2023-06-07 03:09:06 -04:00
Shane Smiskol f976fce7d0 FPv2: assert non-empty FW lists (#28441)
* test empty fw lists

* fix

* generic test name

* can rmeove this check now

* and here!

* can remove that

* add to print
2023-06-07 00:05:41 -07:00
Shane Smiskol 9e8936be98 fuzzy fingerprint: track number of matching ECUs, not FW versions (#28423)
* first attempt trying to do it implicitly bad

* back to lists and explicitly do this

* continue checking if candidate switches on these, that's fine to check

* debugging

* clean up

* more clean up

* spot free

* only need to create/update on change

* fix test

* draft

* Revert "draft"

This reverts commit dbe32f58b172eddc8f9699044c6a5956e753305d.

* Revert "fix test"

This reverts commit 1d34269fe2de35d314aa0658fa47a78a08d93e08.

* fix test for real

* first draft of test

* this should be good

* can replace existing fuzzy test

* rm

* matching

* test non-empty fws

* TEST DOWN HERE

* no test

* unique + fix skip message + comment + clean up

* less confusing

* ing

* better
2023-06-07 00:03:01 -07:00
eFini 42eb7c527e Multilang: add missing Chinese (Traditional) translations (#28427)
update chinese tranditional translations
2023-06-06 23:58:48 -07:00
Jason Wen e4aa1dee05 Dashcam Viewer: One-Time Password support (#171)
* skeleton

* Print PIN under Device menu

* wrap in decorator

* login page reformat

* simplify

* cleanup

* add instruction

* formatting
2023-06-07 02:10:43 -04:00
Jason Wen 604761f6a4 Dashcam Viewer: small style change (#172) 2023-06-07 02:08:58 -04:00
Angus Gratton 7cb4adfebb Cabana: Improve contrast when using dark themes (#28389) 2023-06-06 22:22:06 -07:00
Shane Smiskol 0acc30d264 FPv2: test minimum fuzzy fingerprint ECUs (#28433)
* basic messy test

* draft

* clean up

* clean up

* clean up

* clean up

* never was fuzzy, but be explicit

* switch it up
2023-06-06 21:38:10 -07:00
Shane Smiskol 2b07ec4bde FPv2: brand filter helper (#28439)
* pass in brand

* needs to be flipped for exact matching since it's subtractive

* new helper

* makes more sense flipped

* clean up

* not that stuff here

* not here
2023-06-06 21:14:03 -07:00
Shane Smiskol 2dda9a0532 match_fw_to_car: pass down log (#28434)
pass in log from match_fw_to_car
2023-06-06 20:28:56 -07:00
Adeeb Shihadeh 464585c758 bump panda 2023-06-06 18:50:37 -07:00
Jason Wen bf0411be00 Enhanced Speed Control: accelerator press state handling (#170)
Enhanced Speed Control: accelerator press state handling
2023-06-06 21:00:21 -04:00
tanotaru 3785962684 VW: 2018 Audi RS3 FW (#27467)
Co-authored-by: Cameron Clough <cameronjclough@gmail.com>
2023-06-06 17:25:03 -07:00
Saber422 d97d908a2a VW MQB: Add FW for 2023 Skoda Koidaq RS (#28332)
0bbe367c98fa1538|2023-05-29--13-59-08--0

Co-authored-by: Cameron Clough <cameronjclough@gmail.com>
2023-06-06 16:15:25 -07:00
Vincent Wright 0d51a64bf2 Added additional Firmware for Ram 1500 (#28392)
Co-authored-by: Cameron Clough <cameronjclough@gmail.com>
2023-06-06 15:58:46 -07:00
Vincent Wright ffa10d784a More missing FW for the Ram 1500s (#28397)
Co-authored-by: Cameron Clough <cameronjclough@gmail.com>
2023-06-06 15:57:41 -07:00
Dean Lee 48b507c0b4 handle conversion exception for LongitudinalPersonality (#28426)
* handle type conversion exception

* catch multiple exception
2023-06-06 13:10:12 -07:00
John Paull 80623956ae Hyundai: add missing FW for Santa Fe Hybrid 2022 (#28410)
* values.py

added additional Firmware

* add fwdCamera too

---------

Co-authored-by: Cameron Clough <cameronjclough@gmail.com>
2023-06-06 13:07:48 -07:00
mitchellgoffpc ae0768909b Lowered expected power draw for mapsd 2023-06-06 11:58:32 -07:00
Saber422 5b3ddabf51 VW MQB: Add FW for 2020 Skoda Kodiaq (#28428)
VW MQB: Add FW for 2020 Skoda Kodiaq

route name:cd4c3e2031f01e61|2023-06-04--19-53-13--0
2023-06-06 11:56:55 -07:00
Harald Schäfer d6cfbd0097 Driving personality setting: add description (#28422)
* Driving personality setting: add description

* Missing word
2023-06-06 11:07:31 -07:00
Kacper Rączy 64377a88f9 process_replay: helpers (#28367)
* process_replay helper

* Refactor

* refactor check_enabled uses

* fix __init__

* noqa in __init__ imports

* Move compare_logs outside of process_replay

* Move save_logs to tools.lib.helpers

* Remove save_log from compare_logs

* fix lint issues
2023-06-06 10:31:13 -07:00
Dean Lee 7f41047178 ui: refactor ButtonParamControl (#28425)
* refactor ButtonParamControl

* add pressed style

* connect to buttonToggled

* typo
2023-06-06 01:18:17 -07:00
Lee Jong Mun f97b2bb9d7 kor translation update (#28420) 2023-06-05 23:11:21 -07:00
Cameron Clough 06e1f468aa bump pylint 2023-06-05 22:47:28 -07:00
Harald Schäfer 205c900742 Driving Personality setting (also changes follow distance) (#24742)
* Skeleton

* Adjustable follow parameter

* fix rebase

* long planner

* typo

* Add ui toggle

* Fix icon

* Improve text

* Better toggle position

* Im a UX engineer now

* add param reader

* CHange jerk to have same crash test performance

* Try reading param

* Unused comment

* translate ui text

* std stoi

* Parametrized buttons

* Empty strings are ints

* Move to generic

* Update translations

* Fix translation diffs

* Release notes

* update refs

* tweaks

* Misc fixes

* No param is standard
2023-06-05 22:17:41 -07:00
Jason Wen 8eafdd7058 Update CHANGELOGS.md 2023-06-06 01:13:05 -04:00
Jason Wen a1b6cb1077 Update CHANGELOGS.md 2023-06-06 01:12:08 -04:00
Harald Schäfer 16ff32d2c2 bump cereal (#28421) 2023-06-05 20:56:43 -07:00
Mitchell Goff dd6f7116f7 Test power usage for mapsd and navmodeld (#28378)
* Test power usage for mapsd and navmodeld

* Send LLK message from thread

* Use threading.Event
2023-06-05 20:27:02 -07:00
Jason Wen 9aed6070a9 GAC: init at 3 2023-06-05 22:54:04 -04:00
Jason Wen cb8ba14c53 bump opendbc 2023-06-05 22:31:29 -04:00
Shane Smiskol aa4bbcefd3 ui: wrap missing updater text (#28417)
* wrap more

* wrap more

* and that

* update
2023-06-05 17:27:34 -07:00
Adeeb Shihadeh d5101e11ad modeld: adjust CL priority (#28413) 2023-06-05 17:17:38 -07:00
Adeeb Shihadeh 6d91b7c341 jenkins: ensure panda is in good state (#28414) 2023-06-05 15:28:38 -07:00
Saber422 ff7444c156 VW MQB: Add FW for 2018 Skoda Karoq (#28409)
* VW MQB: Add FW for 2018 Skoda Karoq

route name:5663ab22a30b9a6e|2023-06-05--14-07-24--0

* fix sorting

---------

Co-authored-by: Cameron Clough <cameronjclough@gmail.com>
2023-06-05 14:18:03 -07:00
Vincent Wright e8ccbd22dd Ram 3500 Firmware (#28411)
* Ram 3500 Firmware

Dongle ID: d9855ccd97606ca8

* fix sorting

---------

Co-authored-by: Cameron Clough <cameronjclough@gmail.com>
2023-06-05 14:04:30 -07:00
Cameron Clough a6a9b65121 Chrysler: fix FW sorting 2023-06-05 13:45:03 -07:00
Adeeb Shihadeh cabcde38ad Revert "Hyundai: explicitly copy signals to forward (#28020)" (#28406)
This reverts commit f494abf0d2.
2023-06-05 09:49:11 -07:00
Dean Lee b7a2a921ec cabana: segment live stream logging (#28407) 2023-06-05 09:44:30 -07:00
Jason Wen 7ff8e02ed5 bump cereal 2023-06-05 12:43:12 -04:00
Shane Smiskol b792485dfd cars docs: add Škoda heated windshield footnote (#28380)
add heated windshield footnote
2023-06-04 18:58:26 -07:00
Shane Smiskol 7c26fc716a match_fw_to_car_exact: get config once per candidate (#28384)
lesss
2023-06-04 18:57:11 -07:00
Lee Jong Mun 90d31b9db4 kor translation update (#28401) 2023-06-04 16:52:25 -07:00
Adeeb Shihadeh e276d2a417 update pylint (#28395)
* update pylint

* update config

* fix
2023-06-04 14:06:04 -07:00
Angus Gratton f659d4d44b cabana dbc: Sort signals by name if start bits are equal (#28399) 2023-06-04 14:04:09 -07:00
Jason Wen 2f77c0d9ee Docs: sunnypilot README and relevant docs (#167)
* Docs: sunnypilot README and relevant docs

* Update QR dir

* Add icon

* Add back later

* Dividers
2023-06-03 20:57:51 -04:00
AlexandreSato 8bfc78c265 update pt-BR translations (#28393) 2023-06-03 17:15:39 -07:00
Angus Gratton 92d8295096 cabana: Add menu item that resets the window layout (#28390) 2023-06-03 14:51:16 -07:00
Dean Lee 67b27b7496 replay: fixed incorrect totalSeconds when there are invalid segments in route (#28388) 2023-06-03 11:43:27 -07:00
Cameron Clough 4f815db141 UI: connect to wifi prompt (#28273)
* OffroadHome: move experimental mode button to right column

* OffroadHome: replace DriveStats with PrimeAd when no prime

* SetupWidget: remove PrimeAd

* SetupWidget: tweaks to fit smaller space

* UI: add WiFiPromptWidget

* WiFiPrompt: update using network type

* add WiFiPromptWidget to offroad home

* reduce spacing to fit vertical space

* WiFiPromptWidget: open Wi-Fi settings

* no longer necessary

* cleanup

* shrink PrimeUser widget and increase Setup Wi-Fi font size

* correctly resize widget when stack index changes

* layout tweaks

* debug

* spacing

* slightly improved style

* helps -> help

* .
2023-06-02 23:24:38 -07:00
Jason Wen b6cb343a4a Update CHANGELOGS.md 2023-06-03 01:59:47 -04:00
Jason Wen b2fd4ec25a HKG: support steer to 0 with smartMDPS on certain models (#166)
HKG: support steer to 0 with a smartMDPS on certain models
2023-06-03 01:52:44 -04:00
Adeeb Shihadeh 04556652dc rawgpsd: fix loading assistance data (#28381)
* rawgpsd: fix loading assistance data

* needs a specific name

* cleanup

* more logging

---------

Co-authored-by: Comma Device <device@comma.ai>
2023-06-02 22:35:05 -07:00
Dean Lee 4e738e64e4 cabana: add a test case for dbc parsing (#28383)
test case for dbc parsing
2023-06-02 22:34:37 -07:00
Jason Wen 92281d2bf3 Controls: Custom Stock Longitudinal Control prerequisites (#165) 2023-06-03 01:18:47 -04:00
ZwX1616 a2e11b2f48 ci: test sof diffs in onroad test (#27723)
* add diff test

* skip

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2023-06-02 21:23:32 -07:00
Adeeb Shihadeh 80d8dcd22e test_onroad: tizi updates (#28379)
* test_onroad: add tizi support

* don't clear params on desk device

* update

* fix mypy

---------

Co-authored-by: Comma Device <device@comma.ai>
2023-06-02 21:18:51 -07:00
Jason Wen f03492e2cf Retain hotspot/tethering state across reboots prerequisites 2023-06-03 00:04:08 -04:00
YassineYousfi 7925232a34 hot coffee model (#28296)
* 1061b1c7-b944-43e3-a940-b56b64d66f54/700

* bump cereal

* bump cereal

* make mypy happy

* write TODO

* read height from written params

* fix certain_if_calib logic and unit tests

* factor moving_avg_with_linear_decay

* remove whitespace

* update model ref commit

* default value for CI

* update process replay ref commit

* update process replay ref commit

* update process replay ref commit

* bump cereal
2023-06-02 20:55:13 -07:00
Jason Young deb4b11d11 Honda: Add FW for 2023 Honda Passport (#28343)
* Honda: Add FW for 2023 Honda Pilot/Passport

* push update
2023-06-02 16:41:48 -07:00
Adeeb Shihadeh 87364b6a81 Revert "boardd: smaller spi chunk size (#28360)"
This reverts commit 702e4120e6.
2023-06-02 16:40:03 -07:00
Shane Smiskol d9ebea4bdd Hyundai: remove some old FW (#28376)
* Update values.py

* Update values.py
2023-06-02 16:01:27 -07:00
Kacper Rączy 1a0f482d4d regen: fix params (#28375)
Fix environment setup for regen
2023-06-02 15:39:23 -07:00
Jason Wen 8ba9748ad9 Parse and display sunnypilot changelogs 2023-06-02 18:20:43 -04:00
Kacper Rączy 26ad9b32f3 replay: lock uiDebug and userFlag messages behind all flag (#28349)
* Add ui-debug flag, for replaying ui debug states

* Fix flag description

* Replace --ui-debug with --all flag

* Add base_blacklist for services blacklisted by default
2023-06-02 15:17:25 -07:00
AlexandreSato 1846814ac5 Dashcam Viewer: Screen Recordings support and interface refresh (#160)
* init bootstrap 5.3

* bootstrap done

* watch screen records

* formatting

* syntax

* import

* specific path

* pathing

* text

* not needed

* sunnypilot home

* better name

* Revert "syntax"

This reverts commit 45c54a54ef.

* path

* fix miss "/" at end of path and show current screenrecord video

* Created the About page

* Display errors in a more communicative way

* enable <br> at error messages

* display title on top of the page

* link to download screenrecord

* Update README.md

* Update styles

* Navbar on top, don't block content

* Don't center and format

* Update CHANGELOGS.md

* Update About page

---------

Co-authored-by: Jason Wen <haibin.wen3@gmail.com>
2023-06-02 18:16:02 -04:00
Harald Schäfer a446c1fa56 Radard: just get relative speed from model (#27493)
* refactor radard

* Revert "refactor radard"

This reverts commit 4b3507ff58e753334969b6ba2c2f6b1b35a200cc.

* May work

* No radar for test

* check length

* no accel for now

* First accel

* Cleaner way

* Re-enable radar

* update proc replay

* This might cause oscillation

* Update ref commit
2023-06-02 14:38:28 -07:00
Shane Smiskol 96905e52e2 IsoTpParallelQuery: remove spammy log (#28372)
* remove

* just a warning

* just comment out for now
2023-06-02 14:24:54 -07:00
Shane Smiskol 23430dd35f fw_versions: add some typing (#28369)
* typing

* sort

* brand addrs

* don't type match_fw_to_car_fuzzy

* or this unfortunately

* no space

* add back

* and this
2023-06-02 13:02:04 -07:00
Cameron Clough e2545c5b24 VW MQB: Angled mounts for Transporter and Crafter (2) 2023-06-01 23:21:50 -07:00
Jason Young ad1fec5c12 VW MQB: Angled mounts for Transporter and Crafter (#28302)
* VW MQB: Angled mounts for Transporter and Crafter

* whitespace oops

---------

Co-authored-by: Cameron Clough <cameronjclough@gmail.com>
2023-06-01 23:08:19 -07:00
Harald Schäfer e0c95f7ad9 Toggles: Reorganize in descending importance for driving (#28364)
Reorganize toggles in descending importance for driving
2023-06-01 21:39:30 -07:00
Harald Schäfer dba437bc8d Remove INDI controller (#28366) 2023-06-01 21:05:49 -07:00
Dean Lee 99398176df cabana: Support parsing of multi-line comments (#28345) 2023-06-01 20:52:08 -07:00
Maxime Desroches 342d0e7bd5 rename angled mount (#28368)
rename mount
2023-06-01 19:49:42 -07:00
Cameron Clough 9f616982ed Ford: fix minor typos 2023-06-01 19:42:46 -07:00
Shane Smiskol bcdecfa084 Toyota: remove incorrect FW version (#28362)
Update values.py
2023-06-01 15:45:33 -07:00
Robbe Derks 7ab9569a08 Tesla: half the DAS_steeringControl message rate (#27503)
* half the freq, double the limit

* fix bug

* bump submodule
2023-06-01 23:25:55 +02:00
Robbe Derks ede75c9e9b fix typos 2023-06-01 21:37:10 +02:00
Vincent Wright a004024ef4 Ram HD: remove from dashcam (#164)
* Added support for Ram steer to 0/7

* Made the suggested changes

Also added in additional FW to support the other trucks.

* Spacing

* Spacing

* Match stock

* Match stock

* Reverted FW changes

* Put back the max steer

* Bring back comment

* Unused

* Remove DashCamOnly for HD

---------

Co-authored-by: Jason Wen <haibin.wen3@gmail.com>
2023-06-01 14:20:12 -04:00
Dean Lee 2373f78556 cabana: support displaying&editing overlapping signals in the binary view (#28359) 2023-06-01 10:36:40 -07:00
Adeeb Shihadeh 702e4120e6 boardd: smaller spi chunk size (#28360)
Co-authored-by: Comma Device <device@comma.ai>
2023-06-01 10:36:06 -07:00
Adeeb Shihadeh cd57b340c1 test_onroad: ignore vehicleModelInvalid (#28335)
* test_onroad: ignore vehicleModelInvalid

* not for all ci
2023-06-01 10:26:08 -07:00
Dean Lee a19799cbe9 cabana: fix multiple dialog popups (#28358)
fix multiple popups
2023-06-01 00:04:46 -07:00
Shane Smiskol a971affeb0 Kia Ceed: display lane lines in HUD (#28357)
ceed uses the new format
2023-06-01 00:04:07 -07:00
Cameron Clough 15ac8c041b UI snapshot tool (#28356)
* UI: snapshot testing tool

* gitignore

* cleanup

* remove prime type arg

* rename

* add script

* commit snapshots

* use base setup

* updates

* always run base

* echo

* use imagemagick

* test_snapshots

* fixes

* update

* set language

* revert

* default arg

* just remove translations

* formatting

* output arg

* improved help

* fix assets

* change dir back before saving snapshot

* unused imports

* simpler

* add default to description

* use uiUpdate signal
2023-05-31 23:04:30 -07:00
Shane Smiskol 024abe6455 car docs: document parts of parts (#28292)
* more stuff

* even more

* all parts func

* start to use it

* include self in parts

* use car_parts_new

* not used

* more usages

* remove get_parts

* remove more commented stuff

* remove iter

* clean up some more stuff

* more

more

* ford

* optional

optional

* nissan

* use new classes

* fix tests

* fix

* order

* no more required

* connector

* CARS.md

---------

Co-authored-by: Maxime Desroches <desroches.maxime@gmail.com>
2023-05-31 21:30:50 -07:00
Adeeb Shihadeh c67759c7f0 boardd: less spam msgs on PC (#28353) 2023-05-31 20:00:20 -07:00
Harald Schäfer cbd3e5b946 Plannerd: higher upper bound cost for lateral planner (#28352)
20k not good upper bound for 10s
2023-05-31 16:33:07 -07:00
Shane Smiskol fc2bd16e72 Deprecate brakeUnavailable event (#28351)
* bump cereal

* deprecate

* Update selfdrive/controls/lib/events.py
2023-05-31 16:29:11 -07:00
Kacper Rączy 9abe95c949 locationd: add filterState (#28340)
* Add filterState to published messages

* Hide it behind DEBUG flag

* Update cereal

* Update cereal
2023-05-31 15:01:12 -07:00
Dean Lee e853af2ca6 cabana: fix seeking issue (#28346)
* fix seekto

* rename loadThumbnail to parseQLog
2023-05-31 11:22:47 -07:00
Jason Wen c1c4a241e0 MADS toggle with Cruise Main on by default 2023-05-31 13:23:58 -04:00
Jason Wen 2e07780eae RoadEdge param 2023-05-31 13:22:53 -04:00
Shane Smiskol 2ff1eadb11 cars: log non-critical car faults (#28338)
* log non-noEntry acc faults

non

* adasFaulted

* bump

* bump again

* bump agaiiinn

* remove event

* bump to master

* add fixme comment and fix

* whoops

* switch
2023-05-30 20:46:44 -07:00
Mitchell Goff 2d34083cd8 Test navmodel (#28272)
* Test navmodel

* removed comment

* Updated model_replay ref

* read tiles from azure bucket

* updated ref commit
2023-05-30 20:33:01 -07:00
Jason Wen d0be8af88d No disengage lateral on brake by default 2023-05-30 22:39:53 -04:00
Jason Wen 22b310c556 MADS: add toggle for Cruise Main button engage - prerequisites 2023-05-30 22:38:49 -04:00
Vincent Wright 9cb81a8dac Ram: Steer to 0/7 MPH support (#157)
* Added support for Ram steer to 0/7

* Made the suggested changes

Also added in additional FW to support the other trucks.

* Spacing

* Spacing

* Match stock

* Match stock

* Reverted FW changes

* Put back the max steer

* Bring back comment

* Unused

---------

Co-authored-by: Jason Wen <haibin.wen3@gmail.com>
2023-05-30 22:03:18 -04:00
Jason Wen 2673fbecd0 Subaru: add FW for 2019 Impreza with increased torque (#163) 2023-05-30 21:26:30 -04:00
Cameron Clough e875bcfaee UI: remove comma points (#28303)
* UI: remove comma points

* remove param
2023-05-30 18:18:47 -07:00
Shane Smiskol 2e4e41a7d3 Mazda: set default steering control values (#28342)
don't crash when porting new car
2023-05-30 15:40:54 -07:00
Shane Smiskol 439a30aae4 cars: explicitly add counter/checksum messages (#28341)
* hkg canfd: add counter/checksum

* add explicitly to subaru

* same for ES_LKAS_State

* and ES_DashStatus

* aaand INFOTAINMENT_STATUS

* and preglobal ES_Distance

* Revert "and preglobal ES_Distance"

This reverts commit 68d98307703a24296ff7aafd99503ea6af4b231b.
2023-05-30 15:33:02 -07:00
Shane Smiskol 4b4b31450c Nissan: add counter signal to forwarded message (#28336)
Update carstate.py
2023-05-30 15:10:17 -07:00
Shane Smiskol 80e84a2158 Honda: use CS accFaulted field (#28339)
* log accFaulted

* bool

* also bool
2023-05-30 15:05:57 -07:00
vanillagorillaa 90e0c61664 Nissan: use generated DBCs (#28307)
* nissan dbc update

* bump

* for release build

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-05-29 23:01:30 -07:00
Miles Calloway 1067a18445 Honda: Car Port for Clarity 2018-22 (#154)
* Fork

* Revert "Fork"

This reverts commit a10cb9677b.

* I think this is it, to be tested.

* Correct panda

* update panda

* Revert "update panda"

This reverts commit 09d7cc9330.

* Revert "Correct panda"

This reverts commit aa052a52e7.

* Update sunnypilot_carname.json

* bump panda

* sort

* formatting

* could break OP long cars

* simpler

* separate

* missed

* format

* cleaner

* bump panda

* Clarity is not in HONDA_BOSCH_RADARLESS

* match

* update MY in docs

* format

* format

* Update CHANGELOGS.md

---------

Co-authored-by: Jason Wen <haibin.wen3@gmail.com>
2023-05-29 23:57:19 -04:00
Jason Wen 5351d6fe5b Bring back CHANGELOGS.md (#161) 2023-05-29 23:49:22 -04:00
Jason Wen 6e7c2c54c4 FCR: sync with upstream supported car platforms & add Ford support 2023-05-29 22:07:29 -04:00
Curtis Jenkins 13616ab771 Dashcam Viewer support (#155)
* add webserver + dashcam reviewer

* add offroad flag to webserver process

* fix process and rename tag in webpage

* add read me

* formatting & shadow names

* small cleanup

* +

* Force offroad only

Co-authored-by: Jason Wen <haibin.wen3@gmail.com>

* Update function name

change from "hello_world" to "index"

Co-authored-by: Jason Wen <haibin.wen3@gmail.com>

* Change webserver process name

now dashcam_viewer

* change process name to dashcam(_)viewer

* sort

* Update README.md

* Credit

* fix

* shadow

* name

* name

---------

Co-authored-by: Jason Wen <haibin.wen3@gmail.com>
2023-05-29 19:32:12 -04:00
Adeeb Shihadeh 7e141f25f9 athena: raise log level for call method (#28334) 2023-05-29 14:46:15 -07:00
Jason Wen 4fc2e41c47 Subaru legacy: flip driver torque (#158)
* Subaru legacy: flip driver torque

* bump panda
2023-05-29 10:49:22 -04:00
Jason Wen 4796f674da Higher torque limit (3071) for 2018 Crosstrek / 2017 Impreza @ClockeNessMnstr (#146)
* Higher torque limit (3071) for 2018 Crosstrek / 2017 Impreza @ClockeNessMnstr

* bump panda

* set with int flag

* bump panda

* flag

* sync tune

* bump panda

* fix

* fix

* oops

* update FW

* List comprehension

* bump panda
2023-05-28 19:51:22 -04:00
Adeeb Shihadeh 43b0e51906 show ign off time in count events debug script 2023-05-28 11:59:01 -07:00
Jason Wen 3894a930b3 bump cereal 2023-05-28 01:38:33 -04:00
Shane Smiskol 026c093d05 IsoTpParallelQuery: log all timeouts (#28325)
* log

* self explan

* clean up

* revert

* need a better name

* move

* bvack
2023-05-27 22:14:50 -07:00
Cameron Clough de5e0d0c71 Ford: fix counter in LateralMotionControl2 message (#28328) 2023-05-27 21:54:37 -07:00
Jason Wen a7a3190f6d bump cereal 2023-05-28 00:50:18 -04:00
Jason Wen cb33af841c bump cereal 2023-05-28 00:25:55 -04:00
Shane Smiskol aa3490ac30 IsoTpParallelQuery: fixup comment and simpler response check (#28326)
* startswith works with bytes

* this comment only explained an exception, was confusing
2023-05-27 19:25:38 -07:00
Shane Smiskol 897b9c117a HKG: add missing FW for 2020 G70 (#28323)
missing g70
2023-05-27 18:49:03 -07:00
Adeeb Shihadeh 3f61537d1b Hyundai CAN FD DBC update (#28322) 2023-05-27 16:50:34 -07:00
Dean Lee 2a6458b44e cabana: improve dbc parsing (#28321) 2023-05-27 15:43:42 -07:00
Adeeb Shihadeh 376faefec2 CI: enable FW query (#28316) 2023-05-27 15:41:55 -07:00
Dean Lee b0120e30a4 cabana: fix broken message filtering (#28319)
fix message filtering
2023-05-27 14:04:43 -07:00
Jason Wen f965ebee27 Remove unused params 2023-05-27 12:26:25 -04:00
Jason Wen 1aeff99740 E2E Long State: update params (#156)
update params
2023-05-27 12:03:58 -04:00
Kacper Rączy 23de5f1bac pre-commit: validate poetry lock (#28313)
* Add CI step to validate lock file

* Fix run script

* Build docker image before running the check

* Fix

* Use setup instead of docker build

* Add pre-commit check

* Update hooks

* Add files to lock validation hook

* Add pyproject.toml and poetry.lock to release files

* Cleanup
2023-05-26 19:21:34 -07:00
Kacper Rączy a075905c4a process_replay: fix crash on segments without carParams (#28286)
* Fix crash on segments without carParams

* Add assertion for carParams
2023-05-27 02:10:10 +02:00
Saber422 9a1d7d5fc2 VW MQB: Add FW for 2017 Volkswagen Passat (#28280)
route name : 40443218782e5709|2023-05-22--13-05-38--0
2023-05-26 16:56:02 -07:00
Shane Smiskol 715f44ff45 controls: write recalibrating offroad alert once (#28312)
* only write once

* rm read

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2023-05-26 13:07:35 -07:00
Kacper Rączy 005ec28e72 poetry: update lock (#28314)
Update lock file
2023-05-26 12:36:08 -07:00
Dean Lee 9a3897831c cabana: auto stretch last column (#28310) 2023-05-26 11:07:46 -07:00
Shane Smiskol 79872db741 offroad alerts: change email reference to support page (#28311) 2023-05-26 11:07:22 -07:00
Harald Schäfer b35d525cc9 Assisted GPS qcom (#28278)
* Assisted GPS works

* cleanup

* add error handling

* use pycurl instead with timeout

* Add file size check

* More cleanup

* more cleanup

* Dont crash on large file
2023-05-26 17:24:09 +02:00
Shane Smiskol f678ff0f22 car docs: sort parts by shown name (#28293)
* sort by shown name

* fix
2023-05-26 00:19:46 -07:00
Shane Smiskol f494abf0d2 Hyundai: explicitly copy signals to forward (#28020)
* define signals in brandcan.py

* seems so

* fix and reorder

* lkas11 for hyundai

* clu11

* honda: we only use this one signal for BRAKE_COMMAND

* Revert "honda: we only use this one signal for BRAKE_COMMAND"

This reverts commit f5f3aaed7e2fa1cdf35c3608b259fab11164644e.

* do cam and cruise info

* add todo

* do nissan

* s for signal

* do nissan

* mazda

* toyota

* gm

* ford

* ES_DISTANCE_SIGNALS is used twice

* for s

* volks

* tesla

* no copy

* oh there's mqbcan

* same with mqb lka message

* all s's

* these actually are different (pre vs. global)

* this is not in the DBC...

* fix

* check len

* rm import

* need to copy counter!

* fix other proc replay diff (TODO: the rest)

* missing cs/cnt
2023-05-26 00:00:18 -07:00
Shane Smiskol 303c62119d Tesla: explicitly copy signals to forward (#28306)
* tesla

* cmt
2023-05-25 23:35:32 -07:00
Shane Smiskol 26baac2ff4 Nissan: explicitly copy signals to forward (#28305)
* nissan

* missing counter

* add comment from carstate
2023-05-25 23:12:50 -07:00
Shane Smiskol 54e6d4c402 Subaru: explicitly copy signals to forward (#28304)
* do subaru

* add missing checksum

* more missing checksums
2023-05-25 22:59:52 -07:00
Justin Newberry c1909df437 Subaru: frequency based messaging (#28066)
* frequency based messaging

* frequency based messaging

* frequency based messaging

* frequency based messaging

* rename better

* use frame in if statement

* syntax

* remove extra space

* put all behind one if statement

* update refs

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-05-25 22:33:04 -07:00
Comma Device 78df554217 boardd: only look for new usb pandas 2023-05-25 19:35:57 -07:00
Shane Smiskol 21f88f997d Revert "ui: smooth wide cam transition" (#28298)
Revert "ui: smooth wide cam transition (#28277)"

This reverts commit 26064196d0.
2023-05-25 19:23:50 -07:00
Cameron Clough 13cf695738 UI: PrimeUserWidget cleanup (#28300)
* cleanup

* setMargin is obsolete

* more
2023-05-25 16:40:40 -07:00
Dean Lee 54506774f0 cabana: support editing comments for messages (#28299) 2023-05-25 13:38:58 -07:00
Cameron Clough 387e865793 UI: update "Finish Setup" widget style (#28287)
* UI: update SetupWidget registration design

* SetupWidget: add icon

* Revert "SetupWidget: add icon"

This reverts commit 325d2d390496f287953beb1634b229ff4ff31717.
2023-05-25 13:01:51 -07:00
Kacper Rączy 1f0ff21eee laikad: unit test refactor (#28295)
Refactor laika tests to use replay_process
2023-05-25 11:34:10 -07:00
Dean Lee d5d1ca11d4 cabana: support editing dbc files without a stream (#28294)
* no stream mode

* disable tools menu if no stream

* disable splitter

* cleanup

* refactor matchMessage
2023-05-25 10:51:28 -07:00
Dean Lee 53190e926c cabana/MessageViewHeader: fixed header position issue (#28291) 2023-05-25 10:50:36 -07:00
Jason Wen a0dc58fc5d bump cereal 2023-05-25 12:45:59 -04:00
Jason Wen 6c2a58f2e9 Merge branch 'upstream/openpilot/master'
# Conflicts:
#	cereal
#	common/params.cc
#	panda
#	selfdrive/car/subaru/subarucan.py
#	selfdrive/controls/lib/lateral_planner.py
#	selfdrive/controls/lib/longitudinal_planner.py
2023-05-25 12:17:54 -04:00
wileytom65 2f625f64f0 Car Port for Hyundai Santa FE Hybrid 2023 (non-HDA2) (#28279)
* Added 2023 Hyundai Santa Fe HEV

* Added 2023 Hyundai Sante_FE_HEV 

Additional info added for 2023my of Hyundai SANTA_FE_HEV (nonHDA2)

* fix FW versions

* update docs

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-05-25 00:06:54 -07:00
Cameron Clough 488975f06e UI: add missing QPushButton pressed styles (#28289)
* UI: add missing QPushButton pressed styles

* keyboard is special
2023-05-24 22:44:10 -07:00
Kacper Rączy 2bd37acef3 ubloxd: enable satReport parsing (#28037)
* Uncomment satReport parsing. New ublox recv callback logic in process_replay

* Typo

* Update replay ref commit

* Update ref commit again
2023-05-25 07:41:45 +02:00
Dean Lee a26e6d1633 cabana: supports switching streams on the fly (#28081)
* open stream

* use std::atomic::exchange

* emit streamStarted immediately
2023-05-24 20:47:37 -07:00
Shane Smiskol 75fc029130 manager: clear onroad/offroad transition params on start (#28199)
* clear onroad transition params

* all offroad params also have manager start
2023-05-24 20:46:59 -07:00
Adeeb Shihadeh dee7ced00e controlsd: check longitudinalPlan avg freq (#28200) 2023-05-24 20:46:44 -07:00
Dean Lee 634280ca51 ui: update DM icon at every frame (#28226) 2023-05-24 20:46:27 -07:00
Dean Lee 2c44c8980c ui/MainWindow: use switch in eventFilter (#28276) 2023-05-24 20:45:58 -07:00
Shane Smiskol 26064196d0 ui: smooth wide cam transition (#28277)
* horribly messy

* bit simpler

* is this right?

* simpler and should work?

* used to be int/frames, but added easing so treat as float

* end slow (start fast)

* little faster

* clean up

* not needed

* try ease in/ease out and fix

* remove debugging print

* fix

* revert to previous curve

* based on speed

* not right

* fix

* fix

* this kinda works

* Revert zoom by speed

Revert "this kinda works"

This reverts commit 48aa30b945148b8eb79fbe33eb58e3fc3a6a7009.

Revert "fix"

This reverts commit 4ff2d33486231727d7cd68d366342c2273e3a315.

Revert "fix"

This reverts commit 15b22f8e8284eb017000856abb05b5e8973a6c0e.

Revert "not right"

This reverts commit 378b9965e14250c57ed39e1976de60d89054c2c8.

Revert "based on speed"

This reverts commit 1f7bfa5d73a2dee3740096da64eda24b33288b51.

Revert "Revert "not right""

This reverts commit 1beeb402534a755208d19771eb4a2afdc69b8739.

* better curve

* revert

* use constants and fixes

* up here too

* feels more intuitive to make zoom_transition=1 be zoomed in

* rm line

* fix

* cmt

* better handling

* better name

* zoom if ANY other stream is requested

* Update selfdrive/ui/qt/widgets/cameraview.cc
2023-05-24 17:28:33 -07:00
Shane Smiskol 2ea7b69e26 CARS.md: footnotes header (#28285)
footnotes
2023-05-24 17:08:19 -07:00
Adeeb Shihadeh 394f0d2c30 bump panda 2023-05-24 16:29:34 -07:00
Cameron Clough d659243648 UI: cleanup OffroadHome layout (#28284) 2023-05-24 15:41:14 -07:00
Cameron Clough 94937e0694 UI: reduce margin around software version (#28283) 2023-05-24 15:00:17 -07:00
Kacper Rączy ac0272d0cc process_replay: use PARAMS_ROOT (#28282)
Use PARAMS_ROOT in process_replay
2023-05-24 13:16:22 -07:00
Adeeb Shihadeh 9f3c0a7781 update loggerd and ui cpu 2023-05-24 10:04:53 -07:00
Harald Schäfer 2c65b843a5 Calibrationd: allow more pitch angle (#28255)
* Calibrationd: allow more pitch angle

* Update ref_commit
2023-05-24 11:41:01 +02:00
Adeeb Shihadeh 696b69aa23 bump panda 2023-05-23 20:51:15 -07:00
Kacper Rączy 347004fdad aarch64: disable carla and onnxruntime-gpu on non-x64 hosts (#28261)
Disable carla and onnxrunner-gpu on aarch64
2023-05-23 19:50:56 -07:00
Adeeb Shihadeh 115fc66514 remove sleep on launch (#28236) 2023-05-23 19:49:54 -07:00
Kacper Rączy 00ff096ca2 replay: replay deprecated pandaState if pandaStates is whitelisted (#28275) 2023-05-23 19:48:57 -07:00
Kacper Rączy e6ac6320ac process_replay: universal replay mechanism using cereal fake sockets (#28115)
* replay_process_with_fake_sockets implementation

* add missing polled_pubs to configs

* drained_pubs field

* updated cereal

* Remove python/native variations of process replay. Replace with universal one using cereal fake sockets

* Replace old py FakeSocket with DummySocket

* Invalidate and deregister fake sockets after replay is done

* Remove unused import

* Set up new prefix for each replay

* Fixes for radard

* Refactor ReplayContext and ProcessConfig

* Minor fixes

* Reimplement controlsd fingerprinting callback

* time.sleep for sockets to safely reconnect

* Fix fingerprinting for controlsd

* Fixes for regen to work

* Fix replay loop to respect submaster frames

* Fix profiler to use new ProcessConfig fields

* Remove tqdm

* Refactor tests to use new ProcessConfig

* Add FrequencyBasedRcvCallback

* Make tolerance None by default

* Update cereal

* Add get_process_config utility func

* Update cereal. Simplify sync procedure

* Chain context managers

* New sub-socket reconnection procedure

* Fix linter issues

* Revert chaining of context managers

* Init controlsState only when replaying controlsd. Update cereal

* Update cereal

* Update process_replay to use new cereal API

* Update cereal

* Update cereal

* Update cereal

* Simplify radard recv callback

* Update release/files_common
2023-05-23 17:24:16 -07:00
YassineYousfi d0a8b3780c fix input order in onnxmodel (#28274) 2023-05-23 16:11:51 -07:00
Jason Young 84886e28df VW MQB: Start documenting FtS cars (#28268)
* specify auto_resume

* format

* car compat

* VW MQB: Start documenting FtS cars

* retry CI

---------

Co-authored-by: Maxime Desroches <desroches.maxime@gmail.com>
2023-05-23 14:07:21 -07:00
Kacper Rączy 12b3ffcc49 process_replay: drain sockets instead recv_one (#28161)
* Drain the sockets until the next cycle in python process replay

* Add waiting mechanism to native process replay, which mimics the syncing

* Sort logs when comparing them. Drain all the sockets instead of only recv_socks.

* Reverse the retrieval order of FakeSocket

* Change pub order for torqued

* Update ref commit
2023-05-23 12:59:09 -07:00
Adeeb Shihadeh bf8e6d0d29 pre-commit: autoupdate hooks (#28271)
Update pre-commit hook versions

Co-authored-by: adeebshihadeh <adeebshihadeh@users.noreply.github.com>
2023-05-23 11:09:40 -07:00
Kacper Rączy b43a875ba2 params: specify path using PARAMS_ROOT (#28257)
* Add PARAMS_ROOT env var

* Change getenv type signature

* Use getenv default_val
2023-05-23 19:02:22 +02:00
Maxime Desroches 3785e161f0 car docs: allow auto_resume override (#28264)
* specify auto_resume

* format

* car compat

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-05-23 01:40:23 -07:00
Shane Smiskol eee8a7a4b4 car docs: fix diff bot (#28266)
* test bot

* fix docs bot

* revert

* use dataclass

* sad this doesn't work
2023-05-23 00:36:42 -07:00
Maxime Desroches 715d7f9e3d car docs: keep similar naming (#28262)
better name
2023-05-22 19:30:04 -07:00
Adeeb Shihadeh ea1e0a16dd boardd: set min spi timeout 2023-05-22 19:00:45 -07:00
Maxime Desroches d433dc693d car docs: pass all car parts + types to template (#28260)
add car parts + types to template
2023-05-22 18:43:57 -07:00
Adeeb Shihadeh 4751d2b57c tici: log disk info (#28259) 2023-05-22 16:53:07 -07:00
Adeeb Shihadeh 577c17bcb8 add new driving model to release notes 2023-05-22 15:19:23 -07:00
Mitchell Goff 328b5d9d47 Nicki Minaj Model (#28218)
* New model: 2ff7490f-8a2f-4c0d-87a8-b0fa3a4a6a71

* Updated model_replay_ref_commit
2023-05-22 15:11:04 -07:00
Adeeb Shihadeh a3d5913228 adjust uploader cpu usage 2023-05-22 10:48:15 -07:00
Maxime Desroches 9f5f8b603c car docs: list all needed hardware (#28212)
* generic car parts

* better carparts

* add part type

* more tests

* multiple enums

* unit tests

* just check isinstance

* better name

* remove _connector suffix

* remove those hyundai lines

* remove default arg

* Revert "remove default arg"

This reverts commit 139650a3b6b94358c3b9b12bb5fbe0a326d7abad.

* cleaner code structure

* use fingerprint

* review

* abstrac data class + common

* no more dataclass

* conflict

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-05-22 10:17:33 -07:00
Adeeb Shihadeh 1b12f17ee3 test onroad: add gpsLocationExternal to gps proc list 2023-05-22 01:10:24 -07:00
Adeeb Shihadeh 2664dba52e jenkins: switch order of tests 2023-05-22 00:48:51 -07:00
Comma Device 18559f4135 boardd: lower timeout for getting serial 2023-05-22 00:45:52 -07:00
eFini b2e32a7ef8 pandad: app_path -> app_fn (#28253)
* Fix pandad.py

Should be `app_fn` instead of `app_path`?

* fw path

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2023-05-22 00:06:39 -07:00
Mejty38 b977e1a4e9 Skoda: add fw for Superb 2020 (#28229)
* Update values.py

* sort and remove duplicate

---------

Co-authored-by: Cameron Clough <cameronjclough@gmail.com>
2023-05-21 22:18:37 -07:00
Adeeb Shihadeh 41771ad7f0 bump panda 2023-05-21 21:20:16 -07:00
Jason Young e0a2607eee VW MQB: Extend Touran supported model-year range (#28247)
VW MQB: Extend Touran model-year range
2023-05-21 19:28:12 -07:00
Dean Lee 36dd49e542 cabana: use double for minimum value & maximum value (#28252) 2023-05-21 12:35:45 -07:00
Jason Young dee611a9bc VW MQB: Add FW for 2020 Volkswagen Arteon (#28251)
* VW MQB: Add FW for 2020 Volkswagen Arteon

* mechanical sort
2023-05-21 12:35:30 -07:00
Dean Lee 9ac73b719f cabana: reject group separator in QDoubleValidator (#28250) 2023-05-21 12:33:38 -07:00
Adeeb Shihadeh 038d2264aa spi: handle timeout more like usb (#28249) 2023-05-20 23:35:14 -07:00
Jason Young 24579949c1 VW: A little less signal pass-through (#28246) 2023-05-20 22:31:12 -07:00
Shane Smiskol 37eb9f900c Mazda: explicitly copy signals to forward (#28244)
mazda
2023-05-20 18:25:19 -07:00
Jason Young f951390dda VW: Explicit signal pass-through (#28179)
* VW: Explicit signal copy

* normalize whitespace
2023-05-20 18:20:57 -07:00
Adeeb Shihadeh 9160faf8e5 remove unused import 2023-05-20 18:11:16 -07:00
Shane Smiskol 3d94423108 GM: explicitly copy signals to forward (#28243)
* gm

* same order as DBC
2023-05-20 18:09:57 -07:00
Adeeb Shihadeh 39c5d492bf time to onroad test (#28242)
* time to onroad test

* run few times

* test on stripped builds

* manager

* cleanup

* split those out

* run first

---------

Co-authored-by: Comma Device <device@comma.ai>
2023-05-20 17:59:41 -07:00
Adeeb Shihadeh e4a37620ee boardd: handle nack on tx buffer full (#28241)
* boardd: handle nack on tx buffer full

* print pandaStates

* rx buffer too small

* connect timeout

---------

Co-authored-by: Comma Device <device@comma.ai>
2023-05-19 23:24:52 -07:00
Kyle Greenlaw 7a684da47f Subaru: Add fw for 2020 Subaru Outback (#28240)
Route: a4e8e925930fce2c|2023-05-19--20-47-32
2023-05-19 22:49:46 -07:00
johangithub 184e224a6a HKG: add 2017 Genesis G90 Fingerprint (#28230) 2023-05-19 18:30:43 -07:00
Adeeb Shihadeh 2014b10ec3 boardd: longer loopback test (#28239)
Co-authored-by: Comma Device <device@comma.ai>
2023-05-19 17:36:30 -07:00
YassineYousfi bda0d6ac77 update dm model README (#28238)
add calib dm input in readme
2023-05-19 15:20:43 -07:00
Cameron Clough 309126a527 logging: change event_name arg (#28232)
This doesn't change anything in practice, but makes it harder to write a bug where a kwarg with the name `event` would overwrite the event name.
2023-05-19 13:29:33 -07:00
Dean Lee ac2c87246a cabana: use the same double precision as the dbc file (#28234) 2023-05-19 12:36:11 -07:00
Dean Lee e6c9e764c0 cabana: fix segfault on screen changed (#28233)
fix segfault on scrrenChanged
2023-05-19 03:01:38 -07:00
Adeeb Shihadeh a30a0c4b69 bump to 0.9.3 2023-05-18 16:23:14 -07:00
Mitchell Goff d528481d8d Offset topdown map by 128 meters (#28216)
We drive forward :)
2023-05-18 15:30:58 -07:00
Cameron Clough d4dec3ba5e Ford: longitudinal behind alpha toggle (#28196)
* bump panda

* set safety config/configure experimental longitudinal

* send inactive signals

* bump

* just calculate in function

* already in the variable

* clean that up

* add comment, on ford stock long, prchg seems to be set from the possible future accel

* comment

* this signal didn't have an impact on engaging

* add comment and fix

* worst case while AEB

* and kill ACCDATAs

* this could be dangerous

* need to test this too

* Revert "need to test this too"

This reverts commit 09bba75950fa55d90a82f0109e3138ffe5a1d08c.

* Revert "this could be dangerous"

This reverts commit 323143e84727f1a780bbb600be5f7ceb763516b1.

* Revert "and kill ACCDATAs"

This reverts commit 15f6804bf64d01145daf57a592c2f3fd44ceba27.

* Revert "worst case while AEB"

This reverts commit 85e1aaa8e1af90373c688d1973dbfbb07b1fb8b2.

* bump panda

* Update selfdrive/car/ford/fordcan.py

* move around

* was already here

* rm

* use variable

* update docs

* Update ref_commit

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-05-18 15:25:24 -07:00
Shane Smiskol c7d3b28b93 Ford: longitudinal clean up (#28231)
clean ups
2023-05-18 14:30:07 -07:00
Adeeb Shihadeh 00915bb978 bump panda 2023-05-18 14:24:07 -07:00
Shane Smiskol 902cc891a8 Ford: log stock AEB (#28228)
log AEB
2023-05-18 03:56:35 -07:00
Shane Smiskol e5faef113f bump panda (#28227)
bumppanda
2023-05-18 00:42:40 -07:00
Harald Schäfer 703fe85cf5 QCOM laikad: add glonass support (#28217)
* QCOM laikad: add glonass support

* reject garbage timestamps

* update ref
2023-05-18 00:19:40 -07:00
Adeeb Shihadeh 885e1edf96 boardd: match panda python lib ack bytes (#28225) 2023-05-17 23:28:46 -07:00
Shane Smiskol 041ab5bb7f disable_ecu: log retries as errors (#28223)
* log ecu disable retries as errors

* and here if it totally failsd
2023-05-17 22:19:49 -07:00
Shane Smiskol c722120a88 boardd: log when sendcan is dropped (#28224)
* log when we drop sendcan

* log both

* i don't want to touch that

* llu

* noo
2023-05-17 22:19:35 -07:00
Dean Lee 781a6fcc5f ui/settings: fixed button overlap in sidebar. (#28220)
fix button overlap
2023-05-17 20:16:39 -07:00
Kacper Rączy 7b68a13048 lateral_planner: init missing variables (#28222)
Init missing variables in LateralPlanner constructor
2023-05-17 14:04:17 -07:00
Dean Lee 5b54f0938f cabana: add #include <QObject> in dbcfile.h (#28219) 2023-05-17 00:08:10 -07:00
Shane Smiskol 7f7637f3e5 uploader: check upload key value (#28206)
* fix check

* tests

* fix test

* fix

* xattr truthy and falsy tests

---------

Co-authored-by: Cameron Clough <cameronjclough@gmail.com>
2023-05-16 21:55:24 -07:00
Cameron Clough 66abfb933d Ford: add Explorer 2020 ST FW (#28205)
4458bd61cf193dab|2023-05-17--01-45-39

VIN: 1FM5K8GC7LGA15147
2023-05-16 20:11:05 -07:00
Kacper Rączy 504768f922 process_replay: sort logs before comparing them (#28201)
* Sort logs before comparing them in process replay

* Simplify
2023-05-16 15:30:28 -07:00
Dean Lee fe6ce429c5 ui/drawDriverState: don't draw circle bg twice (#28168)
do not draw circle bg twice
2023-05-16 14:01:06 -07:00
YassineYousfi 2d4558d5cf update DM model README (#28211)
* update DM model readme

* rename + permalink + correct types and ranges
2023-05-16 13:40:49 -07:00
Shane Smiskol 22ce4e17ba manager: initialize onroad params before starting processes (#28198)
* initialize to off on startup

* params

* better

* better

* move to helpers

* rm
2023-05-16 12:45:05 -07:00
Adeeb Shihadeh 7e9acfd139 tici: allow fan to run to 100% (#28203) 2023-05-16 07:23:22 -07:00
Shane Smiskol 577374215b Nissan: set LKA active with latActive (#28055)
Update carcontroller.py
2023-05-15 23:23:55 -07:00
Comma Device b7daab0ee0 set ssh enabled in ssh helper script 2023-05-15 19:32:40 -07:00
Justin Newberry f327053ac0 Subaru: rename legacy to preglobal (#28204)
* rename

* submodules too

* missed some variables

* fix find/replace error

* revert modules

* bump submodules

* bump cereal
2023-05-15 19:12:47 -07:00
Maxime Desroches 70677fe5fc add harness kit content to the doc (#28139)
* add harness kit content to the doc

* parts as enum

* nissan

* merge column

* rename column

* scaling

* scaling again

* 500px

* align text

* more px

* add style

* more width

* more

* more

* smaller text

* make all text smaller

* prev width

* default list

* remove hidden a ref

* try to remove again

* revert

* replace harness with harness_kit

* try fix

* cleaner

* center everything

* make pylint happy

* allow more than 1 of each parts

* use copy module

* review

* testing spacing

* revert

* bigger text

* formating

* split harness col lines

* remove print

* resolve

* rename to view

* keep formating in template

* simplify

* add unit test

* more generic way

* better

* harness connector only

* comment

* review

* put back harness parts

* missing dash

* too much space

* don't reload when clicking

* shorter comment

* only last line

* generate

---------

Co-authored-by: Cameron Clough <cameronjclough@gmail.com>
Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-05-15 15:33:54 -07:00
Shane Smiskol ff5c58c85d docs cars template: remove newline on last line only 2023-05-15 14:54:08 -07:00
Adeeb Shihadeh 83b6469b86 bump panda 2023-05-15 14:34:00 -07:00
alkuwari007 b28221d346 FCA: Ram 1500 Rebel 2022 FW versions (#28155)
* Ram 1500 rebel 2022 ECU version update

* rm line

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-05-15 14:11:07 -07:00
ecaslak c293cb71c7 Add fingerprint for 2022 Honda Passport (#28175)
* Update CARS.md for 2022 Honda Passport

Changed latest supported model year from 21 to 22

* Update values.py: 2022 Honda Passport Fingerprint

Added ECU fingerprints for 2022 Honda Passport

* add missing fw

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-05-15 13:57:33 -07:00
Adeeb Shihadeh e889e09513 controlsd: check for self lagging in radar alert 2023-05-15 13:57:11 -07:00
Adeeb Shihadeh c192c92a4e calibrationd: add offroad alert when remount detected (#28073)
* calibrationd: add offroad alert for recalibration

* Update common/params.cc
2023-05-15 13:10:36 -07:00
Dean Lee 8ca3be9788 ui: refactor setPrimeType (#28143)
handle prime type change in new function UIState::setPrimeType
2023-05-15 13:08:21 -07:00
AlexandreSato 0c00099437 Hyundai: add missing FW for Sonata 2023 (#28191)
3ab09aae5a9310b2 AppleExpl01t#5323 SONATA fingerprint

Co-authored-by: Comma Device <device@comma.ai>
2023-05-15 13:02:25 -07:00
Adeeb Shihadeh fbcf6ced51 test_onroad: handle spotty gps in testing closet (#28194) 2023-05-15 12:45:19 -07:00
Adeeb Shihadeh 5c843d9c12 bump cereal 2023-05-15 10:07:01 -07:00
Arka Poddar 629e5cb99a Update README.md (#28188)
Correct URL towards the job portal
2023-05-15 09:31:00 -07:00
Harald Schäfer 598343aad1 Calibrationd: make recalibrating alert (#28149)
* Initial

* fixes

* not an int anymore

* elif

* revert ref

* update ref

* fix alert text

* regen refs

* update ref

* add recalibration unit test

* set into recalibration state

* fix words

* recalib

* text

* Update selfdrive/controls/lib/events.py

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2023-05-15 09:29:57 -07:00
Cameron Clough de45134da6 Ford: block stock ACC warnings on OP long (#28185)
Override this signal which the stock system uses to show messages such
as "ACC unavailable", "Speed too low" and causes the canceled sound to
play.
2023-05-14 17:18:34 -07:00
Adeeb Shihadeh ec53fad3c4 count_events.py: show alerts 2023-05-14 11:24:48 -07:00
Dean Lee 13504f5ecf cabana/findSignalDlg: support filter messages by bus/address/time. (#28186) 2023-05-14 10:14:31 -07:00
Adeeb Shihadeh 437fcc6582 fix loopback test safety setting (#28184)
* fix loopback safety setting

* pandad: catch and log all exceptions

---------

Co-authored-by: Comma Device <device@comma.ai>
2023-05-13 21:05:00 -07:00
Cameron Clough 123ad8549b add Ford Maverick to release notes 2023-05-13 19:23:06 -07:00
Cameron Clough 717bc04ddc Ford: improved ACC UI for OP long (#28114)
* Ford: improved ACC UI for OP long

- Show "stopped" status message on IPC when in standstill, similar to stock
- Prevent the distance control UI from appearing on button press (as
this does not influence OP long).

* set lead indicator and only override stock when OP is controlling long

* match DBC
2023-05-14 00:20:34 +01:00
Cameron Clough 202751a796 Ford: add Maverick test route (#28181)
* Ford: add Maverick test route

* docs

* bump
2023-05-13 23:38:28 +01:00
Dean Lee 10bdcef0fe cabana: add tool to search for possible signals through values. (#28182)
* Add tools to search for possible signals through values.

* use ,
2023-05-13 14:05:14 -07:00
Shane Smiskol a8986620f1 bump panda (#28180)
bumppanda
2023-05-13 03:03:51 -07:00
Saber422 e077af4abf VW MQB: Add FW for 2023 Volkswagen Touran (#28146)
0bbe367c98fa1538|2023-05-09--15-06-11--0
2023-05-12 21:48:47 -07:00
teknonut 7268926e54 HKG: Add missing FW for 2022 Hyundai Santa Fe (#28150)
Update values.py

Add 2022 Hyundai Santa Fe FW values
2023-05-12 21:44:09 -07:00
Iamz 30cdcc474c Add Lexus RX engine fwVersion (#28163) 2023-05-12 21:38:34 -07:00
freddiebd 82f301422d VW MQB: Add FW for 2017 Golf Mk7 (#28174)
Update values.py

Added missing carFw versions to values.py
2023-05-12 21:31:58 -07:00
Adeeb Shihadeh 2e097a2ba5 Update RELEASES.md 2023-05-12 18:37:30 -07:00
Adeeb Shihadeh 951bab8e18 AGNOS 7 (#26908)
* agnos 7

* no caibx

* new build

* agnos 7.1

* prod manifest
2023-05-12 17:22:09 -07:00
YassineYousfi 9a7a96b19f update timm and segmentation-models-pytorch (#28178)
update segmentation-models-pytorch
2023-05-12 13:57:05 -07:00
Kacper Rączy 1a5f29ecc6 macOS: disable camerad and sensord build (#28164)
* Disable camerad and sensord on Darwin

* Add gcc@12 to mac_setup as it's required by panda

* Update panda
2023-05-12 13:01:00 -07:00
Kacper Rączy e08952acc8 controlsd: disable controlsdLagging event during process replay (#28177)
Disable controlsdLagging event during process replay
2023-05-12 11:33:48 -07:00
Shane Smiskol 344064d6bd Ford: hybrids are unsupported (#28171)
* hybrid fords are dashcammed

* something like this?

* just do an alert

* good comment

* space

* bb

bb

* top

* Update selfdrive/car/ford/interface.py

* add a noEntry

* remove from release notes

* sad :(

---------

Co-authored-by: Cameron Clough <cameronjclough@gmail.com>
2023-05-11 23:35:07 -07:00
Adeeb Shihadeh 432f316e8d ui: catch silent EGL failure (#28169)
Co-authored-by: Comma Device <device@comma.ai>
2023-05-11 15:22:09 -07:00
Adeeb Shihadeh 40dd150fc6 cabana: remove dead image from readme 2023-05-11 12:57:55 -07:00
Dean Lee f01652cc41 cabana: fix the frequency was incorrect when replay from a specified segment (#28165) 2023-05-11 10:42:25 -07:00
Robbe Derks 5ca14c072f can states plotjuggler layout 2023-05-11 13:38:07 +02:00
heemanshoe d845c79f7c HKG: Genesis GV70 2023 support (#28154)
* Updated values.py

Added fingerprinting for 2023 Genesis GV70

* Updated values.py

2023 GV70: needed a different harness than the one originally listed (M instead of L)

* Update values.py

Removed L harness line (just in case)

* should be good

* fix

* update docs

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-05-10 15:10:07 -07:00
Shane Smiskol 3e3d1a7d4b Toyota: explicitly copy signals to forward (#28157)
* and toyota

* only if filled
2023-05-10 14:34:40 -07:00
Dean Lee 720df4d150 cabana: cleanup DBCFile (#28160) 2023-05-10 13:57:55 -07:00
Adeeb Shihadeh 1a3125bb8f bootlog: log agnos partition hashes (#28141)
* bootlog: log agnos partition hashes

* full path

* trimming

* slot

* boot is big

* give some time to start

---------

Co-authored-by: Comma Device <device@comma.ai>
2023-05-10 13:56:44 -07:00
Shane Smiskol 147c1bd820 Ford: explicitly copy signals to forward (#28156)
* just ford

* no need to copy this

* or these

* or these

* match DBC order

* remove these

* used in carcontroller

---------

Co-authored-by: Cameron Clough <cameronjclough@gmail.com>
2023-05-10 13:42:31 -07:00
Willem Melching 3f8fc8f6f8 cabana: partial match on ID filter (#28158) 2023-05-10 10:19:28 -07:00
Shane Smiskol b8fa7f58ea onroad transition: clear params and start safety setter thread (#28151)
* rename from ignition to onroad/offroad

* forgot one

* clear in manager

* don't clear in boardd anymore

fix

* params isn't used here

* add comment

* Revert "add comment"

This reverts commit 54fb6660501679e5a989c3f06c0a438bdb04dc7e.

* write params in manager

* first part is self explanatory

* remove these from thermald now

* start safety setter thread with IsOnroad

* drivesss

* more

* less

* come back

* makes sense here
2023-05-09 21:25:23 -07:00
Cameron Clough c59d7d1161 Ford: fix LateralMotionControl2 checksum (#28147)
* Ford: fix LateralMotionControl2 checksum

* loop is nice

* these are redundant

* need to shift left, before didn't match

* same, but more conventional

* whoops

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-05-09 21:18:52 -07:00
Cameron Clough 3ba60a6a96 training guide: higher quality image (#28152)
* use better image

* update touch area bounding box
2023-05-09 20:32:47 -07:00
Dean Lee 2ec14c2065 ui/drawLaneLines: read the accel from the submaster outside of the loop (#28145)
* read the accel from the submaster outside of the loop.

* const max_idx

* remove data copy and converting from list to vector

* correct name is len

* fix drawing last point

* add comment, remove right_points

* fix

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-05-09 20:25:53 -07:00
Shane Smiskol d738f66711 update boardd blocking comment 2023-05-09 17:27:09 -07:00
Adeeb Shihadeh 4fe1b638f8 pandad: improve startup time (#28137)
* pandad: improve startup time

* add test

* reset with gpio

* adjust threshold

* fix

* no panda

* fix

* check unknown

* increase for boardd

---------

Co-authored-by: Comma Device <device@comma.ai>
2023-05-09 15:44:53 -07:00
Vivek Aithal a599890fed Lateral Planner: Calibrate model speed with vEgo (#28049)
* calibrate speed in the lateral planner

* make speed err helper fn

* check if trans has values

* clip the vel_err

* update refs
2023-05-09 14:26:58 -07:00
Shane Smiskol b9517fdc1b Added FW for VW Passat B8 2018 (#28148)
add missing
2023-05-09 13:40:08 -07:00
lachezartodorov 17f1a320b1 Added FW for VW Passat B8 2018 (#28120) 2023-05-09 13:38:56 -07:00
Dean Lee 933be2e128 cabana: cleanup mainwin (#28142)
* Remove redundant calls to updateLoadSaveMenus()

* cleanup updateLoadSavemenus

* helper function closeFile

* remove redundant calls to remindSaveChanges()

* remove unnecessary call to updateRecentFiles

* cleanup
2023-05-09 10:04:06 -07:00
Shane Smiskol fb29d0f3bf Ford: add alert for steering wheel angle not ready (#28140)
* add event for steering angle calibrating

* how about this

how about this

* rename

* more openpilot-y

* add comment to code

* move to top

* better wording

* more general

* fix

* ?

* above

* bump cereal to master

* add more comms
2023-05-08 22:03:30 -07:00
Adeeb Shihadeh e24d28fd45 loggerd: log HW-specific extras (#28084)
* loggerd: log HW-specific extras

* fix value

---------

Co-authored-by: Comma Device <device@comma.ai>
2023-05-08 19:21:22 -07:00
ZwX1616 78ba67e211 camerad: write static AE settings only once (#28134)
* this is free

* illusion of choice
2023-05-08 18:43:54 -07:00
Vivek Aithal 219b0708f3 RAM 1500 5TH GEN: Reduce friction (#28138)
* reduce ram friction

* u[pdate refs
2023-05-08 18:05:00 -07:00
Adeeb Shihadeh 154a42dcbd gate no gps alert on valid localizer inputs (#28135) 2023-05-08 15:09:00 -07:00
Adeeb Shihadeh 0e967aebc4 bump panda 2023-05-08 15:07:07 -07:00
Saber422 6fbb941011 VW MQB: Add FW for 2018 Volkswagen Passat (#28131)
* VW MQB: Add FW for 2018 Volkswagen Passat

route name:fd81eb7cc97ce831|2023-05-08--12-43-12--0

* missing trans

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-05-08 14:32:46 -07:00
Saber422 c575e1a52f VW MQB: Add FW for 2018 Volkswagen Tiguan (#28130) 2023-05-08 14:31:04 -07:00
Shane Smiskol e780cca8b6 seldrive: use common sig handler (#28127)
* Update main.cc

* Update util.h

* same for navd
2023-05-08 14:27:04 -07:00
Adeeb Shihadeh 984029b606 test onroad: ensure 100% engageability (#28132) 2023-05-08 13:48:42 -07:00
Robbe Derks 6412340431 Continuous harness detection (#28129)
* log sbu voltages

* bump submodules
2023-05-08 13:33:23 +02:00
Dean Lee f7e024f2f2 cabana: show and edit all messages present in DBC files (#28108)
* show all messages present in DBC files

* set last section stretch

* user can't resize data section

* re-fetch if filtering freq|count|data

* reserve set space

* use contains

* emit signalAdded for all related sources
2023-05-07 16:48:47 -07:00
Dean Lee d7adee9766 cabana: clear all cached values in chart after changing signal properties in live mode (#28125) 2023-05-07 16:48:21 -07:00
Adeeb Shihadeh c4501e4bc1 controlsd: remove procs from ignore list (#26848)
* trim list

* check for file
2023-05-07 15:43:45 -07:00
JWingate80 758a9d7c24 HKG: Genesis GV80 2023 support (#28069)
* Update values.py

* Update values.py

* Update routes.py

* Update values.py

* Update values.py

* Update interface.py

* Update override.yaml

* Updated car name in torque settings to the correct one

* Removed unused ECU's from GV80

Fix AssertionError: 3 != 0 : GENESIS GV80 2023: Car model has ECUs not in auxiliary request whitelists: Ecu.eps, Ecu.transmission, Ecu.engine

* Update routes.py

Updated to a better route

* Update routes.py

* Update test_models.py

* Update test_models.py

* Hopefully this route will work...

* Update selfdrive/car/hyundai/values.py

* Update selfdrive/car/hyundai/values.py

* this could use some cargo

* don't need to combine just yet

* add to docs and releases

* Update routes.py

* Update RELEASES.md

* Update routes.py

Updated route, hopefully this one works...

* Update selfdrive/car/tests/routes.py

* alphabetical

* update docs

* Update routes.py

Hopefully this route works

* Update routes.py

Trying segment 1 for GV80

* bump

* no need

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
Co-authored-by: Cameron Clough <cameronjclough@gmail.com>
2023-05-06 23:18:06 -07:00
Shane Smiskol 4e951e4524 Lane Departure Warning: fix desire index bug (#28119)
don't subtract 1
2023-05-06 03:03:28 -07:00
Shane Smiskol 884e36bc9d ui: more granular accel gradient in experimental mode (#27391)
* add accel

* debugging

* use uiPlan for acceleration

* draw on same frame, ui color enhancements

* adjustments

* not needed

* add back alerts and wide cam

* use linear accel -> saturation (red -> green transition is more gradual, should be easier to understand)

* 1.5x was good from the non-linear previous commit

* fix crash?

* revert draw on same frame

* bump lightness add lightness mod with comment for future use (reverting in next commit)

* revert (but keep lightness bump)

* max accel isn't blueish (#3DFF3D)

* clean up

* revert lightness

* remove experiment

* try a different domain

* doesn't work

This reverts commit 7a398b03920d6d2d2c804d1290803bc533051fc1.

* clean that up

* actually should be 0.75

* some clean up

* debug timing

* fix

* debug

* round

* revert wide

* not used

* clean up

* remove slow qDebug

* this too

* draw max constant points, ensure we draw first and last

* clean up

* more clean up

* draft

* Revert "draft"

This reverts commit 59db097611dc633f397c509bf95490eb0614b7f0.

* Revert "Revert "draft""

This reverts commit ee86c385b39dbe36430effd58fc5c41ede51f9f0.

* simplify

* clean that up

* and all that

* and more

* aaaand that

* aaaand that

* track vert is created in update_line_data, it us the sum of two equal
len lists

* keep debugging stuff around

* keep debugging stuff around

* remove prints

* rm that

* moreee

* use existing helper 😄

* clean up

* make it const

* F

---------

Co-authored-by: Bruce Wayne <harald.the.engineer@gmail.com>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2023-05-05 16:11:16 -07:00
Willem Melching b3a3040d09 cabana: fix rounding error in filter sizehint (#28116) 2023-05-05 11:28:54 -07:00
Willem Melching bd8a56cf30 panda_comms.h add missing <string> include (#28117) 2023-05-05 11:28:46 -07:00
Cameron Clough 16f0f1561b Ford: add Explorer Hybrid 2020-22 2023-05-04 23:35:52 -07:00
Shane Smiskol a951463346 Ford: log ACC faults (#28111)
* log ford acc faults

* whoops...
2023-05-04 22:42:34 -07:00
Cameron Clough acae532a3b docs: 250 cars 2023-05-04 19:49:45 -07:00
Cameron Clough d8b9317122 add more Ford to release notes 2023-05-04 18:15:53 -07:00
Cameron Clough a0d2e4e711 Ford: add Escape test route and remove dashcam only (#28113)
* Ford: add Escape Mk4 test route

* generate docs

* remove from non_tested

* fix model years

* clearer packages for EU

* docs

* 2020 hybrid

26b2cace68e36212

1FMCU9DZ9LUA82589

* 2021 phev

1FMCU0LZXMUA80767

f8eaaccd2a90aef8

* add this too

* more docs
2023-05-04 17:21:36 -07:00
Cameron Clough 51d41a3336 test Ford in process replay (#28112) 2023-05-04 14:47:39 -07:00
Aaron Fields fd54a1e351 Chrysler: Pacifica Hybrid 2023 support (#28098)
* Adding 2023 Chrysler Pacifica Hybrid fingerprint.

* Update docs.
2023-05-04 14:42:46 -07:00
Cameron Clough 4ee6c68ba5 Ford: cleanup long control and send stopping signal (#28110)
Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-05-04 14:04:54 -07:00
AlexandreSato e410de004f fix typo on RELEASES.md (#28109) 2023-05-04 12:45:39 -07:00
Dean Lee 4ed6412ee5 cabana: Make the close button on TabBar look consistent and adaptable to different templates. (#28065)
consistent and adaptable to different templates
2023-05-04 11:27:03 -07:00
Adeeb Shihadeh 068ff038af add ford to release notes 2023-05-04 11:23:30 -07:00
Dean Lee 10a1b8b7b1 params: cleanup old params that aren't defined (#28017)
* delete files that are not defined in the keys

* assert after create file

* remove util::remove_files_in_dir

* cleanup

* fix up test

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2023-05-04 11:21:41 -07:00
Adeeb Shihadeh 9b0d140400 tizi: more amp retries (#28082) 2023-05-04 11:07:40 -07:00
Willem Melching 7a31bd12af qt/util.c: clearLayout, support QFormLayout (#28105) 2023-05-04 10:59:37 -07:00
Willem Melching 5c9935cc82 cabana: improve panda startup dialog (#28104)
* create combo box for serial numbers

* configure bus speeds
2023-05-04 10:59:26 -07:00
Willem Melching aa54204c81 cabana: add filter per column (#28034)
* add non functional lineedits

* implement actual filtering

* more efficient modelReset

* less diff

* refactor contains

* make sortMessages static

* cleanup

* regex support

* case insensitive

* uncomment

* set header before restoring state

* force reset

* more regex matching

* update comment

* put back header with clear button

* handle hiding

* handle horizontal scrolling

* whitespace

* dont add that
2023-05-04 10:51:00 -07:00
Willem Melching b53f748a1a cabana: add option to suppress already known signals (#28106)
* suppress using static mask

* use mask in updateLastMsgsTo

* store mask in cabana::Msg

* update mask in the right places

* actually build mask

* restore setting

* less diff
2023-05-04 10:50:28 -07:00
Robbe Derks 0b7b25e6cc bump cereal 2023-05-04 16:35:41 +02:00
Robbe Derks 21bcd7db63 Dynamic device type (#28011)
* tizi_device_type

* fix test

* also change it in the C versin
2023-05-04 12:12:01 +02:00
Shane Smiskol d05d9dac04 Ford: remove from dashcam (#28103)
* no dashcam 🎉

* update docs

* not these

* update refs

* bump panda
2023-05-04 06:55:09 +00:00
BrandonHacks 7e672a6344 HKG: Add new fw for Kia Sportage 5th Gen (#28100)
Update values.py

New radar fw
2023-05-04 05:42:50 +00:00
Shane Smiskol d888400402 Ford: curvature rate limit safety (#28059)
* bump panda

* add carcontroller

* add carcontroller

* cmt

* bumppanda

* ubmp
2023-05-04 05:37:31 +00:00
Shane Smiskol beb7f585ae bump panda (#28102) 2023-05-04 05:36:32 +00:00
Mitchell Goff 861e18a1a8 Render map at 256x256 and don't crop (#28101) 2023-05-03 21:52:15 -07:00
Adeeb Shihadeh 8a6312ef14 pandad: support GPIO recovery when in bootstub (#28090)
pandad: recover when in bootstub

Co-authored-by: Comma Device <device@comma.ai>
2023-05-03 20:27:32 -07:00
Shane Smiskol 177ca52e76 car interfaces: assert some friction (#28074)
* assert some friction

* duh

* convention

* order
2023-05-03 20:22:38 -07:00
Vivek Aithal 3aadad24f0 RAM 1500 5TH GEN: Update offline params (#28099)
* add fric

* no 0 friction offline value

* update refs
2023-05-03 20:01:48 -07:00
dmcanavan16 2c0d93458a Toyota: Add missing HIGHLANDER_TSS2 fw (#28096) 2023-05-04 00:30:32 +00:00
Shane Smiskol cd570033d3 Nissan: use raw speed to calculate angle limits (#28097)
use vEgoRaw for calculating limited angle
2023-05-04 00:29:03 +00:00
Cameron Clough d458f20770 training guide: use comma three image (#28085) 2023-05-04 00:27:06 +00:00
Cameron Clough cae43511dc UI: cleanup old training guide coords (#28091) 2023-05-04 00:08:50 +00:00
Adeeb Shihadeh d5a0a4b3e8 Jenkins tuneup (#28095)
* tuneup

* use service messages

* logmono

* not passive
2023-05-03 16:52:20 -07:00
Cameron Clough 48b427bd3d docker: copy body submodule (#28094)
Building `Dockerfile.openpilot` fails with error `missing file body/board/SConscript` as the body submodule isn't copied

This image isn't built in CI
2023-05-03 16:01:01 -07:00
Shane Smiskol 786ef2d22e bump panda (#28089)
bumppanda
2023-05-03 22:56:03 +00:00
Adeeb Shihadeh b37b768f1e jenkins: source launch_env.sh (#28092)
* jenkins: source launch_env.sh

* cleanup

* cleanup
2023-05-03 14:26:38 -07:00
Harald Schäfer bb3388f9d2 Laikad: blocking raw_gnss receive (#28083)
* Blocking receive

* redundant

* rm clocks

* timeout irrelevant now
2023-05-03 13:03:25 -07:00
Saber422 737499b50e VW MQB: Add FW for 2018 Volkswagen Passat (#28070)
route name:37e3253d2ac7c823|2023-04-30--20-58-03--1
2023-05-03 19:53:37 +00:00
Saber422 5e438fc60e VW MQB: Add FW for 2022 Skoda Superb (#28086)
route name:cd047d573cc78c34|2023-04-29--17-46-23--0
2023-05-03 19:51:26 +00:00
Shane Smiskol fb743ab10f Hyundai: remove duplicate fwdRadar for Santa Fe (#28088)
this is a dup
2023-05-03 19:44:59 +00:00
teknonut a585c4e011 HKG: Add msising FW for 2021 Hyundai Santa Fe (#28072)
Update values.py
2023-05-03 19:34:55 +00:00
Adeeb Shihadeh e3dbf8db29 bump panda (#28077) 2023-05-03 10:29:09 -07:00
Adeeb Shihadeh eb5ad17f8e boardd: reconnect when comms not healthy (#28075)
* boardd: reconnect when comms not healthy

* update comments

* fix
2023-05-02 15:50:17 -07:00
Dean Lee 50e6c43efd cabana: display the actual signal time on the track line (#28080)
Display the actual signal time on the track line
2023-05-02 12:46:28 -07:00
Dean Lee a16730a9c4 cabana: fixed segfault when search in signals (#28078) 2023-05-02 11:29:38 -07:00
Dean Lee e5678d3a3f cabana: fix the timeline position of the newly created chart was always 0 when paused. (#28079) 2023-05-02 10:44:47 -07:00
Adeeb Shihadeh 9f87df66cb laikad: disable internet in non-replay CI (#28076) 2023-05-01 22:02:06 -07:00
Adeeb Shihadeh 64df41c9af test_onroad: enforce CPU usage test for all procs (#28024)
* cleanup

* add missing procs

* ugh not systemd

* floor

* unused

* handle laikad

* continue

---------

Co-authored-by: Comma Device <device@comma.ai>
2023-05-01 21:35:10 -07:00
Adeeb Shihadeh 0cba0a135d Update RELEASES.md 2023-05-01 16:05:23 -07:00
YassineYousfi f80c1087fc new model: trained with augmented turn desire pulses (#28063)
* df733db3-fad2-4485-abe9-59a6a47f2233/449 85f20e13-dd4d-49a8-ba33-98e6afc161d9/700

* update ref commit
2023-05-01 16:03:16 -07:00
Tyler Ferrara a418cb4c20 HKG: add FW version for 2023 Kia Niro EV (#28057)
* Add 2023 Kia Niro EV fingerprint values

* VW MQB: Config tool update for new EPS (#28056)

* Remove eps and cornerRadar from kia niro values.py

* already here

---------

Co-authored-by: Tyler Ferrara <tjferrara@google.com>
Co-authored-by: Jason Young <46612682+jyoung8607@users.noreply.github.com>
Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-05-01 13:54:37 -07:00
jazzbearz 94100fec5a Kia: add missing Korean EV6 fwdCamera FW version 1.05 (#28040)
* add missing EV6 fwd carmera 1.05 version

* no octal

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-05-01 13:49:16 -07:00
i2020github c11d01cf01 Toyota: add missing LEXUS_RXH_TSS2 FW (#28060)
* Update values.py

Added one new firmware value to CAR.LEXUS_RXH_TSS2: {
    (Ecu.engine, 0x7e0, None): [

* fix indentation and sort

---------

Co-authored-by: Cameron Clough <cameronjclough@gmail.com>
2023-05-01 13:21:46 -07:00
nicakp e5cec963ea Volkswagen Golf: add missing FW (#28067)
Update values.py
2023-05-01 13:07:19 -07:00
Harald Schäfer 06756f4533 New process_replay segment with latest ublox logs (#28038)
* Add new segment

* Update ref_commit
2023-04-30 18:24:20 -07:00
Dean Lee 45f1f764ea cabana: display current time & values in chart (#28042)
* display current time&value in chart

* cleanup

* use macro

* use BrightText

* use x-square

* tiplabel: set point size 9

* add 1 point offset

* change Light color

* lighter color

* use const iterator to avoid implict sharing detachs
2023-04-29 13:27:37 -07:00
Kacper Rączy ba4a1c1b87 regen: whitelist-proc (#27980)
* Add support for whitelist-procs to toggle on/off specific processes during regen

* Use process CONFIGS from process_replay to generate fake processes instead of hard-coded values

* Add rawgpsd to fake_daemons. Remove duplicates from replayable_messages.

* Remove duplicate block of code from setup_env

* Remove rawgpsd comment
2023-04-28 19:36:31 -07:00
Adeeb Shihadeh a93f74a846 boardd: more logging (#28051) 2023-04-28 14:47:03 -07:00
Shane Smiskol 3617057c63 bump panda (#28062) 2023-04-28 14:26:15 -07:00
Jason Young a3070d0e35 VW MQB: Config tool update for new EPS (#28056) 2023-04-27 18:40:36 -07:00
Dean Lee 64fb5cb922 cabana: fix time is displayed incorrectly when mouse dragged outside of the slider (#28048)
fix time is displayed incorrectly when the mouse is dragged outside of the slider
2023-04-27 14:19:06 -07:00
Jason Young 5940802b5f VW MQB: Add FW for 2022 Volkswagen Polo (#28044) 2023-04-27 13:54:09 -07:00
Jason Wen 26b3d901b5 HKG: Add FW Versions for 2023 Kia Forte (#28022)
* HKG: Add FW Versions for 2023 Kia Forte

* 2023 uses Harness E

* Update CARS.md

* more FW

* sort

* Only need shortest responses

* fix

---------

Co-authored-by: Cameron Clough <cameronjclough@gmail.com>
Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-04-27 13:30:03 -07:00
thedude130 5a4452e3c6 Hyundai: add 2023 Elantra Hybrid Limited FW (#28018)
* Added new FW versions for fwdCamera, transmission from 2023 Elantra Hybrid Limited

* rm that

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-04-27 00:48:35 -07:00
Shane Smiskol 8e3e9141ee Ford safety: curvature error limit (#27981)
* clip Ford requested curvature to current +- delta

* fix bug, allow for more limit

* bump panda to branch

* bump panda

* rename

* rename function

* make a wrapper function (ford uses dynamic up/down limits

* make two functions consistent

* use apply_dist_to_meas_limits

* only above 12 ms

* simplify, clean up

* this isn't used

* https://github.com/commaai/openpilot/pull/27446

* bump panda

* one m/s fudge

* fix current curvature

* also fix panda

* fix panda blocking msgs

* bump panda to fix more blocked msgs

* clip

* bump panda

* lower to 9 ms

* clean up carcontroller

* bump panda

* bump

* bumppanda

* bumppanda

* bumppanda

* split line
2023-04-27 00:43:14 -07:00
Shane Smiskol fbd0620442 bump panda (#28041)
bumppanda
2023-04-27 00:06:12 -07:00
Cameron Clough 64e76c4e42 Ford: update CAN message frequency comments 2023-04-26 23:07:36 -07:00
Cameron Clough 7126363093 uploader: log actual uploaded file size (#28000)
* uploader: log actual uploaded file size

The size will be less if compressed before uploading.

* cleanup

* fix return type

* add request to FakeResponse

* cleanup

* fix
2023-04-26 20:45:58 -07:00
Cameron Clough 09d25ad999 athenad: add getGithubUsername method (#28025)
* athenad: add getGithubUsername method

* add test

* order
2023-04-26 20:42:43 -07:00
martinl 2ad352d299 Subaru: FPv2: Add Crosstrek Limited 2023 missing FW values (#28014)
* Subaru: FPv2: Add Crosstrek Limited 2023

* trailing comma

* remove duplicate

* prefer hex

---------

Co-authored-by: Cameron Clough <cameronjclough@gmail.com>
2023-04-26 20:21:50 -07:00
Bruce Wayne 613bbcd626 Revert "LaikaD: new proc_replay segment and no internet laikad (#28029)"
This reverts commit fbb7dcb19c.
2023-04-26 19:20:05 -07:00
Harald Schäfer fbb7dcb19c LaikaD: new proc_replay segment and no internet laikad (#28029)
* no internet in CI

* add new segment

* new ref
2023-04-26 16:01:39 -07:00
mitchellgoffpc c711d71caa Update libmap_renderer -> libmaprender in map_renderer.py/get_ffi 2023-04-26 15:45:12 -07:00
Shane Smiskol 69cd9cacbc Hyundai: add missing Tucson Hybrid 2023 FW (#28036)
* add a tucson hybrid

* update docs
2023-04-26 15:18:40 -07:00
Shane Smiskol 87b0583775 Lexus RX 2022: add missing engine FW (#28035)
add fp
2023-04-26 14:48:49 -07:00
Dean Lee a91deca39e cabana: set the capacity of points from cached events (#28032) 2023-04-26 09:54:42 -07:00
Willem Melching 8318d7207b cabana: hide/show columns using context menu (#28033) 2023-04-26 09:54:26 -07:00
Cameron Clough b4d4920fa4 Ford: update Focus model year
Supported Focus FW is actually (late) 2018 MY. Early production of the
Focus Mk4.

VIN: WF0NXXGCHNJR69712
2023-04-26 01:58:12 -07:00
Shane Smiskol 9689e9c567 cars: various small cleanups (#28031)
* finally fix subarucan formatting

* no need for intermediate variables

* make this check explicit
2023-04-26 01:43:07 -07:00
Cameron Clough 48ff8fa734 Ford: fix minEnableSpeed for docs flag 2023-04-26 00:57:26 -07:00
Shane Smiskol 045db2f235 Subaru: fix forwarded signal name (#28030)
actually Cruise_Status_Msg
2023-04-26 00:19:01 -07:00
Cameron Clough 42f2e39213 ford: correct messages frequencies (#28027)
* ford: correct messages frequencies

* fix STEER_STEP

* fix comment

* cleanup
2023-04-26 00:00:08 -07:00
Dean Lee 7f856eafd9 cabana: fix wrong total seconds in replay mode (#28015)
* fix total_sec

* fix chart max range

* fix all_evnets order & use vector to improve performance

* dynamic updating max time

* get real time from qlog

* Update tools/cabana/streams/livestream.cc

Co-authored-by: Shane Smiskol <shane@smiskol.com>

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-04-25 21:49:10 -07:00
Cameron Clough 49220985f4 ford: cleanup fordcan methods (#28026)
* fordcan: consistent naming

* fordcan cleanup
2023-04-25 18:15:56 -07:00
Jason Wen 862ad7a438 FCR: sync with upstream supported car platforms 2023-04-25 02:20:49 -04:00
Jason Wen 2654fe9696 fix merge conflicts 2023-04-25 01:45:01 -04:00
Jason Wen 46c80749be cereal: fix duplicate ordinals 2023-04-25 01:20:00 -04:00
Jason Wen 8a61496937 Merge remote-tracking branch 'upstream/commaai/openpilot/master'
# Conflicts:
#	.pre-commit-config.yaml
#	cereal
#	opendbc
#	panda
#	selfdrive/car/hyundai/carstate.py
#	selfdrive/car/hyundai/interface.py
#	selfdrive/car/toyota/interface.py
2023-04-25 01:10:56 -04:00
Jason Wen b84972c6d9 DLP: default to off and laneless 2023-04-25 01:02:21 -04:00
Adeeb Shihadeh 86dd0923d4 bump opendbc (#28006) 2023-04-24 13:52:35 -07:00
Dean Lee aabbe9ff18 cabana: fixed incorrect comparison (#28007) 2023-04-23 18:20:43 -07:00
Adeeb Shihadeh 5c2fa5cabf scons: fix warning on newer versions with Qt3 tool 2023-04-23 18:02:54 -07:00
Adeeb Shihadeh 453fdec8c4 build tools without option on pc 2023-04-22 16:16:51 -07:00
Adeeb Shihadeh d5ab1e33c2 scons: set warnings as error (#28004)
* navd: fix scons build warnings

* fix release

* sim fix

* fix docs

* build cabana
2023-04-22 15:24:45 -07:00
Cameron Clough e03efa723b uploader: add missing types 2023-04-21 23:06:47 -07:00
Cameron Clough 16c56e644e update update_requirements.sh (#28002)
* simplify update_requirements.sh

* check POETRY_VIRTUALENVS_CREATE
2023-04-21 22:36:10 -07:00
Cameron Clough a33af9cb74 cloudlog: add git to ctx (#27996)
* cloudlog: add git to ctx

* use normalised origin, change names

* order
2023-04-21 22:35:50 -07:00
Cameron Clough a27ce83b28 uploader: add typing (#28001)
* uploader: add typing

* fix types
2023-04-21 22:03:26 -07:00
Kacper Rączy eee7dd082f regen: ecamera support (#27999)
* Add wideRoadCameraState support in regen

* Fix for ecam FrameReader when use_route_meta

* Pylint fixes
2023-04-22 02:43:04 +00:00
Adeeb Shihadeh 2bc761acee pj: add SOF/EOF camera timings to layout 2023-04-21 19:34:13 -07:00
goatstalker a5d0d7b069 Add additional fingerprints for Subaru Outback 2022 model (#27995)
* Fingerprint Subaru outback 2022

Add fingerprint for carFw abs, engine, transmission, and fwdCamera.

* fingerprint two more values

* order values properly before submitting a PR

* remove hyundai fw responses

---------

Co-authored-by: Cameron Clough <cameronjclough@gmail.com>
2023-04-21 19:24:24 -07:00
Harald Schäfer a979a54cf9 Calibration remount detector: soft disable (#27993)
* Calibration remount detector: soft disable

* Update test_calibrationd.py
2023-04-22 00:27:20 +00:00
Shane Smiskol 4f6c1141df bump cereal (#27998)
* bump cereal

* bump to master
2023-04-21 16:23:19 -07:00
Shane Smiskol 03eb02906d locationd: log time to first fix (#27990)
* locationd ttff

* log time to first fix

* rename

* max it like laikad

* Update selfdrive/locationd/locationd.cc

* Update ref_commit

* Log when gpsOK first becomes true

* don't forget to update current time!

* stash

* make it deterministic (no proc replay cur time)

* Update ref_commit

* rename to make this clear
2023-04-21 16:15:13 -07:00
Adeeb Shihadeh b32acb7aaf bump panda 2023-04-21 15:55:25 -07:00
Dean Lee 91dc064ac7 cabana: support all features except video in live stream mode. (#27994) 2023-04-21 13:23:17 -07:00
Adeeb Shihadeh bf86f41575 bump opendbc 2023-04-21 13:12:47 -07:00
Harald Schäfer ee15d6b1d1 Calibrationd: fix reset smoothing (#27992)
* Add test for smoothing

* fix smooth cycles

* fix calib reset smoothing
2023-04-21 06:53:54 +00:00
Chase Bolt f7e02c28d7 Add missing IMPREZA engine & fwdCamera f/w (#27985)
adding fingerprints for 2019 subaru impreza sport
2023-04-20 21:59:49 -07:00
Erich Moraga 34521c2220 Add missing CAMRY_TSS2 engine & fwdCamera f/w (#27983)
`NSBrian#2701  2023 Camry SE ICE`  DongleID/route 1916f6660fdef56b|2023-04-19--21-09-43
2023-04-20 21:58:16 -07:00
Shane Smiskol 1eea2808b5 HKG: update harness for Niro Hybrid 2022 (#27989)
combine
2023-04-20 21:26:26 -07:00
Harald Schäfer dab9c55d38 Calibrationd: unit tests (#27988)
* Add calibrationd unit tests

* more tests
2023-04-21 04:17:11 +00:00
Shane Smiskol 52ed7868b1 Hyundai: add missing fwdRadar FW for 2022 Ioniq Plug-in Hybrid (#27987)
* Add missing Ioniq FP

* 2022 works!
2023-04-20 20:27:31 -07:00
Adeeb Shihadeh bda33a942f boardd: log fan stall count (#27984)
* boardd: log fan stall count

* bump panda

* bump panda

---------

Co-authored-by: Comma Device <device@comma.ai>
2023-04-20 15:55:35 -07:00
MoreTorque 150a7d52da Delay Shutdown: delay shutdown for 5 minutes after ignition turned off. (#27860)
Added delay shutdown. Tests updated

Co-authored-by: moretore <wrha@CH-ADS.localdomain>
2023-04-20 14:57:09 -07:00
Shane Smiskol b9149795f1 Honda: Ridgeline 2023 is supported (#27979)
* Update values.py

* update docs
2023-04-19 20:40:30 -07:00
Adeeb Shihadeh a8bc26a924 bump panda 2023-04-19 17:55:06 -07:00
Harald Schäfer 922b09de96 Laikad: fix bad init elevation incorrect (#27974)
* Laikad: fix bad init elevation incorrect

* update ref
2023-04-19 14:04:24 -07:00
Willem Melching d0b309ab0d MacOS: link against openssl@3.0 (#27978) 2023-04-19 13:31:19 -07:00
Willem Melching 31cdb8de4c cabana: fix shadowed variable in abstractstream.cc (#27976) 2023-04-19 13:31:03 -07:00
Willem Melching 2cf2e784cf cabana: fix crash on MacOS when combining graphs (#27977) 2023-04-19 13:20:53 -07:00
Adeeb Shihadeh e3bd28bddf tools: improved CAN replay (#27975) 2023-04-19 11:46:22 -07:00
Adeeb Shihadeh 38b99b5461 UI: cleanup old training guide assets (#27973)
* UI: cleanup old training guide assets

* rm that
2023-04-19 11:10:50 -07:00
Angus Gratton fbcd0821c9 cabana/cameraview: Scale the glViewPort by devicePixelRatio() (#27941)
* cameraview: Scale the glViewPort by devicePixelRatio()

This fixes an issue seen in Cabana on a "hidpi" system with Wayland where
devicePixelRatio() != 1 and the video doesn't take up the full widget area.

On the recommended Ubuntu 20.04 install I wasn't able to reproduce, because
devicePixelRatio() was always equal to 1 even with scaling to 200% or 300%. It
might be different if "Fractional Scaling" is enabled in GNOME (I couldn't make
that option work in mv WM.)

Was going to enable just for Linux, but it appears to also be recommended for
Retina MacOS:
https://doc.qt.io/qt-5/scalability.html#high-dpi-scaling-on-macos-and-ios

... so have worked from the assumption that glViewport() always takes dimensions
in device pixels, never the "device independent pixels" of Qt.

* Update selfdrive/ui/qt/widgets/cameraview.cc

* Update selfdrive/ui/qt/widgets/cameraview.cc

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2023-04-19 11:06:54 -07:00
Adeeb Shihadeh b3c101527f bump panda 2023-04-19 10:56:38 -07:00
Willem Melching 7f5cda00b5 cabana: more advanced DBC management features (#27968)
* cabana: improve menu to manage individual DBCs

* remove from single bus

* comments

* close explicitly

* new before open

* whitespace

* remove old code

* clipboard actions

* cleanup actions

* sections instead of nested menu

* consistent bus format
2023-04-19 10:49:30 -07:00
Dean Lee 590b1bc206 cabana: startup stream chooser dialog (#27938)
* new StreamDialog

* choose dbc file

* update last_dir

* move to /streams

* cleanup

* add stretch

* catch panda exception

* cleanup

* cleanup

* small cleanup

* fix pandaStream crash caused by a failed connection

* static function to create stream widget

* cleanup
2023-04-19 10:49:06 -07:00
Willem Melching 475903e244 cabana: enable Hi-DPI support on MacOS (#27965) 2023-04-19 10:48:36 -07:00
Willem Melching 8da5745970 cabana: use cyan/red coloring for values that move mostly up/down (#27966) 2023-04-19 10:45:07 -07:00
Dean Lee 8ad2d84aeb cabana: refactor the cache for CAN events (#27969) 2023-04-19 10:44:52 -07:00
Dean Lee f9568e9818 cabana: make head section movable (#27971)
* set sections movable

* change setting key to v3

* add comment

* remove restorestate from MainWindow
2023-04-19 10:28:09 -07:00
Shane Smiskol 3c55f49dd8 Ford: simple rate limits (#27446)
* simple limits

* add script

* useless

* remove script

* cleanup comments

* bump curvature limits

* divide by 20

* add comment

* add panda safety

* add back notebook with multi route support

* remove

* bump up low speed up

* comment
2023-04-18 23:27:49 -07:00
Dean Lee de62972e2c cabana: reduce the number of ticks on the Y-axis (#27964) 2023-04-18 22:48:36 -07:00
Saber422 500c049590 VW MQB: add missing 2022 KODIAQ FW (#27962)
* VW MQB: add missing 2022 KODIAQ FW

route:8a5da7c1d1783730|2023-04-18--11-40-31--76

* sort

---------

Co-authored-by: Cameron Clough <cameronjclough@gmail.com>
2023-04-18 22:38:37 -07:00
Shane Smiskol 9b1095a27e FPv2: only query brands with matching present ECUs (#27697)
* speed up fingerprinting for CAN fp cars

* add comment to describe this behavior

* more explicit, no defaultdict

* do this later

* fix

* a little more clear I think
2023-04-18 21:34:49 -07:00
Dean Lee 0534016b7b boardd: fix scons warning "Two different environments were specified" (#27949) 2023-04-18 18:04:27 -07:00
Shane Smiskol f94528d65d ecu addrs: add warning when skipping remote frame (#27959)
add warning
2023-04-18 15:19:23 -07:00
Shane Smiskol 3924c14b74 ecu addrs: check msg length (#27956)
check length
2023-04-18 13:15:54 -07:00
Shane Smiskol 5aebdb0ad0 Car docs: pass docs flag to car interfaces (#27311)
* docs

* docs

* docs

* docs

* use docs in gm
2023-04-18 12:22:22 -07:00
Willem Melching af5f769d7c cabana: fix MacOS build (#27950) 2023-04-18 12:18:33 -07:00
Angus Gratton ed6e7db3cf replay framereader: Log in some unlikely failure paths (#27942) 2023-04-18 12:17:45 -07:00
Dean Lee dc4b7b37c0 cabana: fix PandaStream crash if no panda found (#27948) 2023-04-18 10:22:57 -07:00
Willem Melching fbe70c43a4 cabana: make highlight fade time independent of playback speed (#27951) 2023-04-18 09:20:42 -07:00
Willem Melching 9c88c3fe4c cabana: fix displaying zero length messages (#27953) 2023-04-18 09:19:51 -07:00
Jafar Al-Gharaibeh 97aeb83f95 Mazda: CX-9 2022, Mazda6 2018 FW (#27918)
* Mazda: CX-9 2022 FW

dongle-id: 7200177292912f30

Signed-off-by: Jafar Al-Gharaibeh <to.jafar@gmail.com>

* Add mazda 6 2018 FW FP

dongle id: 0383a108994bd18b

---------

Signed-off-by: Jafar Al-Gharaibeh <to.jafar@gmail.com>
Co-authored-by: Samuel <samuel95_54@hotmail.com>
2023-04-17 23:11:38 -07:00
Dean Lee 6ad4017fd8 cabana: fix unable to scroll to the right edge of the message list. (#27947)
* fix scroll issue

* resize bytes section after model reset
2023-04-17 23:00:05 -07:00
martinl 13c75dc138 Subaru: signals cleanup (#27946)
* Update counter in carstate checks

* Rename es_lkas to es_lkas_state to match signal

* formatting

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-04-17 22:54:27 -07:00
Shane Smiskol 8f1e67f625 Subaru: always show LKAS active (#27945)
subaru always shows lines if LKAS is enabled (not active), more clear what we're sending
2023-04-17 22:31:59 -07:00
Justin Newberry d59bfa5519 Subaru: infotainment status intercept and rewrite (#27829)
* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* remove compiler flag stuff

* force error for testing

* bump panda and fix mistake

* wip

* bump panda

* wip

* wip

* forgot checksum and stuff

* add to signals

* rename

* test

* test

* bump panda and opendbc

* bump cereal

* add blank filler

* test

* add steer required to infotainment

* fix missing bit

* fix missing bit

* cleanup for PR

* cleanup for PR

* bump submodules

* wip

* wip

* i wonder what 1 is

* seemed to also be obstacle detected?

* bumppanda

* only if global

* only global gen 2

* fix order

* detect and send

* detect in rest of places

* update refs

* bumpopendbc

* copy whole message (camera sometimes sets these signals)

* bumppanda

* update refs!

* bumppanda

* let's not change this

* same as all the other functions

* Revert "same as all the other functions"

This reverts commit e86dbb695ef84a18f3123720fed37a6b81391cc4.

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-04-17 19:05:16 -07:00
Cameron Clough 3cd00a9b6c tools: add cabana to README 2023-04-17 17:39:03 -07:00
Shane Smiskol 8064de805b bump opendbc (#27944) 2023-04-17 17:13:04 -07:00
Shane Smiskol cb95f1e5f1 bump panda (#27943) 2023-04-17 17:12:34 -07:00
Willem Melching 1016c3f97c cabana: refactor new msg/signal name generation (#27931) 2023-04-17 15:37:41 -07:00
Willem Melching 2a981f5531 cabana: support direct streaming from panda over USB (#27936)
* refactor livestream into devicestream

* add panda stream

* unused

* whitespace

* move logging to base class

* add cmdline args

* Update selfdrive/boardd/boardd.cc

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2023-04-17 15:37:26 -07:00
Dean Lee a324d79fa3 cabana: fixed the freq column for high-freq messages may be incorrectly displayed as a --. (#27940) 2023-04-17 15:08:22 -07:00
Dean Lee 30ff0bface canaba: display the opened dbc files in the window title bar. (#27939)
* show dbc file name on the window title

* Show all dbc files opened on each bus

* check d
2023-04-17 15:08:08 -07:00
Dean Lee f79654a1e7 cabana: some improvements to messages view (#27935)
* improve messageswidget

* remove double semicolon
2023-04-17 13:39:43 -07:00
Willem Melching d06936843b cabana: remove msg on removing last signal (#27933) 2023-04-17 09:53:04 -07:00
Willem Melching 0f22bb50de cabana: add setting to choose preferred drag direction for new signals (#27932) 2023-04-17 09:52:45 -07:00
Dean Lee ed1f03dc41 cabana: paint sparkline in threads (#27925)
* multiple threading realtime sparkline

* delay visible

* remove msg_id

* cleanup
2023-04-16 10:59:24 -07:00
Dean Lee 48f8c02cf1 cabana: update recent files in menu after save as (#27926) 2023-04-16 09:55:03 -07:00
Cameron Clough 6bed16441c Ford: don't play stock alert chimes (#27923) 2023-04-16 02:39:09 -07:00
Jason Young 3e960b0b32 VW MQB: Cleanup HCA control message (#27757)
* VW MQB: Cleanup HCA control message

* bump panda

* bump submodules

* bump panda/opendbc to comma master

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2023-04-15 21:02:33 -07:00
Adeeb Shihadeh d28da7309c bump panda 2023-04-15 19:28:44 -07:00
Adeeb Shihadeh fd50713c2d CI: add job to update pre-commit hooks (#27922)
* CI: add job to update pre-commit hooks

* rm push
2023-04-15 18:08:26 -07:00
Dean Lee f5d66fa2a9 cabana: fix message view performance issues after #27901 (#27908)
* fix message list issues

* override drawBranches, do nothing

* bypass QTreeView::datachanged

* remove data copy in binaryview::updateState

* rename to x_v2
2023-04-15 16:25:24 -07:00
Shane Smiskol 158c951d6f FPv2: add worst case timing test (#27917)
* can FP time

* add

* move the ref up

* assert function

* all brands

* Update selfdrive/car/tests/test_fw_fingerprint.py

* can this can vary a bit more

* or can it
2023-04-14 23:41:12 -07:00
Adeeb Shihadeh af90b08acd set_time: remove extra print 2023-04-14 21:16:59 -07:00
Adeeb Shihadeh f832a71038 pandad: wait for internal panda to come up (#27705)
* pandad: wait for internal panda to come up

* test

* more checks
2023-04-14 14:18:13 -07:00
Nikolai Gorchilov 49ccc0869c 2022 Arteon R Fingerprint (#27913)
New firmware version for the engine, transmission, srs & eps. fwdRadar fingerprint already available.
2023-04-14 12:37:23 -07:00
Saber422 3ffc2b6fb0 VW MQB: add missing 2020 TRANSPORTER T6.1 FW (#27914)
route:0bbe367c98fa1538|2023-04-14--14-58-41--0
2023-04-14 12:35:10 -07:00
Vít Listík 17631948da Updated FW for Skoda Superb III 2016 (#27888) 2023-04-14 12:28:11 -07:00
Shane Smiskol 6ef13f7386 Add other contributor for HR-V port 2023-04-14 12:25:42 -07:00
Dean Lee 6f801031e2 cabana: choose camera type in open route dialog (#27910)
* choose camera type

* use combobox

* cleanup
2023-04-14 11:31:48 -07:00
Adeeb Shihadeh 08e2149b0f Hyundai: factor out bus numbers (#27903)
* mv bus

* mv that

* if len

* fix tests

* use that

* same name
2023-04-14 11:23:22 -07:00
Dean Lee 29a3b46034 cabana: fix chart high-dpi issues (#27912)
* fix high-dpi issues

* cleanup

* clear chart cache on screenChanged

* cleanup
2023-04-14 10:22:59 -07:00
AlexandreSato 93c1810522 Honda: HR-V 2023 port (#27731)
* initial commit

* HR-V is diff enought to split from Civic22

* Add US HR-V 2023

* update CARS.md

* Update RELEASES.md

* Use a alternative brake signal

* US HR-V have a weird noise in the BrakeSwitch

* Shane tunning

* this is added automatically

* sorry jyoung

* civic22_stop_faster

limit stopAccel to current safety model

* relax calib temporarily (12 deg)

relax calib temporarily (10 deg)

* compute accel (car overshoots requests at low speed)

* revert brake pressed caused controls mismatches

* fix crash

* cause a cruise fault

* Revert "cause a cruise fault"

This reverts commit 09a6469ac6fc38ebd38dd1c5d464712a15d0fde1.

* no brake error

* use alt brake

* Update selfdrive/car/honda/carcontroller.py

* change HONDA_BOSCH_ALT_BRAKE_SIGNAL to CP.flags

* Revert "change HONDA_BOSCH_ALT_BRAKE_SIGNAL to CP.flags"

This reverts commit e0f8123b33db3218f27c4b64a7b2a0b1f740860f.

* remove FPv2 from brazilian HR-V

* bump panda

* fix a bug

* revert calib threshold

* new test route

* separate pr

* update

* update that

* thought i removed this

* revert steer ratio

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-04-14 03:12:10 -07:00
royjr 882a2adc8b Honda Bosch Radarless: check cruise faults (#27814)
* add signal checks

* add radarless

* not yet

* nestless

* append instead

* bump

* match check above

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-04-14 02:56:10 -07:00
Shane Smiskol f222d434b8 FPv2: add timing unit test (#27753)
* add timing unit test

* formatting

* not clean

* Revert "not clean"

This reverts commit dab35d582c274efc32d693fc0a2773d8727be2bd.

* Revert "formatting"

This reverts commit 56a1ae4bb721594cc68952e5747a3ebc652f62d9.

* need to consider subaddrs (0.3 to 0.7s for toyota)

* clean up

* move to test_fw_fingerprint

* use a thread to get real time

* lower threshold

* revert that

* ?

* some sleep

* at top

* use the config

* function to measure query time, similar to opendbc's convention

* revert that

* avg

* Update selfdrive/car/tests/test_fw_fingerprint.py

* draft

* starting a thread takes a long time!

* refs

* uncomment
2023-04-14 02:21:52 -07:00
Shane Smiskol 1520716d42 FW versions: import common variable (#27905)
* just import from fw_versions

* fix

* more fix
2023-04-14 01:42:37 -07:00
Shane Smiskol b319b340b6 b is before c 2023-04-14 01:11:33 -07:00
Dean Lee f77930f569 cabana: display chart count in tab (#27853)
display chart count in tabbar
2023-04-13 22:03:57 -07:00
Adeeb Shihadeh 10ad276827 bump opendbc 2023-04-13 21:54:02 -07:00
Adeeb Shihadeh 2adab40565 pre-commit: add check-toml + update hooks (#27906)
* pre-commit: add check-toml

* update

* fix typo
2023-04-13 21:45:12 -07:00
Adeeb Shihadeh 419bcec3ef Hyundai: 2023 EV6 is supported (#27907) 2023-04-13 21:44:52 -07:00
Saber422 237af11642 VW MQB: Add FW for 2015 VOLKSWAGEN GOLF 7TH GEN (#27518)
VW MQB: Add FW for 2015 VOLKSWAGEN GOLF 7TH GEN

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-04-13 21:06:11 -07:00
Dean Lee e3a19ff074 cabana: support logging live stream (#27884)
support logging live stream
2023-04-13 19:53:39 -07:00
Dean Lee d425f9d1e6 cabana: fix tooltip will not show if chart is partial visible. (#27897)
* use horizontalSpacing

* fix chart toopl tip
2023-04-13 19:51:43 -07:00
Adeeb Shihadeh bb92013ef5 bump panda (#27904) 2023-04-13 19:51:23 -07:00
Brandon Smyth 9893733c12 Ford: add Escape PHEV 2021 FW (#27902)
Ford Maverick 2021 Titanium PHEV

VIN: 1FMCU0LZXMUA80767

f8eaaccd2a90aef8|2023-04-13--14-14-48
2023-04-13 16:55:33 -07:00
Shane Smiskol 6188b83f7c VW: Tiguan eHybrid FW (#27879)
* tiguan 2021 ehybrid fingerprint

* remove dup

* eHybrid docs

* think it's 2021

---------

Co-authored-by: Viktor Gilbertsson <viktor.gilbertsson@exobe.com>
2023-04-13 16:37:51 -07:00
Dean Lee 860e843af6 cabana: support display hex bytes in multiple lines. (#27901)
* display hex bytes in multiple lines

* default is true

* cleanup
2023-04-13 16:26:58 -07:00
Adeeb Shihadeh 8f1753aaab tizi: enable fan for shutdown (#27890)
* tizi: enable fan for shutdown

* Update system/hardware/tici/hardware.py

---------

Co-authored-by: Comma Device <device@comma.ai>
2023-04-13 15:35:07 -07:00
Adeeb Shihadeh 853d404092 2023 Leaf is supported (#27899)
* Update CARS.md

* Update values.py

* update
2023-04-13 13:48:25 -07:00
Shane Smiskol 88ce2f7a52 Test lateral limits: fix jerk calculation (#27654)
* fix test

* add lower jerk limit, lower up tolerance

* add to ignored cars
2023-04-13 13:21:30 -07:00
Shane Smiskol 57f3b483e3 Lexus: support ES 2018 (#27683)
* add ES 2018

* standard

* add FW versions

* need to add a route

* verified

* add to DSU messages

* add to torque params

* older lexus do not have all-speed dynamic radar cruise control

* update docs

* Update selfdrive/car/toyota/values.py

* add CI route

* update docs

* add to releases

* assume no stop and go (can't know without dsu unplugged)

* Update selfdrive/car/toyota/values.py

* update docs

* update docs
2023-04-13 12:17:03 -07:00
Willem Melching 48ae73fb93 cabana: fix new chart button placement on Windows (#27895) 2023-04-13 11:40:06 -07:00
Willem Melching 777c5c1a81 cabana: signalview.cc add missing <QHelpEvent> include (#27894) 2023-04-13 11:36:44 -07:00
Willem Melching d8e9c44c76 cabana: do not try to save empty wildcard DBC (#27898)
* cabana: do not try to save empty wildcard DBC

* use reference
2023-04-13 11:09:14 -07:00
Yong-seok, Jang e1ad8df519 GM: Trailblazer 2021-22 support (#27830)
* Add trailblazer support

* Update routes.py

* Update routes.py

* Update CARS.md

* Fix incorrect torque name

* Update values.py and CARS.md

* Change to update another route

* update docs

* only 2021 https://en.wikipedia.org/wiki/Chevrolet_Trailblazer_(crossover)

only 2021

* new FP with missing addrs

* Update selfdrive/car/gm/interface.py

* tune the torque params

* update docs

* remove as a new platform

* Revert "remove as a new platform"

This reverts commit c9c65f29dbb1e1a5926540bb75433928325d6c0e.

* add comment and comment out FP

* need it to be in all_known_cars to test_model

* add to releases

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-04-12 23:32:03 -07:00
YassineYousfi 406840c377 add tensorrt dependency (#27893) 2023-04-12 22:18:51 -07:00
Shane Smiskol 210dd942f0 Hyundai CAN FD: query hvac with alt request (#27891)
Update values.py
2023-04-12 16:37:53 -07:00
Dean Lee f63fe15637 cabana: support splitting chart (#27887)
* split chart

* fixed elided axisY label issues

* fade in chart
2023-04-12 15:59:44 -07:00
Adeeb Shihadeh 36bd49ea97 bump panda 2023-04-12 15:50:00 -07:00
Dean Lee 57bf782872 cabana: split chart to multiple files (#27871)
* git mv

* split file

* fix includes

* split tiplabel out
2023-04-11 22:30:15 -07:00
Shane Smiskol f5519fdca8 IsoTpParallelQuery: set timed out requests done (#27764)
* better ordering and comments

* remove

* mark done if timed out

* response_timeouts should be only for extending timeouts, not marking done

* so the print still works

* more clear comment

* that can be removed
2023-04-11 22:05:00 -07:00
Shane Smiskol 74f709a59f IsoTpParallelQuery: break earlier and add comment (#27883)
* better ordering and comments

* one comment one dream
2023-04-11 21:05:07 -07:00
Shane Smiskol 02798513af IsoTpParallelQuery: log response pending (#27881)
we really should log this
2023-04-11 20:59:03 -07:00
Dean Lee f15cb01137 cabana: speed up parsing can events (#27874)
speed up parsing can events

cleanup include
2023-04-11 19:35:11 -07:00
Saber422 cca654cfa9 VW MQB: add missing 2021 TRANSPORTER T6.1 FW (#27875)
* VW MQB: add missing 2021 TRANSPORTER T6.1 FW

route name: f9fa13485e6df75c|2023-04-10--08-21-09--0

* rm octal

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-04-11 17:38:13 -07:00
Jason Young 2b680821a9 VW MQB: Add FW for 2023 Audi Q3 (#27876) 2023-04-11 17:33:57 -07:00
Shane Smiskol c9804f8ec2 quectel: move vertical accuracy sanity check (#27819)
* Update rawgpsd.py

* remove from locationd

* Update system/sensord/rawgps/rawgpsd.py

* flip
2023-04-10 20:46:12 -07:00
kyoma22 aefd84a3ee Toyota: missing Corolla Cross Hybrid FW (#27783)
Update values.py

add corolla cross HV

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-04-10 20:16:04 -07:00
martinl cd3a72e8f3 Add FPv2: Subaru Forester 2020 (#27854)
* Add FPv2: Subaru Forester 2020

* missing FW

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-04-10 20:03:21 -07:00
Saber422 18f49b4541 MAZDA: add missing 2018 Mazda6 wagon FW (#27863)
route name:79e2c7ffb9ae445d|2023-04-10--21-58-55--0
2023-04-10 19:10:36 -07:00
Dean Lee deeb7cff9f cabana: fix valgrind warnings related to uninitialized values (#27851)
fix valgrind warnings related to uninitialized values
2023-04-10 19:07:05 -07:00
mdweinstein abeea66f83 LEXUS_RX_TSS2 update for Ecu.Engine values (#27843)
Update values.py
2023-04-10 19:06:55 -07:00
Saber422 c63aa93909 VW MQB: add missing 2019 Polo MK6 FW (#27822)
Route No1 :0bbe367c98fa1538|2023-04-06--13-28-30--0
Route No2 :0bbe367c98fa1538|2023-04-06--13-35-01--0

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-04-10 18:59:05 -07:00
Shane Smiskol 50d382884d test_car_model: allow route or segment name (#27866)
* allow route or segment name

* fix

* fixes

* fixes
2023-04-10 18:56:49 -07:00
Dean Lee 7fff874755 cabana: fix thumbnail position issue (#27852)
* fix thumbnail position issue on WSL

* continue

* remove Qt::tool

* set parent
2023-04-10 17:33:27 -07:00
Dean Lee fc90814199 cabana: switch theme on the fly (#27855)
* switch theme on the fly

* better chart theme

* Darcula like dark theme

* add TODO

* use theme aware toolbutton in ChartView

* add margin to text title

* lighter activity colors

* fix historylog header

* replace hardcoded color

* improve chart tooltip color

* use macro

* space

* remove function toolbutton

* fix remove all btn

* remove menu arrow

* improve chart::removeIf

* cleanup charts
2023-04-10 15:53:50 -07:00
Erich Moraga 2b32b07bbb Add missing KIA_SPORTAGE_HYBRID_5TH_GEN fwdCamera f/w (#27864)
Bassam#9056 2023 Kia Sportage Hybrid  DongleID/route 5780f2cf75339e9f|2023-04-10--20-47-53
2023-04-10 15:47:00 -07:00
Stephen Harrison 3aa5d02990 Hyundai Tucson 2023 fingerpint (#27849)
Update values.py

Hyundai Tucson 2023 fwdCamera fwVersion added for fingerprint
2023-04-08 21:12:00 -07:00
Dean Lee 8f118220e6 cabana: improve drag&drop (#27842)
improve drag&drop

draw shadow effect
2023-04-08 11:35:28 -07:00
Dean Lee 2d061e2041 cabana: dispaly alert info in thumbnail&video player (#27837)
* show alert info in thumbnail

* dispaly alert info in video
2023-04-08 11:34:37 -07:00
Jason Young f1d7dead30 VW MQB: Update model years for Volkswagen Polo (#27840) 2023-04-07 19:38:38 -07:00
Dean Lee f4f836e2a9 cabana: support dragging chart between tabs (#27838)
drag chart between tabs
2023-04-07 15:16:57 -07:00
Josselin Lecocq e8d8304548 HKG: Car Port for Kia Niro EV 2023 (HDA1, European version) (#27788)
* Update values.py for 2023 Kia Niro EV

* Update interface.py for 2023 Kia Niro EV

* Update params.yaml for 2023 Kia Niro EV

* Update RELEASES.md for 2023 Kia Niro EV

* Update interface.py for 2023 Kia Niro EV

* Update routes.py for 2023 Kia Niro EV

* Update CARS.md for 2023 Kia Niro EV

* Update CARS.md for 2023 Kia Niro EV

* Put 2023 Kia Niro EV in CANFD_RADAR_SCC_CAR

* New values in params.yaml for 2023 Kia Niro EV

* Rollback - Remove CAR.KIA_NIRO_EV_2ND_GEN from CANFD_RADAR_SCC_CAR

* Update routes.py for 2023 Kia Niro EV

* Apply suggestions from code review

* use new route

* update cars

* test

* pass test

* add params, rename

* use average

use average

use average

use average

* around 2.05

* Update selfdrive/car/hyundai/interface.py

* Update selfdrive/car/hyundai/interface.py

* lower

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-04-07 15:15:10 -07:00
Dean Lee 424bd0c0b6 cabana: support multiple tabs in ChartsView (#27833)
* support multiple tabs charts

* new tab button right
2023-04-07 14:55:00 -07:00
Shane Smiskol 2b6a3dcfd0 Hyundai: add CAN FD feature test (#27834)
* rename two can-specific feature lists

* the other lists don't say CAN_

* like to be safe
2023-04-07 14:16:48 -07:00
Shane Smiskol 75b2c5a2a4 Hyundai: rename gears feature list (#27835)
just rename
2023-04-07 14:15:14 -07:00
Shane Smiskol 757ce360a5 Car docs: references US market (#27836)
add language to specify us market
2023-04-07 14:14:48 -07:00
mansunsang 99f785cc3b fingerprint for KIA STINGER 2022 (#27777)
* Update values.py

fingerprint for KIA Stinger 2022 sold in South Korea

* remove duplicates

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-04-07 13:23:37 -07:00
royjr eb6112e94e Honda: add 2022 civic video link (#27821) 2023-04-07 11:20:32 -07:00
ntegan1 0b6f7be993 fix missing include <cstdarg> (#27831) 2023-04-07 11:00:57 -07:00
Dean Lee 409bfcacb7 cabana: drag&drop to change chart order (#27832) 2023-04-07 10:47:06 -07:00
Shane Smiskol 08b143997b bump opendbc (#27828) 2023-04-07 00:30:52 -07:00
Adeeb Shihadeh 767ed4295f tizi: retry amp comms (#27735)
* tizi: retry amp comms

* ensure all config is written together

* simple test

* check errors

* test shutdown

* a tici exclusive

---------

Co-authored-by: Comma Device <device@comma.ai>
2023-04-06 23:38:16 -07:00
royjr 6381546075 Honda: Added fingerprints for a 2022 Acura RDX (#27812)
* Added fingerprints for a 2022 Acura RDX

* whoops
2023-04-06 21:38:13 -07:00
Justin Newberry f8d9263eae cabana: sort events based on priority (#27809)
* sort events based on priority

* cleanup for pr

* pr cleanup 2

* pr cleanup 3
2023-04-06 21:31:04 -07:00
Adeeb Shihadeh d551a4c18e set_time: use python library (#27827)
* set_time: use python library

* unused import

---------

Co-authored-by: Comma Device <device@comma.ai>
2023-04-06 21:28:06 -07:00
Adeeb Shihadeh 5f6a122c24 add scons-contrib package (#27826) 2023-04-06 21:12:32 -07:00
Adeeb Shihadeh 558da046db update scons qt tool (#27825)
* update scons qt tool

* support old and new

---------

Co-authored-by: Comma Device <device@comma.ai>
2023-04-06 20:42:19 -07:00
Dean Lee 23e420448b cabana: improve chart drag and drop (#27820)
* improve drag/drop

* change alpha to 180

* cleanup

* cleanup

* draw drop indicator
2023-04-06 13:37:09 -07:00
Adeeb Shihadeh 71819b2282 boardd: bump spi to 50MHz 2023-04-06 12:51:30 -07:00
Adeeb Shihadeh 248cc46f47 plotjuggler: camera timings layout 2023-04-06 12:42:44 -07:00
Adeeb Shihadeh 9eda72d871 update manifest path in test 2023-04-05 22:39:57 -07:00
Adeeb Shihadeh 39a1a917e7 tici: move tests to tests/ 2023-04-05 22:17:57 -07:00
Adeeb Shihadeh c8c458f0e7 boardd: log SPI checksum errors (#27818)
* boardd: log SPI checksum errors

* bump panda
2023-04-05 22:16:44 -07:00
Adeeb Shihadeh fdb3488f6b tizi: only affine panda USB IRQ when it's used (#27816)
only affine panda USB IRQ when it's used

Co-authored-by: Comma Device <device@comma.ai>
2023-04-05 21:08:14 -07:00
ZwX1616 4b1f77d54a OX03C10: improve tone mapping (#27754)
Co-authored-by: Comma Dev1ce & Y. Yousfi <device@comma.ai>
2023-04-05 19:46:04 -07:00
Adeeb Shihadeh 038d34aa7f tizi: affine IRQ by action instead of number (#27811)
* tizi: affine IRQ by action instead of number

* do camera irqs

* debug script

---------

Co-authored-by: Comma Device <device@comma.ai>
2023-04-05 16:35:27 -07:00
Adeeb Shihadeh ff89184823 tizi tests in jenkins (#27810)
* add

* mv there for now

* mv

* single panda

* move into parallel

* longer timeout for dfu

---------

Co-authored-by: Comma Device <device@comma.ai>
2023-04-05 11:07:42 -07:00
Adeeb Shihadeh 8aedbad24f plotjuggler: ublox debug layout 2023-04-05 11:06:32 -07:00
Jason Young f7d6b903b3 VW PQ: Miscellaneous longitudinal bug fixes (#27803)
* VW PQ: Miscellaneous longitudinal fixes

* touch up TODO comments
2023-04-05 09:26:41 -07:00
Adeeb Shihadeh ad16b44528 add panda watchdog fault (#27808) 2023-04-04 19:21:30 -07:00
Adeeb Shihadeh 088cbfc9d5 car docs: add field for min compatibility requirements (#27805) 2023-04-04 17:47:49 -07:00
Dean Lee a556d23483 cababa: display '--' in chart tooltip if no min max values (#27798) 2023-04-04 11:44:51 -07:00
Jason Young 5666968d6d VW: Long control message builder cleanup (#27802)
* VW: Cleanup long control parameters

* use long_enabled instead

* bikeshed
2023-04-04 11:44:33 -07:00
Adeeb Shihadeh e7c0db457a don't show temp steering faults while overriding (#27797)
Co-authored-by: Comma Device <device@comma.ai>
2023-04-04 11:28:13 -07:00
Dean Lee 68c4184df7 cabana: fix text overlapping in sparkline (#27801) 2023-04-04 10:48:19 -07:00
Dean Lee 493d20994a cabana: do not emit DBCFileChanged if no file changes (#27800) 2023-04-04 10:47:54 -07:00
Dean Lee c5f5a3b5f2 cabana: support undo/redo zoom (#27799)
* support updo/redo zoom

* cleanup eventsMerged

* init axis_x when create chart

* update tool bar after create chart

* align charts after updatelayout
2023-04-04 10:46:36 -07:00
blantona22 ec39d0515d 2023 Hyundai Sonata FW - Fingerprint (#27782)
* Update values.py

* Update values.py

* Update values.py

Added 2023 Sonata FW

* duplicate

* more duplicates

* remove a multi query duplicate

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-04-03 15:06:21 -07:00
seven121-ym 61e718fe5f Subaru: add FW for 2019 Subaru Impreza (#27771)
* Update values.py

* Update values.py

* Update values.py

* Update values.py

* Add missing engine

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-04-03 13:40:02 -07:00
Saber422 ef06780e3c VW MQB: add missing FW 2021 TROC MK1 (#27774)
I setup my C3 on this TROC to get FW.
Route name:0bbe367c98fa1538|2023-04-01--10-24-01--0
2023-04-03 13:34:25 -07:00
John Belmonte 7471e0b9a7 Toyota: fingerprint for Japan C-HR hybrid TSS2 (#27776)
fingerprint for Japan C-HR hybrid TSS2

car model: 6AA-ZYX11-AHXNB

route: 2c4292a5cd10536c|2023-04-01--07-13-01
2023-04-03 13:24:40 -07:00
Adeeb Shihadeh 71efca0007 bump panda (#27795) 2023-04-03 13:23:10 -07:00
Kevin Mahoney 8aa03746de Toyota: add missing HIGHLANDERH_TSS2 FW (#27784) 2023-04-03 13:18:38 -07:00
Dean Lee ea91532ac1 cabana: fix chart background issue in live mode (#27793)
* fix background

* Update tools/cabana/chartswidget.cc

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-04-03 13:05:49 -07:00
Dean Lee 7c7347a9e6 cabana: dynamic update chart tooltip (#27790)
dynamic update tooltip

dont emit serieschanged if no charts
2023-04-03 12:50:29 -07:00
Adeeb Shihadeh d16ee6ecc8 boardd: log voltage and current from panda (#27789)
* boardd: log voltage and current from panda

* bump cereal
2023-04-02 12:59:13 -07:00
Dean Lee c56872265a cabana: support toggle between light / dark theme (#27787)
add dark theme
2023-04-02 11:34:10 -07:00
Dean Lee 0cee9d4e78 cabana: significantly reduce CPU usage by caching chart to pixmap (#27786)
* caching chart to pixmap

* cleanup

* fill with QPalette::Base
2023-04-02 11:34:01 -07:00
Dean Lee a036430390 cabana: static link to opendbc (#27409)
* static link to opendbc

* bump opendbc

* cleanup

* bump opendbc

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2023-04-01 16:29:06 -07:00
Adeeb Shihadeh cddb7c37e6 ci: locationd cpu has increased a bit 2023-04-01 16:05:51 -07:00
eFini 133721aafc Toyota: support openpilot long with a smartDSU on nodsu models (#27417)
* init

* fix syntax

* add test route

* syntax

* cleanup

* bool

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2023-04-01 15:34:55 -07:00
royjr 2ab05f96c3 Cleanup: GM remove unnecessary variable (#27779) 2023-04-01 15:24:29 -07:00
eFini a50fbe17c8 Cleanup: Honda interface already checks vehicle model for BSM (#27775) 2023-04-01 15:21:26 -07:00
Dean Lee 6bbcbab3f7 cabana: fix chart tooltip issues (#27778) 2023-04-01 15:20:47 -07:00
Cameron Clough 64f9b13871 Ford: add Maverick 2023 FW (#27781)
Ford Maverick 2023 Lariat Lux (added radar)

VIN: 3FTTW8E31PRA18806

bd37e43731e5964b|2023-04-01--15-13-06--0
2023-04-01 21:20:47 +01:00
Jason Wen a8a853514f ui: show driver monitoring camera while onroad prerequisites 2023-04-01 12:50:58 -04:00
Shane Smiskol a0f33658f2 IsoTpParallelQuery: extend timeouts when receiving consecutive frames (#27762)
* change to rx_in_progress

* bump panda

* bump panda
2023-03-31 20:57:32 -07:00
Shane Smiskol 1ee4f41d5a bump panda: iso-tp bugfixes (#27772)
bumppanda
2023-03-31 20:00:49 -07:00
Dean Lee e82d7a10d3 cabana: show min and max values in sparkline on hover (#27769) 2023-03-31 13:59:08 -07:00
Dean Lee aa3b8e5f30 cabana: fixed chat tool tips was displayed outside of the viewport (#27770) 2023-03-31 13:58:50 -07:00
Dean Lee 15a4b60ee6 cabana: display signal value in all charts on mouse hover (#27749)
* display all values

* cleanup

* cleanup

* emit hoverd if tip is visible
2023-03-31 12:48:31 -07:00
Shane Smiskol a1d01220e7 bump panda (#27768) 2023-03-31 12:15:59 -07:00
Dean Lee 63f888fa3a cabana: fix sparkline overlapping issue (#27766)
* fix sparkline overlapping issue

* cleanup
2023-03-31 11:44:21 -07:00
Willem Melching ced90c163e cabana: show min and max values in chart tooltip (#27744) 2023-03-31 11:32:27 -07:00
AlexandreSato 852f67dc88 Multilang: update pt-BR translations (#27767) 2023-03-31 11:29:08 -07:00
routine88 652fc0e904 Added fingerprint for 2023 Hyundai Elantra Hybrid (#27758)
* Update values.py

* Update values.py

* Update selfdrive/car/hyundai/values.py

* Update selfdrive/car/hyundai/values.py

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-03-31 00:34:35 -07:00
Shane Smiskol 909ad5e285 bump panda (#27761) 2023-03-31 00:10:41 -07:00
Jason Wen 89e2a6ea9b Merge remote-tracking branch 'upstream/commaai/openpilot/master'
# Conflicts:
#	cereal
#	panda
2023-03-30 23:07:29 -04:00
Adeeb Shihadeh 08be9eed08 sensord: remove hardcoded irq from test (#27759)
* sensord: remove hardcoded irq from test

* fix linter

---------

Co-authored-by: Comma Device <device@comma.ai>
2023-03-30 19:36:03 -07:00
Lee Jong Mun 2c13bfac74 Multilang: kor translation update (#27756) 2023-03-30 17:34:39 -07:00
royjr c2d13e5292 ui: experimental -> alpha OP long toggle (#27725)
* swap locations

* remove experimental from toggle name

* revert

* alpha

* revert that

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2023-03-30 14:27:05 -07:00
Dean Lee dd4e07fe7b cabana: fill rows with Qt::BDiagPattern if messag size is incorrect (#27750) 2023-03-30 13:00:06 -07:00
Adeeb Shihadeh 5ec7da96a6 ci: always upload process replay ref logs 2023-03-30 12:43:08 -07:00
Willem Melching bec8cb1e30 cabana: fix parts of chart widget not being redrawn (#27742)
* cabana: fix parts of chart widget not being redrawn

* revert others
2023-03-30 12:37:49 -07:00
Willem Melching ecd82f0408 cabana: fix drawing sparkline at half width on hi-dpi screen (#27746) 2023-03-30 12:37:29 -07:00
Willem Melching 469accbec1 cabana: show string value for val/desc (#27747) 2023-03-30 12:36:54 -07:00
Willem Melching cf299002f7 cabana: allow zooming to smaller ranges (#27748)
* cabana: allow zooming to smaller ranges

* remove comment
2023-03-30 12:36:34 -07:00
Dean Lee f3664b658b add libncurses5 to ubuntu_setup.sh (#27751) 2023-03-30 12:24:41 -07:00
Shane Smiskol 51c3f43205 Honda Bosch Radarless: use CarControllerParams variable 2023-03-30 12:19:48 -07:00
royjr fe49fbf8ec Honda Bosch Radarless: update stopAccel to match actuation limits (#27740)
* civic22_stop_faster

* limit stopAccel to current safety model

* Update selfdrive/car/honda/interface.py

* Update selfdrive/car/honda/interface.py

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-03-30 12:18:32 -07:00
Jason Wen cb865a7b18 ui: button auto-hide prerequisites 2023-03-29 23:28:11 -04:00
Jacob Pfeifer 26097e778e mapd: consistency adjustments (#117)
mapd consistency adjustments:

* Project gps location onto map route line for determining distance to
  next node.
* Increase distance for determining if we have left a route. Helpful for
  when osm route line is not perfectly centered on road.
* Match max lateral accel against vision turn speed controller max
  lateral accel.
2023-03-29 23:07:16 -04:00
Erich Moraga a9d342689c Add missing AVALON_TSS2 engine & ABS f/w (#27733)
`@jundi#8597` 2022 Avalon ICE  DongleID/route 6b650cedd7de2808|2023-03-29--18-36-56
2023-03-29 19:06:44 -07:00
royjr e377305ea8 Honda Civic 2022: match stock Auto Idle Stop behavior (#27722)
* honda_idlestop_timer

* whoops

* simplify

* just use stopping counter and move bosch radarless specific logic into the function

* it's actually 4 seconds

* Update selfdrive/car/honda/hondacan.py

* check equal to 0

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-03-29 19:04:33 -07:00
Harald Schäfer eca3838237 Locationd qcom retune (#27739) 2023-03-29 16:35:30 -07:00
Adeeb Shihadeh 3df2e55bee tizi: add panda siren fault (#27738)
Co-authored-by: Comma Device <device@comma.ai>
2023-03-29 16:31:35 -07:00
Vivek Aithal 15b880c0ea Bolt EUV: Non-linear torque function (#27696)
* add erf based ff

* silly bug; diff of nonlinear != nonlinear of diff

* add sigmoid based ff, ensure slope at 0 > 1

* reduce steer down limit and increase driver allowance

* rebase panda

* atry without friction, and with tanh nonlinear

* finalize the nonlinear function

* do not disable friction compensation in the ff

* bump panda

* bump panda

* update refs

* update refs

* resolve comments

* Add type hints

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2023-03-29 15:10:39 -07:00
Jason Wen 75fd9b1b22 Long planner: fix upstream merge conflicts (#145)
Fix upstream merge conflicts
2023-03-29 17:53:58 -04:00
Jason Wen 8e3ed8f10b torqued: reset LiveTorqueParameters on calibration reset (#27737)
* torqued: reset LiveTorqueParameters on calibration reset

* gotta have this
2023-03-29 14:30:27 -07:00
Vivek Aithal 46069738d6 Revert "torqued: reset LiveTorqueParameters on calibration reset" (#27736)
Revert "torqued: reset LiveTorqueParameters on calibration reset (#27732)"

This reverts commit 18253982db.
2023-03-29 14:01:22 -07:00
Jason Wen 18253982db torqued: reset LiveTorqueParameters on calibration reset (#27732) 2023-03-29 13:56:45 -07:00
Willem Melching e0afaa4eee cabana: fix merging sources for already open DBC file (#27715)
* fix build

* fix merging sources
2023-03-29 13:17:46 -07:00
Dean Lee d6961152b8 cabana: add a slider to set sparkline time range (#27727)
* add slider to set sparkline time range

* rename signaleedit to signalview

* default is 15s

* util::formatSeconds

* update() is faster than invalidate

* draw points

* fix scatter width
2023-03-29 12:43:43 -07:00
Adeeb Shihadeh 85908f7e2b process replay: fix socket-ful replay flakiness (#27721)
* process replay: fix socket-ful replay flakiness

* bump up laikad timeout

* bump

* bump again

* revert that
2023-03-28 17:48:16 -07:00
Jason Young 267974e002 remove accFaultedTemp, add steerTimeLimit (#27720)
* remove accFaultedTemp

* retry CI

* bump cereal

* grab the new steerTimeLimit Event

* bump cereal to updated master
2023-03-28 16:04:14 -07:00
Jason Wen eb2f13d6d6 Merge remote-tracking branch 'upstream/commaai/openpilot/master'
# Conflicts:
#	cereal
#	panda
2023-03-28 17:16:08 -04:00
Jason Wen 8208cf9a5a pre-commit: skip all checks for now 2023-03-28 17:16:01 -04:00
Adeeb Shihadeh 32da60c551 Update RELEASES.md 2023-03-28 13:26:01 -07:00
Dean Lee eee3c8ee60 cabana: add sparkline to signal view (#27717)
* display small line chart beside signal

* TODO

* 1 px width

* auto stretch

* static lines

* use std::vector

* cleanup

* use ts from last message

* remove hardcorded size
2023-03-28 13:25:13 -07:00
Dean Lee a1fb8d2480 cabana: improve video thumbnail (#27711) 2023-03-28 13:24:54 -07:00
Dean Lee 8903e03c88 cabana: move dbc related files to dbc/ (#27712)
* move dbc related files to dbc/

* move generate_dbc_json.py to dbc/
2023-03-28 11:52:28 -07:00
Dean Lee 2f954a50e3 cabana: clear zoom stack after reset zoom (#27716) 2023-03-28 11:50:19 -07:00
royjr 1853d6f40e Honda Bosch Radarless: experimental longitudinal support (#25364)
* civic22_long

* Stock requests -4

* add standstill bit

* bump

* fix standstill

* bump

* bump

* bump panda

* Update hondacan.py

* bump panda

* add docs

* bump panda

* bump panda

* fix control_on value

* set control_off

* fix cars.md

* Update panda

* Update opendbc

* Update panda

* Update panda

* allow more braking

* Revert "allow more braking"

This reverts commit ecd2493a436a095b621d815e8b0c7591fa6b93a9.

* Update panda

* fix speed mismatch

* Revert "fix speed mismatch"

This reverts commit ca795dc5bd9d6e841225e1ac1ff93a1f78618513.

* Update panda

* fix speed mismatch and standstill

* delay stopped message to match stock behavior

* green cruise only when enabled

* Update panda

* Revert "green cruise only when enabled"

This reverts commit d21aa5b541a42fa6d1c87e3b065f720af28ff38b.

* lesser nester

* simplify

* simplify control_on

* simplify common signals

* simplify CONTROL_ON

* lessest nester

* hide speed on gas_override to match stock behavior

* tiny simplification, lesser nester

* flip common acc control values around

* move magic number to global variable

* Revert "move magic number to global variable"

This reverts commit 160be0e0872dc08a8786d97fc2125b2eb131362d.

* remove stopped logic

* remove unused variable

* looks ok

* looks better

* simplify override

* clarify CONTROL_OFF signal comment

* civic22_long_bettercontroloff

shorten delay

init

selfless

whoops

move to carcontroller

selfmore

lower time, currently take 5s to kick in

just right

deline

* Rename CONTROL_OFF -> IDLESTOP_ALLOW

This tells the car its ready to turn off the engine, which does so when the car is standstill.

* Update panda

* Update opendbc

* Update panda

* fix docs

* Update panda

* Update panda

* Update opendbc

* Update panda

* Update panda

* Update panda

* Update panda

* bump panda

* idlestop in another PR

* radarless doesn't need tester present

* simplify that

* helper

* one line is fine

* test bump

* bumpback

* disallow

* reduce diff

---------

Co-authored-by: sshane <shane@smiskol.com>
2023-03-28 01:53:48 -07:00
Dean Lee fb03e225fd isotp_parallel_query: use drain_sock_raw (#27714)
use drain_sock_raw
2023-03-28 00:25:20 -07:00
Shane Smiskol e65bd1a703 bump panda (#27713) 2023-03-28 00:21:08 -07:00
Jason Wen 0bf00410d4 Hyundai: gate speed limit parsing availability (#144) 2023-03-27 22:05:35 -04:00
Shane Smiskol 3555a08c17 Nissan: add missing FW for 2020 Leaf (IC) (#27670)
add nissan leaf ic fp
2023-03-27 16:11:59 -07:00
erotisch c0b2e15a60 HKG: add missing 2019 Genesis G70 FW (#27676)
* Update values.py

* Update values.py

* Update values.py

* fix FW

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-03-27 15:37:54 -07:00
Erich Moraga 7284969eb8 Add missing TUCSON_4TH_GEN fwdCamera/fwdRadar f/w (#27708)
`chodochodo#7177` 2022 Hyundai Tucson 2.4L ICE  DongleID/route c5ba26f7af98e5d1|2023-03-27--14-33-34
2023-03-27 15:06:47 -07:00
Shane Smiskol 12e46e5d4a Toyota: add missing FW versions for C-HR Hybrid 2021 (#27687)
add another 2021 CHR H
2023-03-27 14:22:25 -07:00
pugdaddys 8a36887dfb VW: add missing Audi A3 2016 FW (#27699)
* Update values.py

* Update values.py

* Update values.py

* missing radar

* convert to hex

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-03-27 13:58:30 -07:00
Shane Smiskol 86f6c315bc bump cereal (#27704) 2023-03-27 13:30:22 -07:00
Igor Biletskyy d9487ab901 boardd: fix uninitialized can_header (#27685) 2023-03-27 13:24:56 -07:00
Willem Melching e4348dc45d cabana: go to previous zoom window (#27702)
* cabana: go to previous zoom level

* zoom undo on right click

* catch mousepress event on linux
2023-03-27 12:45:55 -07:00
Adeeb Shihadeh 4439e285db Revert "bump cereal"
This reverts commit daeb502031.
2023-03-27 12:45:13 -07:00
Shane Smiskol daeb502031 bump cereal 2023-03-27 11:53:40 -07:00
Willem Melching 4ab2131ec9 cabana: add support for multiple DBC files (#27435)
* split out dbc file logic into separate file

* emit dbc file changed

* change to list of dbc files

* handle missing DBC file

* dbcmanager emits signal

* close existing files before loading new one

* add placeholder open for bus menu

* implement open dbc for bus

* emit signals relevant for current dbc

* move logic into findDBC

* fix use after free

* show currently loaded names in load dialog

* enable/disable load save menus

* handle saving

* add save as to recents

* handle file already open

* do not assert

* fix return and throw on file open error

* fix test maybe

* remove todo

* typo

* fix new dbc

* fix loading fingerprint on macos

* handle replacing a currently open dbc

* fix reference and handle exception

* fix indendation
2023-03-27 10:29:44 -07:00
Shane Smiskol 28cd8fc402 laikad: clean up cloudlog usage (#27701)
make an error, no need to pass e
2023-03-26 23:06:09 -07:00
Harald Schäfer b418cbcbcf Laikad: catch and log ephemerides parsing errors (#27698)
* Laikad: catch and log ephemerides parsing errors

* exception instead of error
2023-03-26 22:17:30 -07:00
AlexandreSato 083f008d94 caban: fix typo (#27700) 2023-03-26 17:06:33 -07:00
Jason Wen 03f8b45a1e gpxd: remove secret (#135)
* gpxd: remove secret

* make it stick

* enforce dongle ID check

* redirect

* static

* small cleanup
2023-03-26 12:01:31 -04:00
Jason Wen 5ae00ea1fc sunnypilot: update brand 2023-03-26 09:20:57 -04:00
Jason Wen d4a039823b HKG: add FW versions for Kia Forte Non-SCC 2019 (#141) 2023-03-25 22:41:51 -04:00
Dean Lee 583c4a031f cabana: improve LogSlider (#27673)
* improve logslider

* fix code indentation
2023-03-25 16:03:16 -07:00
Dean Lee 8bd4c0f510 cabana: update state after creating new signal (#27690) 2023-03-25 15:39:21 -07:00
Dean Lee 8150e4a4b8 cabana: support qlogs (#27689) 2023-03-25 15:38:55 -07:00
Dean Lee c77a0feab4 cabana: fix high DPI issues in chart (#27694) 2023-03-25 15:38:41 -07:00
Jason Wen bb76d4f9e9 Block Enhanced Speed Control events on unsupported platforms (#140) 2023-03-25 10:07:52 -04:00
Shane Smiskol 6f35d23c06 FPv2: match brand against extra ecus (#27688)
* query extra ecus (still need to match)

* match against extra ecus

* clean p

* clean p

* switch that around

* can clean that up

* values
2023-03-25 01:07:58 -07:00
Shane Smiskol 084e83cda1 FPv2: replace temporary variable with config (#27692)
* query extra ecus (still need to match)

* match against extra ecus

* clean p

* clean p

* switch that around

* can clean that up

* values

* rm

* not used
2023-03-25 01:02:11 -07:00
Dean Lee 33afefd346 cabana: enables user to select the zoom area when the mouse press on the data point (#27679)
zoom anywhere
2023-03-24 21:54:41 -07:00
Jason Wen 38068dc916 sunnypilot: HKG: non-SCC platform support prerequisites (#139) 2023-03-25 00:05:03 -04:00
Shane Smiskol b61a0b785a Toyota: use DBC for alt brake safety param (#27686)
* use DBC

* use DBC
2023-03-24 20:07:11 -07:00
Shane Smiskol d443d8f5e3 VW: add missing Arteon 2019 FW (#27671)
* add missing arteon 2019 fw

* duplicate
2023-03-24 19:11:50 -07:00
Shane Smiskol c2bdbaa346 Lexus: 2017 RC is not supported (#27678)
we don't support 2017
2023-03-24 17:48:31 -07:00
Shane Smiskol b2beb3792e Lexus: LSS is standard on ES (#27684)
* standard on 17 and 18 https://dealerinspire-brochure.s3.amazonaws.com/834.pdf & https://www.lexus.com/content/dam/lexus/documents/brochures/models/2018/MY18-Lexus-ES-and-ES-Hybrid-Brochure.pdf

* update docs
2023-03-24 17:44:49 -07:00
Adeeb Shihadeh c25ce02639 tici: turn off fan after boot (#27680)
* tici: turn off fan after boot

* tmp if

---------

Co-authored-by: Comma Device <device@comma.ai>
2023-03-24 16:48:07 -07:00
mitchellgoffpc 76319d02d8 Added tritonclient to xx deps 2023-03-24 16:16:38 -07:00
Jason Wen 5243da9487 FCR: sync with upstream supported car platforms 2023-03-24 17:34:28 -04:00
Jason Wen 18a5cf0277 Merge remote-tracking branch 'upstream/commaai/openpilot/master'
# Conflicts:
#	cereal
#	opendbc
#	panda
#	selfdrive/ui/ui.cc
2023-03-24 15:05:42 -04:00
Dean Lee 9c84af296c cabana: clear the old timeline after opening a new route from menu (#27672) 2023-03-24 11:01:26 -07:00
Dean Lee f08132475d cabana: align signal value vcenter (#27675) 2023-03-24 11:01:03 -07:00
Jason Wen b73078dc43 mapd: bring back README (#136) 2023-03-24 13:57:54 -04:00
Shane Smiskol 9e023b3ead FPv2: only set multiplexing when needed (#27669)
* only set multiplexing if bus matters

* these don't matter anymore
2023-03-24 00:29:48 -07:00
Shane Smiskol 2ad9eec882 FPv2: log OBD multiplexed requests (#27667)
* log multiplexed requests

* bump cereal

* bump cereal to master
2023-03-24 00:25:37 -07:00
Shane Smiskol 021661b316 Hyundai CAN FD: log ADAS parking ECU FW version (#27662)
* add parking and hvac ecus

* needs a new query sadly

* move space

* temp

* comment

* fix

* mid-solution stash

* pretty cleannnnnnn

* everything seems to be working

* bump cereal

* bump to master

* bump to master

* don't multiplex when we don't need it
2023-03-24 00:12:25 -07:00
Shane Smiskol ecbd7150eb FwQueryConfig: auxiliary field to add requests for first aux panda (#27666)
* mid-solution stash

* pretty cleannnnnnn

* everything seems to be working

* rename

* space

* reduce obd multiplexing transitions from 3 to 1 (0.3s to 0.1s)
2023-03-23 23:47:15 -07:00
Shane Smiskol 5ab45890aa Hyundai CAN FD: log hvac FW version (#27668)
* add parking and hvac ecus

* needs a new query sadly

* move space

* temp

* comment

* fix

* mid-solution stash

* pretty cleannnnnnn

* everything seems to be working

* bump cereal

* this is a smaller diff, easier to merge

* bump cereal

* just hvac

* bump to master
2023-03-23 23:31:38 -07:00
Shane Smiskol 049fffb39f bump cereal 2023-03-23 23:07:27 -07:00
Shane Smiskol a0e225e4af FPv2: don't multiplex second panda (#27663)
* fix this way

* or can fix this way

* simplify

* fix
2023-03-23 21:14:57 -07:00
Dean Lee 1a560a1a6c cabana: fix button geometries (#27659) 2023-03-23 10:19:39 -07:00
Shane Smiskol 42449b482d boardd: ability to switch between ELM safety params (#27656)
* indecisive

* rename to generic FW query

* remove code and update comment

* we need this to start off, unless we set multiplexing immediately

* draft

* draft 2

* try that

* can't do this either, boardd might read Enabled after removing, but before setting new Request param

* this should work

* use one less param

* fix params

* match behavior (set all pandas to safety param of 1, disabling multiplexing for fingerprinting

* clean up (some tests may temp break)

* fix param name and sort

* time it

* yes it does matter

* add to hyundai's bus 5 query

* remove hyundai for now

* this should work

* clean up

* clean up

* flip argument around, clean up

* fix test_startup

* some clean up

* rm line

* comment makes more sense

* required typing

* clean up common type

* comments

* Update selfdrive/car/car_helpers.py

* line

* whoops, need to set before vin!

* fix debug

* annoying

* more debugging

* bug fix (needs both keys always)

* debuGG

debuGG

* Revert "debuGG"

This reverts commit 55b2f429324c0b92d5cfb2cabf8b20db1e166248.

* Revert "more debugging"

This reverts commit 02934c3403ad5270f03093508b704c151d1ccb2a.

* Revert "annoying"

This reverts commit 8b4e5e09989f9a0217e3ec1c0ba68735929b7366.

* clean that up

* bumpback

* bumpback

* every second write param

* flip

* stuff

* move up?

* fix timing out in CI

* rm
2023-03-23 00:14:31 -07:00
Shane Smiskol 727a94cc78 fw_versions: cleanup common types (#27658)
* use common type

* use it in fw_versions

* add typing to queries
2023-03-22 21:58:04 -07:00
YassineYousfi 26541d9e7a new model: trained on new dataset (#27637)
* df733db3-fad2-4485-abe9-59a6a47f2233/449 946c0f55-247d-4790-a407-c07e4364b340/700

* fix reducel2 df733db3-fad2-4485-abe9-59a6a47f2233/449 946c0f55-247d-4790-a407-c07e4364b340/700

* update ref commit
2023-03-22 20:19:46 -07:00
Harald Schäfer e05e7850e1 Laika cleaner flow (#27633)
* laika flow

* test fixes

* unexpected type

* unexpected type

* explicit type

* ref commit

* back to prev val

* ref 2
2023-03-22 19:10:19 -07:00
ZwX1616 25a7f87b42 camerad: reduce daytime HDR blur (#27644)
* 60hz

* be dynamic

* cast

---------

Co-authored-by: Comma Device <device@comma.ai>
2023-03-22 13:44:29 -07:00
Shane Smiskol 8b8c4d810f test lateral limits: remove Konas from blacklist (#27424)
* remove konas from blacklist

* update measured accel

* remove

* no longer needed
2023-03-22 13:37:09 -07:00
Dean Lee 89d767da49 cabana: improve find similar bits (#27651)
* improve find similar bits

* 2 precision
2023-03-22 11:02:34 -07:00
Dean Lee dcbadc554d cabana: sets the line width with floating point precision. (#27653) 2023-03-22 10:27:23 -07:00
Shane Smiskol aefe636cc1 GM: common longitudinal actuator delay (#27357)
* common longitudinal actuator delay

* comment

* remove dup

* move

* clean up

* Update ref_commit
2023-03-22 00:23:51 -07:00
Shane Smiskol aeb905a2bf Toyota LTA: allow no torque (#27646)
* no torque

* Update ref_commit

* Update ref_commit
2023-03-21 19:21:11 -07:00
Shane Smiskol 660b9e9718 Chrysler: add FW versions for 2019 Jeep Grand Cherokee (#27649)
add FW versions for Jeep 2019
2023-03-21 19:16:05 -07:00
Lee Jong Mun 114b1e4a14 Kia: add missing Korean EV6 fwdCamera FW (#27641)
* Kia: add missing Korean EV6 fwdCamera FW

* Apply suggestions from code review

* Update selfdrive/car/hyundai/values.py

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-03-21 18:41:31 -07:00
Adeeb Shihadeh be659c976c log current bootlog (#27645)
* log current bootlog

* rm path

* mv that

---------

Co-authored-by: Comma Device <device@comma.ai>
2023-03-21 17:28:38 -07:00
Gijs Koning fc5a575ba3 laikad: use non-conflating socket for gnss msgs (#24888)
* Use subsock

* wait for one

* wrong name

* try cpp proc replay

* fix recv pattern

---------

Co-authored-by: Bruce Wayne <harald.the.engineer@gmail.com>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2023-03-21 17:07:19 -07:00
Dean Lee a86730a2c6 camerad: remove deprecated focus parameters from FrameMetadata (#27638) 2023-03-21 16:55:06 -07:00
Adeeb Shihadeh 7319afbd51 process replay: prep for laikad subsock + QCOM GPS (#27632)
* process replay: prep for laikad subsock

* cleanup

* fix for qcomGnss

* detect ublox

* more debug info in err

* wip

* cleanup
2023-03-21 16:43:40 -07:00
Adeeb Shihadeh ee36c106af process replay: update after laika publish policy change (#27647)
* laika pubs all

* lr for locationd

* fix locationd qcom

* update refs
2023-03-21 16:14:22 -07:00
Adeeb Shihadeh e0ac5a940e bump panda 2023-03-21 11:25:36 -07:00
realfast aa4286153a Ram: FW version dump (#27083)
* Add extra firmwares and sort for rams

* Added another ECU

* Update selfdrive/car/chrysler/values.py

Co-authored-by: Shane Smiskol <shane@smiskol.com>

* Apply suggestions from code review

* sort

* formatting

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-03-20 22:54:55 -07:00
Shane Smiskol 4a844078cd Chrysler: add FW for 2019 Ram 3500 (#27636)
* Add 2019 Ram 3500

* wrong ones

* missing EPS
2023-03-20 21:39:06 -07:00
Shane Smiskol aa0421ffd7 Chrysler: add FW for 2023 Ram 1500 (#27634)
add FW for 2023 Ram 1500
2023-03-20 21:20:35 -07:00
Jason Wen f9c112e9b8 Hyundai: add Sonata FW version to enable radar tracks (#27463) 2023-03-20 13:31:50 -07:00
cpaioletti 285204c5d1 Kia: add missing fwdCamera for Niro HEV 2023 (#27557)
* Update values.py for 2023 Kia Niro HEV

{'carParams': {'alternativeExperience': 0,
               'autoResumeSng': True,
               'carFingerprint': 'mock',
               'carFw': [{'address': 2004,
                          'brand': 'hyundai',
                          'bus': 1,
                          'ecu': 'eps',
                          'fwVersion': b'\xf1\x00SG2 MDPS C 1.00 1.06 56310AT050\x00 4SG2C106',
                          'logging': False,
                          'request': [b'"\xf1\x00'],
                          'responseAddress': 2012,
                          'subAddress': 0},
                         {'address': 2000,
                          'brand': 'hyundai',
                          'bus': 1,
                          'ecu': 'fwdRadar',
                          'fwVersion': b'\xf1\x00SG2_ RDR -----      1.00 1.01 99110-AT000         ',
                          'logging': False,
                          'request': [b'"\xf1\x00'],
                          'responseAddress': 2008,
                          'subAddress': 0},
                         {'address': 2017,
                          'brand': 'hyundai',
                          'bus': 1,
                          'ecu': 'transmission',
                          'fwVersion': b'\xf1\x00PSBG2552  D121049\x00\x00\x00DSG2G16XXH049NS6MC\xe3x',
                          'logging': False,
                          'request': [b'"\xf1\x00'],
                          'responseAddress': 2025,
                          'subAddress': 0},
                         {'address': 1988,
                          'brand': 'hyundai',
                          'bus': 1,
                          'ecu': 'fwdCamera',
                          'fwVersion': b'\xf1\x00SG2HMFC  AT USA LHD 1.01 1.09 99211-AT000 220801',
                          'logging': False,
                          'request': [b'"\xf1\x00'],
                          'responseAddress': 1996,
                          'subAddress': 0},
                         {'address': 2016,
                          'brand': 'hyundai',
                          'bus': 1,
                          'ecu': 'engine',
                          'fwVersion': b'\xf1\x87391S3-08AF0\xf1\x81HM6M7_0a0_D00',
                          'logging': False,
                          'request': [b'"\xf1\x87\xf1\x81\xf1\x00'],
                          'responseAddress': 2024,
                          'subAddress': 0},
                         {'address': 2000,
                          'brand': 'hyundai',
                          'bus': 1,
                          'ecu': 'fwdRadar',
                          'fwVersion': b'\xf1\x8799110AT000\xf1\x00SG2_ RDR -----      1.00 1.01 99110-AT000         ',
                          'logging': False,
                          'request': [b'"\xf1\x87\xf1\x81\xf1\x00'],
                          'responseAddress': 2008,
                          'subAddress': 0},
                         {'address': 2004,
                          'brand': 'hyundai',
                          'bus': 1,
                          'ecu': 'eps',
                          'fwVersion': b'\xf1\x8756310AT050\x00\xf1\x00SG2 MDPS C 1.00 1.06 56310AT050\x00 4SG2C106',
                          'logging': False,
                          'request': [b'"\xf1\x87\xf1\x81\xf1\x00'],
                          'responseAddress': 2012,
                          'subAddress': 0},
                         {'address': 2017,
                          'brand': 'hyundai',
                          'bus': 1,
                          'ecu': 'transmission',
                          'fwVersion': b'\xf1\x8795441-2BGJ0\x00\xf1\x81D121049\x00\x00\x00\xf1\x00PSBG2552  D121049\x00\x00\x00DSG2G16XXH049NS6'
                                       b'MC\xe3x',
                          'logging': False,
                          'request': [b'"\xf1\x87\xf1\x81\xf1\x00'],
                          'responseAddress': 2025,
                          'subAddress': 0},
                         {'address': 2000,
                          'brand': 'hyundai',
                          'bus': 4,
                          'ecu': 'fwdRadar',
                          'fwVersion': b'\xf1\x00SG2_ RDR -----      1.00 1.01 99110-AT000         ',
                          'logging': False,
                          'request': [b'"\xf1\x00'],
                          'responseAddress': 2008,
                          'subAddress': 0},
                         {'address': 1975,
                          'brand': 'hyundai',
                          'bus': 4,
                          'ecu': 'cornerRadar',
                          'fwVersion': b'\xf1\x00SG2 BCW RR 1.01 , 1.04 (wQ\x83"\x02\x01\x03@',
                          'logging': True,
                          'request': [b'"\xf1\x00'],
                          'responseAddress': 1983,
                          'subAddress': 0},
                         {'address': 1988,
                          'brand': 'hyundai',
                          'bus': 4,
                          'ecu': 'fwdCamera',
                          'fwVersion': b'\xf1\x00SG2HMFC  AT USA LHD 1.01 1.09 99211-AT000 220801',
                          'logging': False,
                          'request': [b'"\xf1\x00'],
                          'responseAddress': 1996,
                          'subAddress': 0},
                         {'address': 2017,
                          'brand': 'mazda',
                          'bus': 1,
                          'ecu': 'transmission',
                          'fwVersion': b'D121049\x00\x00\x00',
                          'logging': False,
                          'request': [b'"\xf1\x88'],
                          'responseAddress': 2025,
                          'subAddress': 0},
                         {'address': 2016,
                          'brand': 'subaru',
                          'bus': 1,
                          'ecu': 'engine',
                          'fwVersion': b'0TD23N6HGXD00\x00',
                          'logging': False,
                          'request': [b'>\x00', b'"\xf1\x82'],
                          'responseAddress': 2024,
                          'subAddress': 0},
                         {'address': 2017,
                          'brand': 'subaru',
                          'bus': 1,
                          'ecu': 'transmission',
                          'fwVersion': b'DSG2G16XXH049NS6',
                          'logging': False,
                          'request': [b'>\x00', b'"\xf1\x82'],
                          'responseAddress': 2025,
                          'subAddress': 0},
                         {'address': 2016,
                          'brand': 'volkswagen',
                          'bus': 1,
                          'ecu': 'engine',
                          'fwVersion': b'\xf1\x87391S3-08AF0\xf1\x820TD23N6HGXD00\x00',
                          'logging': False,
                          'request': [b'"\xf1\x87\xf1\x89\xf1\x82'],
                          'responseAddress': 2024,
                          'subAddress': 0},
                         {'address': 2017,
                          'brand': 'volkswagen',
                          'bus': 1,
                          'ecu': 'transmission',
                          'fwVersion': b'\xf1\x8795441-2BGJ0\x00\xf1\x89D121049\x00\x00\x00\xf1\x82DSG2G16XXH049NS6',
                          'logging': False,
                          'request': [b'"\xf1\x87\xf1\x89\xf1\x82'],
                          'responseAddress': 2025,
                          'subAddress': 0}],

* Update values.py to add missing comma

Added missing comma to Line 1659 to fix previous new firmware additions for 2023 Kia Niro Hybrid

* Update selfdrive/car/hyundai/values.py

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-03-20 13:28:52 -07:00
Luqi Pan fa01a8e6b3 Add fwd camera value for 2023 GV60 Advanced (#27617) 2023-03-20 13:24:41 -07:00
Erich Moraga 744f1e4f57 Add missing CAMRY_TSS2 engine & fwdCamera f/w (#27619)
`ChromeNinja#0001` 2023 Camry ICE  DongleID/route a9c072de54f9194d|2023-03-17--17-24-56
2023-03-20 13:22:50 -07:00
Lee Jong Mun e5069058f0 Kia: add missing Korean EV6 fwdCamera FW (#27621)
* add EV6 kor camera fw

* Update selfdrive/car/hyundai/values.py

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-03-20 13:21:59 -07:00
tonzy74 bfbfdb2851 Kia: Sorento 2021 support (#27623)
* Update values.py

* Update selfdrive/car/hyundai/values.py

* update docs

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-03-20 13:18:07 -07:00
koch-cf ae423a6868 GM: Buick LaCrosse 2017-19 support (#27332)
* Added Buick LaCrosse 2017

* Added Buick LaCrosse as candidate

* Added Buick LaCrosse CAR_INFO and Fingerprint

* Added Buick LaCrosse to non_tested_cars

* Added Buick LaCrosse

* Updated number of supported cars to 237

* Added ACC and LKAS description to Buick LaCrosse

* Updated CAR_INFO for Buick LaCrosse

* Added the Escalade which was recently updated

* Update selfdrive/car/gm/values.py

Suggested fingerprint by @sshane

Co-authored-by: Shane Smiskol <shane@smiskol.com>

* Premium is a trim with ACC. Use package name instead

* lacrosse custom FF;
fit info:
describe(steer_offsets) = DescribeResult(nobs=1649402, minmax=(-0.7127894163131714, 5.3997602462768555), mean=3.3090523060153645, variance=0.3130325564084465, skewness=-1.5986155151533736, kurtosis=8.18810418298873)
Samples: 1357787
Regularizing...
Regularized samples: 1140
speed: DescribeResult(nobs=1140, minmax=(8.478170424241286, 35.837870224662446), mean=27.888804767013475, variance=34.16742353763829, skewness=-1.068587303119431, kurtosis=0.6193071765927134)
angle: DescribeResult(nobs=1140, minmax=(-21.057768565637094, 28.516874490999708), mean=-0.4328602593886506, variance=43.19046813273241, skewness=0.001966426701503317, kurtosis=0.20547357649038434)
steer: DescribeResult(nobs=1140, minmax=(-0.8432471203007578, 0.9634959333674695), mean=-0.021981142946747863, variance=0.20152217060233915, skewness=0.03202313890158864, kurtosis=-1.2318826088567174)
Performing fit...
Fit: [5.85397825e-01 3.27650818e-01 4.60531117e-03 1.32307599e+01
 1.37194709e-01 1.33099557e-01 6.14782304e-02]
ANGLE_COEF = 0.58539783
ANGLE_COEF2 = 0.32765082
ANGLE_OFFSET = 0.00460531
SPEED_OFFSET = 13.23075991
SIGMOID_COEF_RIGHT = 0.13719471
SIGMOID_COEF_LEFT = 0.13309956
SPEED_COEF = 0.06147823
MAE old 0.2098, new 0.0309
STD old 0.1021, new 0.0273
deg 00-03:457, deg 03-06:258, deg 06-09:218, deg 09-12:132, deg 12-15:62
deg 15-18:6, deg 18-21:4, deg 21-24:1, deg 24-27:0, deg 27-30:2
deg 30-33:0, deg 33-36:0, deg 36-39:0, deg 39-42:0, deg 42-45:0

mph 10-15:0, mph 15-20:1, mph 20-25:18, mph 25-30:12, mph 30-35:30
mph 35-40:26, mph 40-45:52, mph 45-50:54, mph 50-55:73, mph 55-60:86
mph 60-65:204, mph 65-70:228, mph 70-75:179, mph 75-80:176, mph 80-85:1
mph 85-90:0,

* Update routes.py

* remove from non tested routes

* use torque controller

* update docs

* update releases

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
Co-authored-by: Tim Wilson <twilsonco@gmail.com>
2023-03-20 13:10:19 -07:00
Adeeb Shihadeh 5e269b25c4 plotjuggler: update controls mismatch layout 2023-03-18 20:03:00 -07:00
Dean Lee 529ba41825 cabana: display zoom range while dragging rubber-band selection (#27620) 2023-03-18 14:34:11 -07:00
Harald Schäfer 4718fa5748 Bump laika (#27618)
* Laika on master

* use constellation id
2023-03-17 16:39:44 -07:00
Dean Lee 741d26b025 cabana: set min-max values from size when creating a new signal. (#27589) 2023-03-17 16:18:38 -07:00
Adeeb Shihadeh 455d76cdb6 manager: log time with exit param (#27615)
* manager: log time with exit param

* fix double brackets
2023-03-17 16:17:42 -07:00
Dean Lee d8a55de166 ui: remove lupdate warnings: "Qualifying with unknown namespace" (#27616) 2023-03-17 16:14:43 -07:00
Dean Lee 74db5a4b42 cabana: group CAN events by message id to reduce the time complex from O(N) to O(1) (#27601)
* refactor streams

* helper function xLessThan

* fix fill gaps
2023-03-17 10:16:14 -07:00
Shane Smiskol 57c4d78869 Toyota: add 2023 RAV4/RAV4 Hybrid as dashcam (#27609)
* test out lta message

* correctly send

* percentage is percentage driver isn't overriding

* closer to stock system

* should be able to send LTA at 100hz, counter is the same as LKA

* small amount of torque towards desired

* Offset commanded torque correctly

* Too little torque

* use car's SETME's

* Revert "use car's SETME's"

This reverts commit c88856969995f97cc5ec4e2b24a5cc4e3ef4721a.

* try cutting steer every second

* Didn't seem to matter

This reverts commit 6923498b2a9eed8beb3998f441899f1df4948f6f.

* steer to 0

* let packer set counter

* add for camry

* log steer faults

* comments

* bump opendbc

* add opParams

* add lta safety

* set safety param

* fix torque control bug

* bump panda

* fix missing signal

* [experiment] apply some rate limiting and anti-windup

* no faults, clip to 90 deg, decent torque blending

* clean up blending

* toyota angle rate limits

* use std angle limits

* assert we only add angle control to TSS2 cars

* clean up carcontroller a bit

* space space

* bump opendbc

* clean up toyotacan from opendbc change

* bump panda

* will tests run?

* steer at zero

* refactor angle to use LatControlPID with zero gains

* stop some faults and tuning

* possibly fix integral wind up at max torque

* Add 2023 rav4

* limit torque inside EPS when overriding (no huge windup in edge cases when overriding)

* fix wind up issue after turns (or prolonged saturation)

* this doesn't work that well

* try these limits

* try this

* log the angle!

* global variable

* Apply suggestions from code review

* clip angle to 3 m/s/s

* some tolerance for roll

* raise limits a bit

* bumppanda

* fix faults

* still not good

* offsetting causing hugging?

* Revert "offsetting causing hugging?"

This reverts commit a42ec0b772ed74a1fd54b7fef2e7c275a3e8333b.

* reduce kp

* class var not needed

* limit up angle delta

* fix saturation check

* feedforward includes offset

* some threshold for roll

* bump panda

* surely we don't need this

* test stuff

* Toyota: Add FW for 2023 RAV4 Hybrid (#27494)

* Toyota: Add FW for 2023 RAV4 Hybrid

* Set RAVH_TSS2_2022 to use angle SteerControlType

* bump panda

* remove extras

* Revert "remove extras"

This reverts commit 87378e734915c107f57f99a5feef4dcb2b2a9a37.

* no max angle limit for now

* add as separate platforms

* remove debug scripts

* revert to master

* remove these FW versions from 2022

* dashcam these cars :(

* fix test

* interface

* add to untested routes

* never send torque with LTA cars

* fix values

* clean up controlsd

* reset lat control files

* use the car param

* add to params

* bump panda to master

* Update selfdrive/car/toyota/carcontroller.py

* don't set torque params if angle control (fixes controlsd bug)

* reset controlsd

* keyword

* in another pr

* simplify test

* rm line

* Update selfdrive/car/toyota/tests/test_toyota.py

---------

Co-authored-by: crispbee <84819466+crispbee@users.noreply.github.com>
2023-03-17 00:03:21 -07:00
Shane Smiskol 2f95148a67 bump panda (#27612) 2023-03-16 23:16:11 -07:00
Kay Oh b5198f99ea Add missing FW for 2022 (2023MY) Hyundai IONIQ 5 (#27590)
Update values.py

Korean Ver.
2023-03-16 23:08:51 -07:00
Harald Schäfer 204f7d8623 Ttff logs (#27610)
* ttff in logs

* More meta info

* cleanup

* passess tests

* unused import

* fix linting

* ttff of 0 is invalid

* ref commit

* bump cereal

* Update ref_commit

* sort ephem status list

* sort ephem status list

* update ref
2023-03-16 22:09:05 -07:00
YassineYousfi b0ba79451e upgrade to torch 2.0 cuda 11.8 (#27611)
forgot to lock
2023-03-16 21:09:21 -07:00
YassineYousfi 4208b74ed8 update to torch 2.0 and cuda 11.8 (#27608)
* wip: update to torch 2.0

* update opencv
2023-03-16 19:04:04 -07:00
Adeeb Shihadeh 4cff94366f Revert "LAIKAD: TTFF, and ephemeris statuses in logs (#27591)"
This reverts commit 95216de591.
2023-03-16 19:01:45 -07:00
Harald Schäfer 95216de591 LAIKAD: TTFF, and ephemeris statuses in logs (#27591)
* ttff in logs

* More meta info

* cleanup

* passess tests

* unused import

* fix linting

* ttff of 0 is invalid

* ref commit

* bump cereal
2023-03-16 17:00:54 -07:00
Saber422 87f3a658a7 VW MQB: Add FW for 2022 Škoda Kodiaq (#27602)
@jyoung8607 I try to do this joy better
I setup my C3 on this car to get information to merge this FPV2
The route name is 0bbe367c98fa1538|2023-03-16--11-41-19--2

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-03-16 15:03:22 -07:00
Oxygen 61f25b5b95 Firmware version for TOYOTA Camry 2.0G, China built 2022.07 (#27558)
Update values.py

Firmware version for Carmy 2.0G, China Build 2022.07

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-03-16 14:48:29 -07:00
martinl 0d1e272b91 Subaru: Add 2019 Forester FPv2 (#27500)
* Subaru: Add 2019 Forester FPv2

* Update selfdrive/car/subaru/values.py

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-03-16 14:32:22 -07:00
Shane Smiskol fe358102f2 test: fix Honda and Hyundai tests (#27606)
test honda and hyundai
2023-03-16 14:31:55 -07:00
Saber422 cb5573cbfd VW MQB: Add FW for 2022 Skoda Kodiaq 1.5TSI (#27489)
* VW MQB: Add FW for 2022 Skoda Kodiaq 1.5TSI

carVin': 'TMBJB9NS3N8051692'

* alphabetical order

* add to docs

---------

Co-authored-by: Cameron Clough <cameronjclough@gmail.com>
Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-03-16 14:25:31 -07:00
klaw73 d5dfd3f1a6 Add missing FW for 2020 Lexus NX Hybrid (#27565)
* Added fw for 2020LexusNXH

* Added fw for 2020LexusNXH

* Add fw to 2020Lexus NXH
2023-03-16 13:38:02 -07:00
freddiebd a11a5d6231 VW MQB: Add FW for 2016 Golf Mk7 (#27581) 2023-03-16 13:34:52 -07:00
Harald Schäfer 5c38392785 Laikad: always return msg (#27599)
* always return msg

* always return msg

* Not all qcom constellations are understood

* call error error
2023-03-16 13:29:02 -07:00
kevinsdev e6c514eb72 Added firmware for 2021 Lexus NX Base (#27604)
* Update values.py

Added my 2021 Lexus NX 300 Base

* Update values.py

Added 2021 Lexus NX Base
2023-03-16 13:24:22 -07:00
Harald Schäfer 719901b57c Bump laika (#27605)
* bump laika

* Update ref_commit
2023-03-16 13:06:30 -07:00
Adeeb Shihadeh c2ec18cb71 bump panda 2023-03-16 10:43:22 -07:00
Robbe Derks d26d8b3ba9 Improve OX frame timing jitter (#27582)
* frame timing script

* enable vsync output and improve fsin tracking

* increase measurement time

* fix python linting

---------

Co-authored-by: Comma Device <device@comma.ai>
2023-03-16 10:59:27 +01:00
Cameron Clough 57d10a26e7 fix tabulate types (#27598)
fix types for tabulate
2023-03-15 20:58:08 -07:00
Harald Schäfer 38cb42f76a LaikaD new cache version (#27596) 2023-03-15 20:26:19 -07:00
Harald Schäfer 896fa029f9 Laikad: cleanup time range holder (#27595)
* cleanup time range holder

* update

* unused import

* unused import

* unused import

* bump laika
2023-03-15 20:06:29 -07:00
Harald Schäfer 629e5f6bf2 Fix qcom laika caching and test (#27594) 2023-03-15 15:16:47 -07:00
Adeeb Shihadeh 9a6bcba741 UI: remove spammy CameraView log 2023-03-15 14:34:33 -07:00
Dean Lee f00c108acb cabana: eliminate deep copy of events in live stream mode (#27588) 2023-03-15 10:54:22 -07:00
Harald Schäfer 153ffa3f68 Sat info from ublox (#27526)
* squashed

* bump cereal
2023-03-15 01:21:18 -07:00
Harald Schäfer 5c70482761 Use structs in laika (#27585)
* doesnt crash

* New cacher

* unused import

* help linter

* Annotate list

* print error

* fix caching bugs

* wrong name

* small fixes

* fix sum

* wrong brackets

* fix tests

* update ref

* bump submodules
2023-03-15 00:02:56 -07:00
Adeeb Shihadeh 2749205b4a allow running amp config script standalone (#27587)
Co-authored-by: Comma Device <device@comma.ai>
2023-03-14 20:55:41 -07:00
Shane Smiskol e2f4a82c03 Add CAN fingerprint to qlog (#27574) 2023-03-14 14:00:39 -07:00
Dean Lee d5375af2f5 ui: auto detect available streams (#27470)
* auto detect available streams

* no switch if wide cam not available

* clear frames before getAvailableStreams

* warning

* clear at same time

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2023-03-14 13:59:22 -07:00
Adeeb Shihadeh 39cf8c6694 only run rawgpsd without a ublox (#27577) 2023-03-14 13:31:49 -07:00
Dean Lee 696cbb3e24 cabana: fix incorrect current ts in live stream mode (#27578) 2023-03-14 11:31:57 -07:00
Willem Melching 0afd3bab34 cabana: DBCManager only expose methods/signals through MessageId (#27540) 2023-03-14 11:31:04 -07:00
Willem Melching b591b0c764 cabana: show signal values with consistent number of digits (#27556) 2023-03-14 11:29:00 -07:00
Harald Schäfer d75ee19def Only trust locationd for nav (#27579)
* Only trust locationd for nav

* unused var
2023-03-14 09:25:09 -07:00
Shane Smiskol 4692cf7d1c Chrysler Pacifica 2018: add missing CAN fp (#27576)
new pacifica FPs
2023-03-13 17:07:42 -07:00
Adeeb Shihadeh 17b71b477e plannerd: add frameId to uiPlan (#27573)
* plannerd: add frameId to uiPlan

* update refs
2023-03-13 15:30:38 -07:00
Jason Young 9ecf3e7c32 VW PQ: Message corrections for ACC_GRA_Anzeige (#27572)
* VW PQ: Correct message name for ACC_GRA_Anzeige

* bump opendbc
2023-03-13 14:28:45 -07:00
Dean Lee d09a9a08fc cabana: fix hang on scrubbing in zommed chart (#27568) 2023-03-13 10:25:16 -07:00
AlexandreSato 3eb74d805a Update Directory Structure (#27569)
* Update Directory Structure

Update directory structure to the latest commits [ sensord: move to system/ (#27531) ,  loggerd: move to system/ (#27534) , ubloxd: move to system/ (#27536) ].

* Update README.md

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2023-03-13 10:24:30 -07:00
Jason Wen 9f2a0080c0 gpxd: fix upstream conflict 2023-03-12 17:11:02 -04:00
Jason Wen b475e28087 Merge remote-tracking branch 'upstream/commaai/openpilot/master'
# Conflicts:
#	cereal
#	panda
#	selfdrive/car/hyundai/interface.py
#	selfdrive/car/toyota/carcontroller.py
2023-03-12 14:52:12 -04:00
YassineYousfi e146bb1a96 update modeld/models readme (#27564)
* update readme with new model design

* typo

* space
2023-03-11 16:26:39 -08:00
Willem Melching fc44ed63d7 cabana: extend max chart range to 30 minutes (#27555) 2023-03-11 12:47:53 -08:00
Dean Lee dc31c50aa7 cabana: split events into chunks and processed concurrently (#27562) 2023-03-11 12:47:34 -08:00
Erich Moraga eb67deef92 Add missing LEXUS_ESH_TSS2 engine f/w (#27506)
`awesome-fu#6174` 2019 Lexus ES300h  DongleID/route e5fc06c3b27fb519|2023-03-05--17-21-28
https://github.com/commaai/openpilot/issues/27501
2023-03-10 15:43:18 -08:00
protonchang dc5a65049e Update CHT translation (#27530)
* Update zh-CHT translation

* Update zh-CHT translation

* Update zh-CHT Translation

* Update to resolve translation consistency issue

* Update zh-CHT translation
2023-03-10 15:39:16 -08:00
Willem Melching 0fb8e97480 cabana: use ID as NEW_MSG_ suffix (#27554)
* cabana: use ID as NEW_MSG_ suffix

* start suffix at _1
2023-03-10 13:29:11 -08:00
Willem Melching ee615a3077 cabana: create autosave file when there are unsaved changes (#27542) 2023-03-10 11:21:34 -08:00
Willem Melching c32a45b5b5 cabana: autocomplete signal names (#27553) 2023-03-10 11:20:59 -08:00
Willem Melching e4d591ecbf cabana: refactor Msg and Signal into dbc.cc (#27552) 2023-03-10 11:19:37 -08:00
Harald Schäfer 7d32554fe3 Parse GLONASS ephemeris from mystery satellites (#27541)
parse unknown glonass
2023-03-09 18:48:32 -08:00
AlexandreSato 572eba78a6 Multilanguage: update pt-BR translations (#27546)
update pt-BR translations
2023-03-09 17:17:22 -08:00
Willem Melching 5b3a72267c cabana: fix changing message size (#27544)
* cabana: fix changing message size

* fix naming signal untitled
2023-03-09 13:14:21 -08:00
Willem Melching b79f4594c4 cabana: scrub by shift dragging on graph (#27545)
* cabana: scrub by shift dragging on graph

* not while live streaming
2023-03-09 13:14:06 -08:00
Dean Lee b5d29b550c cabana: get icon size from QStyle::PM_SmallIconSize (#27548) 2023-03-09 13:13:46 -08:00
Dean Lee 9b28897f09 replay: fix incorrect format string in seekTo (#27547) 2023-03-09 13:13:29 -08:00
Harald Schäfer 75eaca3cf3 Update amplifier config (#27443)
* update tizi amplifier

* Update attenuation
2023-03-09 11:12:42 -08:00
Adeeb Shihadeh c97911dbad ubloxd: move to system/ (#27536)
* ubloxd: move to system/

* more fixes

* add missing sconscript

* fix valgrind tests

* uncomment
2023-03-08 16:11:18 -08:00
Harald Schäfer 231e9a950d Pigeond: Request sat info msgs (#27529)
request sat info msgs
2023-03-08 13:07:33 -08:00
Jason Young 3ff8fc110c VW MQB: Add FW for 2017 Škoda Kodiaq (#27532)
* VW MQB: Add FW for 2017 Škoda Kodiaq

* retry CI
2023-03-08 13:06:17 -08:00
Adeeb Shihadeh 94eb215980 loggerd: move to system/ (#27534) 2023-03-08 11:20:49 -08:00
Adeeb Shihadeh 6f40f0d442 sensord: move to system/ (#27531)
* sensord: move to system/

* add gitignore to releaes files
2023-03-08 10:56:54 -08:00
Harald Schäfer ce900f34d0 Ubloxd: subframe 0 is not valid (#27528)
No 0 strings
2023-03-07 20:56:39 -08:00
Adeeb Shihadeh 38eea89484 bump panda 2023-03-07 20:37:40 -08:00
Adeeb Shihadeh 5326c14b43 bump panda (#27510)
* bump panda

* fix mypy

* bump panda
2023-03-07 16:17:23 -08:00
Adeeb Shihadeh f7c15c1708 pandad unit tests (#27516)
* pandad unit tests

* only one

* in bootstub

* run in jenkins

* phone only
2023-03-07 11:05:20 -08:00
Jason Young 186c48137a VW MQB: Škoda Fabia Mk4 (#27520)
* VW MQB: Škoda Fabia Mk4

* typo
2023-03-07 10:39:36 -08:00
Dean Lee ddcafeb7dc cabana: improve the performance of updating TreeView in real-time. (#27517) 2023-03-07 10:08:33 -08:00
Adeeb Shihadeh ebd25b8a7d test_power_draw: add header to output table (#27511)
* test_power_draw: add header to output table

* units
2023-03-06 16:13:29 -08:00
George Hotz 3892c60980 tinygrad: bump to 0.5 (#27505)
* bump tinygrad to 0.5

* update release files

* ref commit + bump tinygrad

* save 220 mW

---------

Co-authored-by: Comma Device <device@comma.ai>
2023-03-06 15:50:28 -08:00
Shane Smiskol e729f5b763 Remove dashcam override param (#27509)
* remove dashcam override

* sort

* remove ford from segments
2023-03-06 15:36:39 -08:00
Cameron Clough fd2e03decf Ford: add missing Explorer FW (#27502)
`1493c38de09a381a|2023-03-05--21-10-07--0`

VIN: `1FMSK8FH6LGB17698`
2023-03-05 18:44:56 -08:00
Dean Lee c2018d6bf2 cabana: use a segment tree to solve range queries in O(log n) time complexity (#27498) 2023-03-05 16:03:44 -08:00
Dean Lee 2de085d39d cabana: faster copy events (#27499) 2023-03-05 15:55:22 -08:00
Shane Smiskol 703f5e34ba bump panda (#27497) 2023-03-04 02:18:03 -08:00
Harald Schäfer f17ac166a3 Enable dmoji crosshairs in gray when not enabled (#27491)
* try

* add fade back

---------

Co-authored-by: ZwX1616 <zwx1616@gmail.com>
2023-03-03 17:48:51 -08:00
Saber422 a7d9085bca VW MQB: Add FW for 2019 Skoda Superb (#27490)
* VW MQB: Add FW for 2019 Skoda Superb

'carVin': 'TMBJD9NP0K7067520',

* sort alphabetically

---------

Co-authored-by: Cameron Clough <cameronjclough@gmail.com>
2023-03-03 16:19:36 -08:00
Dean Lee 6c4320559a replay: fixed the status is always "loading" if there is no carState in events (#27481) 2023-03-02 22:30:12 -08:00
Shane Smiskol 3ab8645d3a uiPlan: add planned acceleration field (#27484)
* add accel

* bump cereal

* Update ref_commit

---------

Co-authored-by: Bruce Wayne <harald.the.engineer@gmail.com>
2023-03-02 20:11:24 -08:00
Shane Smiskol 9245335e8c Car docs: add Toyota Camry 2023 (#27483)
* We support 2023 Camry

* update docs
2023-03-02 16:44:58 -08:00
Dean Lee afc24f08d6 cabana: fix wrong tooltip (#27480) 2023-03-01 21:54:07 -08:00
Kurt Nistelberger cb2a53ae80 laikad: fix qcom without internet (#27468)
move week

Co-authored-by: Kurt Nistelberger <kurt.nistelberger@gmail.com>
2023-03-01 19:01:08 -08:00
Miniz199922 437ca99fcd Chrysler: Add missing FP for 2020 Jeep Grand Cherokee (#27464)
Need to add fingerprint 1538: 8 for my 2020 jeep grand cherokee. Tested and working
2023-03-01 16:56:01 -08:00
Jason Young 1483fc32dc VW MQB: Add FW for 2023 Volkswagen Tiguan (#27475) 2023-03-01 16:49:11 -08:00
humza2000 3fbdddb2fb Added new transmission firmware for Hyundai Sonata 2022 (#27456)
* Added new transmission firmware for Hyundai Sonata 2020-2023

b'\xf1\x00T02601BL  T02900A1  VDN8T25XXX900NSCF\xe4!Y',
b'\xf1\x87954A02N060\x00\x00\x00\x00\x00\xf1\x81T02900A1  \xf1\x00T02601BL  T02900A1  VDN8T25XXX900NSCF\xe4!Y',

Dongle ID:  ba75a2db7d699895
Route: ba75a2db7d699895|2023-02-27--18-07-15

* Update selfdrive/car/hyundai/values.py

* we can clean these up

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-03-01 16:10:00 -08:00
Andrei Radulescu e6240d6ba2 VW MQB: Add FW for 2018 Škoda Kodiaq (#27460)
Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-03-01 16:01:39 -08:00
javenzy d50d8de637 Add China HONDA ACCORD HYBRID 2018 finger (#27462)
* Add China HONDA ACCORD HYBRID 2018 finger

Add finger to support China HONDA ACCORD HYBRID 2018,use ACCORDH model.

* remove FW for logging

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-03-01 16:00:08 -08:00
Shane Smiskol 7f10c736ab test_fw_query_on_routes.py: don't print FW for logging 2023-03-01 15:57:11 -08:00
koffee-bean be42193a61 Hyundai: add missing 2022 Ioniq 5 fwdCamera version (#27471)
Co-authored-by: srivastavasid91@gmail.com <fdr9ngu@rng.rkm6QBQ>
2023-03-01 15:39:38 -08:00
Iamz 9ce26b2011 Add missing Thai translations and remove obsolete messages. (#27469)
Update Thai translations
2023-03-01 15:35:28 -08:00
Adeeb Shihadeh d6abf1d572 No disengage on gas by default (#27472) 2023-03-01 13:38:49 -08:00
Dean Lee 85a37d276c cabana: recalc y-axis label width after unit change (#27466)
recalc width
2023-02-28 23:41:28 -08:00
Kurt Nistelberger b688122042 laikad: reduce min satellite number (#27440)
* bump laika

* update laikad tests

* update refs

* bump laika

* update refs

---------

Co-authored-by: Kurt Nistelberger <kurt.nistelberger@gmail.com>
2023-02-28 21:40:54 -08:00
Dean Lee 8d317ef51c cabana: press F11 to toggle fullscreen (#27455) 2023-02-28 15:50:30 -08:00
Dean Lee ce3e9d5649 cabana: fix gaps in step line between chunks (#27447) 2023-02-27 15:51:23 -08:00
Lee Jong Mun dc39a87543 Multilang: kor translation update (#27445) 2023-02-27 15:50:32 -08:00
Adeeb Shihadeh 28a9f41d56 Update check-submodules.sh 2023-02-27 13:49:06 -08:00
ZwX1616 c995acda7c driverview: use static icon (#27448)
* fix alpha

* prerender
2023-02-28 03:01:55 +08:00
Jason Wen 1635a176b7 Subaru: brake light signal fix 2023-02-27 13:57:07 -05:00
Shane Smiskol 581fd62d26 steer limits: rename common dist to meas function (#27453)
* rename function

* make a wrapper function (ford uses dynamic up/down limits

* make two functions consistent

* make torque function convert to int
2023-02-26 17:32:52 -08:00
Dean Lee 78116029d3 cabana: replace hardcoded margins, colors, spacing with values from style. (#27449)
replace hardcoded margins, colors, spacing

improve performance of MessageBytesDelegate
2023-02-25 14:27:18 -08:00
Robbe Derks c80bc58381 bump panda 2023-02-24 17:01:12 +01:00
Dean Lee 608ac253df cabana: right align signal values & fixed text overflow (#27444)
right align the signal values
2023-02-23 20:02:46 -08:00
Cameron Clough f64fa07b0a setup: set download timeout (#27441) 2023-02-23 19:46:06 -08:00
Cameron Clough 79e6910106 setup: detailed error messages (#27429)
* setup: specific error state for non-executable file

* Result -> DownloadResult

* complete -> finished

* rename widgets to be more consistent

* fix typos

* fix setCurrentIndex

This appears to have different behaviour on device than on PC (off by
one)

* load fonts

* copy

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>

* Revert "load fonts"

This reverts commit e8756598ed99aea39ef5721453e97920a494051c.

* font family

* undo

* less widgets more better

* font size

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2023-02-23 19:45:48 -08:00
Shane Smiskol d5688ae49f Angle control: fix limiting bug (#27428)
* fix steer up bug

* Update ref_commit
2023-02-23 16:18:32 -08:00
Adeeb Shihadeh 7a3b3e8b56 better main off alert (#27442) 2023-02-23 15:01:10 -08:00
Dean Lee dc4ebeb29c cabana: added a new series type to chart: step line (#27422)
* add step line series

* create buttons in createToolButtons

* add inline function clearTrackPoints

* do not show tooltip if series is invisible

* use QActionGroup
2023-02-23 10:45:59 -08:00
Willem Melching a5644faa3f cabana: show units (#27433)
* show units on chart y axis

* show in signal list

* show in historyview

* use clear()
2023-02-23 10:45:13 -08:00
Willem Melching 4e0a3aa0d5 cabana: show bus in own column (#27434) 2023-02-23 10:44:53 -08:00
Adeeb Shihadeh 7b43a69089 Update RELEASES.md 2023-02-22 21:04:40 -08:00
Dean Lee c1be6d945b cabana: dispaly current FPS & cached minitues on statusbar (#27430)
dispaly current FPS & cached minitues on statusbar
2023-02-22 20:44:33 -08:00
Cameron Clough 90db46e775 setup: write installer URL to tmpfile (#27426)
* setup: write installer URL to tmpfile

* missed ptr type
2023-02-22 17:26:37 -08:00
Shane Smiskol b00eb57bb7 Ford: adjust curvature rate limits (#27427)
* fix up

* Update ref_commit
2023-02-22 15:59:07 -08:00
Adeeb Shihadeh 9d64fb2d1a improved fan malfunction detection (#27405) 2023-02-22 14:11:29 -08:00
Kurt Nistelberger 6b4ac801e7 laikad: use new cache param (#27404)
* add backward compatibility

* rename laikad cache file

* rm and update

---------

Co-authored-by: Kurt Nistelberger <kurt.nistelberger@gmail.com>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2023-02-22 14:11:04 -08:00
Shane Smiskol f2982340f8 Ford: adjust curvature rate limits (#27423)
* Update values.py

* Update values.py

* make consistent

* Update ref_commit
2023-02-22 14:09:16 -08:00
Dean Lee e0a6074d00 cabana: remove setUpdatesEnabled and setLabelFormat after updateAxisY (#27421) 2023-02-22 11:45:05 -08:00
Dean Lee 58cd96536b cabana: small improvements to SignalView (#27419) 2023-02-22 11:44:53 -08:00
Adeeb Shihadeh 72539fa177 AGNOS system reset: handle ABL reset (#27418)
* AGNOS system reset: handle ABL reset

* no more tapping

* eta
2023-02-21 21:34:02 -08:00
Jason Wen d1f7bb6bb5 Pre-Global Subaru: counter fix and disable dashcamOnly (#119)
Pre-Global Subaru: counter fix and remove dashcam only

* Revert legacy es_lkas counter autogeneration
2023-02-21 23:48:09 -05:00
Jason Wen 038afae028 mapd: use correct path 2023-02-21 22:53:13 -05:00
huifan0114 f381b69401 Škoda: add missing FW versions for 2019 Kodiaq (#27410)
* Update values.py

* remove duplicate

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-02-21 19:14:19 -08:00
Adeeb Shihadeh 1504c10760 GM: revert steering limits update (#27413)
* Revert " GM: update steering limits (#27331)"

This reverts commit 1cdf80003d.

* update refs

* bump panda
2023-02-21 15:48:10 -08:00
Adeeb Shihadeh 2008332bd4 GM: revert custom Bolt torque tune (#27403)
* Revert "GM: cleanup torque feedforward function (#27347)"

This reverts commit 8c099dd4e5.

* Revert "Chevrolet Bolt: Non-linear torque tune (#27344)"

This reverts commit e49748d571.

* update refs
2023-02-21 15:27:48 -08:00
Jason Wen 6b5ef45bdf mapd: cache downloaded dependencies 2023-02-21 17:30:43 -05:00
Jason Wen f7b0250652 GAC: params init 2023-02-21 01:22:45 -05:00
Jason Wen 0ce258612b move-fast: v-tsc fix 2023-02-20 22:48:51 -05:00
Shane Smiskol 3c66106539 Chrysler Pacifica Hybrid 2017: add missing CAN FP (#27408)
add missing 840: 8
2023-02-20 18:02:52 -08:00
Adeeb Shihadeh ea419c5764 add 'remount device' to permanent calibration invalid alert (#27407) 2023-02-20 16:29:17 -08:00
Shane Smiskol dff054d4df Ford: filter steering pressed (#27123)
* ford steering pressed filter

* raise to 1.0

* Update ref_commit
2023-02-20 16:13:01 -08:00
Shane Smiskol 79749a306c GM: add longitudinal delay to Escalade (#27406)
* add delay to escalade too

* order
2023-02-20 16:12:11 -08:00
Shane Smiskol 14d44e4444 GM: remove redundant CarController class variable (#27280)
* clean up

* fix check

* only set ts_nanos on update
2023-02-20 15:33:15 -08:00
Eric Brown c3ba2a025b GM: detect unplugged or missing radar (#27245)
* Add flashed Volt fingerprint

* Add another fingerprint

* Detect radar header message

* dashcamOnly if ASCM vehicle with radar unavailable

May be able to change this in the future to OP long off with experimental long available

* no submodule update

* Revert minEnableSpeed

* combine into one fingerprint

* Don't use GM radar DBC

Co-authored-by: Shane Smiskol <shane@smiskol.com>

* unused

* add new FP

* update docs

* use_off_car_defaults

use_off_car_defaults

* update docs

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-02-20 15:28:32 -08:00
Webomcar 500b1b4a5c Add missing FW for Toyota C-HR Hybrid 2020 (#27366)
* Update values.py

* Verified C-HR 2020 is TSS-P

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-02-20 15:23:42 -08:00
Dean Lee 4efd246bac cabana: improve UI & fix bugs (#27387)
* improve ui

* keep splitter size after msg changed

* no leading spaces allowed in msg filter and signal filter

* draw color byte AlignCenter

* always set as current index

* reduce chart flickers while resizing

* dispaly more info in tooltip for signal

* narrow combobox

* use &nbsp;

* typo

* private sigs,fix bugs

* merge  #27383

* no expanding after undo/redo

* gray color in tooltip

* clear current_msg_id before reset model

* dont call setmeesage if id is the same

* fix bugs

* cleanup

* dont fetch logs if invisible

* add new CenterWidget, make sure msg_id is always valid

* cache icons

* cleanup paint byte color

* merge #27385 implement sizeHint

* cleanup code

* fillrect if alpha>0
2023-02-20 14:16:30 -08:00
kaischiefer-srd e1051e5e5c Toyota: add engine FW for 2021 NX300 (#27326)
added engine fw for our 2021 NX300 F sport
2023-02-20 14:11:46 -08:00
Shane Smiskol 1bd15f00a7 Toyota: expand C-HR Hybrid model years (#27402)
we probably support 2021 too
2023-02-20 14:07:22 -08:00
Chris Hart ba3d3bd940 SANTA_FE_2022: add missing transmission FW (#27369)
* Added new fingerprints for updated SANTAFE_2022

* Update values.py

fixed missing comma that was breaking build

* Revert "Update values.py"

This reverts commit 58837eadd4cfb57ec56a45592c21b251e6c52957.

* Revert "Added new fingerprints for updated SANTAFE_2022"

This reverts commit 3bec6e0196e9fcac83a34f79b7b860f2e24aa763.

* add FW, remove radar FW from long query

---------

Co-authored-by: Chris Hart <chris@creyonbio.com>
Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-02-20 14:03:42 -08:00
Dean Lee 10ed70d952 cabana: show command's text in statusbar (#27398) 2023-02-20 13:52:16 -08:00
Adeeb Shihadeh bd469d7c54 bump panda 2023-02-20 13:33:06 -08:00
ntegan1 1f89afd140 cabana: missing includes (#27390) 2023-02-20 13:31:30 -08:00
Shane Smiskol 55da5175ae HKG: update Santa Cruz model years (#27401)
2021 Santa Cruz doesn't exist
2023-02-20 13:29:37 -08:00
Adeeb Shihadeh 927289cda8 increase fetch depth for release submodule check 2023-02-20 13:26:02 -08:00
Matt Crum 4918daaf5d Added FW for 2023 Hyundai Santa Cruz Limited (#27395)
* Update values.py

Added additional firmware version for Santa Cruz 1st Gen forward camera
Updated CAR.SANTA_CRUZ_1ST_GEN's information to include 2023 models

* Update values.py

added fwdRadar firmware version

* Update CARS.md

Updated to include 2023 Hyundai Santa Cruz
2023-02-20 13:25:46 -08:00
Jason Wen a20f07144b Hyundai CAN-FD: common PT bus function cleanup (#27397)
* Hyundai CAN-FD: common PT bus function cleanup

* use CP

* Update selfdrive/car/hyundai/hyundaicanfd.py

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-02-20 13:19:17 -08:00
Shane Smiskol c7cc36d9ee cabana: add window icon (#27109)
* add logos

* most zoomed in

* add alt

* slightly zoomed more

* add images

* add draft images

* best image

* not working

* 96px icon image to reduce compiled size

* remove from selfdrive assets

* fixes
2023-02-20 13:15:59 -08:00
Jason Wen 643fe3b7fa HKG: parse speed limit (#118)
HKG: parse speed limits
2023-02-20 02:58:57 -05:00
Jason Wen f3a44c1e3a HKG: add more int flags 2023-02-20 02:51:46 -05:00
Dean Lee 8e3cb0fb20 cabana: add qrc resource file (#27386)
* add qrc resource file

* remove export
2023-02-19 15:14:13 -08:00
Shane Smiskol 8d9f99b835 cabana: add space to help message (#27384)
add space
2023-02-18 21:48:13 -08:00
Jason Wen c1c03ff4c3 cereal: fix duplicate ordinals 2023-02-19 00:14:25 -05:00
Jason Wen 4b2ce89412 Merge remote-tracking branch 'upstream/commaai/openpilot/master'
# Conflicts:
#	cereal
#	selfdrive/ui/ui.cc
2023-02-18 23:52:21 -05:00
Jason Wen c9d784a0b9 ui: speedometer customization more init 2023-02-18 19:35:54 -05:00
Jason Wen 9881d1a6e4 ui: speedometer customization params init 2023-02-18 19:10:23 -05:00
Harald Schäfer 7acb4a94cc Update RELEASES.md 2023-02-17 20:12:31 -08:00
Harald Schäfer eb8bdc0026 MPC path in UI (#27380)
* 10s lat

* Full length MPC

* redfine N

* Leave controls the same for now

* Updates

* use long plan in lat plan

* interp plan

* simplergit add selfdrive/controls/plannerd.py selfdrive/controls/

* expand to 10s

* revert this

* fix linter

* vizualize

* fix long test

* typo

* cleanup

* compiles

* unused

* unused

* bump cereal

* bump cereal

* use model if no uiplanm

* update replay

* update ref commit

* bump cereal to master
2023-02-17 19:58:30 -08:00
Dean Lee ac0dbf74bc cabana: add support for load&save extra dbc info (#27203)
* support extra info

* support undo/redo

* fix undo/redo

* cleanup

* fix regexp

* refactor dbcmanager

* replace text in headerview

* fix binary::refresh

* cleanup

* use QRegularExpression

* add desc validation

* edit val description in table

* cleanup
2023-02-17 19:31:54 -08:00
Cameron Clough ce9fd785d5 Ford: add CarInfo for Plug-in Hybrids 2023-02-17 19:30:06 -08:00
Cameron Clough 7330466dff Ford Escape PHEV 2022 Fingerprint (#27382)
* Ford Escape PHEV 2022 Fingerprint

6cffc47c251aa36c|2023-02-17--18-17-14

VIN: 1FMCU0EZ0NUB76728

* include MY2022 in car info

* Update selfdrive/car/ford/values.py

Co-authored-by: Shane Smiskol <shane@smiskol.com>

---------

Co-authored-by: koffee-bean <srivastavasid91@gmail.com>
Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-02-17 19:12:15 -08:00
Shane Smiskol b6fd39856c HKG: simplify Ioniq car params (#27371)
* move PHEV to other ioniqs

* reverse if

* order

* order
2023-02-17 18:39:27 -08:00
Jason Wen 7fea5dc842 bump panda 2023-02-17 20:06:31 -05:00
Jason Wen 2830c020f6 Hyundai: Enhanced SCC (ESCC) Radar Interceptor support (#114)
* escc: wip

* finish up

* use new intflag

* bump panda
2023-02-17 18:33:14 -05:00
Jason Wen 32d50a6504 bump panda 2023-02-17 18:31:10 -05:00
Harald Schäfer 04fe6c4ec7 Expand lateral MPC to 10s (#27343)
* 10s lat

* Full length MPC

* redfine N

* Leave controls the same for now

* Updates

* use long plan in lat plan

* interp plan

* add new interp

* simplergit add selfdrive/controls/plannerd.py selfdrive/controls/

* expand to 10s

* revert this

* fix linter

* Update sconscripts

* fix test

* fix test

* fix test

* Revert "Update sconscripts"

This reverts commit 6e23c69dcebd5ed003e37e01921f6af7c31de0db.

* Dont import drive helpers

* better compile deps

* fix compile

* comment

* update replay

* Update plannerd time
2023-02-17 15:28:26 -08:00
Adeeb Shihadeh dad948983a chyrsler: add comment about radar parsing 2023-02-17 15:04:21 -08:00
Adeeb Shihadeh b9a01752fc bump version to 0.9.2 2023-02-17 14:13:22 -08:00
Jason Wen be037b31be bump panda 2023-02-17 15:07:17 -05:00
martinl 89f68bf0cb cleanup: remove nonexisting third_party includes (#27372) 2023-02-17 11:08:41 -08:00
Dean Lee 2c5e55ccdc cabana: attach messageid to tabdata (#27368) 2023-02-17 10:53:47 -08:00
Dean Lee 524f7079a9 cabana: add description for timeline color in help (#27375) 2023-02-17 10:35:50 -08:00
Jason Wen b2465c3494 Merge remote-tracking branch 'upstream/commaai/openpilot/master' 2023-02-17 01:26:38 -05:00
Shane Smiskol b2453d55c1 Hyundai: detect FCA feature (#27322)
* detect fca

* use value

* it will be from camera on camera acc cars

* Update ref_commit
2023-02-16 21:52:32 -08:00
Dean Lee 37adf5d3a6 cabana: simplify conversions between QVariant and QVector<QColor> (#27367) 2023-02-16 18:53:12 -08:00
Jason Wen 7934454088 Longitudinal: parse physical distance button (#113)
* Longitudinal: parse distance button from steering wheel

* missing gm signal
2023-02-16 20:57:07 -05:00
Shane Smiskol 5e0b281119 HKG: log AEB/FCW for Kia Ceed (#27364)
Ceed uses FCA
2023-02-16 16:09:11 -08:00
grekiki 202eb06a05 Carla simulator: set driver orientation (#27363) 2023-02-16 14:51:25 -08:00
Dean Lee 2510f78126 cabana: add online-help (#27349)
* add online helps

* typo

* remove duplicate 'too'

* show idle message:For Help, Press F1

* improve drawHelp

* fix color desc
2023-02-16 14:47:36 -08:00
Willem Melching 8772306467 cabana: fix events() call in AbstractStream::updateLastMsgsTo (#27360) 2023-02-16 10:34:42 -08:00
Willem Melching e6c02027d3 cabana: fix updating tabbar_ids on "Close Other Tabs" (#27362) 2023-02-16 10:34:18 -08:00
Shane Smiskol 2769b110e0 Fingerprint for Hyundai Santa Fe 2019 Europe (#26952)
* Fingerpint fur Hyundai Santa Fe 2019 Europe

* add version for transmission segment 092ef1cc055c6354|2023-01-05--17-49-21

* remove long

---------

Co-authored-by: sevdokim <se.evdokimov@gmail.com>
2023-02-15 19:42:56 -08:00
gregschueman d7ddf25899 2021 Hyundai Ioniq PHEV - additional engine fingerprint added (#27221)
* Update values.py

Addition of Hyundai 2021 Ioniq PHEV modeled on 2019 entry

* Update values.py

* Update values.py

* Update values.py

* Update values.py

* replace with shorter trans

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-02-15 19:21:36 -08:00
wowcat1234 4638d4b1a2 Add fingerprint for Hyundai Ioniq 22 limited HEV (#27334)
* Update values.py

* update for ioniq HEV 22

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-02-15 19:17:46 -08:00
Jason Wen 90ce7605c1 Hyundai: 2015-16 Genesis resume from standstill fix (#25579)
* Hyundai: 2015-16 Genesis resume from standstill fix

* Add comment

* Fix typo

* Merge both methods

* Add back the comment

* 20Hz not needed according to tester

* no new global state variable

* PCM's perspective: random counter -> random counter

* only send 5

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-02-15 17:33:04 -08:00
Ricky Gilleland b76795d7f0 GM: Escalade 2017 support (#27276)
* Initial 2017 Escalade values

* update docs/CARS.md

* revert back to v1 fingerprint & add test route

* revert bad merge

* update fingerprint

* update

* update

* Update selfdrive/car/gm/values.py

* Update selfdrive/car/gm/values.py

* no engine

* Try global tune

* pcm

* Driver Assist Package has ACC, and includes LKAS from previous package

* update docs

* add to releases

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-02-15 17:07:24 -08:00
Shane Smiskol 89934b35d0 Car interfaces: assert reasonable centerToFront range (#27356)
* assert reasonable centerToFront values

* comment

* fix Bolt centerToFront

* Update ref_commit
2023-02-15 16:27:00 -08:00
Shane Smiskol 48b059d367 CAN fingerprint script improvements (#27355)
* match online logic

* 0 and 2 are different buses. on gm, same address has different lengths

* match fingerprint_from_route
2023-02-15 15:59:23 -08:00
Shane Smiskol 2bc2dbfb70 process replay: fix hang 2023-02-15 15:55:08 -08:00
Shane Smiskol 5dde8f2c84 Write boardd param to continue startup (#27354)
disable at the bottom
2023-02-15 15:52:10 -08:00
Willem Melching 5078c91805 cabana: refactor message id from QString to struct (#27352)
* cabana: refactor message id from QString to struct

* fix tabbar

* fix findsimilarbits

* optimize hash function

* cleanup sorting

* use in updateLastMsgsTo
2023-02-15 12:39:03 -08:00
Adeeb Shihadeh 00513f1001 locationd: adjust GPS alive check for QCOM GPS (#27339)
* locationd: adjust GPS alive check for QCOM GPS

* update refs

* update refs
2023-02-15 11:28:47 -08:00
Dean Lee e4d0ee8716 cabana: cleanup code for charts (#27350) 2023-02-15 10:59:57 -08:00
Rob Chouinard d4c5b8d6f4 Allow Honda Nidec vehicles with comma pedal to drive at max speed. (#26902)
Without this Honda Nidec vehicles with the comma pedal will drive around 2 mph under the max speed.
2023-02-14 22:24:13 -08:00
Shane Smiskol 8c099dd4e5 GM: cleanup torque feedforward function (#27347)
no numpy
2023-02-14 22:06:23 -08:00
Jason Wen 0fd1cfbe56 mapd: Remove preloaded dependencies (#112) 2023-02-15 00:33:06 -05:00
Shane Smiskol c4b84783a0 Honda Bosch: gather available ECUs from camera (#27180)
* add flag

* actually use in fw_versions.py

* simpler

* not here

* Comment

* better name

* add param and block

* keys

keys

* block

* with a value

with a value

* add query for bosch PT bus

* different name

* fix

* .

* fix test

fix test

* add cloulogs

* mark as logging
2023-02-14 17:55:41 -08:00
Jason Wen 75a00af955 Merge remote-tracking branch 'upstream/commaai/openpilot/master'
# Conflicts:
#	cereal
#	opendbc
#	panda
2023-02-14 20:42:02 -05:00
Shane Smiskol f29e19cf42 FPv2: log responses from data collection queries (#27345)
* log responses from logging/debugging queries

* don't add logging FW to FW dict for fingerprinting

* flip?

* fine before

* log if extra in debug ecus

* clean up

* test extra ecus too

* Revert "test extra ecus too"

This reverts commit 8f7867844db95f48631348551551148bf504e37b.

* bump to master
2023-02-14 16:59:20 -08:00
Vivek Aithal e49748d571 Chevrolet Bolt: Non-linear torque tune (#27344)
* add non linear tune

* update refs

* rerun tests
2023-02-14 16:20:28 -08:00
Mitchell Goff 6f1d5edab8 Add osmnx to xx packages (#27342) 2023-02-14 14:32:08 -08:00
Adeeb Shihadeh 5af5f02ba8 better min enable speed alert (#27317) 2023-02-14 13:29:23 -08:00
Shane Smiskol 62b233369b HKG: log AEB/FCW for Kia Niro Hybrid 2021 (#27341)
Kia Niro Hybrid uses FCA too
2023-02-14 13:27:24 -08:00
Vivek Aithal 1cdf80003d GM: update steering limits (#27331)
* reduce steer down limit, driver allowance

* update refs

* update refs
2023-02-14 13:22:49 -08:00
Adeeb Shihadeh e7786738c4 Hyundai: temporarily remove Tucson FW that requires different tuning (#27340) 2023-02-14 13:14:32 -08:00
Shane Smiskol b3f327d273 HKG: log AEB/FCW for Optima G4 FL (#27337)
FL uses FCA
2023-02-14 12:51:24 -08:00
Willem Melching 286e42948e cabana: add keyboard shortcuts to binary view (#27338)
* cabana: add keyboard shortcuts to binary view

* typo

* whitespace

* keep signal highlighted
2023-02-14 10:46:29 -08:00
Dean Lee a6bf26f5eb cabana: fix two bugs in chart (#27336)
fix two bugs
2023-02-14 00:46:13 -08:00
Shane Smiskol b536b9c4c0 process replay: don't upload if diff doesn't exist (#27333)
* fail the replay, successfully print

* should still run

* debug

* outside?

* don't fail

* don't fail

* don't fail

* test

* test

* test

* try this now

* clean up, works!
2023-02-13 21:39:06 -08:00
Shane Smiskol 65a9843ff9 Hyundai: detect LFA HDA message (#27323)
* detect lfa message

* comment

* ?

* fix

* Update ref_commit
2023-02-13 21:12:13 -08:00
Dean Lee d5d19978ad cabana: add name validation when editing message (#27316)
* check duplicate name

* cant use ' untitled' as msg name

* const QString UNTITLED
2023-02-13 18:25:59 -08:00
Nelson Chen fe6dc7842e Make the latest month in releases.md consistent with 0-padding (#27330) 2023-02-13 17:06:43 -08:00
Jason Wen 2d070dbdb7 mapd: add path 2023-02-13 19:58:53 -05:00
Jason Wen b7a3855ede SLC: adjustable speed limit offset - init 2023-02-13 19:55:00 -05:00
Adeeb Shihadeh e3de6b8834 Chrysler: revert torque tuning (#27327)
* Chrysler: revert torque tuning

* update refs

* update refs + route
2023-02-13 16:15:59 -08:00
Dean Lee 507badb117 cabana: set legend marker shape by the series type (#27296)
set legend marker shape by the series type
2023-02-13 14:40:47 -08:00
Dean Lee e952ad2c66 cabana: draw borders around signals (#27307)
* cabana: draw borders around signals

* add padding

* merge #27294

* add comment

* typo

* fix alpha

* cleanup

* spacing =2

---------

Co-authored-by: Willem Melching <willem.melching@gmail.com>
2023-02-13 10:44:44 -08:00
Jason Wen bf659453aa move-fast: mapd, Speed Limit Control, Vision & Map Turn Speed Control (#111)
* move-fast: Hands on wheel monitoring: Implementation according to r079r4e regulation

* move-fast: VisionTurnController Implementation & UI prerequisites

* move-fast: LiveMapData: Implementation & UI prerequisites

* add dependencies

* move-fast: SpeedLimitControl: Implementation & UI prerequisites

* move-fast: TurnSpeedController: Implementation & UI prerequisites

* move-fast: Debug: Tap on Ui to capture snapshot of debug data & UI prerequisites

* Debug UI: Toggle to display debug UI elements & UI prerequisites
2023-02-13 11:38:11 -05:00
Dean Lee fff6e8baf6 cabana: fix crash in BinaryView::refresh (#27318) 2023-02-12 20:11:55 -08:00
Dean Lee 38cf0b8382 cabana: fixed the buggy has_more_data, reduce unncessary calls to fetchMore (#27319) 2023-02-12 20:11:32 -08:00
Miniz199922 e219da29b2 Chrysler: add missing 2020 Jeep SRT address (#27312)
* 2020 Jeep srt fingerprint

Please update to include my 2020 Jeep srt

* Update selfdrive/car/chrysler/values.py

* Revert "Update selfdrive/car/chrysler/values.py"

This reverts commit 83fc38acbf7e7b257713a0a85096d7d34a6e0c90.

* Update selfdrive/car/chrysler/values.py

* rm new fp

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-02-12 18:55:31 -08:00
Dean Lee f71aad955c cabana: cancel signal highlighting on leaveEvent (#27315)
cacnel signal hilighting on leaveEvent
2023-02-12 18:49:33 -08:00
Adeeb Shihadeh 341eb2e0fd boardd: retry on bad SPI RX data len (#27314)
Co-authored-by: Comma Device <device@comma.ai>
2023-02-11 21:12:07 -08:00
Adeeb Shihadeh 4998b600ec more release notes 2023-02-11 17:57:10 -08:00
Shane Smiskol 6474e16a72 GM: add permanent ACC fault signal (#27306)
* bump opendbc

* check signal

* bump opendbc
2023-02-11 00:12:33 -08:00
Kyumin Han 7b654337d6 HKG: remove Kia Stinger 2018 from legacy safety mode (#27302)
* Remove Kia stinger from legacy safety system array

Enable OP long

* update docs

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-02-11 00:04:17 -08:00
Adeeb Shihadeh ed52916d55 update chrysler test segment with new flag 2023-02-10 23:47:47 -08:00
Shane Smiskol 4f2134468f events: reword ESP off alert (#27304)
* Rename event

* rename to Control

* rename to disabled
2023-02-10 23:46:48 -08:00
Jason Wen 755b5746fb FCR: generate all sunnypilot supported car platforms 2023-02-11 02:34:35 -05:00
Jason Wen 6ad79d3e81 Longitudinal: Reverse ACC Change (#110) 2023-02-11 02:26:50 -05:00
Adeeb Shihadeh 69e52f02fd bump panda 2023-02-10 22:43:19 -08:00
Adeeb Shihadeh b1f84f9400 Chrysler: setup panda safety flag for old tuning's steer limits 2023-02-10 22:39:52 -08:00
Jason Wen eb591e3015 Merge remote-tracking branch 'upstream/commaai/openpilot/master'
# Conflicts:
#	opendbc
2023-02-11 01:23:43 -05:00
Yassine Yousfi 93330302c8 add new model to release notes 2023-02-10 16:52:52 -08:00
Shane Smiskol c05aa0e871 Chrysler: log temporary LKAS faults (#27303)
* Log temp lkas faults for non-ram

* bump to master

* add to signals

* whoops

* ... come onnnnn
2023-02-10 16:32:21 -08:00
Shane Smiskol 5831a83c90 GM: add hysteresis to cluster speed (#27301)
* add cluster hysteresis

* Update ref_commit
2023-02-10 16:14:53 -08:00
Dean Lee 0fdcf4efc0 cabana: fix text-overflow for long msg name (#27297) 2023-02-10 14:50:52 -08:00
Dean Lee 3d2c156bbd cabana: fix y axis precision (#27299) 2023-02-10 13:40:39 -08:00
Dean Lee 152f1bf485 cabana: fix inconsistent size for play button (#27298) 2023-02-10 12:57:20 -08:00
Dean Lee 7cfa236ff2 cabana: improve SignalItemDelegate::paint (#27295) 2023-02-10 11:31:54 -08:00
Willem Melching fae5553838 cabana: add <array> include to fix macos build (#27291)
* cabana: add <array> include to fix macos build

* Update util.h

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2023-02-10 10:14:45 -08:00
Dean Lee d19b668365 cabana: fix incorrect bit color after seek (#27287) 2023-02-10 10:13:39 -08:00
Dean Lee 409c1c9c65 cabana: set pen width in createSeries (#27288) 2023-02-10 10:13:28 -08:00
Dean Lee 237428d0fd cabana: dont reset filter after seek (#27290) 2023-02-10 10:13:15 -08:00
Dean Lee 429311a2cc cabana: fix the text of signal value being clipped (#27292)
fix value be clipped
2023-02-10 10:12:33 -08:00
Adeeb Shihadeh 1f85f84027 UI: fix old frame shown on startup (#27283)
Co-authored-by: Comma Device <device@comma.ai>
2023-02-09 20:44:29 -08:00
Adeeb Shihadeh 5ab2d35f7b controlsd: higher default set speed in experimental mode (#27279)
* controlsd: higher default set speed in experimental mode

* update tests

* update tests
2023-02-09 19:27:51 -08:00
Adeeb Shihadeh 7978901101 controlsd: revert CAN timeout threshold (#27275)
* controlsd: revert CAN timeout threshold

* dt_ctrl doesn't make sense there
2023-02-09 18:54:17 -08:00
Manu 5ee4740821 Toyota: C-HR Hybrid 2022 support (#27269)
* Added C-HR 2022

* add harness link

* Revert "add harness link"

This reverts commit 54eaf4a5d83b2e844175cdcf4637329490e1a5b0.

* Revert "Added C-HR 2022"

This reverts commit b75a54886fbd0236a309b5c89bf74fd748a5b9e2.

* Added Toyota C-HR Hybrid 2022

Added Toyota C-HR Hybrid 2022

* another year

* it's a hybrid

* fix platform name

* new route

* add to releases

* right right, it's a hybrid

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-02-09 16:54:25 -08:00
Shane Smiskol 29ca52bc48 GM: split steering speeds (#27277)
* split steering speeds

* update docs

* Update ref_commit
2023-02-09 16:53:16 -08:00
Erich Moraga 37f3fe5ead Add several missing CHR_TSS2 firmwares (#27278)
`@Dk#3633` 2021 C-HR  DongleID/route  4930c054f086c108|2023-02-09--18-39-48
Verified working great, per user.

Hot off the heels of @eFiniLan's https://github.com/commaai/openpilot/pull/27212 😉
2023-02-09 16:37:34 -08:00
Shane Smiskol 8f5057ff2d GM: enforce steering command message timing (#27250)
* draft

* bump opendbc

* still draft

* that's not right

* superset of the changes, 33hz

* cleanup

* this should work

* remove line

* pass it in again

* actually no need to check updated now

* now_nanos

* consistent name

* fix replay

* one line isn't that bad

switch

switch

* fix CarController tests

* Update ref_commit
2023-02-09 15:37:39 -08:00
Dean Lee 95fc84e0b7 cabana: catch exceptions thrown from opendbc (#27242)
* catch exceptions thrown from opendbc

* Update tools/cabana/mainwin.cc

Co-authored-by: Cameron Clough <cameronjclough@gmail.com>

* Update tools/cabana/mainwin.cc

Co-authored-by: Cameron Clough <cameronjclough@gmail.com>

* show error line in detailed text

---------

Co-authored-by: Cameron Clough <cameronjclough@gmail.com>
2023-02-09 14:52:44 -08:00
Shane Smiskol a1e5ab1f07 Add C-HR 2021 to release notes 2023-02-09 14:21:41 -08:00
N0VA-DKW cb0522379d Subaru: add Crosstrek 2022 FW versions (#27222)
* Update values.py

* Revert "Update values.py"

This reverts commit cd9f841c7a97ca800564605e68ea15d611abb3bc.

* do clean up later

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-02-09 14:16:07 -08:00
chaichuansheng88 ab6bb8a2fa Hyundai: add IONIQ 5 fwdCamera FW version (#27209)
Update values.py

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-02-09 13:50:53 -08:00
Shane Smiskol 9aac0806e3 GM: increase min steer speed to avoid temporary faults (#27274)
* increase min steer speed to avoid temp volt faults

* actually 10.15 is safe

* Update ref_commit
2023-02-09 13:24:52 -08:00
ClockeNessMnstr cd37231666 add g++-12 dependancy for Ubuntu 22.04 (#27263)
add g++-12 dependancy for 22.04

scons -u -j8 gave clang++ not finding iostream and others. 

https://askubuntu.com/questions/1449769/clang-cannot-find-iostream

solution at the bottom of the page worked. installed g++-12 and built fine after that.
2023-02-09 12:51:50 -08:00
Jason Young be6f5c6a33 VW MQB: Add FW for 2023 Volkswagen Tiguan (#27273)
* VW MQB: Add FW for 2023 Volkswagen Tiguan

* regen CARS.md
2023-02-09 12:34:08 -08:00
Shane Smiskol b2d9a24d99 Chrysler: remove Pacifica 2018 ICE from tuning blacklist (#27272)
remove Pacifica 2018 ICE from blacklist
2023-02-09 11:43:34 -08:00
Dean Lee 37abe37117 cabana: set series color in createSeries (#27270)
* set color in createSeries

* fix
2023-02-09 10:37:37 -08:00
Jason Wen d201a4b08c Merge remote-tracking branch 'upstream/commaai/openpilot/master'
# Conflicts:
#	cereal
#	opendbc
#	panda
2023-02-09 02:07:22 -05:00
YassineYousfi 1e49c54ffb new model: improved height estimation (#27234)
* 07a3a2b2-6dbe-43c3-9bb9-a8023932e054/449 c3d7d18a-6207-42e7-84d9-601ecb3c6f0e/700

* 07a3a2b2-6dbe-43c3-9bb9-a8023932e054/449 db92e7f3-3f4b-4f0f-95ff-76cb6ed6894a/700

* update ref commit
2023-02-08 22:21:31 -08:00
Jason Wen 542345a7c2 Hyundai CAN-FD: use common PT bus function (#27268)
* Hyundai CAN-FD: PT bus detection cleanup

* Do this when ICE CAN-FD is supported!

* Only needs to be checked for non-HDA2, HDA2 uses 0x1cf

* Unused

Co-authored-by: Shane Smiskol <shane@smiskol.com>

* Keep it the same for now

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-02-08 21:25:31 -08:00
Jason Wen dae1331817 HKG: Car Port for Kia Niro Hybrid 2023 (HDA1) (#26827)
* HKG: Car Port for Kia Niro Hybrid 2023 (HDA1)

* bump opendbc

* bump

* Found gear signal

* Only set one flag

* bump opendbc

* Update CARS.md

* Update routes.py

* bump opendbc

* Update CARS.md

* some values cleanup

* new route with rlogs

* set from data

* merge

(3854+3391+3227+3336)/4

* fine move back down here for now

fine move back down here for now

* Update selfdrive/car/hyundai/interface.py

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-02-08 19:21:50 -08:00
Vivek Aithal d74470252d Chrysler: torque tuning + increased steer rate (#26934)
* increase chrysler steer rate

* use torque control

* update offline values for chrysler, jeep

* bump panda

* add blacklist

* add lag buffer to the torque vals

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2023-02-08 19:18:36 -08:00
Adeeb Shihadeh a522dce017 add dmoji to release notes 2023-02-08 19:14:24 -08:00
ZwX1616 955c1dff45 ui: dmoji (#27070)
* will draw

* gradient

* bg

* add sense of depth

* refactor

* cleanup

* fix endpoint

* clean up

* use array

* 1 matmul

* lives in modeldata

* standstill only

* remove bad pts

* do less math

* smooth

* kind

* fix d

* lineswidth

* fade in and out

* hide

* quick

* gray out

* fix joints

* offset

* rest icon

* clean up

* circle as state

* longlat

* new design

* gap and g

* scaledown, fix jts and unlock not standstill

* width

* different

* intermediate

* sand

* motion effect

* vis

* fix bg

* clean up

* t

* btn_size

* small speedup

* sligh

* clean up

* facelift

* match .2

* .4 is good

* size

* no ss

* rhd compat

* less filt

* more line

* engaged

* not white

* drop prop

* this is fine

* independent falg

* sg

* dont look like hitman

* cleanup

* little more

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2023-02-08 19:06:59 -08:00
Shane Smiskol ccfa73ff12 Remove Bolt EV platform from torque params
Was merged into EUV
2023-02-08 18:33:19 -08:00
eFini 134766fe26 Toyota: Car Port for Toyota C-HR 2021 (TSS2) (#27212)
* Toyota C-HR 2021 TSS2 Port

* remove

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-02-08 18:05:23 -08:00
Shane Smiskol ec6a55057f Rename GM CS variable to be consistent to the CAN parsers 2023-02-08 17:51:53 -08:00
Jason Wen a0c9b12341 bump cereal 2023-02-08 20:13:28 -05:00
Willem Melching 276586fdf0 cabana: bit level change frequency highlighting (#27259)
* cabana: bit level change highlighting

* change default color
2023-02-08 15:18:56 -08:00
Shane Smiskol d096ec1329 bump opendbc (#27253) 2023-02-08 15:18:27 -08:00
Dean Lee f4f081c562 cabana: imporve series selector dialog (#27266)
* imporve series selector dialog

* typo
2023-02-08 15:18:07 -08:00
Dean Lee 99f12ca7f3 cabana: fix coredump caused by getColor in updateSeries (#27265) 2023-02-08 13:29:16 -08:00
Willem Melching fcaa6fb06f cabana: extend color palette, make chart colors match signal view (#27258)
* cabana: extend color palette, make chart colors match signal view

* vary saturation too

* cleanup
2023-02-08 13:03:23 -08:00
Jason Young 56bc5b39e3 VW MQB: Add FW for 2018 Volkswagen Tiguan (#27264) 2023-02-08 13:00:30 -08:00
Dean Lee 80bf755b07 cabana: set correct geometry for legend (#27260) 2023-02-08 12:40:43 -08:00
Dean Lee 303e21cbcc cabana: improve the welcome page (#27261) 2023-02-08 12:40:22 -08:00
Jason Wen 25efc5316a bump cereal 2023-02-08 14:23:45 -05:00
Shane Smiskol 5b9f2c3fcd GM: refactor steering control code (#27251)
* hopefully easier to understand?

* space

* no confusing elif, move comment to relevant part

* better
2023-02-08 00:09:49 -08:00
Shane Smiskol 86d86fa9da GM: reduce steering message rate (#27201)
* Lower active rate and raise limits to compensate

* bump panda

* bump panda

* Update ref_commit

* bump panda to master
2023-02-07 23:38:05 -08:00
Dean Lee 583057aa41 cabana: add space between signal and msg name (#27252) 2023-02-07 21:46:59 -08:00
Kurt Nistelberger fe64e85363 readd slot number logging 2023-02-07 21:25:46 -08:00
Shane Smiskol 4d05b5b02a Bump panda (#27249)
* bumppanda

* bumptomaster

* bumppandaagain
2023-02-07 20:11:36 -08:00
Kurt Nistelberger 9799359ffd bump laika 2023-02-07 17:54:23 -08:00
Kurt Nistelberger 5a0cbc35a5 Ubloxd: glonass ephem parsing (#27248)
temp fix

Co-authored-by: Kurt Nistelberger <kurt.nistelberger@gmail.com>
2023-02-07 17:49:51 -08:00
Kurt Nistelberger 6330cdd885 GPS: add tow to gps ephemeris (#27246)
* add tow to gps ephemeris

* bump cereal

* update refs

---------

Co-authored-by: Kurt Nistelberger <kurt.nistelberger@gmail.com>
2023-02-07 17:49:06 -08:00
Kurt Nistelberger 4f6fbdf590 Revert "ublox_day_fix"
This reverts commit 9af82c090e.
2023-02-07 15:02:21 -08:00
Kurt Nistelberger 9af82c090e ublox_day_fix 2023-02-07 15:01:47 -08:00
Adeeb Shihadeh 01bdf382c4 CI: temporarily remove timeouts 2023-02-07 12:52:50 -08:00
Cameron Clough 1a0a638740 setup: replace software selection widget with input dialog (#27236)
* setup: replace software selection widget with input dialog

* revert

https://github.com/commaai/openpilot/pull/21617/commits/3f7047651c31b209c9c4a0b8ff7bd408aca3f9e5
2023-02-07 11:37:25 -08:00
Cameron Clough 074e74ad08 setup: check installer is elf (#27241) 2023-02-07 11:37:03 -08:00
Dean Lee 55ad7ee3cb cabana: remove toolbutton padding (#27240)
* remove toolbutton padding

* fix incorrect checked state in setSeriesType
2023-02-06 21:14:07 -08:00
Cameron Clough 6fb5661abb setup: add serial to request headers (#27237)
* setup: add dongle ID to request headers

* rename openpilot

* fix str

* hardware: get_serial

* set serial instead

* fix typo

* static

* fixes
2023-02-06 20:02:30 -08:00
Dean Lee ae99a6d15d cabana: paint points in drawForeground instead of switching opengl mode (#27239) 2023-02-06 18:58:24 -08:00
Dean Lee 8f6521ded3 cabana: improve charts toolbar (#27233)
* improve toolbar

* add text
2023-02-06 18:57:37 -08:00
Cameron Clough b462463fbf installer: do not translate git progress strings (#27238) 2023-02-06 17:09:13 -08:00
Dean Lee 1a99fd3610 cabana: fixed wrong plot area after changed column count (#27228) 2023-02-06 16:39:16 -08:00
Cameron Clough 9a51275cd2 setup: fix button label on ethernet (#27235)
* setup: continue without wi-fi on ethernet

* switch around
2023-02-06 15:43:25 -08:00
Cameron Clough 68bcdaaff7 settings: highlight nightly in branch switcher (#27227) 2023-02-06 10:40:45 -08:00
Dean Lee f9de6a0dd8 cabana: click on legend to show/hide series (#27231)
* click on legend to show/hide series

* update axis y

* add move icon
2023-02-06 10:18:44 -08:00
Dean Lee 1ecda86e51 cabana: concurrently update chart series (#27230) 2023-02-06 10:17:58 -08:00
Jason Wen 8102fc8572 Merge remote-tracking branch 'upstream/commaai/openpilot/master' 2023-02-06 00:29:11 -05:00
Jason Wen 60c02cf87b Toyota TSS2 longitudinal improvements (#108)
* Toyota TSS2 longitudinal improvements

* IDE doesn't like it
2023-02-05 21:58:19 -05:00
Jason Wen 3188d11efd Braking status prerequisites (#107)
* Braking status prerequisites

* No need for this
2023-02-05 20:54:59 -05:00
Jason Wen 0790e4d9f7 gpxd (#106) 2023-02-05 19:58:26 -05:00
Jason Wen d4f1b12070 Disable Onroad Uploads (#105) 2023-02-05 19:53:21 -05:00
Adeeb Shihadeh 0374d4817d setup pre-built master-ci (#27205)
* try this

* add as release branch

* set the name

* build on master-ci
2023-02-05 15:45:01 -08:00
pbkompasz f5f1406817 docs: update cabana usage in README (#27225)
* Add ecam

* Update README.md

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2023-02-05 14:52:28 -08:00
Dean Lee 4117986520 cabana: fix incorrect clamp (#27218)
* fix incorrect clamp

* fix type error
2023-02-05 14:50:32 -08:00
Dean Lee 54f3ca43bb cabana: only relayout charts when needed (#27210) 2023-02-05 12:35:30 -08:00
Dean Lee 9b054af8b6 cabana: improve align charts (#27217)
* improve align charts

* set range on need

* cleanup

* remove unused include
2023-02-05 12:35:15 -08:00
Jason Wen 2a841a7757 Lane Change Timer (#104) 2023-02-05 14:31:09 -05:00
Jason Wen 5e1d9da867 Max Time Offroad 2023-02-05 14:17:32 -05:00
Jason Wen 0208188975 Merge remote-tracking branch 'upstream/commaai/openpilot/master' 2023-02-05 02:21:51 -05:00
Jason Wen 931718e937 bump cereal 2023-02-04 19:47:55 -05:00
Dean Lee 2cb0f59962 cabana: delay starting live streaming thread (#27213) 2023-02-04 15:25:06 -08:00
Erich Moraga 784bef20ce Add missing AVALONH_TSS2 fwdRadar f/w (#27215)
`@shankapotamous#6637` 2022 Avalon Hybrid  DongleID/route 301800decccd6669|2023-02-04--10-09-55
2023-02-04 15:24:37 -08:00
Erich Moraga d662f6d289 Add sveral missing LEXUS_ESH_TSS2 firmwares (#27219)
* Add sveral missing LEXUS_ESH_TSS2 firmwares

@salmankali#7352 2023 Lexus ES 300h  DongleID/route c010a8cd3af884f5|2023-02-04--03-27-12

* docs.py gen'd CARS.md w/ 2023 Lexus ES Hybrid update
2023-02-04 15:11:08 -08:00
Erich Moraga 2d64f99b01 Add missing HIGHLANDER_TSS2 engine f/w (#27220)
@Arnold Jagt#4866 2023 Highlander LE (ICE)  DongleID/route b75bae9b9bde6210|2023-02-04--17-44-15
2023-02-04 15:10:55 -08:00
Jason Wen 300c33583a bump cereal 2023-02-04 14:28:45 -05:00
Dean Lee 90108c0c28 cabana: better window title for live streaming (#27214)
better title for live streaming
2023-02-04 09:42:39 -08:00
Jason Wen 4e03bd488d bump cereal 2023-02-04 12:10:57 -05:00
Jason Wen 054562fc77 import param init 2023-02-04 04:19:39 -05:00
Jason Wen 3f431e4c6d Merge remote-tracking branch 'upstream/commaai/openpilot/master' into dev-pub/master
# Conflicts:
#	cereal
#	opendbc
2023-02-04 00:39:30 -05:00
Jason Wen 215b03118e bump cereal 2023-02-03 23:49:00 -05:00
pbkompasz 73a8d6b951 docs: Add cabana to tools (#27208) 2023-02-03 15:30:59 -08:00
Kurt Nistelberger 9a42929b0c navd: check duration_typical before using (#27184)
check duration_typical

Co-authored-by: Kurt Nistelberger <kurt.nistelberger@gmail.com>
2023-02-03 14:22:33 -08:00
Kurt Nistelberger 74187463da laikad: add laikad startup tests (#27207)
* add laikad startup test

* move debug files to xx

* add laikad startup and ephemeris test

---------

Co-authored-by: Kurt Nistelberger <kurt.nistelberger@gmail.com>
2023-02-03 13:45:36 -08:00
Dean Lee d6516059bd cabana: fix incorrect point size after adding new series to chart or changing series type (#27199)
* update pointers after create series

* cleanup
2023-02-03 13:03:01 -08:00
Dean Lee 29d9d03759 cabana: add dialog to open route from remote or local (#27183)
* add OpenRouteDialog

* cleanup

* failed_to_load

* fix load

* clear message list and stream after open new route

* show message

* remove all tabs and charts after open

* use textEdited

* check route format

* cleanup loadRoute
2023-02-03 12:47:26 -08:00
Adeeb Shihadeh 858f185fd2 Hyundai: update Hyundai Genesis tuning (#27197) 2023-02-03 12:46:14 -08:00
Dean Lee bd66f77a3b cabana: fix chart buttons occasionally did not respond to click. (#27198)
* fix btn not responding on click

* change icon from gear to list(menu)
2023-02-03 11:40:35 -08:00
Dean Lee 1ace481fa8 cabana: elide long signal names (#27202)
elide long signal names
2023-02-03 10:50:39 -08:00
Iamz ef95f921d1 Added new fingerprint for Toyota Corolla Cross GR Sport (#26693)
Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-02-02 23:35:22 -08:00
Jacob Pfeifer a8b43a44c5 2020 Hyundai Santa Fe fingerprint update (#27135)
* add new transmission fwVersion for 2020 hyundai santa fe

* use shorter trans, add missing fw

* duplicate

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-02-02 23:25:51 -08:00
jayvin100 603e03116e Add support for Malaysian Civic 2022 (#27126)
Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-02-02 23:16:43 -08:00
Jason Wen bd67d00887 Hyundai: Add FW Versions for 2020 Ioniq Plug-in Hybrid (#27196)
* Hyundai: Add FW Versions for 2020 Ioniq Plug-in Hybrid

* Aha!

* Another one

* Update selfdrive/car/hyundai/values.py

* missing a radar

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-02-02 23:08:38 -08:00
Jason Wen 1816b499c4 HKG: Car Port for Kia K5 Hybrid 2020 (#26947)
* HKG: Car Port for Kia K5 Hybrid 2020

* Add test route (Experimental Mode)

* No abs

* remove extra trans

* move up

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-02-02 22:58:29 -08:00
Cameron Clough b1e744987f Ford: add Lincoln Aviator 2021 to Ford Explorer platform (#27095)
* add Lincoln Aviator 2021 to Ford Explorer platform

Based on the Ford Explorer, the Aviator has very similar firmware
versions. Add these to the Explorer platform and create a new CarInfo
for the Aviator.

f0709d2bc6ca451f|2022-12-10--12-36-59--0

VIN: 5LM5J7XC8MGL09541

* Ford: new gear shifter signal to support Aviator

* probably don't need these

* don't need to pass None here, it defaults to None

* will rename in DBC

* bump opendbc

* bump process replay ref
2023-02-02 22:00:49 -08:00
Dean Lee 41304db1e6 cabana: syc the last messages after seeking (#27149)
* fix wrong last message time

* update last messages after seekto

* cleanup

* remove src,address from CanData

* merge master

merge master
2023-02-02 20:39:16 -08:00
Kurt Nistelberger 04a7808590 glonass support laikad (#27173)
* add glonass kaitai parsing

* add kaita generated files

* remove glonass from build

* add string non immediate type

* fix kaitai bug

* cleanUp

* add patch file

* fix scons order

* make lookup const

* remove comments

* add to release files

* init

* add laika

* remove printf

* laikad add glonass ephem parsing

* add signs

* final ublox parsing

* rev gps

* bump subs

* address comments

* disable internet for laikad

---------

Co-authored-by: Kurt Nistelberger <kurt.nistelberger@gmail.com>
2023-02-02 20:16:28 -08:00
Kurt Nistelberger 4e27a7f22a Glonass support, ubloxd add ephemeris parsing (#27119)
* add glonass kaitai parsing

* add kaita generated files

* remove glonass from build

* add string non immediate type

* fix kaitai bug

* cleanUp

* add patch file

* fix scons order

* make lookup const

* remove comments

* rename

* add to release files

* add signs

* final ublox parsing

* bump cereal

* update ref

---------

Co-authored-by: Kurt Nistelberger <kurt.nistelberger@gmail.com>
2023-02-02 19:29:45 -08:00
Adeeb Shihadeh b3b35b23fa controlsd: don't show steer saturated if recently overriding (#27191)
* controlsd: don't show steer saturated if recently overriding

* 2s

* update refs
2023-02-02 17:12:13 -08:00
Adeeb Shihadeh 2ecdb2857e loggerd: rotate if segment length is >20% longer than expected (#27193)
* loggerd: rotate if segment length is >20% expected

* add that back

* comment

---------

Co-authored-by: Comma Device <device@comma.ai>
2023-02-02 15:30:52 -08:00
Cameron Clough 20fb2b9bb3 ui: tap experimental mode icon to toggle (#27064)
* ui: tap experimental mode icon to toggle

After experimental mode has been enabled for the first time (confirmed),
it can be toggled by tapping the engage-ability/experimental mode icon
in the upper right.

Closes #27002

* replace with QPushButton

* fixes

* cleanup
2023-02-02 14:28:45 -08:00
Adeeb Shihadeh 444df54a70 Chrysler: disable radar parsing (#27190)
* Chrysler: disable radar parsing

* update refs
2023-02-02 13:46:44 -08:00
Dean Lee 53396076df cabana: add capability for switching between line and scatter plots (#27169)
* add capability for switching between line and scatter plots

* Update tools/cabana/chartswidget.cc

Co-authored-by: Willem Melching <willem.melching@gmail.com>

* setUserOpengl in createSeries

* update series title

* set marker size by pixels_per_point

* sync menu state

* cleanup

* set default series type in settings dlg

* remove qdebug

---------

Co-authored-by: Willem Melching <willem.melching@gmail.com>
2023-02-02 13:16:32 -08:00
Willem Melching e3c202b4a2 cabana: add button to suppress highlighted bytes (#27131) 2023-02-02 13:16:09 -08:00
Willem Melching 9ece098098 cabana: do not round time when seeking from chartswidget (#27141)
* cabana: do not round time when seeking from chartswidget

* prevent zooming/seeking past end of route
2023-02-02 13:15:11 -08:00
Dean Lee 628b80de3d cabana: improve line marker (#27189) 2023-02-02 13:14:53 -08:00
Dean Lee 6b04ead6dd cabana: remove the hardcoded width for columns (#27185) 2023-02-02 13:14:36 -08:00
Shane Smiskol cb50244a89 Bump total scons nodes 2023-02-02 13:03:53 -08:00
Cameron Clough 4fd1509697 Ford: restore radar DBC, check radarUnavailable (#27188) 2023-02-02 12:48:57 -08:00
Adeeb Shihadeh 6fa9b555a4 rename carState.radarOffCan to radarUnavailable (#27187)
* rename carState.radarOffCan to radarUnavailable

* bump cereal
2023-02-02 11:38:09 -08:00
Adeeb Shihadeh 24f4ada36d updated: fix brief notification of update for same version (#27182) 2023-02-02 10:25:20 -08:00
Dean Lee 647e81f9bb cabana: show series colors in tooltip (#27186)
show series colors in tooltip
2023-02-02 10:23:21 -08:00
Adeeb Shihadeh e07865fe4d boardd: update loopback test with new param 2023-02-01 20:11:40 -08:00
Adeeb Shihadeh 0eeb69a5d0 boardd: enable fingerprinting with both multiplexed modes (#27159)
Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-02-01 19:50:48 -08:00
Shane Smiskol 2a6de71cc0 get_present_ecus: check available pandas (#27181)
* add num_pandas to get_present_ecus

* always bugged me

* move this to function signature
2023-02-01 18:38:00 -08:00
Kurt Nistelberger 0ee53532be fix pigeond device reset 2023-02-01 17:33:08 -08:00
mrquell 83af2182b4 Support for Kia Niro PHEV 2020 (#27158)
* Update values.py

* Update values.py

Added support for Kia Niro PHEV 2020

* Update values.py

Added support for Kia Niro PHEV 2020

* Update values.py

Changed the fingerprint to be 4 seperate IDs

* Apply suggestions from code review

* generate

* gen docs

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-02-01 17:04:48 -08:00
Kurt Nistelberger 3d98cb72c0 Ubloxd: gps add iodc check (#27162)
* gps add iodc check

* add test

* simplify

* update ref

---------

Co-authored-by: Kurt Nistelberger <kurt.nistelberger@gmail.com>
2023-02-01 14:19:40 -08:00
Rewat S ef0e8a3127 Multilang: add missing Thai translations (#27148)
* Multilang: add missing Thai translations

* Multilang: update Thai translations

* Multilang: add missing Thai translations
2023-02-01 14:17:06 -08:00
Jason Wen b740bdc99c Hyundai: Enable radar tracks for Santa Fe 2019 (#27175) 2023-02-01 13:01:26 -08:00
Sean Cox 02c751f483 Hyundai: remove HYUNDAI_GENESIS from legacy steer max blacklist (#27176) 2023-02-01 13:01:08 -08:00
Vivek Aithal 519b3c8847 paramsd: Check if roll from the localizer is actually valid (#27105)
* add roll_valid check, use localizer roll when it is valid

* increase std to 1.5

* btter check

* avoid numpy

* update refs

* update refs
2023-02-01 11:21:51 -08:00
Shane Smiskol 022ef679e6 GM camera ACC: reliable relay closing (#27164)
* Reliable relay open

* Reliable relay close

* ign in a loop

* fixes

* we need this

* log

* comment to remind me tmrw

* ign fix

* this makes it 2x more reliable, but messyyy

* Revert "this makes it 2x more reliable, but messyyy"

This reverts commit 03401dc4a705cfacbe5a7048d95dccb6fa80d57f.

* revert non-related stuff

* comments, spaces

* a stands for indefinite article

* not applicable for non-camera acc

* something...

* Revert "something..."

This reverts commit de8a158488efd5ef257434fbc3c55aefff800cb7.

* Update ref_commit
2023-01-31 20:26:33 -08:00
Shane Smiskol f37d35ed63 Hyundai: add FW for Genesis and Genesis G80 (#27171)
* add FW for Genesis and G80

* move to top
2023-01-31 15:48:40 -08:00
AlexandreSato ec4c553542 Toyota: add FW engine for Brazilian Corolla Hybrid (#26943)
* Add miss FW engine for Toyota Corolla Hybrid

Test route `   4f50e44908cc46b8|2023-01-12--21-08-57  `

* braziliam toyota corolla hybrid 2023

is US affected by TSK?

* add a new entry for south america

* Revert "add a new entry for south america"

This reverts commit 28454c04cc93dc241da3b004a7154e44313e85c9.

* CARS.md is autogenerated!

* delete CARS.md to fix merge conflict

* space

* i don't know if we know for sure not all international 2023's have TSK

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-01-31 15:46:57 -08:00
cydia2020 1ba590e043 Toyota: make LKAS message 5hz (#26830)
* Toyota: make LKAS message 5hz

* update refs

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-01-31 15:12:31 -08:00
Jason Wen 428dbb52e2 fix duplicate ordinal 2023-01-31 18:09:43 -05:00
Dean Lee 0402e94927 cabana: render light or dark icon based on system theme (#27155) 2023-01-31 13:45:57 -08:00
Willem Melching 49e955d321 cabana: dynamically switch between OpenGL (#27167)
* cabana: dynamically switch between OpenGL

* put back todo

* only switch when x axis changes
2023-01-31 13:08:07 -08:00
Shane Smiskol f1caecff72 Genesis G80 2017: group with Hyundai Genesis (#27170)
* Revert "Fix 2017 Genesis G80 car harness and shop link in docs (#27127)"

This reverts commit cf94394026.

* The HGenesis became rebranded to G80 in 2017 (2018 model year). G80 2017 fingerprints as Hyundai Genesis, and we handle the min steer speed correctly

https://en.wikipedia.org/wiki/Genesis_G80
https://en.wikipedia.org/wiki/Hyundai_Genesis

* fix
2023-01-31 12:48:13 -08:00
Sean Cox cf94394026 Fix 2017 Genesis G80 car harness and shop link in docs (#27127)
* Fix 2017 Genesis G80 car harness

* Revert "Fix 2017 Genesis G80 car harness"

This reverts commit 2d5a92b7f0972c7ab61b132dce6cfebe978781c9.

* split and make G80 2017 have J harness

* generate and change min enable speed

* adjust min steer speed

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-01-31 12:02:05 -08:00
Cameron Clough df5ccda731 Ford CAN FD (#27166)
* add LateralMotionControl2 message

* send LatCtl2 message on CAN FD cars
2023-01-31 11:06:03 -08:00
Jason Young 5ce7572b46 VW MNB: Volkswagen Crafter Mk2 (#26006)
* VW MNB: Volkswagen Crafter Mk2

* Crafter has a min steer speed :(

* add to non_tested_cars for now

* autogratitude

* Revert "autogratitude"

This reverts commit 8f19085bfa3424a8a75d7c95f32be8ecb010f8f4.

* autogratitude

* regen docs
2023-01-31 11:00:10 -08:00
Jason Young 8212fd5325 VW MQB: Add FW for 2016 SEAT Leon (#27168) 2023-01-31 10:47:41 -08:00
Willem Melching f17bca00ba panda.cc: fix possible heap overflow on wrong checksum (#27151)
* panda.cc: fix possible heap overflow on wrong checksum

* off by one
2023-01-31 17:17:21 +01:00
Shane Smiskol 09cd0b4900 GM camera ACC: reliable relay open init (#27163)
Reliable relay open
2023-01-31 01:09:36 -08:00
Anthony Rose 4c2f8edb77 Add Hyundai Ioniq 5 Fingerprint (#27137)
* added 2022 ioniq 5 fingerprint

* removed extra eps field

* fixed eps value

* removed cornerradar

* Apply suggestions from code review

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-01-30 23:23:45 -08:00
Cameron Clough ef9deeb6eb Ford longitudinal control (#27161)
ford long
2023-01-30 22:37:54 -08:00
Jason Wen 4d0fb94161 import all params 2023-01-31 01:04:32 -05:00
Jason Wen 93a4090476 MADS: add more event 2023-01-31 00:40:47 -05:00
Dean Lee ceceb1c6cc replay: fix hang if started with a special segment and there is no INIT_DATA in events (#27107)
* add events if allow or block is specified

* add init_data
2023-01-30 19:23:36 -08:00
Willem Melching f3a9dac93e cabana: add --dbc command line argument (#27132) 2023-01-30 17:42:38 -08:00
Cameron Clough feba2f3fe5 fix micd input device (#27160)
* try no device

* unused

* move sounddevice import
2023-01-30 17:41:42 -08:00
Kurt Nistelberger 549e4d9636 Ubloxd: move gps parsing to function (#27122)
move ublox gps parsing to function

Co-authored-by: Kurt Nistelberger <kurt.nistelberger@gmail.com>
2023-01-30 16:40:37 -08:00
Kurt Nistelberger e2f5b164bd Ubloxd: glonass parsing tests (#27125)
* add glonass kaitai parsing

* add kaita generated files

* remove glonass from build

* add string non immediate type

* fix kaitai bug

* cleanUp

* add patch file

* fix scons order

* make lookup const

* remove comments

* rename

* add to release files

* remove printf

* add signs

* add glonass parsing test

* finish up glonass kaitai tests

* move cereal back to master

* ignore test_runner

* sign is not two complement

* address comments
---------

Co-authored-by: Kurt Nistelberger <kurt.nistelberger@gmail.com>
2023-01-30 16:34:07 -08:00
Dean Lee fba4827a7b cabana: restrict the rubber band in plot area. (#27154) 2023-01-30 13:56:34 -08:00
Dean Lee 3815afbde7 cabana: small improvements to MessageListModel::setFilterString (#27153) 2023-01-30 10:57:35 -08:00
Dean Lee afa85e0256 cabana: remove the margins of the legend item (#27152) 2023-01-30 10:57:16 -08:00
Dean Lee 078f06dbaf cabana: draw message bytes at the same width (#27150) 2023-01-30 10:56:03 -08:00
Dean Lee 9822f1b0b4 cabana: fixed the column selector is always hidden if settings.chart_column_count is 1 (#27146)
fix column selector
2023-01-29 19:20:52 -08:00
Dean Lee 7a485d4308 cabana: refactor and improve signal view (#26997)
* refactor and improve signal view

* cleanup undostack after save

* set clean

* fix logswidget::refresh

* fix bugs in historylog

* historylog:dont reset display_type on msg changed

* inline displaySignals

* historylog:add stretch to header

* remove sizePolicy

* always show toolbar

* add icon to tabwidget

* create new chart on top

* fix 'show plot' btn state sync issue

* rename removeSeries to removeItem

* historylog::fix displayRange

* MessageListModeL: improve setFilterString

* set as current index after expanded

* disable update during setmessage

* ChartWidget: fix issue in updateState

* skip align charts if there only one chart

* fix updateLayout

* cleanup historylog

* updateState before end reset model

* add validator

* improve sigmodel

* expand new signal

* add comment

* reserve vector

* cleanup condition

* single click on row to expand signal

* improve layout for canfd(64 bytes)

* cleanup

* return false on default

* show the latest signal value next to the signal name

* update sig value after setmessage.to make the value updated in pause mode.

* better size policy

* +1 for grid size

* better palette

* set autofillbg
2023-01-29 19:19:50 -08:00
martinl fdc4a7f84c MacOS: build fixes (#27143)
* MacOS: exclude common/gpio.cc

* MacOS: no spi for boardd

* MacOS: loggerd: no v4l_encoder.cc

* MacOS: update libdbc path for cabana
2023-01-29 13:55:17 -08:00
Willem Melching fa4f37a098 cabana: small improvements to charts (#27140)
* cabana: small improvements to charts toolbar

* show column count when wide enough

* call setspacing

* set in same place

* remove call to updateToolBar()
2023-01-29 13:02:32 -08:00
Dean Lee a84b601d4c Cabana: load commaai/opendbc from menu (#27114)
* load from opendbc

* move load from commaai/opendbc to menu

* keep margins
2023-01-29 13:02:20 -08:00
Dean Lee d60aca8dd2 cabana: only update the colors of newly fetched messages in historylog (#27144)
only update new msgs color
2023-01-29 13:01:57 -08:00
Willem Melching f038193f44 cabana: show dots when zoomed far into a signal (#27145)
* cabana: show dots when zoomed far into a signal

* review comments
2023-01-29 12:57:01 -08:00
Willem Melching bdb42f7f84 cabana: fix occasional ellipsis on y axis ticks (#27142) 2023-01-29 12:55:10 -08:00
Willem Melching 3d641fa5e5 cabana: replace space by underscore when editing signal name (#27130)
cabana: replace space by _ whene editing signal name
2023-01-29 12:54:46 -08:00
Willem Melching d76012ec38 cabana: fix overlap in byte highlighting (#27139) 2023-01-29 12:52:42 -08:00
Jason Wen eb7b3f5489 fix merge conflicts 2023-01-28 21:04:51 -05:00
Jason Wen 4f60a73471 Merge remote-tracking branch 'upstream/commaai/openpilot/master' into dev-pub/master
# Conflicts:
#	cereal
#	panda
2023-01-28 20:46:44 -05:00
Kurt Nistelberger 53ccec7697 Revert "add signs to glonass ksy"
This reverts commit aa71947ebc.
2023-01-28 16:48:26 -08:00
Kurt Nistelberger aa71947ebc add signs to glonass ksy 2023-01-28 16:47:26 -08:00
Adeeb Shihadeh 7f85381976 bump panda (#27136)
* bump panda

* bump
2023-01-28 15:00:27 -08:00
Willem Melching ba5c6715a8 cabana: fix crash when combining graphs on MacOS (#27128) 2023-01-28 12:06:04 -08:00
Willem Melching 68c0012bf6 cabana: DoubleValidator fix locale (#27129) 2023-01-28 12:05:51 -08:00
Dean Lee 07b32750c1 cabana: remove extra frame border in logs (#27133)
remove extra frame border
2023-01-28 12:03:59 -08:00
Vivek Aithal 8d447e8a08 [RAM 1500 5TH GEN] Disable Live Torque (#27121)
* revert ram on live torque

* update refs

* update refs
2023-01-27 15:20:59 -08:00
Shane Smiskol cb62a5397e process replay: add Ford Bronco Sport segment (#27112)
* Add Ford segment to process replay

* fix dashcam cars

* clean up

* fix NotImplementedError

* Update refs
2023-01-27 14:14:04 -08:00
Shane Smiskol 60f73657de Ford: set radarOffCan (#27120)
Fix
2023-01-27 13:44:37 -08:00
Shane Smiskol 4f25bd05f2 process replay: test routes in dashcam (#27118)
* fix routes with dashcam override param

* move to bottom
2023-01-27 13:06:33 -08:00
Dean Lee e1e0432317 cabana: display warning if failed to load dbc from clipboard (#27115)
display warning if failed to load from clipboard
2023-01-27 11:34:17 -08:00
Dean Lee f0078eafac cabana: set time column to fixed width (#27117)
improve column width
2023-01-27 11:33:52 -08:00
Adeeb Shihadeh 0eed31f1a6 process replay: show process name in timeout error 2023-01-27 11:27:07 -08:00
Shane Smiskol 226d80964d Ford: lower lateral actuator delay (#27113)
Update interface.py
2023-01-26 23:14:05 -08:00
Shane Smiskol 701b7d89b6 Ford: use curvature without roll compensation (#27110)
* Ford: use actuators.curvature

* ford is mathless
2023-01-26 22:29:01 -08:00
Adeeb Shihadeh 1d9b4c2248 cleanup panda mcu definitions (#27104)
* cleanup panda mcu definitions

* cleanup panda mcu definitions

* bump

* panda master
2023-01-26 21:05:39 -08:00
Dean Lee 50fc560b43 cabana: improve mainwin (#27053)
* open recent

* improve mainwin

* move to submenu

* new file & remind save before load

dd
2023-01-26 20:29:28 -08:00
Shane Smiskol ad5b3ea410 controls: add curvature to actuators (#27108)
* Add curvature to actuators

* Use it in CC

* revert ford stuff

* Update ref_commit
2023-01-26 20:02:23 -08:00
Shane Smiskol 4f4f4afe8a Ford: set lateral ramp type to 0 (#27106)
set ramp type always to 0
2023-01-26 19:11:44 -08:00
YassineYousfi 7316cd03fb new model: fixed weight decay logic (#27068)
* 07a3a2b2-6dbe-43c3-9bb9-a8023932e054/449 cdfa9e3c-2807-49fc-bdc7-a985f8ff1644/700

* update refs
2023-01-26 19:09:12 -08:00
Kurt Nistelberger 6f0d35a09f Glonass ephemeris support (#27088)
* add glonass kaitai parsing

* add kaita generated files

* remove glonass from build

* add string non immediate type

* fix kaitai bug

* add patch file

* fix scons order

* Update selfdrive/locationd/SConscript

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>

Co-authored-by: Kurt Nistelberger <kurt.nistelberger@gmail.com>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2023-01-26 17:25:15 -08:00
Vivek Aithal 9201267fb7 torqued: Update reset logic (#27103)
* update reset logic

* bugfix
2023-01-26 14:48:46 -08:00
Dean Lee 08060e42c4 cabana: saving & restoring columns widths (#27080)
saving & restoring columns widths
2023-01-26 12:56:38 -08:00
Shane Smiskol 752b4edb92 HKG: Update Genesis GV60 harnesses (#27033)
* Update values.py

* generate
2023-01-26 12:54:53 -08:00
Dean Lee de5f792b3e cabana: only repaint changed cells in BinaryView::highlight (#27046)
dont update all cells on highlight
2023-01-26 12:41:17 -08:00
Dean Lee 0f37ff6c02 cabana: cleanup historylog and fix some known issues (#27100)
improve history logs
2023-01-26 12:37:04 -08:00
Dean Lee 27e8f8ff3e cabana: improve detail view (#27099)
* improve detailview

* cleanup layout
2023-01-26 12:32:25 -08:00
Radosław Chybicki e90c7a487b Santa Fe HEV 2022: add missing FW versions (#27050)
* Santa Fe Hev 2022 Fingerprint

* Concatenated second value for transmission

* fixes

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-01-26 12:30:46 -08:00
Dean Lee 1d5d57a384 cabana: fix video_splitter created twice (#27101) 2023-01-26 11:02:17 -08:00
Shane Smiskol 4d231a9d96 Ram 1500: more generic EPS steer to zero check (#27086)
more generic check
2023-01-26 00:48:59 -08:00
Shane Smiskol ad6ee2669c fix static analysis 2023-01-26 00:47:29 -08:00
Shane Smiskol c7c0f1e33c Ford: fix curvature rate limits 2023-01-26 00:37:13 -08:00
Cameron Clough 71c21eff72 Ford: add missing Maverick 2022 XLT FW (#27098)
Ford: add Maverick 2022 XLT fw

VIN: `3FTTW8E39NRB00148`

933ad9d04ac82693|2023-01-04--17-31-33--0
2023-01-25 22:03:41 -08:00
Cameron Clough c7790d0e07 Ford: params fixup (#27097)
* reduce steer actuator delay to 0.25s

* update steer ratio
2023-01-25 22:03:00 -08:00
Cameron Clough e90571eea1 Ford: disable radar parser (#27096)
The radar parser caused many false positive FCWs.
2023-01-25 21:42:24 -08:00
Shane Smiskol 2bdce2d92e Ford: use curvature signal for lateral control (#27091)
* do carcontroller

Co-authored-by: Cameron Clough <cameronjclough@gmail.com>

* values done

* just send latActive in, cleaner

* Update selfdrive/car/ford/values.py

* fix a crash

* adjust ramp as well

Co-authored-by: Cameron Clough <cameronjclough@gmail.com>
2023-01-25 21:39:46 -08:00
Cameron Clough cf69653440 Ford: add Maverick 2022 (#27093)
* Ford: add Maverick 2022

VIN: 3FTTW8E36NRA74219

a6427650bff6b419|2022-09-19--10-51-30

* Ford: add missing Maverick 2022 FW

VIN: 3FTTW8F98NRA75889

c845bd8c366e6f3d|2022-12-03--18-57-00--0

* steer ratio
2023-01-25 21:18:35 -08:00
Shane Smiskol 2329861556 Ford: send empty LKA message (#27094)
Eradication
2023-01-25 21:01:32 -08:00
Cameron Clough d410206f14 Ford: add Bronco Sport 2021-22 (#27092)
* cleanup

* add Ford Bronco Sport 2021 fw

VIN: 3FMCR9B61MRA17853

62241b0c7fea4589|2022-10-25--13-40-05--0

* add test route

* add Ford Bronco Sport 2022 fw

VIN: 3FMCR9B69NRD15990

54827bf84c38b14f|2023-01-23--14-58-23--0
2023-01-25 20:56:03 -08:00
Cameron Clough 3cd60a4724 Ford cleanup (#27090)
* fordcan cleanup

Co-authored-by: Cameron Clough <cameronjclough@gmail.com>

* no fordcan

Co-authored-by: Cameron Clough <cameronjclough@gmail.com>

* more

Co-authored-by: Cameron Clough <cameronjclough@gmail.com>

* these weren't even used in CS, follow rest of the brands

* we won't use this

* rename to more standard powertrain can bus

* no arguments for lka anymore

* Revert "rename to more standard powertrain can bus"

This reverts commit 0bc3f79f9bad2218c48a350bbf5ec6f726e0a028.

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-01-25 20:21:14 -08:00
Adeeb Shihadeh dd2e44232c bump panda 2023-01-25 19:18:24 -08:00
Dean Lee 2de2bab286 cabana: fix divde by zero for std::log10 (#27077)
fix divde by zero for std::log10
2023-01-25 10:59:05 -08:00
Dean Lee 892835da7a cabana: fix a wrong settings key (#27085)
fix wrong key
2023-01-25 10:51:31 -08:00
Kurt Nistelberger 0756c7f374 make process replay more reliable 2023-01-25 10:46:06 -08:00
Shane Smiskol 845a63d884 Honda: test all FW is in correct format (#27078)
* test honda FW is expected

* fix static
2023-01-25 00:10:22 -08:00
Shane Smiskol 01fa0ca69d Hyundai: clean up fingerprint test (#27079)
* Clean up Hyundai test

* fine
2023-01-24 23:34:55 -08:00
Shane Smiskol f2966e9ef4 Honda FPv2: log extra UDS identifier (#27076)
* Add debugging uds ID

* add comment

* remove spaces

* try chaining the queries (temp debug)

this works

* works! - Revert "try chaining the queries (temp debug)"

This reverts commit c53d0f64aecdbd6224b0fd524f96637d29320cd1.
2023-01-24 22:30:29 -08:00
Shane Smiskol 95d45a8d64 Honda Civic 2022: gather FW versions for unknown ECU (#27074)
* Add unknown civic 2022 extra ecu

* Update selfdrive/car/honda/values.py
2023-01-24 21:24:33 -08:00
Shane Smiskol a68633283f Civic 2022: add camera versions (#27073)
* Add fwdRadar for Honda Civic 2022

* remove debug cmt
2023-01-24 20:36:44 -08:00
Vivek Aithal 7ba8e56e87 [RAM 1500 5TH GEN] Update offline torque parameters and enable torqued (#27072)
* make run torque learnable

* update ram offline values

* add ram 1500 to torqued

* update refs
2023-01-24 19:22:13 -08:00
Shane Smiskol 1e9ac45221 Honda Nidec: gather available ECUs from camera (#27071)
Query bus 0 for Nidec data collection
2023-01-24 18:37:00 -08:00
ZwX1616 e2e780e7c6 ci: intra-camera timing check (#27069)
* test frame time

* 1 is still much tighter than 5
2023-01-24 16:34:41 -08:00
Dean Lee 81956649c8 cabana: improve layout (#27039)
improve layout
2023-01-24 16:14:08 -08:00
Jason Wen d1c87faedc Hyundai: Add FW Versions for Elantra 2023 (#27026)
* Hyundai: Add FW Versions for Elantra 2023

* only short where possible

* regen

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-01-24 16:11:12 -08:00
Ryan 500e379b43 VW MQB: Add FW for 2021 Volkswagen Tiguan. (#26966)
Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-01-24 15:40:38 -08:00
Dean Lee 544ad25a0b cabana: support pause and slow motion playback in live stream mode (#27051)
* support pause and slow motion playback in live stream mode

* override

* virtual functions

* move to function

fix

* lock handleEvent

* show speed controls in video widget

* fix pause signal

* set margins

* cleanup
2023-01-24 15:07:11 -08:00
George Hotz 64ed44e3b5 tinygrad: update to new version (#27067)
* tinygrad: bump and retain OPENCL behavior

* add graph.py to release, bump tiny

* update files_common and read from it in scons

* bump with typo fix

* switch tinygrad backend to GPU

* update ref commit

Co-authored-by: Comma Device <device@comma.ai>
2023-01-24 14:06:56 -08:00
Adeeb Shihadeh 690999a2a6 CI: increase submodule fetch depth 2023-01-24 11:42:32 -08:00
Dean Lee b2675cef9a cabana: colorful logs based on activity (#27008)
* color logs

* remove space

* update in updateColors
2023-01-24 11:36:40 -08:00
Robbe Derks 75f6dc385d bump panda 2023-01-24 14:10:31 +01:00
Shane Smiskol 7090a88419 Fix fuzz_fw_fingerprint.py script 2023-01-24 00:04:56 -08:00
Shane Smiskol b2c6d5d34a Honda: merge Passport platform into Pilot (#27061)
* Move Passport FW versions to Pilot

* lol, all duplicates already in pilot

* No Passport

* Better params for both
2023-01-23 20:16:50 -08:00
Dean Lee e49c7fa2bf cabana: fix slider crash on exit if loadThumbnails is running (#27052) 2023-01-23 10:16:11 -08:00
Michael G. Inso f5d253764c Update cell.sh (#27055)
You can combine the two nmcli commands into a single command by specifying both ipv4 and ipv6 options at the same time.

You can use the nmcli command with the --wait option to wait for the connection to be fully established before exiting.

You can use nmcli command with the --ask option to prompt the user to confirm the action before proceeding.
2023-01-23 09:49:48 -08:00
Adeeb Shihadeh 100fe10c7c jenkins: tmp disable sim test due to ZMQ bug (#27043) 2023-01-22 15:08:36 -08:00
Comma Device 4293705648 test manager: use ensure_running to start relevant procs 2023-01-22 16:28:20 -06:00
Dean Lee a0f91b0a8b cabana: fix chart range not updated when replay is seeking back. (#27036) 2023-01-22 13:20:40 -08:00
Dean Lee 1e4721ad62 cabana: fix memory corruption in live stream (#27037) 2023-01-22 13:20:20 -08:00
Adeeb Shihadeh 3018d1c8ff bump panda 2023-01-21 19:43:38 -08:00
Adeeb Shihadeh 66ff2de0a2 boardd: connect to SPI panda by UID (#27035)
* move list

* connect by serial

* cleanup hw serial

* little more

* rm excessive print

Co-authored-by: Comma Device <device@comma.ai>
2023-01-21 19:42:10 -08:00
Adeeb Shihadeh d7bcbfd54b rawgpsd: enable gps power (#27034) 2023-01-21 17:28:56 -08:00
Dean Lee 35a943030b cabana: add new plot btn to create chart (#27023) 2023-01-21 16:00:39 -08:00
Jason Young 51cb45e7a8 VW MQB: Add FW for 2015 Volkswagen Passat (#27032) 2023-01-21 13:07:58 -08:00
Dean Lee 945d0c7696 cabana: new chart on top (#27031) 2023-01-21 12:41:55 -08:00
Kurt Nistelberger 027c27cd69 Laikad: add test (#27028)
* add laikad tropo test

Co-authored-by: Kurt Nistelberger <kurt.nistelberger@gmail.com>
2023-01-20 22:19:01 -08:00
Comma Device e710dc1b7e lower spi log level 2023-01-20 21:07:01 -06:00
Dean Lee fa6e6a4eb5 cabana: add no-vipc flag (#26999) 2023-01-20 15:43:42 -08:00
AlexandreSato e507830a1c Multilang: new pt-BR translations (#27021)
* improve pt-BR translations

* update pt-BR translation

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-01-20 15:28:48 -08:00
Adeeb Shihadeh e883976a32 set path for extra qt bins on device (#27022)
* set path for extra qt bins on device

* no print

Co-authored-by: Comma Device <device@comma.ai>
2023-01-20 14:11:43 -08:00
Adeeb Shihadeh 75fd2e1199 skip lupdate on device 2023-01-20 13:11:51 -08:00
Adeeb Shihadeh b8ec32103a boardd: include SPI panda in list (#27018)
* boardd: include SPI panda in list

* hexlify

* fix hexlify

* cleanup

* little more

Co-authored-by: Comma Device <device@comma.ai>
2023-01-20 13:03:02 -08:00
Dean Lee c88853afae cabana: fix wrong column count displayed in combobox (#27020)
fix wrong column count displayed in combobox
2023-01-20 12:45:47 -08:00
Dean Lee f0d22f88e1 cabana: add a slider to adjust chart range from 1 sec to max cached seconds. (#27005)
* add slider to set chart range

* set minumu to 1 sec

* make chart work in any range

* cleanup

* rename to max_cached_minitues

* more

* dont draw out of plotarea

* cleanup

* updateLayout after chart removed

* cleanup

* fix clamp

* usea same cur_sec to update all charts
2023-01-20 11:47:29 -08:00
Shane Smiskol 3efb22e82b release pre-commit: test translations (#27017)
we should be able to run on the stripped dir now
2023-01-20 11:46:02 -08:00
AlexandreSato 2c5a952a1c Multilang: improve pt-BR translations (#26962)
Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-01-20 11:33:05 -08:00
Shane Smiskol 986ec99f82 Multilang: add back some translations (#27019)
* add back translations

* 🤔

* actually shouldn't be a space
2023-01-20 11:29:10 -08:00
Adeeb Shihadeh da621245b2 UI: update translations during scons build (#27009)
* UI: update translation during scons build

* all in scons

* debug

* precious

* debug

* add missing

* Update release/check-dirty.sh

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-01-20 10:46:45 -08:00
Dean Lee 21af68e3c3 cabana: improve video splitter (#27012) 2023-01-20 10:43:30 -08:00
Lee Jong Mun 40cc43c076 Multilang: kor translation update (#27013) 2023-01-20 10:43:14 -08:00
Shane Smiskol 42b0ecc891 Genesis: GV60 2023 Advanced: add missing camera FW (#27011)
add new camera FW from c104d893f7c211bb|2023-01-19--20-13-10
2023-01-19 23:32:16 -08:00
Adeeb Shihadeh c408b7e306 UI: show experimental long available to release users (#26910)
* UI: show experimental long available to release users

* more description

* cleanup

* hide toggle

* fix process replay

* clear param

* actually fix
2023-01-19 23:06:18 -08:00
Shane Smiskol 1c128db8b0 Cabana: darken signal backgrounds on hover (#27010)
* darker signal background when hovering

* remove import

* little better
2023-01-19 20:54:50 -08:00
Shane Smiskol c1fcd63bba cameraview: fix spaces in debug print 2023-01-19 18:42:34 -08:00
Dean Lee f9490739ab Cabana: support live streaming (#26946)
* support live streaming

* update live stream's time

* cleanup stream classes

* disable video control in live streaming mode

* emit streamStarted() in LiveStream::streamThread

* disable some features in live streaming mode

* refactor charts to support live streaming mode

* disable dynamic mode checkbox in live streaming mode

* updateDispalyRange

* thread safe events

* TODO: add support for ZMQ

* atomic time stamp

* only keep settings.cached_segment_limit*60  seconds data in liveStream

* make charts work better in live mode

* cleanup ChartView

* fix toolbar

* cleanup

cleanup

* disable openpilotPrefix and useOpenGL on macos

* add comment

* exit gracefully

* support ZMQ

* use ::operator new/delete

* cleanup streams

* cleanup

* align stream buffers

* check looping back

* check if series is empty

* cleanup

* add TODO: write stream to log file to replay it

* upper_bound

* remove class member event_range

* change default settings value

* cleanup updateDisplayrange

* fix merge error
2023-01-19 15:26:00 -08:00
Dean Lee fd4dc109e1 cabana: add support for multiple columns charts (#27000) 2023-01-19 13:51:55 -08:00
Kurt Nistelberger 9131da9103 Revert "Add low Gnss laikad test (#26987)"
This reverts commit b7ce77b3aa.
2023-01-19 11:46:22 -08:00
Willem Melching 35b8357963 cabana: search by signal name (#26944) 2023-01-19 10:37:27 -08:00
Willem Melching d365d99cb0 cabana: improve open/save functions (#27007) 2023-01-19 10:36:17 -08:00
Willem Melching 5b8d124be7 cabana: color bytes based on activity (#26970)
* cabana: color bytes based on activity

* newlines

* fix text color when selected

* fix indent

* add colors to binary view

* no need to check contains

* whitespace

* Apply suggestions from code review

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2023-01-19 10:35:18 -08:00
Dean Lee cebee69f30 cabana: click time label to seek to a specified time (#27006) 2023-01-19 10:32:48 -08:00
Kurt Nistelberger b7ce77b3aa Add low Gnss laikad test (#26987)
* add low gnss test

* enable laikad

* temp fix for cache

* update replay

* save LaikadEphemeris for testing

* rem

* update refs

* add comment

Co-authored-by: Kurt Nistelberger <kurt.nistelberger@gmail.com>
2023-01-18 22:29:12 -08:00
Jason Wen da778f69b3 bump cereal 2023-01-18 22:35:39 -05:00
Kurt Nistelberger 669becadde Ublox tow continuity check (#27001)
* add continuity check

* simplify

* remove pair

* update refs

* bump laika update refs

Co-authored-by: Kurt Nistelberger <kurt.nistelberger@gmail.com>
2023-01-18 18:57:54 -08:00
Dean Lee c21d9408a1 cabana: use bootstrap icons (#26981)
* use bootstrap icons

* typo

* build into asset_obj

* add to files_common
2023-01-18 13:19:23 -08:00
Dean Lee 351d97ab5a cabana: make video resizable (#26998) 2023-01-18 11:40:44 -08:00
Willem Melching e69e4f4052 cabana: sort bus:id numerically instead of alphabetically (#26996)
* cabana: sort bus:id numerically instead of alphabetically

* Update tools/cabana/canmessages.h
2023-01-18 10:32:04 -08:00
Willem Melching ef89ec3eb0 cabana: fix segfault on descending sort (#26995) 2023-01-18 10:31:40 -08:00
Shane Smiskol 2fd48e26a3 Deprecate canMonoTimes (#26992)
* not used anywhere

* bump cereal

* also here
2023-01-17 22:00:01 -08:00
Adeeb Shihadeh ef42652368 fix typo AR0321 -> AR0231 (#26993) 2023-01-17 19:52:06 -08:00
ZwX1616 e5931ed762 boardd: retune LED curve for new autoexposure (#26991)
* use il only

* works on both

Co-authored-by: Comma Dev1ce <device@comma.ai>
2023-01-17 17:17:10 -08:00
Shane Smiskol fe9fadaa55 Ioniq 2019 EV: add FW versions (#26988)
* add FW from 26e73a0e32642dc4|2023-01-16--13-05-28

* duplicate
2023-01-17 14:22:47 -08:00
ZwX1616 bc8e2032f7 camerad: reduce ox LFM noise (#26949)
* wip

* make separate score func

* n4ot g

* clean up

* remove

* simplify

* b2b

* more than 0

* this is fine

* led

* balance costs

* clean up

* no if tici

* box view

* new baselines

* Revert "new baselines"

This reverts commit f7a5d059eda70fa4d49e3024923da30e8821f42b.

* Revert "box view"

This reverts commit a57924be36e7d6abc2585aca9575c74cd583ef86.

* maximize dcg

Co-authored-by: Comma Dev1ce <device@comma.ai>
2023-01-17 14:16:28 -08:00
Dean Lee 2ef127ebc0 cabana: more compact form (#26985) 2023-01-17 13:09:18 -08:00
Kurt Nistelberger a43a243b6e Improve GPSbox tests (#26983)
* add altitude testing

* fix proc check

Co-authored-by: Kurt Nistelberger <kurt.nistelberger@gmail.com>
2023-01-16 20:02:30 -08:00
Harald Schäfer af97a96080 Add lane ekf (#26986)
* change lane_kf pos

* add lane back here
2023-01-16 19:43:34 -08:00
Dean Lee 164880524a cabana: add a combobox to switch between signal and raw hex value (#26974)
* switch between hex&signal value

* sync display mode between view & model
2023-01-16 11:21:15 -08:00
Adeeb Shihadeh 657f1c1337 add bootstrap icons (#26980)
* add bootstrap icons

* pin
2023-01-16 11:20:20 -08:00
Willem Melching 5cf1dd7f13 MacOS: mock gpio functions (#26971) 2023-01-16 10:36:06 -08:00
apache2046 f25239f7c5 Radard: pdf not cdf (#26978)
Update radard.py

according the the equation, it is the probability density function (pdf) , not the cumulative distribution function (cdf)
2023-01-16 10:22:09 -08:00
Willem Melching 5cc192be4d cabana: MacOS fixes (#26973)
* make qtcharts a framework

* cabana: dfisable openpilot prefix on macos

* cabana: disable opengl on charts

* fix linux build

* no newline

* add comments
2023-01-15 22:13:16 -08:00
Jason Young 9c58e5fedd VW MQB: Add FW for 2020 Škoda Scala (#26976) 2023-01-15 17:16:45 -08:00
Adeeb Shihadeh 11da83d2b5 boardd: lock spi device (#26937)
* lock spi

* bump panda

Co-authored-by: Comma Device <device@comma.ai>
2023-01-15 13:52:16 -08:00
Jason Young f6dc12a735 VW MQB: Add diagnostic firewall note to config tool (#26975) 2023-01-15 13:13:50 -08:00
Dean Lee 58bd024089 cabana: support drag and drop to merge charts (#26968) 2023-01-15 12:52:11 -08:00
Willem Melching ae6ad15df5 MacOS: bump body to fix build (#26972) 2023-01-15 12:50:29 -08:00
Jason Wen 9168bae8da bump panda 2023-01-15 04:10:46 -05:00
Jason Wen 50f3dfe37a Merge remote-tracking branch 'upstream/commaai/openpilot/master' into dev-pub/master 2023-01-15 04:10:28 -05:00
Adeeb Shihadeh 6861c99991 don't run ublox procs without ublox (#26965)
* pigeond: don't run if ublox missing

* same for ubloxd

Co-authored-by: Comma Device <device@comma.ai>
2023-01-14 23:06:09 -08:00
Harald Schäfer 4c33d94d3f Revert locationd to gpsLocation (#26963)
* revert locationd laika change

* switch msg

* change proc replay

* back to gpslocation

* update ref

* no np floats in msg

* Ignore empty laikad messages in mapos

* more tolerance

* c++ doesnt work like that
2023-01-14 16:56:14 -08:00
Adeeb Shihadeh d064a32b00 docs: add experimental mode to compatibility description (#26954)
* docs: add experimental mode to compatibility description

* lower case
2023-01-14 16:28:17 -08:00
Bruce Wayne c44b622559 Revert "temporary revert laikad as main gps"
This reverts commit 1e8e4f7ede.
2023-01-14 10:34:59 -08:00
Kurt Nistelberger 1e8e4f7ede temporary revert laikad as main gps 2023-01-13 22:24:16 -08:00
ZwX1616 028527423c camerad: rework ox exposure score (#26948)
* wip

* make separate score func

* n4ot g

* clean up

* remove

* simplify

* b2b

* balance costs

* clean up

* no if tici

* box view

* new baselines

* Revert "new baselines"

This reverts commit f7a5d059eda70fa4d49e3024923da30e8821f42b.

* Revert "box view"

This reverts commit a57924be36e7d6abc2585aca9575c74cd583ef86.

Co-authored-by: Comma Device <device@comma.ai>
2023-01-13 21:32:15 -08:00
Shane Smiskol 6527f2c825 Car docs: link to car harness on shop (#26957)
* harness links

* test

* fix for no years cars

* match order of docs
2023-01-13 17:52:24 -08:00
Shane Smiskol 406d12b7c1 Fix car docs diff bot (#26955)
fix
2023-01-13 17:20:45 -08:00
Adeeb Shihadeh c91679c2d4 remove dead libdiag.h (#26951) 2023-01-13 15:23:58 -08:00
Robbe Derks 3136985b95 No more magic for the can chunks (#26861)
* remove magic and add checksum

* add comms reset

* bump submodule
2023-01-13 15:01:55 -08:00
Adeeb Shihadeh 23bd5d6f5d clutil: use logging functions (#26950)
Co-authored-by: Comma Device <device@comma.ai>
2023-01-13 14:49:01 -08:00
Adeeb Shihadeh 50f62a7adc revert timeout increase from #26850 2023-01-13 13:46:01 -08:00
Vivek Aithal 2e36d07106 paramsd: Remove one active condition (#26922)
* remove one active condition

* update refs

* remove unused vars

* update refs

* update refs
2023-01-13 13:23:06 -08:00
Erich Moraga 83d619e457 Add missing COROLLA_TSS2 engine f/w (#26936)
add missing engine

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-01-13 11:49:33 -08:00
Dean Lee c1b9c3d3d1 Cabana: save signal on editingFinished (#26940)
save signal on editingFinished
2023-01-13 11:40:34 -08:00
Kurt Nistelberger 88423e25df Laikad: set active (#26850)
* laikad update, renaming

* update locationd

* fix naming

* address PR comments

* upsi

* .

* draft to fix replay

* fix process relay to allow no response for messages

* final fix for process replay

* .

* bump cereal

* update process replay ref commit

* reduce wait time

* .

* last ref change

* move laikad helpers to laika

* .

* fix ublox test

* update refs

* add proper qcom replay support

* fix gnss support if both is available

* update refs

* remove left over

* revert laikad msg

* move laika back to master

* init

* fix gps valid flag

* change time

* add gnss to ignore

* remove gps_valid flag

* .

* adopt orientation reset threshold

* .

* update laikad

* .

* fix stanstill KF resets

* test orienation reset count

* update laika

* bump cereal

* fix process replay

* update laika repo

* remove handle gps

* add extra logging for cache

* .

* add more log

* .

* .

* update laika

* dont remove gps code

* inc min satellite count

* update magic vals and add acc drop

* update laika

* upsi

* rem

* bump laika

* use nav and correct

* more fixes

* use sftp

* No more glonass

* Revert "No more glonass"

This reverts commit a76124da50a1e25f423ad1137c7a046e1d57811d.

* nump laika

* back support old ephemeris cache

* add health to ephemeris message

* bump laika

* remove print

* fix laikad tests

* clean

* remove extra log

* bump laika

* inc timeout for plotjuggler build

* rem cache clear

* .

* enable gps after checks

Co-authored-by: Kurt Nistelberger <kurt.nistelberger@gmail.com>
Co-authored-by: Bruce Wayne <harald.the.engineer@gmail.com>
Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-01-13 11:37:38 -08:00
Dean Lee aaed353778 cabana: use Qt::Window flag for FindSimilarBitsDlg (#26938)
use Qt::Window flag for FindSimilarBitsDlg
2023-01-13 11:33:03 -08:00
Jason Wen 1d91913aae Hyundai: Add FW Version for 2021 Sonata N Line (#26945)
* Hyundai: Add FW Version for 2021 Sonata N Line

* missing engine

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-01-13 11:21:51 -08:00
Jason Wen eb3eb92d5e bump submodules 2023-01-12 19:35:07 -05:00
Jason Wen df79142199 Merge remote-tracking branch 'upstream/commaai/openpilot/master' 2023-01-12 19:32:25 -05:00
Adeeb Shihadeh 8aac07bf86 model replay: disable nav for now 2023-01-12 15:20:37 -08:00
Shane Smiskol 47cca343ec docs: open footnotes in new tab 2023-01-12 15:07:14 -08:00
Shane Smiskol df394004d5 red panda footnote: finish thought (#26933)
missing `car`
2023-01-12 14:58:47 -08:00
Dean Lee 53ec07edbd cabana: double click on an item in FindSimilarBitsDlg to open the message in detailView (#26930)
* double click to open message

* remove qDebug
2023-01-12 13:39:51 -08:00
Dean Lee 66d0d4c7d7 cabana: filtering in both address and msg name (#26929)
search in address and name

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-01-12 13:27:46 -08:00
Shane Smiskol b00bc4f57e Car interface: require fingerprint and FW versions to get params (#26932)
* require fingerprint and FW versions

* add get_non_essential_params()

* comment

* all required

* classmethod, need to allow subclasses to override _get_params

* fix that

* fix

* fix

* wrong fix 🤦
2023-01-12 12:25:24 -08:00
Adeeb Shihadeh f14deae475 Revert "Car interface: require fingerprint and FW versions to get params (#26766)"
This reverts commit b68dabb689.
2023-01-12 11:28:04 -08:00
Dean Lee 97b931a12a cabana: fix chart glitches (#26928) 2023-01-12 11:27:20 -08:00
Shane Smiskol b68dabb689 Car interface: require fingerprint and FW versions to get params (#26766)
* require fingerprint and FW versions

* add get_non_essential_params()

* comment

* all required

* classmethod, need to allow subclasses to override _get_params

* fix that

* fix
2023-01-11 23:44:50 -08:00
Shane Smiskol de6f9010fa Car docs: show video link (#26907)
* add videos to gh docs

* fix

* add icon

* fix

* try this

* white inner triangle

* width

* try height

* use video_icon in template

* clean up

* rename

* smaller
2023-01-11 23:30:11 -08:00
Kurt Nistelberger a0f55f72fc increase nav default marker 2023-01-11 22:31:25 -08:00
Dean Lee f3fa4d759d cabana: fix find similar bits (#26918)
* dynamic find bit

* change

* Revert "change"

This reverts commit 12cf513e2725a52ee40b8999521adcd6ecb00221.

* change sorting and headers

* make perc a float

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-01-11 21:21:11 -08:00
Jason Wen 69f8ac0b65 HKG: Car Port for Kia Sorento 2022 (#26874)
* HKG: Car Port for Kia Sorento 2022

* Harness K

* SCC is on bus 4

* Add test route

* seems reasonable

* more interesting segment

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-01-11 21:17:58 -08:00
Niels Ole Salscheider 2d403cbf9c VW MQB: Add FW for 2017 Seat Leon (#26883)
* VW MQB: Add FW for 2017 Seat Leon

* missing srs

Co-authored-by: Comma Device <device@comma.ai>
Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-01-11 20:33:45 -08:00
Shane Smiskol 257a45dd18 HKG: filter on steering pressed (#26924)
* filter on can steering pressed

* Update ref_commit
2023-01-11 20:25:01 -08:00
Shane Smiskol a24afa18d3 Hyundai CAN-FD: set available from TCS ACC available (#26921)
* available on TCS signal always

* cmt enh

* better comment

* better
2023-01-11 17:22:24 -08:00
Jason Wen ccb4327197 HKG CAN-FD: set cruise state available with car signal (#26812)
* HKG CAN-FD: set cruise state available with car signal

* Whoops

* Check this signal

* No should be in SCC_CONTROL

* use TCS

* add back

* match CAN

* think these are missing

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-01-11 16:14:05 -08:00
Jason Young 35626303b1 VW MQB: Add FW for 2019 Volkswagen Golf (#26920) 2023-01-11 15:45:15 -08:00
Dean Lee 9884957e3e cabana: sync play button state (#26917)
sync play button
2023-01-11 15:32:13 -08:00
Adeeb Shihadeh f41caec2de bump cereal, can in qlogs 2023-01-11 15:02:24 -08:00
Shane Smiskol 29470d2d2d VW: match panda standstill check (#25761)
* test models: check panda standstill

* match panda

* reverse exception

* check == 0

* bumppanda

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2023-01-10 22:28:54 -08:00
Jason Young cb88b3ed65 controlsd: set latActive with max minimum steer speed (#26805)
* refactor minimum lateral speed handling

* rename for clarity

* simplify without joystick at standstill

* intermediate standstill variable, check notCar

* check joystick for now

* cmt

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-01-10 20:51:10 -08:00
Shane Smiskol f0d0d99981 process replay: test body with joystick mode (#26916)
* no need to check sm

* fix

* Update ref_commit

* revert
2023-01-10 19:59:39 -08:00
Adeeb Shihadeh 5f66a9a621 jenkins fixups 2023-01-10 16:20:27 -08:00
Shane Smiskol b45dda2d0a Longitudinal tests: test forceDecel (#26765)
* test with forceDecel

* test all combos

* fix

* fix

* fix

* ...

* remove print

* clean up

* just set cruise to 0

* update ref commit

Co-authored-by: Bruce Wayne <harald.the.engineer@gmail.com>
2023-01-10 14:46:43 -08:00
Shane Smiskol 4e9bddee5c longcontrol: enter stopping state immediately (#26879)
* enter stopping state immediately

* Update selfdrive/controls/lib/longcontrol.py
2023-01-10 13:02:43 -08:00
Kyle Dibble-Dabney 9e364ff76f Added fingerprint for 2023 EV6, fwdCamera (#26900) 2023-01-09 19:01:03 -08:00
Erich Moraga d12146fbd6 Add several missing LEXUS_RC firmwares (#26905)
* Add several missing LEXUS_RC firmwares

`@Vranesh#9912` 2020 RC350  DongleID/route d6303cdeea512a4e|2023-01-09--17-11-55

* lexus now has two engines

* todo

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-01-09 18:57:51 -08:00
Jason Wen 1a907b4c7a HKG: add FW Versions for 2019 Kia Stinger (#26897)
* HKG: Add FW Versions for 2019 Kia Stinger

* Update selfdrive/car/hyundai/values.py

* fix

* use shorter query

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-01-09 18:14:02 -08:00
David Peterson 9b9c2a657e Car docs: add video for Nissan Leaf (#26901)
* CAR.LEAF: NissanCarInfo("Nissan Leaf 2018-22”), video_link= "https://youtu.be/vaMbtAh_0cY&t=0s"),

Add Youtube video 2019 Leaf

* Update selfdrive/car/nissan/values.py

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-01-09 17:25:43 -08:00
Shane Smiskol dac7a24677 car interfaces: test longitudinal params are set correctly (#26894)
* add long unit tests and fix

* revert

* remove debug

* cleanup

Co-authored-by: Laptop Researcher <laptop@researcher.com>
2023-01-09 16:21:47 -08:00
Tim Wilson a40efbdfcc GM camera ACC: always set long tune (#26892)
* GM: set long tune for camera car w/o exp. mode

* same tuning

* update refs

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-01-09 15:01:55 -08:00
Dean Lee a421c9464e replay: sync vision buffer (#26904) 2023-01-09 13:48:04 -08:00
Willem Melching 19a15eeb53 MacOS: homebrew arm-none-eabi-gcc works again (#26903)
Revert "Fix gcc-arm-embedded for m1 mac (#24515)"

This reverts commit 01a237ef02.
2023-01-09 10:30:30 -08:00
Dean Lee 2204a7153f replay: remove need for fake dongle id (#26899) 2023-01-08 15:51:08 -08:00
Kurt Nistelberger 2b611862be match style 2023-01-07 17:56:16 -08:00
Kurt Nistelberger b6440304d5 Navigation: add destination marker (#26873)
* add navigation destination marker

* fix removal

* update default marker icon

* update default marker

Co-authored-by: Kurt Nistelberger <kurt.nistelberger@gmail.com>
2023-01-07 17:53:14 -08:00
Cameron Clough ae256dceba revert: docs: update CAN FD footnote (#26896)
partial revert, we still need the footnote to be exported for the shop
2023-01-07 13:20:48 -08:00
Dean Lee 2c7df6efc8 replay: show absolute time (#26869) 2023-01-07 11:07:30 -08:00
Adeeb Shihadeh bf34110572 docs: update CAN FD footnote (#26896)
* docs: update CAN FD footnote

* touch up
2023-01-07 11:05:56 -08:00
Rafael Pinilla 0d85a2c373 European Lexus UX250h 2019: add engine FW (#26895)
* Update values.py

Added mention to all 2019 Lexus UX250h Fw in CORROLLAH section

* Update values.py

Syntax error in REMs
2023-01-07 09:40:52 -08:00
Jason Wen fe6bf5e293 Merge remote-tracking branch 'upstream/commaai/openpilot/master' into master-public 2023-01-02 20:05:54 -05:00
Jason Wen 6ad18dae26 update refs 2022-12-20 01:14:23 -05:00
1656 changed files with 89389 additions and 80321 deletions
+3
View File
@@ -0,0 +1,3 @@
.Xauthority
.env
.host/
+15
View File
@@ -0,0 +1,15 @@
FROM ghcr.io/commaai/openpilot-base:latest
RUN apt update && apt install -y vim net-tools usbutils htop ripgrep tmux wget mesa-utils xvfb libxtst6 libxv1 libglu1-mesa libegl1-mesa
RUN pip install ipython jupyter jupyterlab
RUN cd /tmp && \
ARCH=$(arch | sed s/aarch64/arm64/ | sed s/x86_64/amd64/) && \
curl -L -o virtualgl.deb "https://downloads.sourceforge.net/project/virtualgl/3.1/virtualgl_3.1_$ARCH.deb" && \
dpkg -i virtualgl.deb
USER batman
RUN cd $HOME && \
curl -O https://raw.githubusercontent.com/commaai/agnos-builder/master/userspace/home/.tmux.conf && \
curl -O https://raw.githubusercontent.com/commaai/agnos-builder/master/userspace/home/.vimrc
+38
View File
@@ -0,0 +1,38 @@
#!/usr/bin/env bash
TARGET_USER=batman
source .devcontainer/.host/.env
# override display flag for mac hosts
if [[ $HOST_OS == darwin ]]; then
echo "Setting up DISPLAY override for macOS..."
cat <<EOF >> /home/$TARGET_USER/.bashrc
source .devcontainer/.host/.env
if [ -n "\$HOST_DISPLAY" ]; then
DISPLAY_NUM=\$(echo "\$HOST_DISPLAY" | awk -F: '{print \$NF}')
export DISPLAY=host.docker.internal:\$DISPLAY_NUM
fi
EOF
fi
# setup virtualgl for mac hosts
if [[ $HOST_OS == darwin ]]; then
echo "Setting up virtualgl for macOS..."
cat <<EOF >> /home/$TARGET_USER/.bashrc
if [ -n "\$HOST_DISPLAY" ]; then
export VGL_PORT=10000
export VGL_CLIENT=host.docker.internal
export VGL_COMPRESS=rgb
export VGL_DISPLAY=:99
export VGL_FPS=60
# prevent vglrun from running exec
alias exec=:; source vglrun :; unalias exec
fi
EOF
fi
# These lines are temporary, to remain backwards compatible with old devcontainers
# that were running as root and therefore had their caches written as root
sudo chown -R $TARGET_USER: /tmp/scons_cache
sudo chown -R $TARGET_USER: /tmp/comma_download_cache
sudo chown -R $TARGET_USER: /home/batman/.comma
+15
View File
@@ -0,0 +1,15 @@
#!/usr/bin/env bash
source .devcontainer/.host/.env
# setup safe directories for submodules
SUBMODULE_DIRS=$(git config --file .gitmodules --get-regexp path | awk '{ print $2 }')
for DIR in $SUBMODULE_DIRS; do
git config --global --add safe.directory "$PWD/$DIR"
done
# virtual display for virtualgl
if [[ "$HOST_OS" == "darwin" ]] && [[ -n "$HOST_DISPLAY" ]]; then
echo "Starting virtual display at :99 ..."
tmux new-session -d -s fakedisplay Xvfb :99 -screen 0 1920x1080x24
fi
+47
View File
@@ -0,0 +1,47 @@
{
"name": "openpilot devcontainer",
"build": {
"dockerfile": "Dockerfile"
},
"postCreateCommand": ".devcontainer/container_post_create.sh",
"postStartCommand": ".devcontainer/container_post_start.sh",
"initializeCommand": [".devcontainer/host_setup"],
"privileged": true,
"containerEnv": {
"DISPLAY": "${localEnv:DISPLAY}",
"PYTHONPATH": "${containerWorkspaceFolder}",
"TERM": "xterm-256color",
"force_color_prompt": "1"
},
"runArgs": [
"--volume=/tmp/.X11-unix:/tmp/.X11-unix",
"--volume=${localWorkspaceFolder}/.devcontainer/.host/.Xauthority:/home/batman/.Xauthority",
"--volume=${localEnv:HOME}/.comma:/home/batman/.comma",
"--volume=/tmp/comma_download_cache:/tmp/comma_download_cache",
"--volume=/tmp/devcontainer_scons_cache:/tmp/scons_cache",
"--shm-size=1G",
"--add-host=host.docker.internal:host-gateway", // required to use host.docker.internal on linux
"--publish=0.0.0.0:8070-8079:8070-8079" // body ZMQ services
],
"features": {
"ghcr.io/devcontainers/features/common-utils:2": {
"installZsh": false,
"installOhMyZsh": false,
"upgradePackages": false,
"username": "batman"
}
},
"containerUser": "batman",
"remoteUser": "batman",
"customizations": {
"vscode": {
"extensions": [
"ms-python.python",
"ms-vscode.cpptools",
"ms-toolsai.jupyter",
"guyskk.language-cython",
"lharri73.dbc"
]
}
}
}
+47
View File
@@ -0,0 +1,47 @@
#!/usr/bin/env bash
# pull base image
if [[ -z $USE_LOCAL_IMAGE ]]; then
echo "Updating openpilot_base image if needed..."
docker pull ghcr.io/commaai/openpilot-base:latest
fi
# setup .host dir
mkdir -p .devcontainer/.host
# setup links to Xauthority
XAUTHORITY_LINK=".devcontainer/.host/.Xauthority"
rm -f $XAUTHORITY_LINK
if [[ -z $XAUTHORITY ]]; then
echo "XAUTHORITY not set. Fallback to ~/.Xauthority ..."
if ! [[ -f $HOME/.Xauthority ]]; then
echo "~/.XAuthority file does not exist. GUI tools may not work properly."
touch $XAUTHORITY_LINK # dummy file to satisfy container volume mount
else
ln -sf $HOME/.Xauthority $XAUTHORITY_LINK
fi
else
ln -sf $XAUTHORITY $XAUTHORITY_LINK
fi
# setup host env file
HOST_INFO_FILE=".devcontainer/.host/.env"
SYSTEM=$(uname -s | tr '[:upper:]' '[:lower:]')
echo "HOST_OS=\"$SYSTEM\"" > $HOST_INFO_FILE
echo "HOST_DISPLAY=\"$DISPLAY\"" >> $HOST_INFO_FILE
# run virtualgl if macos
if [[ $SYSTEM == "darwin" ]]; then
echo
if [[ -f /opt/VirtualGL/bin/vglclient ]]; then
echo "Starting VirtualGL client at port 10000..."
VGL_LOG_FILE=".devcontainer/.host/.vgl/vglclient.log"
mkdir -p "$(dirname $VGL_LOG_FILE)"
/opt/VirtualGL/bin/vglclient -l "$VGL_LOG_FILE" -display "$DISPLAY" -port 10000 -detach
else
echo "VirtualGL not found. GUI tools may not work properly. Some GUI tools require OpenGL to work properly. To use them with XQuartz on mac, VirtualGL needs to be installed. To install it run:"
echo
echo " brew install --cask virtualgl"
echo
fi
fi
+10
View File
@@ -0,0 +1,10 @@
:: pull base image
IF NOT DEFINED USE_LOCAL_IMAGE ^
echo "Updating openpilot_base image if needed..." && ^
docker pull ghcr.io/commaai/openpilot-base:latest
:: setup .host dir
mkdir .devcontainer\.host
:: setup host env file
echo "" > .devcontainer\.host\.env
-3
View File
@@ -1,3 +0,0 @@
((c++-mode (flycheck-gcc-language-standard . "c++11")
(flycheck-clang-language-standard . "c++11")
))
+3 -2
View File
@@ -16,6 +16,9 @@
*.so
*.a
venv/
.venv/
notebooks
phone
massivemap
@@ -25,10 +28,8 @@ chffr/app2
chffr/backend/env
selfdrive/nav
selfdrive/baseui
chffr/lib/vidindex/vidindex
selfdrive/test/simulator2
**/cache_data
xx/chffr/lib/vidindex/vidindex
xx/plus
xx/community
xx/projects
+22
View File
@@ -1,2 +1,24 @@
* text=auto
# to move existing files into LFS:
# git add --renormalize .
*.dlc filter=lfs diff=lfs merge=lfs -text
*.onnx filter=lfs diff=lfs merge=lfs -text
*.svg filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.gif filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.wav filter=lfs diff=lfs merge=lfs -text
selfdrive/car/tests/test_models_segs.txt filter=lfs diff=lfs merge=lfs -text
system/hardware/tici/updater filter=lfs diff=lfs merge=lfs -text
selfdrive/ui/qt/spinner_larch64 filter=lfs diff=lfs merge=lfs -text
selfdrive/ui/qt/text_larch64 filter=lfs diff=lfs merge=lfs -text
third_party/**/*.a filter=lfs diff=lfs merge=lfs -text
third_party/**/*.so filter=lfs diff=lfs merge=lfs -text
third_party/**/*.so.* filter=lfs diff=lfs merge=lfs -text
third_party/**/*.dylib filter=lfs diff=lfs merge=lfs -text
third_party/acados/*/t_renderer filter=lfs diff=lfs merge=lfs -text
third_party/qt5/larch64/bin/lrelease filter=lfs diff=lfs merge=lfs -text
third_party/qt5/larch64/bin/lupdate filter=lfs diff=lfs merge=lfs -text
third_party/catch2/include/catch2/catch.hpp filter=lfs diff=lfs merge=lfs -text
+12
View File
@@ -0,0 +1,12 @@
# These are supported funding model platforms
github: [sunnyhaibin] # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
patreon: sunnyhaibin # Replace with a single Patreon username
open_collective: # Replace with a single Open Collective username
ko_fi: # Replace with a single Ko-fi username
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
liberapay: # Replace with a single Liberapay username
issuehunt: # Replace with a single IssueHunt username
otechie: # Replace with a single Otechie username
custom: ['https://paypal.me/sunnyhaibin0850'] # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
+1 -1
View File
@@ -8,7 +8,7 @@ assignees: ''
**Checklist**
- [ ] added to README
- [ ] added entry to CarInfo in selfdrive/car/*/values.py and ran `selfdrive/car/docs.py` to generate new docs
- [ ] test route added to [routes.py](https://github.com/commaai/openpilot/blob/master/selfdrive/car/tests/routes.py)
- [ ] route with openpilot:
- [ ] route with stock system:
+4 -2
View File
@@ -6,6 +6,8 @@ labels: 'fingerprint'
assignees: ''
---
Discord username: []
**Car**
Which car (make, model, year) this fingerprint is for
Route: []
**Route**
A route with the fingerprint
+1 -2
View File
@@ -28,5 +28,4 @@ Longitudinal:
Lateral:
* Straight driving at ~25, ~45 and ~65mph
* Turns driving at ~25, ~45 and ~65mph
-->
-->
+30
View File
@@ -0,0 +1,30 @@
import pathlib
GITHUB_FOLDER = pathlib.Path(__file__).parent
PULL_REQUEST_TEMPLATES = (GITHUB_FOLDER / "PULL_REQUEST_TEMPLATE")
order = ["fingerprint", "car_bugfix", "bugfix", "car_port", "refactor"]
def create_pull_request_template():
with open(GITHUB_FOLDER / "pull_request_template.md", "w") as f:
f.write("<!-- Please copy and paste the relevant template -->\n\n")
for t in order:
template = PULL_REQUEST_TEMPLATES / f"{t}.md"
text = template.read_text()
# Remove metadata for GitHub
start = text.find("---")
end = text.find("---", start+1)
text = text[end + 4:]
# Remove comments
text = text.replace("<!-- ", "").replace("-->", "")
f.write(f"<!--- ***** Template: {template.stem.replace('_', ' ').title()} *****\n")
f.write(text)
f.write("\n\n")
f.write("-->\n\n")
create_pull_request_template()
+79
View File
@@ -0,0 +1,79 @@
CI / testing:
- changed-files:
- any-glob-to-all-files: "{.github/**,**/test_*,Jenkinsfile}"
car:
- changed-files:
- any-glob-to-all-files: 'selfdrive/car/**'
body:
- changed-files:
- any-glob-to-all-files: 'selfdrive/car/body/*'
chrysler:
- changed-files:
- any-glob-to-all-files: 'selfdrive/car/chrysler/*'
ford:
- changed-files:
- any-glob-to-all-files: 'selfdrive/car/ford/*'
gm:
- changed-files:
- any-glob-to-all-files: 'selfdrive/car/gm/*'
honda:
- changed-files:
- any-glob-to-all-files: 'selfdrive/car/honda/*'
hyundai:
- changed-files:
- any-glob-to-all-files: 'selfdrive/car/hyundai/*'
mazda:
- changed-files:
- any-glob-to-all-files: 'selfdrive/car/mazda/*'
nissan:
- changed-files:
- any-glob-to-all-files: 'selfdrive/car/nissan/*'
subaru:
- changed-files:
- any-glob-to-all-files: 'selfdrive/car/subaru/*'
tesla:
- changed-files:
- any-glob-to-all-files: 'selfdrive/car/telsa/*'
toyota:
- changed-files:
- any-glob-to-all-files: 'selfdrive/car/toyota/*'
volkswagen:
- changed-files:
- any-glob-to-all-files: 'selfdrive/car/volkswagen/*'
fingerprint:
- changed-files:
- any-glob-to-all-files: 'selfdrive/car/*/fingerprints.py'
simulation:
- changed-files:
- any-glob-to-all-files: 'tools/sim/**'
ui:
- changed-files:
- any-glob-to-all-files: 'selfdrive/ui/**'
tools:
- changed-files:
- any-glob-to-all-files: 'tools/**'
multilanguage:
- changed-files:
- any-glob-to-all-files: 'selfdrive/ui/translations/**'
research:
- changed-files:
- any-glob-to-all-files: "{selfdrive/modeld/models/**,selfdrive/test/process_replay/model_replay_ref_commit}"
+44 -14
View File
@@ -1,38 +1,68 @@
<!-- Please copy and paste the relevant template -->
<!--- ***** Template: Car bug fix *****
<!--- ***** Template: Fingerprint *****
**Description** [](A description of the bug and the fix. Also link any relevant issues.)
**Verification** [](Explain how you tested this bug fix.)
**Car**
Which car (make, model, year) this fingerprint is for
**Route**
A route with the fingerprint
-->
<!--- ***** Template: Car Bugfix *****
**Description**
A description of the bug and the fix. Also link the issue if it exists.
**Verification**
Explain how you tested this bug fix.
**Route**
Route: [a route with the bug fix]
-->
<!--- ***** Template: Bug fix *****
**Description** [](A description of the bug and the fix. Also link any relevant issues.)
**Verification** [](Explain how you tested this bug fix.)
-->
<!--- ***** Template: Car port *****
<!--- ***** Template: Bugfix *****
**Description**
A description of the bug and the fix. Also link the issue if it exists.
**Verification**
Explain how you tested this bug fix.
-->
<!--- ***** Template: Car Port *****
**Checklist**
- [ ] added entry to CarInfo in selfdrive/car/*/values.py and ran `selfdrive/car/docs.py` to generate new docs
- [ ] test route added to [routes.py](https://github.com/commaai/openpilot/blob/master/selfdrive/car/tests/routes.py)
- [ ] route with openpilot:
- [ ] route with stock system:
- [ ] car harness used (if comma doesn't sell it, put N/A):
-->
<!--- ***** Template: Refactor *****
**Description** [](A description of the refactor, including the goals it accomplishes.)
**Description**
A description of the refactor, including the goals it accomplishes.
**Verification**
Explain how you tested the refactor for regressions.
**Verification** [](Explain how you tested the refactor for regressions.)
-->
+49
View File
@@ -0,0 +1,49 @@
name: 'automatically cache based on current runner'
inputs:
path:
description: 'path to cache'
required: true
key:
description: 'key'
required: true
restore-keys:
description: 'restore-keys'
required: true
save:
description: 'whether to save the cache'
default: 'false'
required: false
runs:
using: "composite"
steps:
- name: setup namespace cache
if: ${{ contains(runner.name, 'nsc') }}
uses: namespacelabs/nscloud-cache-action@v1
with:
path: ${{ inputs.path }}
- name: setup github cache
if: ${{ !contains(runner.name, 'nsc') && inputs.save != 'false' }}
uses: 'actions/cache@v3'
with:
path: ${{ inputs.path }}
key: ${{ inputs.key }}
restore-keys: ${{ inputs.restore-keys }}
- name: setup github cache
if: ${{ !contains(runner.name, 'nsc') && inputs.save == 'false' }}
uses: 'actions/cache/restore@v3'
with:
path: ${{ inputs.path }}
key: ${{ inputs.key }}
restore-keys: ${{ inputs.restore-keys }}
# make the directory manually in case we didn't get a hit, so it doesn't fail on future steps
- id: scons-cache-setup
shell: bash
run: |
mkdir -p ${{ inputs.path }}
sudo chmod -R 777 ${{ inputs.path }}
sudo chown -R $USER ${{ inputs.path }}
+207
View File
@@ -0,0 +1,207 @@
name: "PR review"
on:
pull_request_target:
types: [opened, reopened, synchronize, edited, edited]
jobs:
labeler:
name: apply labels
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: false
- uses: actions/labeler@v5.0.0
with:
dot: true
configuration-path: .github/labeler.yaml
pr_branch_check:
name: check branch
runs-on: ubuntu-latest
if: github.repository == 'commaai/openpilot'
steps:
- uses: Vankka/pr-target-branch-action@69ab6dd5c221de3548b3b6c4d102c1f4913d3baa
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
target: /^(?!master$).*/
exclude: /commaai:.*/
change-to: ${{ github.base_ref }}
already-exists-action: close_this
already-exists-comment: "Your PR should be made against the `master` branch"
check-pr-template:
runs-on: ubuntu-latest
permissions:
contents: read
issues: write
pull-requests: write
actions: read
if: github.event.pull_request.head.repo.full_name != 'commaai/openpilot'
steps:
- uses: actions/github-script@v7
with:
script: |
// Comment to add to the PR if no template has been used
const NO_TEMPLATE_MESSAGE =
"It looks like you didn't use one of the Pull Request templates. Please check [the contributing docs](https://github.com/commaai/openpilot/blob/master/docs/CONTRIBUTING.md). \
Also make sure that you didn't modify any of the checkboxes or headings within the template.";
// body data for future requests
const body_data = {
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
};
// Utility function to extract all headings
const extractHeadings = (markdown) => {
const headingRegex = /^(#{1,6})\s+(.+)$/gm;
const boldTextRegex = /^(?:\*\*|__)(.+?)(?:\*\*|__)\s*$/gm;
const headings = [];
let headingMatch;
while ((headingMatch = headingRegex.exec(markdown))) {
headings.push(headingMatch[2].trim());
}
let boldMatch;
while ((boldMatch = boldTextRegex.exec(markdown))) {
headings.push(boldMatch[1].trim());
}
return headings;
};
// Utility function to extract all check box descriptions
const extractCheckBoxTexts = (markdown) => {
const checkboxRegex = /^\s*-\s*\[( |x)\]\s+(.+)$/gm;
const checkboxes = [];
let match;
while ((match = checkboxRegex.exec(markdown))) {
checkboxes.push(match[2].trim());
}
return checkboxes;
};
// Utility function to check if a list is a subset of another list
isSubset = (subset, superset) => {
return subset.every((item) => superset.includes(item));
};
// Utility function to check if a list of checkboxes is a subset of another list of checkboxes
isCheckboxSubset = (templateCheckBoxTexts, prTextCheckBoxTexts) => {
// Check if each template checkbox text is a substring of at least one PR checkbox text
// (user should be allowed to add additional text)
return templateCheckBoxTexts.every((item) => prTextCheckBoxTexts.some((element) => element.includes(item)))
}
// Get filenames of all currently checked-in PR templates
const template_contents = await github.rest.repos.getContent({
owner: context.repo.owner,
repo: context.repo.repo,
path: ".github/PULL_REQUEST_TEMPLATE",
});
var template_filenames = [];
for (const content of template_contents.data) {
template_filenames.push(content.path);
}
console.debug("Received template filenames: " + template_filenames);
// Retrieve templates
var templates = [];
for (const template_filename of template_filenames) {
const template_response = await github.rest.repos.getContent({
owner: context.repo.owner,
repo: context.repo.repo,
path: template_filename,
});
// Convert Base64 content back
const decoded_template = atob(template_response.data.content);
const headings = extractHeadings(decoded_template);
const checkboxes = extractCheckBoxTexts(decoded_template);
if (!headings.length && !checkboxes.length) {
console.warn(
"Invalid template! Contains neither headings nor checkboxes, ignoring it: \n" +
decoded_template
);
} else {
templates.push({ headings: headings, checkboxes: checkboxes });
}
}
// Retrieve the PR Body
const pull_request = await github.rest.issues.get({
...body_data,
});
const pull_request_text = pull_request.data.body;
console.debug("Received Pull Request body: \n" + pull_request_text);
/* Check if the PR Body matches one of the templates
A template is defined by all headings and checkboxes it contains
We extract all Headings and Checkboxes from the PR text and check if any of the templates is a subset of that
*/
const pr_headings = extractHeadings(pull_request_text);
const pr_checkboxes = extractCheckBoxTexts(pull_request_text);
console.debug("Found Headings in PR body:\n" + pr_headings);
console.debug("Found Checkboxes in PR body:\n" + pr_checkboxes);
var template_found = false;
// Iterate over each template to check if it applies
for (const template of templates) {
console.log(
"Checking for headings: [" +
template.headings +
"] and checkboxes: [" +
template.checkboxes + "]"
);
if (
isCheckboxSubset(template.checkboxes, pr_checkboxes) &&
isSubset(template.headings, pr_headings)
) {
console.debug("Found matching template!");
template_found = true;
}
}
// List comments from previous runs
var existing_comments = [];
const comments = await github.rest.issues.listComments({
...body_data,
});
for (const comment of comments.data) {
if (comment.body === NO_TEMPLATE_MESSAGE) {
existing_comments.push(comment);
}
}
// Add a comment to the PR that it is not using a the template (but only if this comment does not exist already)
if (!template_found) {
var comment_already_sent = false;
// Add an 'in-bot-review' label since this PR doesn't have the template
github.rest.issues.addLabels({
...body_data,
labels: ["in-bot-review"],
});
if (existing_comments.length < 1) {
github.rest.issues.createComment({
...body_data,
body: NO_TEMPLATE_MESSAGE,
});
}
} else {
// If template has been found, delete any old comment about missing template
for (const existing_comment of existing_comments) {
github.rest.issues.deleteComment({
...body_data,
comment_id: existing_comment.id,
});
}
// Remove the 'in-bot-review' label after the review is done and the PR has passed
github.rest.issues.removeLabel({
...body_data,
name: "in-bot-review",
}).catch((error) => {
console.log("Label 'in-bot-review' not found, ignoring");
});
}
+7 -3
View File
@@ -7,22 +7,26 @@ on:
env:
BASE_IMAGE: openpilot-base
DOCKER_REGISTRY: ghcr.io/commaai
RUN: docker run --shm-size 1G -v $PWD:/tmp/openpilot -w /tmp/openpilot -e PYTHONPATH=/tmp/openpilot -e NUM_JOBS -e JOB_ID -e GITHUB_ACTION -e GITHUB_REF -e GITHUB_HEAD_REF -e GITHUB_SHA -e GITHUB_REPOSITORY -e GITHUB_RUN_ID -v /tmp/scons_cache:/tmp/scons_cache -v /tmp/comma_download_cache:/tmp/comma_download_cache -v /tmp/openpilot_cache:/tmp/openpilot_cache $DOCKER_REGISTRY/$BASE_IMAGE:latest /bin/sh -c
RUN: docker run --shm-size 1G -v $PWD:/tmp/openpilot -w /tmp/openpilot -e PYTHONPATH=/tmp/openpilot -e NUM_JOBS -e JOB_ID -e GITHUB_ACTION -e GITHUB_REF -e GITHUB_HEAD_REF -e GITHUB_SHA -e GITHUB_REPOSITORY -e GITHUB_RUN_ID -v $GITHUB_WORKSPACE/.ci_cache/scons_cache:/tmp/scons_cache -v $GITHUB_WORKSPACE/.ci_cache/comma_download_cache:/tmp/comma_download_cache -v $GITHUB_WORKSPACE/.ci_cache/openpilot_cache:/tmp/openpilot_cache $DOCKER_REGISTRY/$BASE_IMAGE:latest /bin/bash -c
jobs:
badges:
name: create badges
runs-on: ubuntu-20.04
if: github.repository == 'commaai/openpilot'
permissions:
contents: write
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: true
- uses: ./.github/workflows/setup
- uses: ./.github/workflows/setup-with-retry
- name: Push badges
run: |
${{ env.RUN }} "scons -j$(nproc) && python selfdrive/ui/translations/create_badges.py"
rm .gitattributes
git checkout --orphan badges
git rm -rf --cached .
git config user.email "badge-researcher@comma.ai"
@@ -0,0 +1,21 @@
name: 'compile openpilot'
runs:
using: "composite"
steps:
- shell: bash
name: Build openpilot with all flags
run: |
${{ env.RUN }} "scons -j$(nproc)"
${{ env.RUN }} "release/check-dirty.sh"
- shell: bash
name: Cleanup scons cache and rebuild
run: |
${{ env.RUN }} "rm -rf /tmp/scons_cache/* && \
scons -j$(nproc) --cache-populate"
- name: Save scons cache
uses: actions/cache/save@v3
if: github.ref == 'refs/heads/master'
with:
path: .ci_cache/scons_cache
key: scons-${{ runner.arch }}-${{ env.CACHE_COMMIT_DATE }}-${{ github.sha }}
+64
View File
@@ -0,0 +1,64 @@
name: docs
on:
push:
branches:
- master
pull_request:
concurrency:
group: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' && github.run_id || github.head_ref || github.ref }}-${{ github.workflow }}-${{ github.event_name }}
cancel-in-progress: true
env:
BASE_IMAGE: openpilot-base
BUILD: selfdrive/test/docker_build.sh base
RUN: docker run --shm-size 1G -v $GITHUB_WORKSPACE:/tmp/openpilot -w /tmp/openpilot -e FILEREADER_CACHE=1 -e PYTHONPATH=/tmp/openpilot -e NUM_JOBS -e JOB_ID -e GITHUB_ACTION -e GITHUB_REF -e GITHUB_HEAD_REF -e GITHUB_SHA -e GITHUB_REPOSITORY -e GITHUB_RUN_ID -v $GITHUB_WORKSPACE/.ci_cache/scons_cache:/tmp/scons_cache -v $GITHUB_WORKSPACE/.ci_cache/comma_download_cache:/tmp/comma_download_cache -v $GITHUB_WORKSPACE/.ci_cache/openpilot_cache:/tmp/openpilot_cache $BASE_IMAGE /bin/bash -c
jobs:
docs:
name: build docs
runs-on: ubuntu-20.04
timeout-minutes: 45
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: ./.github/workflows/setup-with-retry
- name: Build openpilot
run: |
${{ env.RUN }} "scons -j$(nproc)"
- name: Build docs
run: |
${{ env.RUN }} "apt update && apt install -y doxygen && cd docs && make -j$(nproc) html"
- uses: actions/checkout@v4
if: github.ref == 'refs/heads/master' && github.repository == 'commaai/openpilot'
with:
path: openpilot-docs
ssh-key: ${{ secrets.OPENPILOT_DOCS_KEY }}
repository: commaai/openpilot-docs
- name: Push
if: github.ref == 'refs/heads/master' && github.repository == 'commaai/openpilot'
run: |
set -x
source release/identity.sh
cd openpilot-docs
git checkout --orphan tmp
git rm -rf .
cp -r ../build/docs/html/ docs/
cp -r ../docs/README.md .
touch docs/.nojekyll
echo -n docs.comma.ai > docs/CNAME
git add -f .
git commit -m "build docs"
# docs live in different repo to not bloat openpilot's full clone size
git push -f origin tmp:gh-pages
+13 -15
View File
@@ -5,37 +5,35 @@ on:
workflow_dispatch:
env:
BASE_IMAGE: openpilot-base
DOCKER_REGISTRY: ghcr.io/commaai
DOCKER_LOGIN: docker login ghcr.io -u ${{ github.actor }} -p ${{ secrets.GITHUB_TOKEN }}
BUILD: |
DOCKER_BUILDKIT=1 docker build --pull --build-arg BUILDKIT_INLINE_CACHE=1 --cache-from $DOCKER_REGISTRY/$BASE_IMAGE:latest -t $DOCKER_REGISTRY/$BASE_IMAGE:latest -t $BASE_IMAGE:latest -f Dockerfile.openpilot_base .
BUILD: selfdrive/test/docker_build.sh prebuilt
jobs:
build_prebuilt:
name: build prebuilt
runs-on: ubuntu-20.04
timeout-minutes: 60
if: github.repository == 'commaai/openpilot'
env:
IMAGE_NAME: openpilot-prebuilt
PUSH_IMAGE: true
permissions:
checks: read
contents: read
packages: write
steps:
- name: Wait for green check mark
uses: lewagon/wait-on-check-action@e2558238c09778af25867eb5de5a3ce4bbae3dcd
if: ${{ github.event_name != 'workflow_dispatch' }}
uses: lewagon/wait-on-check-action@595dabb3acf442d47e29c9ec9ba44db0c6bdd18f
with:
ref: master
wait-interval: 30
running-workflow-name: 'build prebuilt'
repo-token: ${{ secrets.GITHUB_TOKEN }}
check-regexp: ^((?!.*(build master-ci).*).)*$
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: true
- name: Build Docker image
run: |
eval "$BUILD"
DOCKER_BUILDKIT=1 docker build --pull --build-arg BUILDKIT_INLINE_CACHE=1 --cache-from $DOCKER_REGISTRY/$IMAGE_NAME:latest -t $DOCKER_REGISTRY/$IMAGE_NAME:latest -f Dockerfile.openpilot .
- name: Push to container registry
- run: git lfs pull
- name: Build and Push docker image
run: |
$DOCKER_LOGIN
docker push $DOCKER_REGISTRY/$IMAGE_NAME:latest
eval "$BUILD"
+30 -5
View File
@@ -1,29 +1,54 @@
name: release
on:
schedule:
- cron: '0 * * * *'
- cron: '0 10 * * *'
workflow_dispatch:
jobs:
build_masterci:
name: build master-ci
env:
TARGET_DIR: /tmp/openpilot
ImageOS: ubuntu20
container:
image: ghcr.io/commaai/openpilot-base:latest
runs-on: ubuntu-20.04
timeout-minutes: 60
if: github.repository == 'commaai/openpilot'
permissions:
checks: read
contents: write
steps:
- name: Install wait-on-check-action dependencies
run: |
sudo apt-get update
sudo apt-get install -y libyaml-dev
- name: Wait for green check mark
uses: lewagon/wait-on-check-action@e2558238c09778af25867eb5de5a3ce4bbae3dcd
if: ${{ github.event_name != 'workflow_dispatch' }}
uses: lewagon/wait-on-check-action@595dabb3acf442d47e29c9ec9ba44db0c6bdd18f
with:
ref: master
wait-interval: 30
running-workflow-name: 'build master-ci'
repo-token: ${{ secrets.GITHUB_TOKEN }}
check-regexp: ^((?!.*(build prebuilt).*).)*$
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: true
fetch-depth: 0
- name: Pull LFS
run: git lfs pull
run: |
git config --global --add safe.directory '*'
git lfs pull
- name: Build master-ci
run: |
release/build_devel.sh
- name: Run tests
run: |
export PYTHONPATH=$TARGET_DIR
cd $TARGET_DIR
scons -j$(nproc)
pytest -n logical selfdrive/car/tests/test_car_interfaces.py
- name: Push master-ci
run: |
unset TARGET_DIR
BRANCH=master-ci release/build_devel.sh
+61
View File
@@ -0,0 +1,61 @@
name: repo maintenance
on:
schedule:
- cron: "0 14 * * 1" # every Monday at 2am UTC (6am PST)
workflow_dispatch:
jobs:
bump_submodules:
name: bump_submodules
runs-on: ubuntu-20.04
container:
image: ghcr.io/commaai/openpilot-base:latest
if: github.repository == 'commaai/openpilot'
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: bump submodules
run: |
git config --global --add safe.directory '*'
git -c submodule."tinygrad".update=none submodule update --remote
git add .
- name: Create Pull Request
uses: peter-evans/create-pull-request@5b4a9f6a9e2af26e5f02351490b90d01eb8ec1e5
with:
token: ${{ secrets.ACTIONS_CREATE_PR_PAT }}
commit-message: bump submodules
title: '[bot] Bump submodules'
branch: auto-bump-submodules
base: master
delete-branch: true
body: 'Automatic PR from repo-maintenance -> bump_submodules'
labels: bot
package_updates:
name: package_updates
runs-on: ubuntu-20.04
container:
image: ghcr.io/commaai/openpilot-base:latest
if: github.repository == 'commaai/openpilot'
steps:
- uses: actions/checkout@v4
- name: poetry lock
run: |
pip install poetry
poetry lock
- name: pre-commit autoupdate
run: |
git config --global --add safe.directory '*'
pre-commit autoupdate
- name: Create Pull Request
uses: peter-evans/create-pull-request@5b4a9f6a9e2af26e5f02351490b90d01eb8ec1e5
with:
token: ${{ secrets.ACTIONS_CREATE_PR_PAT }}
commit-message: Update Python packages and pre-commit hooks
title: '[bot] Update Python packages and pre-commit hooks'
branch: auto-package-updates
base: master
delete-branch: true
body: 'Automatic PR from repo-maintenance -> package_updates'
labels: bot
+195 -208
View File
@@ -2,193 +2,150 @@ name: selfdrive
on:
push:
branches-ignore:
- 'testing-closet*'
branches:
- master
pull_request:
workflow_dispatch:
concurrency:
group: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' && github.run_id || github.head_ref || github.ref }}-${{ github.workflow }}-${{ github.event_name }}
cancel-in-progress: true
env:
PYTHONWARNINGS: error
BASE_IMAGE: openpilot-base
CL_BASE_IMAGE: openpilot-base-cl
DOCKER_REGISTRY: ghcr.io/commaai
AZURE_TOKEN: ${{ secrets.AZURE_COMMADATACI_OPENPILOTCI_TOKEN }}
DOCKER_LOGIN: docker login ghcr.io -u ${{ github.actor }} -p ${{ secrets.GITHUB_TOKEN }}
BUILD: |
DOCKER_BUILDKIT=1 docker build --pull --build-arg BUILDKIT_INLINE_CACHE=1 --cache-from $DOCKER_REGISTRY/$BASE_IMAGE:latest -t $DOCKER_REGISTRY/$BASE_IMAGE:latest -t $BASE_IMAGE:latest -f Dockerfile.openpilot_base .
BUILD: selfdrive/test/docker_build.sh base
RUN: docker run --shm-size 1G -v $PWD:/tmp/openpilot -w /tmp/openpilot -e FILEREADER_CACHE=1 -e PYTHONPATH=/tmp/openpilot -e NUM_JOBS -e JOB_ID -e GITHUB_ACTION -e GITHUB_REF -e GITHUB_HEAD_REF -e GITHUB_SHA -e GITHUB_REPOSITORY -e GITHUB_RUN_ID -v /tmp/scons_cache:/tmp/scons_cache -v /tmp/comma_download_cache:/tmp/comma_download_cache -v /tmp/openpilot_cache:/tmp/openpilot_cache $BASE_IMAGE /bin/sh -c
RUN: docker run --shm-size 1G -v $PWD:/tmp/openpilot -w /tmp/openpilot -e CI=1 -e PRE_COMMIT_HOME=/tmp/pre-commit -e PYTHONWARNINGS=error -e FILEREADER_CACHE=1 -e PYTHONPATH=/tmp/openpilot -e NUM_JOBS -e JOB_ID -e GITHUB_ACTION -e GITHUB_REF -e GITHUB_HEAD_REF -e GITHUB_SHA -e GITHUB_REPOSITORY -e GITHUB_RUN_ID -v $GITHUB_WORKSPACE/.ci_cache/pre-commit:/tmp/pre-commit -v $GITHUB_WORKSPACE/.ci_cache/scons_cache:/tmp/scons_cache -v $GITHUB_WORKSPACE/.ci_cache/comma_download_cache:/tmp/comma_download_cache -v $GITHUB_WORKSPACE/.ci_cache/openpilot_cache:/tmp/openpilot_cache $BASE_IMAGE /bin/bash -c
BUILD_CL: |
DOCKER_BUILDKIT=1 docker build --pull --build-arg BUILDKIT_INLINE_CACHE=1 --cache-from $DOCKER_REGISTRY/$CL_BASE_IMAGE:latest -t $DOCKER_REGISTRY/$CL_BASE_IMAGE:latest -t $CL_BASE_IMAGE:latest -f Dockerfile.openpilot_base_cl .
RUN_CL: docker run --shm-size 1G -v $PWD:/tmp/openpilot -w /tmp/openpilot -e PYTHONPATH=/tmp/openpilot -e NUM_JOBS -e JOB_ID -e GITHUB_ACTION -e GITHUB_REF -e GITHUB_HEAD_REF -e GITHUB_SHA -e GITHUB_REPOSITORY -e GITHUB_RUN_ID -v /tmp/scons_cache:/tmp/scons_cache -v /tmp/comma_download_cache:/tmp/comma_download_cache -v /tmp/openpilot_cache:/tmp/openpilot_cache $CL_BASE_IMAGE /bin/sh -c
UNIT_TEST: coverage run --append -m unittest discover
PYTEST: pytest --continue-on-collection-errors --cov --cov-report=xml --cov-append --durations=0 --durations-min=5 --hypothesis-seed 0 -n logical
jobs:
build_release:
name: build release
runs-on: ubuntu-20.04
timeout-minutes: 30
env:
STRIPPED_DIR: /tmp/releasepilot
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: true
- run: git lfs pull
- name: Build devel
timeout-minutes: 1
run: TARGET_DIR=$STRIPPED_DIR release/build_devel.sh
- uses: ./.github/workflows/setup
- uses: ./.github/workflows/setup-pre-commit
- uses: ./.github/workflows/setup-with-retry
- name: Check submodules
if: github.ref == 'refs/heads/master' && github.repository == 'commaai/openpilot'
timeout-minutes: 1
run: release/check-submodules.sh
- name: Build openpilot and run checks
timeout-minutes: ${{ ((steps.restore-scons-cache.outputs.cache-hit == 'true') && 10 || 30) }} # allow more time when we missed the scons cache
run: |
cd $STRIPPED_DIR
${{ env.RUN }} "CI=1 python selfdrive/manager/build.py"
${{ env.RUN }} "python selfdrive/manager/build.py"
- name: Run tests
timeout-minutes: 3
run: |
cd $STRIPPED_DIR
${{ env.RUN }} "release/check-dirty.sh && \
python -m unittest discover selfdrive/car"
MAX_EXAMPLES=5 $PYTEST selfdrive/car"
- name: pre-commit
timeout-minutes: 3
run: |
cd $GITHUB_WORKSPACE
cp .pre-commit-config.yaml $STRIPPED_DIR
cp .pylintrc $STRIPPED_DIR
cp mypy.ini $STRIPPED_DIR
cp pyproject.toml $STRIPPED_DIR
cp poetry.lock $STRIPPED_DIR
cd $STRIPPED_DIR
${{ env.RUN }} "SKIP=test_translations pre-commit run --all"
${{ env.RUN }} "unset PYTHONWARNINGS && SKIP=check-added-large-files pre-commit run --all && chmod -R 777 /tmp/pre-commit"
build_all:
name: build all
runs-on: ubuntu-20.04
timeout-minutes: 30
build:
strategy:
matrix:
arch: ${{ fromJson(
((github.repository == 'commaai/openpilot') &&
((github.event_name != 'pull_request') ||
(github.event.pull_request.head.repo.full_name == 'commaai/openpilot'))) && '["x86_64", "aarch64"]' || '["x86_64"]' ) }}
runs-on: ${{ (matrix.arch == 'aarch64') && 'namespace-profile-arm64-2x8' || 'ubuntu-20.04' }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: true
- uses: ./.github/workflows/setup
- uses: ./.github/workflows/setup-with-retry
with:
save-cache: true
- name: Build openpilot with all flags
run: ${{ env.RUN }} "scons -j$(nproc) --extras && release/check-dirty.sh"
- name: Cleanup scons cache
run: |
${{ env.RUN }} "rm -rf /tmp/scons_cache/* && \
scons -j$(nproc) --cache-populate"
#build_mac:
# name: build macos
# runs-on: macos-latest
# timeout-minutes: 60
# steps:
# - uses: actions/checkout@v3
# with:
# submodules: true
# - name: Determine pre-existing Homebrew packages
# if: steps.dependency-cache.outputs.cache-hit != 'true'
# run: |
# echo 'EXISTING_CELLAR<<EOF' >> $GITHUB_ENV
# ls -1 /usr/local/Cellar >> $GITHUB_ENV
# echo 'EOF' >> $GITHUB_ENV
# - name: Cache dependencies
# id: dependency-cache
# uses: actions/cache@v2
# with:
# path: |
# ~/.pyenv
# ~/.local/share/virtualenvs/
# /usr/local/Cellar
# ~/github_brew_cache_entries.txt
# /tmp/scons_cache
# key: macos-${{ hashFiles('tools/mac_setup.sh', 'update_requirements.sh', 'poetry.lock') }}
# restore-keys: macos-
# - name: Brew link restored dependencies
# run: |
# if [ -f ~/github_brew_cache_entries.txt ]; then
# while read pkg; do
# brew link --force "$pkg" # `--force` for keg-only packages
# done < ~/github_brew_cache_entries.txt
# else
# echo "Cache entries not found"
# fi
# - name: Install dependencies
# run: ./tools/mac_setup.sh
# - name: Build openpilot
# run: |
# source tools/openpilot_env.sh
# poetry run selfdrive/manager/build.py
#
# # cleanup scons cache
# rm -rf /tmp/scons_cache/
# poetry run scons -j$(nproc) --cache-populate
# - name: Remove pre-existing Homebrew packages for caching
# if: steps.dependency-cache.outputs.cache-hit != 'true'
# run: |
# cd /usr/local/Cellar
# new_cellar=$(ls -1)
# comm -12 <(echo "$EXISTING_CELLAR") <(echo "$new_cellar") | while read pkg; do
# if [[ $pkg != "zstd" ]]; then # caching step needs zstd
# rm -rf "$pkg"
# fi
# done
# comm -13 <(echo "$EXISTING_CELLAR") <(echo "$new_cellar") | tee ~/github_brew_cache_entries.txt
docker_hub_pat: ${{ secrets.DOCKER_HUB_PAT }}
- uses: ./.github/workflows/compile-openpilot
timeout-minutes: ${{ ((steps.restore-scons-cache.outputs.cache-hit == 'true') && 15 || 30) }} # allow more time when we missed the scons cache
docker_push:
name: docker push
runs-on: ubuntu-20.04
timeout-minutes: 22
strategy:
matrix:
arch: ${{ fromJson( (github.repository == 'commaai/openpilot') && '["x86_64", "aarch64"]' || '["x86_64"]' ) }}
runs-on: ${{ (matrix.arch == 'aarch64') && 'namespace-profile-arm64-2x8' || 'ubuntu-20.04' }}
if: github.ref == 'refs/heads/master' && github.event_name != 'pull_request' && github.repository == 'commaai/openpilot'
needs: static_analysis # hack to ensure slow tests run first since this and static_analysis are fast
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: true
- name: Build Docker image
run: eval "$BUILD"
timeout-minutes: 13
- name: Push to container registry
- name: Setup to push to repo
run: |
echo "PUSH_IMAGE=true" >> "$GITHUB_ENV"
echo "TARGET_ARCHITECTURE=${{ matrix.arch }}" >> "$GITHUB_ENV"
$DOCKER_LOGIN
- uses: ./.github/workflows/setup-with-retry
with:
docker_hub_pat: ${{ secrets.DOCKER_HUB_PAT }}
docker_push_multiarch:
name: docker push multiarch tag
runs-on: ubuntu-20.04
if: github.ref == 'refs/heads/master' && github.event_name != 'pull_request' && github.repository == 'commaai/openpilot'
needs: [docker_push]
steps:
- uses: actions/checkout@v4
with:
submodules: false
- name: Setup docker
run: |
$DOCKER_LOGIN
docker push $DOCKER_REGISTRY/$BASE_IMAGE:latest
- name: Build CL Docker image
run: eval "$BUILD_CL"
timeout-minutes: 4
- name: Push to container registry
- name: Merge x64 and arm64 tags
run: |
$DOCKER_LOGIN
docker push $DOCKER_REGISTRY/$CL_BASE_IMAGE:latest
export PUSH_IMAGE=true
scripts/retry.sh selfdrive/test/docker_tag_multiarch.sh base x86_64 aarch64
static_analysis:
name: static analysis
runs-on: ubuntu-20.04
timeout-minutes: 20
runs-on: ${{ ((github.repository == 'commaai/openpilot') &&
((github.event_name != 'pull_request') ||
(github.event.pull_request.head.repo.full_name == 'commaai/openpilot'))) && 'namespace-profile-amd64-8x16' || 'ubuntu-20.04' }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: true
- name: Build Docker image
run: eval "$BUILD"
- uses: ./.github/workflows/setup-pre-commit
- uses: ./.github/workflows/setup-with-retry
- name: pre-commit
timeout-minutes: 5
run: ${{ env.RUN }} "pre-commit run --all"
timeout-minutes: 4
run: ${{ env.RUN }} "unset PYTHONWARNINGS && pre-commit run --all && chmod -R 777 /tmp/pre-commit"
valgrind:
name: valgrind
runs-on: ubuntu-20.04
timeout-minutes: 20
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: true
- uses: ./.github/workflows/setup
- uses: ./.github/workflows/setup-with-retry
- name: Build openpilot
run: ${{ env.RUN }} "scons -j$(nproc)"
- name: Run valgrind
timeout-minutes: 1
run: |
${{ env.RUN }} "python selfdrive/test/test_valgrind_replay.py"
- name: Print logs
@@ -197,197 +154,205 @@ jobs:
unit_tests:
name: unit tests
runs-on: ubuntu-20.04
timeout-minutes: 30
runs-on: ${{ ((github.repository == 'commaai/openpilot') &&
((github.event_name != 'pull_request') ||
(github.event.pull_request.head.repo.full_name == 'commaai/openpilot'))) && 'namespace-profile-amd64-8x16' || 'ubuntu-20.04' }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: true
- uses: ./.github/workflows/setup
- uses: ./.github/workflows/setup-with-retry
with:
docker_hub_pat: ${{ secrets.DOCKER_HUB_PAT }}
- name: Build openpilot
timeout-minutes: ${{ ((steps.restore-scons-cache.outputs.cache-hit == 'true') && 10 || 30) }} # allow more time when we missed the scons cache
run: ${{ env.RUN }} "scons -j$(nproc)"
- name: Run unit tests
timeout-minutes: 15
run: |
${{ env.RUN }} "export SKIP_LONG_TESTS=1 && \
$UNIT_TEST common && \
$UNIT_TEST opendbc/can && \
$UNIT_TEST selfdrive/boardd && \
$UNIT_TEST selfdrive/controls && \
$UNIT_TEST selfdrive/monitoring && \
$UNIT_TEST selfdrive/loggerd && \
$UNIT_TEST selfdrive/car && \
$UNIT_TEST selfdrive/locationd && \
selfdrive/locationd/test/_test_locationd_lib.py && \
$UNIT_TEST selfdrive/athena && \
$UNIT_TEST selfdrive/thermald && \
$UNIT_TEST system/hardware/tici && \
$UNIT_TEST tools/lib/tests && \
${{ env.RUN }} "source selfdrive/test/setup_xvfb.sh && \
export MAPBOX_TOKEN='pk.eyJ1Ijoiam5ld2IiLCJhIjoiY2xxNW8zZXprMGw1ZzJwbzZneHd2NHljbSJ9.gV7VPRfbXFetD-1OVF0XZg' && \
$PYTEST --timeout 60 -m 'not slow' && \
./selfdrive/ui/tests/create_test_translations.sh && \
QT_QPA_PLATFORM=offscreen ./selfdrive/ui/tests/test_translations && \
./selfdrive/ui/tests/test_translations.py && \
./common/tests/test_util && \
./common/tests/test_swaglog && \
./selfdrive/boardd/tests/test_boardd_usbprotocol && \
./selfdrive/loggerd/tests/test_logger &&\
./system/proclogd/tests/test_proclog && \
./tools/replay/tests/test_replay && \
./tools/cabana/tests/test_cabana && \
./system/camerad/test/ae_gray_test && \
coverage xml"
./selfdrive/ui/tests/test_translations.py"
- name: "Upload coverage to Codecov"
uses: codecov/codecov-action@v2
uses: codecov/codecov-action@v3
with:
name: ${{ github.job }}
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
process_replay:
name: process replay
runs-on: ubuntu-20.04
timeout-minutes: 25
runs-on: ${{ ((github.repository == 'commaai/openpilot') &&
((github.event_name != 'pull_request') ||
(github.event.pull_request.head.repo.full_name == 'commaai/openpilot'))) && 'namespace-profile-amd64-8x16' || 'ubuntu-20.04' }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: true
- uses: ./.github/workflows/setup
- uses: ./.github/workflows/setup-with-retry
with:
docker_hub_pat: ${{ secrets.DOCKER_HUB_PAT }}
- name: Cache test routes
id: dependency-cache
uses: actions/cache@v3
with:
path: /tmp/comma_download_cache
path: .ci_cache/comma_download_cache
key: proc-replay-${{ hashFiles('.github/workflows/selfdrive_tests.yaml', 'selfdrive/test/process_replay/ref_commit') }}
- name: Build openpilot
run: |
${{ env.RUN }} "scons -j$(nproc)"
- name: Run replay
timeout-minutes: 30
run: |
${{ env.RUN }} "CI=1 coverage run selfdrive/test/process_replay/test_processes.py -j$(nproc) && \
${{ env.RUN }} "coverage run selfdrive/test/process_replay/test_processes.py -j$(nproc) && \
chmod -R 777 /tmp/comma_download_cache && \
coverage combine && \
coverage xml"
- name: Print diff
id: print-diff
if: always()
run: cat selfdrive/test/process_replay/diff.txt
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v3
if: always()
continue-on-error: true
with:
name: process_replay_diff.txt
path: selfdrive/test/process_replay/diff.txt
- name: Upload reference logs
if: ${{ failure() && github.event_name == 'pull_request' && github.repository == 'commaai/openpilot' && env.AZURE_TOKEN != '' }}
if: ${{ failure() && steps.print-diff.outcome == 'success' && github.repository == 'commaai/openpilot' && env.AZURE_TOKEN != '' }}
run: |
${{ env.RUN }} "CI=1 AZURE_TOKEN='$AZURE_TOKEN' python selfdrive/test/process_replay/test_processes.py -j$(nproc) --upload-only"
${{ env.RUN }} "unset PYTHONWARNINGS && AZURE_TOKEN='$AZURE_TOKEN' python selfdrive/test/process_replay/test_processes.py -j$(nproc) --upload-only"
- name: "Upload coverage to Codecov"
uses: codecov/codecov-action@v2
uses: codecov/codecov-action@v3
with:
name: ${{ github.job }}
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
regen:
name: regen
runs-on: 'ubuntu-20.04'
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: ./.github/workflows/setup-with-retry
- name: Cache test routes
id: dependency-cache
uses: actions/cache@v3
with:
path: .ci_cache/comma_download_cache
key: regen-${{ hashFiles('.github/workflows/selfdrive_tests.yaml', 'selfdrive/test/process_replay/test_regen.py') }}
- name: Build base Docker image
run: eval "$BUILD"
- name: Build openpilot
run: |
${{ env.RUN }} "scons -j$(nproc)"
- name: Run regen
timeout-minutes: 30
run: |
${{ env.RUN }} "ONNXCPU=1 $PYTEST selfdrive/test/process_replay/test_regen.py && \
chmod -R 777 /tmp/comma_download_cache"
test_modeld:
name: model tests
runs-on: ubuntu-20.04
timeout-minutes: 20
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: true
- uses: ./.github/workflows/setup
- name: Build Docker image
# Sim docker is needed to get the OpenCL drivers
run: eval "$BUILD_CL"
- uses: ./.github/workflows/setup-with-retry
- name: Build base Docker image
run: eval "$BUILD"
- name: Build openpilot
run: |
${{ env.RUN }} "scons -j$(nproc)"
# PYTHONWARNINGS triggers a SyntaxError in onnxruntime
- name: Run model replay with ONNX
timeout-minutes: 2
timeout-minutes: 4
run: |
${{ env.RUN_CL }} "ONNXCPU=1 CI=1 NO_NAV=1 coverage run selfdrive/test/process_replay/model_replay.py && \
${{ env.RUN }} "unset PYTHONWARNINGS && \
ONNXCPU=1 NO_NAV=1 coverage run selfdrive/test/process_replay/model_replay.py && \
coverage combine && \
coverage xml"
- name: Run unit tests
timeout-minutes: 5
timeout-minutes: 4
run: |
${{ env.RUN_CL }} "$UNIT_TEST selfdrive/modeld && \
coverage xml"
${{ env.RUN }} "unset PYTHONWARNINGS && \
$PYTEST selfdrive/modeld"
- name: "Upload coverage to Codecov"
uses: codecov/codecov-action@v2
test_longitudinal:
name: longitudinal
runs-on: ubuntu-20.04
timeout-minutes: 20
steps:
- uses: actions/checkout@v3
uses: codecov/codecov-action@v3
with:
submodules: true
- uses: ./.github/workflows/setup
- name: Build openpilot
run: |
${{ env.RUN }} "scons -j$(nproc)"
- name: Test longitudinal
run: |
${{ env.RUN }} "mkdir -p selfdrive/test/out && \
cd selfdrive/test/longitudinal_maneuvers && \
coverage run ./test_longitudinal.py && \
coverage xml"
timeout-minutes: 2
- name: "Upload coverage to Codecov"
uses: codecov/codecov-action@v2
- uses: actions/upload-artifact@v2
if: always()
continue-on-error: true
with:
name: longitudinal
path: selfdrive/test/longitudinal_maneuvers/out/longitudinal/
name: ${{ github.job }}
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
test_cars:
name: cars
runs-on: ubuntu-20.04
timeout-minutes: 20
runs-on: ${{ ((github.repository == 'commaai/openpilot') &&
((github.event_name != 'pull_request') ||
(github.event.pull_request.head.repo.full_name == 'commaai/openpilot'))) && 'namespace-profile-amd64-8x16' || 'ubuntu-20.04' }}
strategy:
fail-fast: false
matrix:
job: [0, 1, 2, 3, 4]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: true
- uses: ./.github/workflows/setup
- uses: ./.github/workflows/setup-with-retry
- name: Cache test routes
id: dependency-cache
uses: actions/cache@03e00da99d75a2204924908e1cca7902cafce66b
uses: ./.github/workflows/auto-cache
with:
path: /tmp/comma_download_cache
path: .ci_cache/comma_download_cache
key: car_models-${{ hashFiles('selfdrive/car/tests/test_models.py', 'selfdrive/car/tests/routes.py') }}-${{ matrix.job }}
- name: Build openpilot
run: ${{ env.RUN }} "scons -j$(nproc)"
- name: Test car models
timeout-minutes: 12
timeout-minutes: 10
run: |
${{ env.RUN }} "coverage run -m pytest selfdrive/car/tests/test_models.py && \
coverage xml && \
${{ env.RUN }} "$PYTEST selfdrive/car/tests/test_models.py && \
chmod -R 777 /tmp/comma_download_cache"
env:
NUM_JOBS: 5
JOB_ID: ${{ matrix.job }}
- name: "Upload coverage to Codecov"
uses: codecov/codecov-action@v2
uses: codecov/codecov-action@v3
with:
name: ${{ github.job }}-${{ matrix.job }}
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
car_docs_diff:
name: PR comments
runs-on: ubuntu-20.04
timeout-minutes: 20
if: github.event_name == 'pull_request'
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: true
ref: ${{ github.event.pull_request.base.ref }}
- uses: ./.github/workflows/setup
- run: git lfs pull
- uses: ./.github/workflows/setup-with-retry
- name: Get base car info
run: |
${{ env.RUN }} "scons -j$(nproc) && python selfdrive/debug/dump_car_info.py --path /tmp/openpilot_cache/base_car_info"
sudo chown -R $USER:$USER ${{ github.workspace }}
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: true
path: current
- run: cd current && git lfs pull
- name: Save car docs diff
id: save_diff
run: |
cd current
${{ env.RUN }} "scons -j$(nproc)"
output=$(${{ env.RUN }} "python selfdrive/debug/print_docs_diff.py --path /tmp/openpilot_cache/base_car_info") || true
output=$(${{ env.RUN }} "python selfdrive/debug/print_docs_diff.py --path /tmp/openpilot_cache/base_car_info")
output="${output//$'\n'/'%0A'}"
echo "::set-output name=diff::$output"
- name: Find comment
@@ -415,3 +380,25 @@ jobs:
repo: context.repo.repo,
comment_id: ${{ steps.fc.outputs.comment-id }}
})
create_ui_report:
name: Create UI Report
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: ./.github/workflows/setup-with-retry
- name: Build openpilot
run: ${{ env.RUN }} "scons -j$(nproc)"
- name: Create Test Report
run: >
${{ env.RUN }} "PYTHONWARNINGS=ignore &&
source selfdrive/test/setup_xvfb.sh &&
export MAPBOX_TOKEN='pk.eyJ1Ijoiam5ld2IiLCJhIjoiY2xxNW8zZXprMGw1ZzJwbzZneHd2NHljbSJ9.gV7VPRfbXFetD-1OVF0XZg' &&
python selfdrive/ui/tests/test_ui/run.py"
- name: Upload Test Report
uses: actions/upload-artifact@v2
with:
name: report
path: selfdrive/ui/tests/test_ui/report
@@ -0,0 +1,12 @@
name: 'set up pre-commit environment'
runs:
using: "composite"
steps:
- uses: ./.github/workflows/auto-cache
with:
path: .ci_cache/pre-commit
key: pre-commit-${{ hashFiles('**/.pre-commit-config.yaml') }}
restore-keys: |
pre-commit-
save: ${{ github.ref == 'refs/heads/master' && github.event_name != 'pull_request' && github.repository == 'commaai/openpilot' }}
@@ -0,0 +1,40 @@
name: 'openpilot env setup, with retry on failure'
inputs:
docker_hub_pat:
description: 'Auth token for Docker Hub, required for BuildJet jobs'
required: false
default: ''
sleep_time:
description: 'Time to sleep between retries'
required: false
default: 30
runs:
using: "composite"
steps:
- id: setup1
uses: ./.github/workflows/setup
continue-on-error: true
with:
docker_hub_pat: ${{ inputs.docker_hub_pat }}
is_retried: true
- if: steps.setup1.outcome == 'failure'
shell: bash
run: sleep ${{ inputs.sleep_time }}
- id: setup2
if: steps.setup1.outcome == 'failure'
uses: ./.github/workflows/setup
continue-on-error: true
with:
docker_hub_pat: ${{ inputs.docker_hub_pat }}
is_retried: true
- if: steps.setup2.outcome == 'failure'
shell: bash
run: sleep ${{ inputs.sleep_time }}
- id: setup3
if: steps.setup2.outcome == 'failure'
uses: ./.github/workflows/setup
with:
docker_hub_pat: ${{ inputs.docker_hub_pat }}
is_retried: true
+40 -14
View File
@@ -1,37 +1,63 @@
name: 'openpilot env setup'
inputs:
save-cache:
default: false
docker_hub_pat:
description: 'Auth token for Docker Hub, required for BuildJet jobs'
required: true
default: ''
is_retried:
description: 'A mock param that asserts that we use the setup-with-retry instead of this action directly'
required: false
default: 'false'
runs:
using: "composite"
steps:
# assert that this action is retried using the setup-with-retry
- shell: bash
if: ${{ inputs.is_retried == 'false' }}
run: |
echo "You should not run this action directly. Use setup-with-retry instead"
exit 1
# do this after checkout to ensure our custom LFS config is used to pull from GitLab
- shell: bash
run: git lfs pull
# on BuildJet runners, must be logged into DockerHub to avoid rate limiting
# https://buildjet.com/for-github-actions/docs/guides/docker
- shell: bash
if: ${{ contains(runner.name, 'buildjet') && inputs.docker_hub_pat == '' }}
run: |
echo "Need to set the Docker Hub PAT secret as an input to this action"
exit 1
- name: Login to Docker Hub
if: contains(runner.name, 'buildjet')
shell: bash
run: |
docker login -u adeebshihadeh -p ${{ inputs.docker_hub_pat }}
# build cache
- id: date
shell: bash
run: echo "CACHE_COMMIT_DATE=$(git log -1 --pretty='format:%cd' --date=format:'%Y-%m-%d-%H:%M')" >> $GITHUB_ENV
- shell: bash
run: echo "$CACHE_COMMIT_DATE"
- shell: bash
run: echo "CACHE_SKIP_SAVE=true" >> $GITHUB_ENV
if: github.ref != 'refs/heads/master' || inputs.save-cache == 'false'
- id: scons-cache
# TODO: change the version to the released version
# when https://github.com/actions/cache/pull/489 (or 571) is merged.
uses: actions/cache@03e00da99d75a2204924908e1cca7902cafce66b
uses: ./.github/workflows/auto-cache
with:
path: /tmp/scons_cache
key: scons-${{ env.CACHE_COMMIT_DATE }}-${{ github.sha }}
path: .ci_cache/scons_cache
key: scons-${{ runner.arch }}-${{ env.CACHE_COMMIT_DATE }}-${{ github.sha }}
restore-keys: |
scons-${{ env.CACHE_COMMIT_DATE }}-
scons-
scons-${{ runner.arch }}-${{ env.CACHE_COMMIT_DATE }}
scons-${{ runner.arch }}
# as suggested here: https://github.com/moby/moby/issues/32816#issuecomment-910030001
- id: normalize-file-permissions
shell: bash
name: Normalize file permissions to ensure a consistent docker build cache
run: |
find . -type f -executable -not -perm 755 -exec chmod 755 {} \;
find . -type f -not -executable -not -perm 644 -exec chmod 644 {} \;
# build our docker image
- shell: bash
run: eval ${{ env.BUILD }}
run: eval ${{ env.BUILD }}
+28
View File
@@ -0,0 +1,28 @@
name: stale
on:
schedule:
- cron: '30 1 * * *'
workflow_dispatch:
env:
DAYS_BEFORE_PR_CLOSE: 7
DAYS_BEFORE_PR_STALE: 30
jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v8
with:
exempt-milestones: true
# pull request config
stale-pr-message: 'This PR has had no activity for ${{ env.DAYS_BEFORE_PR_STALE }} days. It will be automatically closed in ${{ env.DAYS_BEFORE_PR_CLOSE }} days if there is no activity.'
close-pr-message: 'This PR has been automatically closed due to inactivity. Feel free to re-open once activity resumes.'
delete-branch: ${{ github.event.pull_request.head.repo.full_name == 'commaai/openpilot' }} # only delete branches on the main repo
exempt-pr-labels: "ignore stale,needs testing,car port" # if wip or it needs testing from the community, don't mark as stale
days-before-pr-stale: ${{ env.DAYS_BEFORE_PR_STALE }}
days-before-pr-close: ${{ env.DAYS_BEFORE_PR_CLOSE }}
# issue config
days-before-issue-stale: -1 # ignore issues for now
+58 -47
View File
@@ -2,8 +2,8 @@ name: tools
on:
push:
branches-ignore:
- 'testing-closet*'
branches:
- master
pull_request:
concurrency:
@@ -12,80 +12,91 @@ concurrency:
env:
BASE_IMAGE: openpilot-base
CL_BASE_IMAGE: openpilot-base-cl
DOCKER_REGISTRY: ghcr.io/commaai
DOCKER_LOGIN: docker login ghcr.io -u ${{ github.actor }} -p ${{ secrets.GITHUB_TOKEN }}
BUILD: |
DOCKER_BUILDKIT=1 docker build --pull --build-arg BUILDKIT_INLINE_CACHE=1 --cache-from $DOCKER_REGISTRY/$BASE_IMAGE:latest -t $DOCKER_REGISTRY/$BASE_IMAGE:latest -t $BASE_IMAGE:latest -f Dockerfile.openpilot_base .
BUILD: selfdrive/test/docker_build.sh base
RUN: docker run --shm-size 1G -v $GITHUB_WORKSPACE:/tmp/openpilot -w /tmp/openpilot -e FILEREADER_CACHE=1 -e PYTHONPATH=/tmp/openpilot -e NUM_JOBS -e JOB_ID -e GITHUB_ACTION -e GITHUB_REF -e GITHUB_HEAD_REF -e GITHUB_SHA -e GITHUB_REPOSITORY -e GITHUB_RUN_ID -v /tmp/scons_cache:/tmp/scons_cache -v /tmp/comma_download_cache:/tmp/comma_download_cache -v /tmp/openpilot_cache:/tmp/openpilot_cache $BASE_IMAGE /bin/sh -c
BUILD_CL: |
DOCKER_BUILDKIT=1 docker build --pull --build-arg BUILDKIT_INLINE_CACHE=1 --cache-from $DOCKER_REGISTRY/$CL_BASE_IMAGE:latest -t $DOCKER_REGISTRY/$CL_BASE_IMAGE:latest -t $CL_BASE_IMAGE:latest -f Dockerfile.openpilot_base_cl .
RUN_CL: docker run --shm-size 1G -v $GITHUB_WORKSPACE:/tmp/openpilot -w /tmp/openpilot -e PYTHONPATH=/tmp/openpilot -e NUM_JOBS -e JOB_ID -e GITHUB_ACTION -e GITHUB_REF -e GITHUB_HEAD_REF -e GITHUB_SHA -e GITHUB_REPOSITORY -e GITHUB_RUN_ID -v /tmp/scons_cache:/tmp/scons_cache -v /tmp/comma_download_cache:/tmp/comma_download_cache -v /tmp/openpilot_cache:/tmp/openpilot_cache $CL_BASE_IMAGE /bin/sh -c
RUN: docker run --shm-size 1G -v $GITHUB_WORKSPACE:/tmp/openpilot -w /tmp/openpilot -e FILEREADER_CACHE=1 -e PYTHONPATH=/tmp/openpilot -e NUM_JOBS -e JOB_ID -e GITHUB_ACTION -e GITHUB_REF -e GITHUB_HEAD_REF -e GITHUB_SHA -e GITHUB_REPOSITORY -e GITHUB_RUN_ID -v $GITHUB_WORKSPACE/.ci_cache/scons_cache:/tmp/scons_cache -v $GITHUB_WORKSPACE/.ci_cache/comma_download_cache:/tmp/comma_download_cache -v $GITHUB_WORKSPACE/.ci_cache/openpilot_cache:/tmp/openpilot_cache $BASE_IMAGE /bin/bash -c
jobs:
plotjuggler:
name: plotjuggler
runs-on: ubuntu-20.04
timeout-minutes: 20
timeout-minutes: 45
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: true
- name: Build Docker image
run: eval "$BUILD"
- name: Unit test
- uses: ./.github/workflows/setup-with-retry
- name: Build openpilot
timeout-minutes: 5
run: ${{ env.RUN }} "scons -j$(nproc) cereal/ common/ --minimal"
- name: Test PlotJuggler
timeout-minutes: 2
run: |
${{ env.RUN }} "scons -j$(nproc) --directory=/tmp/openpilot/cereal && \
apt-get update && \
apt-get install -y libdw-dev libqt5svg5-dev libqt5x11extras5-dev && \
cd /tmp/openpilot/tools/plotjuggler && \
./test_plotjuggler.py"
${{ env.RUN }} "pytest tools/plotjuggler/"
simulator:
name: simulator
runs-on: ubuntu-20.04
timeout-minutes: 30
env:
IMAGE_NAME: openpilot-sim
if: github.repository == 'commaai/openpilot'
timeout-minutes: 45
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: true
- name: Pull LFS
run: git lfs pull
- name: Build base image
run: eval "$BUILD"
- name: Build base cl image
run: eval "$BUILD_CL"
- name: Build simulator image
run: DOCKER_BUILDKIT=1 docker build --pull --build-arg BUILDKIT_INLINE_CACHE=1 --cache-from $DOCKER_REGISTRY/$IMAGE_NAME:latest -t $DOCKER_REGISTRY/$IMAGE_NAME:latest -f tools/sim/Dockerfile.sim .
- name: Push to container registry
- uses: ./.github/workflows/setup-with-retry
- name: Setup to push to repo
if: github.ref == 'refs/heads/master' && github.repository == 'commaai/openpilot'
run: |
echo "PUSH_IMAGE=true" >> "$GITHUB_ENV"
$DOCKER_LOGIN
docker push $DOCKER_REGISTRY/$IMAGE_NAME:latest
- name: Build and push sim image
run: |
selfdrive/test/docker_build.sh sim
docs:
name: build docs
runs-on: ubuntu-20.04
timeout-minutes: 25
devcontainer:
name: devcontainer
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: true
- name: Build docker container
- uses: ./.github/workflows/setup-with-retry
- name: Use local image for testing devcontainer with latest base image
run: |
DOCKER_BUILDKIT=1 docker build --pull --build-arg BUILDKIT_INLINE_CACHE=1 --cache-from $DOCKER_REGISTRY/openpilot-docs:latest -t $DOCKER_REGISTRY/openpilot-docs:latest -f docs/docker/Dockerfile .
- name: Push docker container
if: github.ref == 'refs/heads/master' && github.event_name != 'pull_request' && github.repository == 'commaai/openpilot'
echo "USE_LOCAL_IMAGE=true" >> "$GITHUB_ENV"
- name: Setup Dev Container CLI
run: npm install -g @devcontainers/cli
- name: Build dev container image
run: devcontainer build --workspace-folder .
- name: Run dev container
run: |
$DOCKER_LOGIN
docker push $DOCKER_REGISTRY/openpilot-docs:latest
mkdir -p /tmp/devcontainer_scons_cache/
cp -r $GITHUB_WORKSPACE/.ci_cache/scons_cache/. /tmp/devcontainer_scons_cache/
devcontainer up --workspace-folder .
- name: Test environment
run: |
devcontainer exec --workspace-folder . scons -j$(nproc) cereal/ common/
devcontainer exec --workspace-folder . pip install pip-install-test
devcontainer exec --workspace-folder . touch /home/batman/.comma/auth.json
devcontainer exec --workspace-folder . sudo touch /root/test.txt
notebooks:
name: notebooks
runs-on: ubuntu-20.04
if: github.repository == 'commaai/openpilot'
timeout-minutes: 45
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: ./.github/workflows/setup-with-retry
- name: Build openpilot
timeout-minutes: ${{ ((steps.restore-scons-cache.outputs.cache-hit == 'true') && 10 || 30) }} # allow more time when we missed the scons cache
run: ${{ env.RUN }} "scons -j$(nproc)"
- name: Test notebooks
timeout-minutes: 3
run: |
${{ env.RUN }} "pip install nbmake && pytest --nbmake tools/car_porting/examples/"
+7 -6
View File
@@ -1,4 +1,6 @@
venv/
.venv/
.ci_cache
.env
.clang-format
.DS_Store
@@ -8,7 +10,6 @@ venv/
.overlay_init
.overlay_consistent
.sconsign.dblite
.vscode*
model2.png
a.out
.hypothesis
@@ -44,11 +45,10 @@ selfdrive/boardd/boardd
selfdrive/logcatd/logcatd
selfdrive/mapd/default_speeds_by_region.json
system/proclogd/proclogd
selfdrive/ui/_ui
selfdrive/ui/translations/alerts_generated.h
selfdrive/ui/translations/tmp
selfdrive/test/longitudinal_maneuvers/out
selfdrive/visiond/visiond
selfdrive/sensord/_gpsd
selfdrive/sensord/_sensord
selfdrive/car/tests/cars_dump
system/camerad/camerad
system/camerad/test/ae_gray_test
selfdrive/modeld/_modeld
@@ -57,7 +57,6 @@ selfdrive/modeld/_dmonitoringmodeld
/src/
one
openpilot
notebooks
xx
yy
@@ -78,6 +77,7 @@ comma*.sh
selfdrive/modeld/thneed/compile
selfdrive/modeld/models/*.thneed
selfdrive/modeld/models/*.pkl
*.bz2
@@ -86,3 +86,4 @@ build/
!**/.gitkeep
poetry.toml
Pipfile
+6 -6
View File
@@ -1,21 +1,21 @@
[submodule "panda"]
path = panda
url = ../../commaai/panda.git
url = ../../sunnyhaibin/panda.git
[submodule "opendbc"]
path = opendbc
url = ../../commaai/opendbc.git
[submodule "laika_repo"]
path = laika_repo
url = ../../commaai/laika.git
url = ../../sunnyhaibin/opendbc.git
[submodule "cereal"]
path = cereal
url = ../../commaai/cereal.git
url = ../../sunnyhaibin/cereal.git
[submodule "rednose_repo"]
path = rednose_repo
url = ../../commaai/rednose.git
[submodule "body"]
path = body
url = ../../commaai/body.git
[submodule "teleoprtc_repo"]
path = teleoprtc_repo
url = ../../commaai/teleoprtc
[submodule "tinygrad"]
path = tinygrad_repo
url = https://github.com/geohot/tinygrad.git
+50 -31
View File
@@ -1,29 +1,42 @@
exclude: '^(tinygrad_repo)'
repos:
- repo: meta
hooks:
- id: check-hooks-apply
- id: check-useless-excludes
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.1.0
rev: v4.5.0
hooks:
- id: check-ast
exclude: '^(third_party)/'
- id: check-json
exclude: '.devcontainer/devcontainer.json|.vscode/' # these support JSON with comments
- id: check-toml
- id: check-xml
- id: check-yaml
- id: check-merge-conflict
- id: check-symlinks
- id: check-executables-have-shebangs
- id: check-shebang-scripts-are-executable
- id: check-added-large-files
args: ['--maxkb=100']
exclude: '(docs/CARS.md)|(poetry.lock)|(third_party/acados/include/blasfeo/include/blasfeo_d_kernel.h)'
args:
- --maxkb=120
- --enforce-all
- repo: https://github.com/codespell-project/codespell
rev: v2.2.1
rev: v2.2.6
hooks:
- id: codespell
exclude: '^(third_party/)|(body/)|(cereal/)|(rednose/)|(panda/)|(laika/)|(opendbc/)|(laika_repo/)|(rednose_repo/)|(selfdrive/ui/translations/.*.ts)'
exclude: '^(third_party/)|(body/)|(cereal/)|(panda/)|(opendbc/)|(rednose/)|(rednose_repo/)|(teleoprtc/)|(teleoprtc_repo/)|(selfdrive/ui/translations/.*.ts)|(poetry.lock)'
args:
# if you've got a short variable name that's getting flagged, add it here
- -L bu,ro,te,ue,alo,hda,ois,nam,nams,ned,som,parm,setts,inout,warmup
- -L bu,ro,te,ue,alo,hda,ois,nam,nams,ned,som,parm,setts,inout,warmup,bumb,nd,sie,preints
- --builtins clear,rare,informal,usage,code,names,en-GB_to_en-US
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.2.2
hooks:
- id: ruff
exclude: '^(third_party/)|(cereal/)|(panda/)|(rednose/)|(rednose_repo/)|(tinygrad/)|(tinygrad_repo/)|(teleoprtc/)|(teleoprtc_repo/)'
- repo: local
hooks:
- id: mypy
@@ -31,32 +44,10 @@ repos:
entry: mypy
language: system
types: [python]
exclude: '^(third_party/)|(cereal/)|(opendbc/)|(panda/)|(laika/)|(laika_repo/)|(rednose/)|(rednose_repo/)|(tinygrad/)|(tinygrad_repo/)|(xx/)'
- repo: https://github.com/PyCQA/flake8
rev: 4.0.1
hooks:
- id: flake8
exclude: '^(third_party/)|(cereal/)|(rednose/)|(panda/)|(laika/)|(opendbc/)|(laika_repo/)|(rednose_repo/)|(tinygrad/)|(tinygrad_repo/)|(selfdrive/debug/)/'
additional_dependencies: ['flake8-no-implicit-concat']
args:
- --indent-size=2
- --enable-extensions=NIC
- --select=F,E112,E113,E304,E502,E701,E702,E703,E71,E72,E731,W191,W6
- --statistics
- -j4
- repo: local
hooks:
- id: pylint
name: pylint
entry: pylint
language: system
types: [python]
exclude: '^(third_party/)|(cereal/)|(rednose/)|(panda/)|(laika/)|(laika_repo/)|(rednose_repo/)|(tinygrad/)|(tinygrad_repo/)'
args:
- -j0
- -rn
- -sn
- --rcfile=.pylintrc
- --local-partial-types
- --explicit-package-bases
exclude: '^(third_party/)|(cereal/)|(opendbc/)|(panda/)|(rednose/)|(rednose_repo/)|(tinygrad/)|(tinygrad_repo/)|(teleoprtc/)|(teleoprtc_repo/)|(xx/)'
- repo: local
hooks:
- id: cppcheck
@@ -71,6 +62,26 @@ repos:
- --quiet
- --force
- -j8
- repo: https://github.com/cpplint/cpplint
rev: 1.6.1
hooks:
- id: cpplint
exclude: '^(third_party/)|(cereal/)|(body/)|(rednose/)|(rednose_repo/)|(opendbc/)|(panda/)|(generated/)'
args:
- --quiet
- --counting=total
- --linelength=240
# https://google.github.io/styleguide/cppguide.html
# relevant rules are whitelisted, see all options with: cpplint --filter=
- --filter=-build,-legal,-readability,-runtime,-whitespace,+build/include_subdir,+build/forward_decl,+build/include_what_you_use,+build/deprecated,+whitespace/comma,+whitespace/line_length,+whitespace/empty_if_body,+whitespace/empty_loop_body,+whitespace/empty_conditional_body,+whitespace/forcolon,+whitespace/parens,+whitespace/semicolon,+whitespace/tab,+readability/braces
- repo: https://github.com/MarcoGorelli/cython-lint
rev: v0.16.0
hooks:
- id: cython-lint
exclude: '^(third_party/)|(cereal/)|(body/)|(rednose/)|(rednose_repo/)|(opendbc/)|(panda/)|(generated/)'
args:
- --max-line-length=240
- --ignore=E111, E302, E305
- repo: local
hooks:
- id: test_translations
@@ -78,7 +89,15 @@ repos:
entry: selfdrive/ui/tests/test_translations.py
language: script
pass_filenames: false
files: 'selfdrive/ui/translations/*'
- repo: https://github.com/python-poetry/poetry
rev: '1.2.2'
rev: '1.8.0'
hooks:
- id: poetry-check
name: validate poetry lock
args:
- --lock
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.28.0
hooks:
- id: check-github-workflows
-469
View File
@@ -1,469 +0,0 @@
[MASTER]
# A comma-separated list of package or module names from where C extensions may
# be loaded. Extensions are loading into the active Python interpreter and may
# run arbitrary code
extension-pkg-whitelist=scipy,cereal.messaging.messaging_pyx,PyQt5,av
# Add files or directories to the blacklist. They should be base names, not
# paths.
ignore=CVS
# Add files or directories matching the regex patterns to the blacklist. The
# regex matches against base names, not paths.
ignore-patterns=
# Python code to execute, usually for sys.path manipulation such as
# pygtk.require().
#init-hook=
# Use multiple processes to speed up Pylint.
jobs=4
# List of plugins (as comma separated values of python modules names) to load,
# usually to register additional checkers.
load-plugins=
# Pickle collected data for later comparisons.
persistent=yes
# Specify a configuration file.
#rcfile=
# When enabled, pylint would attempt to guess common misconfiguration and emit
# user-friendly hints instead of false-positive error messages
suggestion-mode=yes
# Allow loading of arbitrary C extensions. Extensions are imported into the
# active Python interpreter and may run arbitrary code.
unsafe-load-any-extension=no
[MESSAGES CONTROL]
# Only show warnings with the listed confidence levels. Leave empty to show
# all. Valid levels: HIGH, INFERENCE, INFERENCE_FAILURE, UNDEFINED
confidence=
# Disable the message, report, category or checker with the given id(s). You
# can either give multiple identifiers separated by comma (,) or put this
# option multiple times (only on the command line, not in the configuration
# file where it should appear only once).You can also use "--disable=all" to
# disable everything first and then reenable specific checks. For example, if
# you want to run only the similarities checker, you can use "--disable=all
# --enable=similarities". If you want to run only the classes checker, but have
# no Warning level messages displayed, use"--disable=all --enable=classes
# --disable=W"
disable=C,R,W0613,W0511,W0212,W0201,W0106,W0603,W0621,W0703,W1201,W1203,E1136,W1514
# Enable the message, report, category or checker with the given id(s). You can
# either give multiple identifier separated by comma (,) or put this option
# multiple time (only on the command line, not in the configuration file where
# it should appear only once). See also the "--disable" option for examples.
enable=c-extension-no-member
[REPORTS]
# Python expression which should return a note less than 10 (10 is the highest
# note). You have access to the variables errors warning, statement which
# respectively contain the number of errors / warnings messages and the total
# number of statements analyzed. This is used by the global evaluation report
# (RP0004).
evaluation=10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10)
# Template used to display messages. This is a python new-style format string
# used to format the message information. See doc for all details
#msg-template=
# Set the output format. Available formats are text, parseable, colorized, json
# and msvs (visual studio).You can also give a reporter class, eg
# mypackage.mymodule.MyReporterClass.
output-format=text
# Tells whether to display a full report or only the messages
reports=no
# Activate the evaluation score.
score=yes
[REFACTORING]
# Maximum number of nested blocks for function / method body
max-nested-blocks=5
# Complete name of functions that never returns. When checking for
# inconsistent-return-statements if a never returning function is called then
# it will be considered as an explicit return statement and no message will be
# printed.
never-returning-functions=optparse.Values,sys.exit
[LOGGING]
# Logging modules to check that the string format arguments are in logging
# function parameter format
logging-modules=logging
[SPELLING]
# Limits count of emitted suggestions for spelling mistakes
max-spelling-suggestions=4
# Spelling dictionary name. Available dictionaries: none. To make it working
# install python-enchant package.
spelling-dict=
# List of comma separated words that should not be checked.
spelling-ignore-words=
# A path to a file that contains private dictionary; one word per line.
spelling-private-dict-file=
# Tells whether to store unknown words to indicated private dictionary in
# --spelling-private-dict-file option instead of raising a message.
spelling-store-unknown-words=no
[MISCELLANEOUS]
# List of note tags to take in consideration, separated by a comma.
notes=FIXME,
XXX,
TODO
[SIMILARITIES]
# Ignore comments when computing similarities.
ignore-comments=yes
# Ignore docstrings when computing similarities.
ignore-docstrings=yes
# Ignore imports when computing similarities.
ignore-imports=no
# Minimum lines number of a similarity.
min-similarity-lines=4
[TYPECHECK]
# List of decorators that produce context managers, such as
# contextlib.contextmanager. Add to this list to register other decorators that
# produce valid context managers.
contextmanager-decorators=contextlib.contextmanager
# List of members which are set dynamically and missed by pylint inference
# system, and so shouldn't trigger E1101 when accessed. Python regular
# expressions are accepted.
generated-members=capnp.* cereal.* pygame.* zmq.* setproctitle.* smbus2.* usb1.* serial.* cv2.* ft4222.* carla.*
# Tells whether missing members accessed in mixin class should be ignored. A
# mixin class is detected if its name ends with "mixin" (case insensitive).
ignore-mixin-members=yes
# This flag controls whether pylint should warn about no-member and similar
# checks whenever an opaque object is returned when inferring. The inference
# can return multiple potential results while evaluating a Python object, but
# some branches might not be evaluated, which results in partial inference. In
# that case, it might be useful to still emit no-member and other checks for
# the rest of the inferred objects.
ignore-on-opaque-inference=yes
# List of class names for which member attributes should not be checked (useful
# for classes with dynamically set attributes). This supports the use of
# qualified names.
ignored-classes=optparse.Values,thread._local,_thread._local
# List of module names for which member attributes should not be checked
# (useful for modules/projects where namespaces are manipulated during runtime
# and thus existing member attributes cannot be deduced by static analysis. It
# supports qualified module names, as well as Unix pattern matching.
ignored-modules=flask setproctitle usb1 flask.ext.socketio smbus2 usb1.*
# Show a hint with possible names when a member name was not found. The aspect
# of finding the hint is based on edit distance.
missing-member-hint=yes
# The minimum edit distance a name should have in order to be considered a
# similar match for a missing member name.
missing-member-hint-distance=1
# The total number of similar names that should be taken in consideration when
# showing a hint for a missing member.
missing-member-max-choices=1
[VARIABLES]
# List of additional names supposed to be defined in builtins. Remember that
# you should avoid to define new builtins when possible.
additional-builtins=
# Tells whether unused global variables should be treated as a violation.
allow-global-unused-variables=yes
# List of strings which can identify a callback function by name. A callback
# name must start or end with one of those strings.
callbacks=cb_,
_cb
# A regular expression matching the name of dummy variables (i.e. expectedly
# not used).
dummy-variables-rgx=_+$|(_[a-zA-Z0-9_]*[a-zA-Z0-9]+?$)|dummy|^ignored_|^unused_
# Argument names that match this expression will be ignored. Default to name
# with leading underscore
ignored-argument-names=_.*|^ignored_|^unused_
# Tells whether we should check for unused import in __init__ files.
init-import=no
# List of qualified module names which can have objects that can redefine
# builtins.
redefining-builtins-modules=six.moves,past.builtins,future.builtins
[FORMAT]
# Expected format of line ending, e.g. empty (any line ending), LF or CRLF.
expected-line-ending-format=
# Regexp for a line that is allowed to be longer than the limit.
ignore-long-lines=^\s*(# )?<?https?://\S+>?$
# Number of spaces of indent required inside a hanging or continued line.
indent-after-paren=4
# String used as indentation unit. This is usually " " (4 spaces) or "\t" (1
# tab).
indent-string=' '
# Maximum number of characters on a single line.
max-line-length=100
# Maximum number of lines in a module
max-module-lines=1000
# Allow the body of a class to be on the same line as the declaration if body
# contains single statement.
single-line-class-stmt=no
# Allow the body of an if to be on the same line as the test if there is no
# else.
single-line-if-stmt=no
[BASIC]
# Naming style matching correct argument names
argument-naming-style=snake_case
# Regular expression matching correct argument names. Overrides argument-
# naming-style
#argument-rgx=
# Naming style matching correct attribute names
attr-naming-style=snake_case
# Regular expression matching correct attribute names. Overrides attr-naming-
# style
#attr-rgx=
# Bad variable names which should always be refused, separated by a comma
bad-names=foo,
bar,
baz,
toto,
tutu,
tata
# Naming style matching correct class attribute names
class-attribute-naming-style=any
# Regular expression matching correct class attribute names. Overrides class-
# attribute-naming-style
#class-attribute-rgx=
# Naming style matching correct class names
class-naming-style=PascalCase
# Regular expression matching correct class names. Overrides class-naming-style
#class-rgx=
# Naming style matching correct constant names
const-naming-style=UPPER_CASE
# Regular expression matching correct constant names. Overrides const-naming-
# style
#const-rgx=
# Minimum line length for functions/classes that require docstrings, shorter
# ones are exempt.
docstring-min-length=-1
# Naming style matching correct function names
function-naming-style=snake_case
# Regular expression matching correct function names. Overrides function-
# naming-style
#function-rgx=
# Good variable names which should always be accepted, separated by a comma
good-names=i,
j,
k,
ex,
Run,
_
# Include a hint for the correct naming format with invalid-name
include-naming-hint=no
# Naming style matching correct inline iteration names
inlinevar-naming-style=any
# Regular expression matching correct inline iteration names. Overrides
# inlinevar-naming-style
#inlinevar-rgx=
# Naming style matching correct method names
method-naming-style=snake_case
# Regular expression matching correct method names. Overrides method-naming-
# style
#method-rgx=
# Naming style matching correct module names
module-naming-style=snake_case
# Regular expression matching correct module names. Overrides module-naming-
# style
#module-rgx=
# Colon-delimited sets of names that determine each other's naming style when
# the name regexes allow several styles.
name-group=
# Regular expression which should only match function or class names that do
# not require a docstring.
no-docstring-rgx=^_
# List of decorators that produce properties, such as abc.abstractproperty. Add
# to this list to register other decorators that produce valid properties.
property-classes=abc.abstractproperty
# Naming style matching correct variable names
variable-naming-style=snake_case
# Regular expression matching correct variable names. Overrides variable-
# naming-style
#variable-rgx=
[DESIGN]
# Maximum number of arguments for function / method
max-args=5
# Maximum number of attributes for a class (see R0902).
max-attributes=7
# Maximum number of boolean expressions in a if statement
max-bool-expr=5
# Maximum number of branch for function / method body
max-branches=12
# Maximum number of locals for function / method body
max-locals=15
# Maximum number of parents for a class (see R0901).
max-parents=7
# Maximum number of public methods for a class (see R0904).
max-public-methods=20
# Maximum number of return / yield for function / method body
max-returns=6
# Maximum number of statements in function / method body
max-statements=50
# Minimum number of public methods for a class (see R0903).
min-public-methods=2
[CLASSES]
# List of method names used to declare (i.e. assign) instance attributes.
defining-attr-methods=__init__,
__new__,
setUp
# List of member names, which should be excluded from the protected access
# warning.
exclude-protected=_asdict,
_fields,
_replace,
_source,
_make
# List of valid names for the first argument in a class method.
valid-classmethod-first-arg=cls
# List of valid names for the first argument in a metaclass class method.
valid-metaclass-classmethod-first-arg=mcs
[IMPORTS]
# Allow wildcard imports from modules that define __all__.
allow-wildcard-with-all=no
# Analyse import fallback blocks. This can be used to support both Python 2 and
# 3 compatible code, which means that the block might have code that exists
# only in one or another interpreter, leading to false positives when analysed.
analyse-fallback-blocks=no
# Deprecated modules which should not be used, separated by a comma
deprecated-modules=regsub,
TERMIOS,
Bastion,
rexec
# Create a graph of external dependencies in the given file (report RP0402 must
# not be disabled)
ext-import-graph=
# Create a graph of every (i.e. internal and external) dependencies in the
# given file (report RP0402 must not be disabled)
import-graph=
# Create a graph of internal dependencies in the given file (report RP0402 must
# not be disabled)
int-import-graph=
# Force import order to recognize a module as part of the standard
# compatibility libraries.
known-standard-library=
# Force import order to recognize a module as part of a third party library.
known-third-party=enchant
[STRING]
# This flag controls whether the implicit-str-concat should generate a warning
# on implicit string concatenation in sequences defined over several lines.
check-str-concat-over-line-jumps=yes
[EXCEPTIONS]
# Exceptions that will emit a warning when being caught. Defaults to
# "Exception"
overgeneral-exceptions=Exception
+1 -1
View File
@@ -1 +1 @@
3.8.10
3.11.4
+8
View File
@@ -0,0 +1,8 @@
{
"recommendations": [
"ms-python.python",
"ms-vscode.cpptools",
"elagil.pre-commit-helper",
"charliermarsh.ruff",
]
}
+47
View File
@@ -0,0 +1,47 @@
{
"version": "0.2.0",
"inputs": [
{
"id": "python_process",
"type": "pickString",
"description": "Select the process to debug",
"options": [
"selfdrive/controls/controlsd.py",
"selfdrive/navd/navd.py",
"system/timed/timed.py",
"tools/sim/run_bridge.py"
]
},
{
"id": "cpp_process",
"type": "pickString",
"description": "Select the process to debug",
"options": [
"selfdrive/ui/ui"
]
},
{
"id": "args",
"description": "Arguments to pass to the process",
"type": "promptString"
}
],
"configurations": [
{
"name": "Python: openpilot Process",
"type": "debugpy",
"request": "launch",
"program": "${input:python_process}",
"console": "integratedTerminal",
"justMyCode": true,
"args": "${input:args}"
},
{
"name": "C++: openpilot Process",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/${input:cpp_process}",
"cwd": "${workspaceFolder}",
}
]
}
+16
View File
@@ -0,0 +1,16 @@
{
"editor.tabSize": 2,
"editor.insertSpaces": true,
"editor.renderWhitespace": "trailing",
"files.trimTrailingWhitespace": true,
"search.exclude": {
"**/.git": true,
"**/.venv": true,
"**/__pycache__": true
},
"files.exclude": {
"**/.git": true,
"**/.venv": true,
"**/__pycache__": true
}
}
+855
View File
@@ -0,0 +1,855 @@
sunnypilot - 0.9.7.0 (2024-xx-xx)
========================
* New driving model
* Support for many hybrid Ford models
************************
* UPDATED: Synced with commaai's openpilot
* master commit 56e343b (February 27, 2024)
* NEW❗: iOS Siri Shortcuts Navigation support thanks to twilsonco and mike86437!
* iOS and macOS Shortcuts to quickly set navigation destinations from your iOS device
* comma Prime support
* Personal Mapbox/Amap/Google Maps token support
* Instructions on how to set up your iOS Siri Shortcuts: https://routinehub.co/shortcut/17677/
sunnypilot - 0.9.6.1 (2024-02-27)
========================
* New driving model
* Vision model trained on more data
* Improved driving performance
* Directly outputs curvature for lateral control
* New driver monitoring model
* Trained on larger dataset
* AGNOS 9
* comma body streaming and controls over WebRTC
* Improved fuzzy fingerprinting for many makes and models
* Alpha longitudinal support for new Toyota models
* Chevrolet Equinox 2019-22 support thanks to JasonJShuler and nworb-cire!
* Dodge Durango 2020-21 support
* Hyundai Staria 2023 support thanks to sunnyhaibin!
* Kia Niro Plug-in Hybrid 2022 support thanks to sunnyhaibin!
* Lexus LC 2024 support thanks to nelsonjchen!
* Toyota RAV4 2023-24 support
* Toyota RAV4 Hybrid 2023-24 support
************************
* UPDATED: Synced with commaai's openpilot
* master commit db57a21 (February 22, 2024)
* v0.9.6 release (February 27, 2024)
* UPDATED: Dynamic Experimental Control (DEC)
* Synced with dragonpilot-community/dragonpilot:beta3 commit f4ee52f
* NEW❗: Default Driving Model: Certified Herbalist v2 (February 13, 2024)
* UPDATED: Driving Model Selector v3
* NEW❗: Driving Model additions
* Certified Herbalist v2 (February 13, 2024) - CHv2
* Certified Herbalist (February 5, 2024) - CH
* Los Angeles v2 (January 24, 2024) - LAv2
* Los Angeles (January 22, 2024) - LAv1
* NEW❗: Model Caching thanks to DevTekVE!
* Model caching allows the selection of previously downloaded Driving Model
* Users can now access cached versions of selected models, eliminating redundant downloads for previously fetched models
* Legacy Driving Models support
* New Delhi (December 21, 2023) - ND
* Blue Diamond v2 (December 11, 2023) - BDv2
* Blue Diamond (November 18, 2023) - BDv1
* Farmville (November 7, 2023) - FV
* Night Strike (October 3, 2023) - NS
* Certain features are deprecated with newer Driving Models
* Dynamic Lane Profile (DLP)
* Custom Offsets
* UPDATED: Dynamic Lane Profile (DLP)
* Continued support for Legacy Driving Models (e.g., ND, BDv2, BDv1, FV, NS)
* Deprecated support for newer Driving Models (e.g., CHv2, CH, LAv2, LAv1)
* UPDATED: Custom Offsets
* Continued support for Legacy Driving Models (e.g., ND, BDv2, BDv1, FV, NS)
* Deprecated support for newer Driving Models (e.g., CHv2, CH, LAv2, LAv1)
* UPDATED: Hyundai/Kia/Genesis - ESCC Radar Interceptor
* Message parsing improvements with the latest firmware update: https://github.com/sunnypilot/panda/tree/test-escc-smdps
* UI Updates
* NEW❗: Visuals: Display Feature Status toggle
* Display the statuses of certain features on the driving screen
* NEW❗: Visuals: Enable Onroad Settings toggle
* Display the Onroad Settings button on the driving screen to adjust feature options on the driving screen, without navigating into the settings menu
* REMOVED: "Device ambient" temperature option on the sidebar
* FIXED: New comma 3X support
* FIXED: New comma eSIM support
* Bug fixes and performance improvements
sunnypilot - 0.9.5.3 (2023-12-24)
========================
* UPDATED: Dynamic Experimental Control (DEC)
* Synced with dragonpilot-community/dragonpilot:lp-dp-beta2 commit 578d38b
* UPDATED: Driving Model Selector v2
* Driving models sort in descending order based on availability date
* Experimental/unmerged driving models are only available in "dev-c3" branch
* To select and use experimental driving models, navigate to "Software" panel, select the "dev-c3" branch, and check for update
* UPDATED: Vision-based Turn Speed Control (V-TSC) implementation
* Refactored implementation thanks to pfeiferj!
* More accurate and consistent velocity calculation to achieve smoother longitudinal control in curves
* NEW❗: Speed Limit Warning
* Display alert and/or chime to warn the driver when the cruising speed is faster than the speed limit plus the Warning Offset
* Customizable Warning Offset, independent of Speed Limit Control (SLC)'s Limit Offset
* UPDATED: Speed Limit Source Policy
* Selectable speed limit source for Speed Limit Control and Speed Limit Warning
* Applicable to: Speed Limit Control, Speed Limit Warning
* UPDATED: Speed Limit Control (SLC)
* Engage Mode: Removed "Warning Only" mode - this has been replaced by the new Speed Limit Warning sub-menu
* UPDATED: OpenStreetMap (OSM) implementation
* Refactored implementation thanks to pfeiferj!
* Less resource impact
* Significantly smaller sizes with databases
* All regions are available to download
* Weekly map updates thanks to pfeiferj!
* Increased the font size of the road name
* C3X-specific changes
* Altitude (ALT.) display on Developer UI
* Current street name on top of driving screen when "OSM Debug UI" is enabled
* UPDATED: Map-based Turn Speed Control (M-TSC) implementation
* Only available in "staging-c3" and "dev-c3" branches. If you are using "release-c3" branch, navigate to "Software" panel, select the desired target branch, and check for update
* Refactored implementation thanks to pfeiferj!
* Based on the new OpenStreetMap implementation
* Improved predicted curvature calculations from OpenStreetMap data
* UI updates
* RE-ENABLED: Navigation: Full screen support
* Display the map view in full screen
* To switch back to driving view, tap on the border edge
* Hyundai Bayon Non-SCC 2019 support thanks to polein78!
sunnypilot - 0.9.5.2 (2023-12-07)
========================
* NEW❗: MADS: Allow Navigate on openpilot in Chill Mode
* Allow navigation to feed map view into the driving model while using Chill Mode
* Support all platforms, including platforms that do not support openpilot longitudinal control & Experimental Mode
* NEW❗: Neural Network Lateral Controller
* Formerly known as "NNFF", this replaces the lateral "torque" controller with one using a neural network trained on each car's (actually, each separate EPS firmware) driving data for increased controls accuracy
* Contact @twilsonco in the sunnypilot Discord server with feedback, or to provide log data for your car if your car is currently unsupported
* NEW❗: Driving Model Selector
* Easily switch between driving models without reinstalling branches. Offering immediate access to the latest models upon release
* An internet connection is required for downloading models. Each model switch currently involves downloading the model again. Future updates may allow for offline switching
* Warning is displayed for metered connections to avoid unexpected data usage if on cellular data
* Change driving models via **Settings -> Software -> Current Driving Model**.
* NEW❗: Hyundai CAN longitudinal:
* NEW❗: Enable radar tracks for certain Santa Fe platforms
* Internal Combustion Engine (ICE) 2021-23
* Hybrid 2022-23
* Plug-in Hybrid 2022-23
* NEW❗: Lane Change: When manually braking with steering engaged, turning on the turn signal will default to Nudge mode
* Volkswagen MQB CC only platforms (radar or no radar) support thanks to jyoung8607!
sunnypilot - 0.9.5.1 (2023-11-17)
========================
* UPDATED: Synced with commaai's master commit e94c3c5
* NEW❗: Farmville driving model
* NEW❗: Onroad Settings Panel
* Onroad buttons (i.e., DLP, GAC) moved to its dedicated panel
* Driving Personality
* Dynamic Lane Profile (DLP)
* Dynamic Experimental Control (DEC)
* Speed Limit Control (SLC)
* NEW❗: Display main feature status on onroad view in real-time
* GAP - Driving Personality
* DLP - Dynamic Lane Profile
* DEC - Dynamic Experimental Control
* SLC - Speed Limit Control
* NEW❗: Dynamic Experimental Control (DEC) thanks to dragonpilot-community!
* Automatically determines and selects between openpilot ACC and openpilot End to End longitudinal based on conditions for a more natural drive
* Dynamic Experimental Control is only active while in Experimental Mode
* When Dynamic Experimental Control is ON, initially setting cruise speed will set to the vehicle's current speed
* NEW❗: Hyundai CAN longitudinal:
* NEW❗: Parse lead info for camera-based SCC platforms
* Improve lead tracking when using openpilot longitudinal
* NEW❗: Parse lead distance to display on car cluster
* Introduced better lead distance calculation to display on the car's cluster, replacing the binary "lead visible" indication on the SCC cluster
* Lead distance is now categorized into different ranges for more detailed and comprehensive information to the driver similar to how stock ACC does it
* NEW❗: Parse speed limit sign recognition from camera for certain supported platforms
* NEW❗: Subaru - Stop and Go auto-resume support thanks to martinl!
* Global (excluding Gen 2 and Hybrid) and Pre-Global support
* NEW❗: Toyota - Stop and Go hack
* Allow some Toyota/Lexus cars to auto resume during stop and go traffic
* Only applicable to certain models and model years
* NEW❗: Toyota: ZSS support thanks to dragonpilot-community and ErichMoraga!
* NEW❗: MSPA (Cereal structs refactor)
* Make sunnypilot Parsable Again - @sshane
* sunnypilot is now parsable with stock openpilot tools
* NEW❗: Display 3D buildings on map thanks to jakethesnake420!
* openpilot Longitudianl Control capable cars only
* UPDATED: Gap Adjust Cruise is now a part of Driving Personality
* [DISTANCE/FOLLOW DISTANCE/GAP DISTANCE] physical button on the steering wheel to select Driving Personality on by default
* Status now viewable in onroad view or Onroad Settings Panel
* REMOVED: Gap Adjust Cruise toggle
* UPDATED: Speed Limit Control (SLC)
* NEW❗: Speed Limit Engage Mode
* Select the desired mode to set the cruising speed to the speed limit
* Warning Only: Warn the driver when the vehicle is driven faster than the speed limit
* Auto: Automatic speed adjustment on motorways based on speed limit data
* User Confirm: Inform the driver to change set speed of Adaptive Cruise Control to help the driver stay within the speed limit
* Supported platforms
* openpilot Longitudinal Control available cars (Excluding certain Toyota/Lexus, Ford, explained below)
* Custom Stock Longitudinal Control available cars
* Unsupported platforms
* Toyota/Lexus and Ford - most platforms do not allow us to control the PCM's set speed, requires testers to verify
* NEW❗: Speed limit source selector
* Select the desired precedence order of sources used to adapt cruise speed to road limits
* UPDATED: Custom Stock Longitudinal Control
* RE-ENABLED: Hyundai/Kia/Genesis CAN-FD platforms
* UPDATED: Custom Offsets reimplementation
* Camera Offset only works in Laneful (Laneful Only or Laneful in Auto mode when using Dynamic Lane Profile)
* Path Offset can be applied to both Laneless and Laneful
* UPDATED: Refactored Torque Lateral Control custom tuning menu
* NEW❗: Less Restrict Settings for Self-Tune (Beta)
* NEW❗: Custom Tuning for setting offline and live values in real-time
* UPDATED: Auto-detect custom Mapbox token if a personal Mapbox token is provided
* REMOVED: "Enable Mapbox Navigation" toggle
* UI updates
* New Settings menu redesign and improved interactions
* FIXED: Retain hotspot/tethering state was not consistently saved
* FIXED: Map stuck in "Map Loading" if comma Prime is active
* FIXED: OpenStreetMap implementation on C3X devices
* M-TSC
* Altitude (ALT.) display on Developer UI
* Current street name on top of driving screen when "OSM Debug UI" is enabled
* Hyundai Kona Non-SCC 2019 support thanks to Quex!
* Kia Seltos Non-SCC 2023-24 support thanks to Moodkiller and jeroid_!
sunnypilot - 0.9.4.1 (2023-08-11)
========================
* UPDATED: Synced with commaai's 0.9.4 release
* NEW❗: Moonrise driving model
* NEW❗: Ford upstream models support
* UPDATED: Dynamic Lane Profile selector in the "SP - Controls" menu
* REMOVED: Dynamic Lane Profile driving screen UI button
* FIXED: Disallow torque lateral control for angle control platforms (e.g. Ford, Nissan, Tesla)
* Torque lateral control cannot be used by angle control platforms, and would cause a "Controls Unresponsive" error if Torque lateral control is enforced in settings
* REMOVED: Speed Limit Style override
* Honda Accord 2016-17 support thanks to mlocoteta!
* Serial Steering hardware required. For more information, see https://github.com/mlocoteta/serialSteeringHardware
* mapd: utilize advisory speed limit in curves (#142) thanks to pfeiferj!
sunnypilot - 0.9.3.1 (2023-07-09)
========================
* UPDATED: Synced with commaai's 0.9.3 release
* NEW❗: Display Temperature on Sidebar toggle
* Display Ambient temperature, memory temperature, CPU core with the highest temperature, GPU temperature, or max of Memory/CPU/GPU on the sidebar
* Replace "Display CPU Temperature on Sidebar" toggle
* NEW❗: Hot Coffee driving model
* NEW❗: HKG CAN: Smoother Stopping Performance (Beta) toggle
* Smoother stopping behind a stopped car or desired stopping event.
* This is only applicable to HKG CAN platforms using openpilot longitudinal control
* NEW❗: Toyota: TSS2 longitudinal: Custom Tuning
* Smoother longitudinal performance for Toyota/Lexus TSS2/LSS2 cars thanks to dragonpilot-community!
* NEW❗: Enable Screen Recorder toggle
* Enable this will display a button on the onroad screen to toggle on or off real-time screen recording with UI elements.
* IMPROVED: Dynamic Lane Profile: when using Laneline planner via Laneline Mode or Auto Mode, enforce Laneless planner while traveling below 10 MPH or 16 km/h
* REMOVED: Display CPU Temperature on Sidebar
sunnypilot - 0.9.2.3 (2023-06-18)
========================
* NEW❗: Auto Lane Change: Delay with Blind Spot
* Toggle to enable a delay timer for seamless lane changes when blind spot monitoring (BSM) detects an obstructing vehicle, ensuring safe maneuvering
* NEW❗: Driving Screen Off: Wake with Non-Critical Events
* When Driving Screen Off Timer is not set to "Always On":
* Enabled: Wake the brightness of the screen to display all events
* Disabled: Wake the brightness of the screen to display critical events
* Currently, all non-nudge modes are default to continue lane change after 1 seconds of blind spot detection
* NEW❗: Fleet Manager PIN Requirement toggle
* User can now enable or disable PIN requirement on the comma device before accessing Fleet Manager
* NEW❗: Reset all sunnypilot settings toggle
* NEW❗: Turn signals display on screen when blinker is used
* Green: Blinker is on
* Red: Blinker is on, car detected in the adjacent blind spot or road edge detected
* IMPROVED: mapd: better exceptions handling when loading dependencies
* UPDATED: Green Traffic Light Chime no longer displays an orange border when executed
* FIXED: mapd: Road name flashing caused by desync with last GPS timestamp
* FIXED: Ram HD (2500/3500): Ignore paramsd sanity check
* Live parameters have trouble with self-tuning on this platform with upstream openpilot 0.9.2
* Hyundai: Longitudinal support for CAN-based Camera SCC cars thanks to Zack1010OP's Patreon sponsor!
sunnypilot - 0.9.2.2 (2023-06-13)
========================
* NEW❗: Toyota: Allow M.A.D.S. toggling with LKAS Button (Beta)
* IMPROVED: Ram: cruise button handling
sunnypilot - 0.9.2.1 (2023-06-10)
========================
* UPDATED: Synced with commaai's 0.9.2 release
* UPDATED: feature revamp with better stability
* UPDATED:
* M.A.D.S.
* Path color becomes LIGHT ORANGE during Driver Steering Override
* Gap Adjust Cruise (now known as Driving Personality in upstream openpilot 0.9.3):
* Updated profiles and jerk changes
* Experimental Mode support
* Three settings: Stock, Aggressive, and Maniac
* Stock is recommended and the default
* In Aggressive/Maniac mode, lead follow distance is shorter and quicker gas/brake response
* Dynamic Lane Profile
* Display blue borders on both sides of the driving path when Laneline mode is being used in the planner
* Auto Mode optimization
* Permanent: Laneless during Auto Lane Change execution
* Mapd
* OpenStreetMap Database: new regions added
* Developer UI (Dev UI)
* REMOVED: 2-column design
* NEW❗: 1-column + 1-row design
* Custom Stock Longitudinal Control
* NEW❗: Chrysler/Jeep/Ram support
* NEW❗: Mazda support
* NEW❗: Volkswagen PQ support
* DISABLED: Hyundai/Kia/Genesis CAN-FD platforms
* NEW❗: Switch between Chill (openpilot ACC) and Experimental (E2E longitudinal) with DISTANCE button on the steering wheel
* To switch between Chill and Experimental Mode: press and hold the DISTANCE button on the steering wheel for over 0.5 second
* All openpilot longitudinal capable cars support
* NEW❗: Nicki Minaj driving model
* NEW❗: Nissan and Mazda upstream models support
* NEW❗: Pre-Global Subaru upstream models support
* NEW❗: Display End-to-end Longitudinal Status (Beta)
* Display an icon that appears when the End-to-end model decides to start or stop
* NEW❗: Green Traffic Light Chime (Beta)
* A chime will play when the traffic light you are waiting for turns green, and you have no vehicle in front of you.
* NEW❗: Lead Vehicle Departure Alert
* Notify when the leading vehicle drives away
* NEW❗: Speedometer: Display True Speed
* Display the true vehicle current speed from wheel speed sensors.
* NEW❗: Speedometer: Hide from Onroad Screen
* NEW❗: Auto-Hide UI Buttons
* Hide UI buttons on driving screen after a 30-second timeout. Tap on the screen at anytime to reveal the UI buttons
* Applicable to Dynamic Lane Profile (DLP) and Gap Adjust Cruise (GAC)
* NEW❗: Display DM Camera in Reverse Gear
* Show Driver Monitoring camera while the car is in reverse gear
* NEW❗: Block Lane Change: Road Edge Detection (Beta)
* Block lane change when road edge is detected on the stalk actuated side
* NEW❗: Display CPU Temperature on Sidebar
* Display the CPU core with the highest temperature on the sidebar
* NEW❗: Display current driving model in Software settings
* NEW❗: HKG: smartMDPS automatic detection (installed with applicable firmware)
* FIXED: Unintended siren/alarm from the comma device if the vehicle is turned off too quickly in PARK gear
* FIXED: mapd: Exception handling for loading dependencies
* Fleet Manager via Browser support thanks to actuallylemoncurd, AlexandreSato, ntegan1, and royjr!
* Access your dashcam footage, screen recordings, and error logs when the car is turned off
* Connect to the device via Wi-Fi, mobile hotspot, or tethering on the comma device, then navigate to http://ipAddress:5050 to access.
* Honda Clarity 2018-22 support thanks to mcallbosco, vanillagorillaa and wirelessnet2!
* Ram: Steer to 0/7 MPH support thanks to vincentw56!
* Retain hotspot/tethering state across reboots thanks to rogerioaguas!
sunnypilot - Version Latest (2023-02-22)
========================
* UPDATED: Synced with commaai's master branch - 2023.02.19-04:52:00:GMT - 0.9.2
* Refactor sunnypilot features to be more stable
sunnypilot - Version Latest (2022-12-16)
========================
* UPDATED: Synced with commaai's master branch - 2022.12.16-06:31:00:GMT - 0.9.1
* NEW❗: GM:
* NEW❗: Gap Adjust Cruise support - Chill, Normal, Aggressive
* NEW❗: Experimental Mode: Hold DISTANCE button on the steering wheel for 0.5 second to switch between Experimental Mode and Chill Mode
* REMOVED❌: Toytoa: SnG Hack
* This method is not recommended and may cause some cars to not behave as expected
* SDSU is strongly recommended to enable SnG for Toyota vehicles without SnG from factory
* commaai: radard: add missing accel data for vision-only leads (commaai/openpilot#26619) - pending PR
* VOACC performance is drastically improved when using Chill Mode
* IMPROVED: M.A.D.S. events handling
* IMPROVED: UI: screen recorder button change
* IMPROVED: OpenStreetMap Offline Database optimization
* FIXED: Toyota: vehicles' LKAS button no longer has a delay with toggling M.A.D.S.
* FIXED: Toyota: brake pedal press at standstill causing Cruise Fault
* FIXED: Volkswagen MQB: reduce Camera Malfunction occurrences (requires testing)
* Bug fixes and performance improvements
sunnypilot - Version Latest (2022-12-10)
========================
* IMPROVED: NEW❗ Developer UI design
* Second column metrics is now moved to the bottom of the screen
* ACC. = Acceleration
* L.S. = Lead Speed
* E.T. = EPS Torque
* B.D. = Bearing Degree
* FRI. = Friction
* L.A. = Lateral Acceleration
* ALT. = Altitude
* Bug fixes and performance improvements
sunnypilot - Version Latest (2022-12-07)
========================
* NEW❗: Screen Recorder support thanks to neokii and Kumar!
* NEW❗: End-to-end longitudinal start/stop status icon
* Only appears when Experimental Mode is enabled
* NEW❗: End-to-end longitudinal car chime when starting
* Hyundai/Kia/Genesis CAN platform, Honda/Acura Bosch/Nidec, Toyota/Lexus
* i.e. Traffic light turns green, stop sign ready to go, etc.
* Only appears when Experimental Mode is enabled AND longitudinal control is disengaged
* Bug fixes and performance improvements
sunnypilot - Version Latest (2022-12-05)
========================
* UPDATED: Synced with commaai's master branch - 2022.12.04-22:46:00:GMT - 0.9.1
* Bug fixes and performance improvements
sunnypilot - Version Latest (2022-11-12)
========================
* UPDATED: Synced with commaai's master branch - 2022.11.12-10:02:00:GMT - 0.8.17
* FIXED: CAN Error for CAN HKG cars that do not have navigation from the factory
* Bug fixes and performance improvements
sunnypilot - Version Latest (2022-11-11)
========================
* UPDATED: Synced with commaai's master branch - 2022.11.11-21:22:00:GMT - 0.8.17
* commaai: AGNOS 6.2 (commaai/openpilot#26441)
* NEW❗: Speed Limit Control - HKG - add speed limit from car's navigation head unit
* Compatible with certain models, trims, and model years
* DISABLED: FCA: RAM HD - steer down to 0
* FIXED: UI: End-to-end longitudinal button on driving screen synchronization
* FIXED: Honda: Longitudinal status with set cruise speed now displays properly in the car's dashboard
* Bug fixes and performance improvements
sunnypilot - Version Latest (2022-11-08)
========================
* ADDED: New Zealand offline OpenStreetMap database
sunnypilot - Version Latest (2022-11-04)
========================
* UPDATED: Synced with commaai's master branch - 2022.11.05-01:44:00:GMT - 0.8.17
* RE-ENABLED: Dynamic Lane Profile - preserves lanelines
* Can be found in "SP - Controls" menu
* NEW❗: DLP: switch to laneless for current/future curves thanks to @twilsonco!
* Can be found in "SP - Controls" menu
* NEW❗: UI: Road Camera Selector
* Enable this will display a button on the driving screen to select the driving camera
* Can be found in "SP - Visuals" menu
* NEW❗: Controls: Camera & Path Custom Offsets
* Only applicable to laneline mode when using Dynamic Lane Profile
* NEW❗: Buttons on driving screen are now sorted based on priority and availability
* Bug fixes and performance improvements
sunnypilot - Version Latest (2022-10-28)
========================
* UPDATED: Synced with commaai's master branch - 2022.10.28-03:53:00:GMT - 0.8.17
* Bug fixes and performance improvements
sunnypilot - Version Latest (2022-10-26)
========================
* UPDATED: Synced with commaai's master branch - 2022.10.26-06:20:00:GMT - 0.8.17
* Bug fixes and performance improvements
sunnypilot - Version Latest (2022-10-25)
========================
* UPDATED: Synced with commaai's master branch - 2022.10.25-23:53:00:GMT - 0.8.17
* Pre-Global Subaru support thanks to @martinl!
* NEW❗: Speed Limit values turn red when current speed is higher than posted speed limit
* Bug fixes and performance improvements
sunnypilot - Version Latest (2022-10-23)
========================
* UPDATED: Synced with commaai's master branch - 2022.10.22-23:15:00:GMT - 0.8.17
* IMPROVED: Custom Stock Longitudinal Control - HKG - only allow engagement on user button press
* IMPROVED: Custom Stock Longitudinal Control - Volkswagen MQB & PQ - more consistent set speed change
* Bug fixes and performance improvements
sunnypilot - Version Latest (2022-10-21)
========================
* UPDATED: Synced with commaai's master branch - 2022.10.21-17:33:00:GMT - 0.8.17
* IMPROVED: Custom Stock Longitudinal Control - Volkswagen MQB & PQ - more predictable button send logic
* Bug fixes and performance improvements
sunnypilot - Version Latest (2022-10-20)
========================
* UPDATED: Synced with commaai's master branch - 2022.10.20-20:25:00:GMT - 0.8.17
* Bug fixes and performance improvements
sunnypilot - Version Latest (2022-10-19)
========================
* UPDATED: Synced with commaai's master branch - 2022.10.19-08:31:00:GMT - 0.8.17
* IMPROVED: Controls: Speed Limit Control - accelerator press only disengage if "Disengage on Accelerator Pedal" is enabled
* Bug fixes and performance improvements
sunnypilot - Version Latest (2022-10-18)
========================
* UPDATED: Synced with commaai's master branch - 2022.10.18-04:44:00:GMT - 0.8.17
* RE-ENABLED: Volkswagen MQB & PQ with Custom Stock Longitudinal Control
* NEW❗: Steering Rate Cost Live Tune
* Enables live tune for Steering Rate Cost. Lower value allows steering wheel to move more freely at low speed
* Can be found in "SP - Controls" menu
* FIXED: MADS: GM - include Regen Paddle logic thanks to @twilsonco!
* Bug fixes and performance improvements
sunnypilot - Version Latest (2022-10-17)
========================
* UPDATED: Synced with commaai's master branch - 2022.10.17-23:54:00:GMT+1 - 0.8.17
* ENABLED: "Custom Stock Longitudinal Control" toggle for CAN-FD cars
* FIXED: HKG CAN-FD: Could not engage when openpilot longitudinal is enabled
* Bug fixes and performance improvements
sunnypilot - Version Latest (2022-10-13)
========================
* UPDATED: Synced with commaai's master branch - 2022.10.13-19:43:00:GMT+1 - 0.8.17
* ADDED: Live Tmux toggle
* Can be found in "SP - General" menu
* IMPROVED: OpenStreetMap Database Update - only check for database update with explicit user decision
* Bug fixes and performance improvements
sunnypilot - Version Latest (2022-10-11)
========================
* ADDED: Hyundai openpilot longitudinal improvements - huge thanks to @aragon7777!
* ADDED: Check for OpenStreetMap Database Update button
* UPDATED: commaai: Low speed lateral control improvements (commaai:openpilot#26022, bbcd448) - pending PR
* FIXED: MUTCD speed limit spacing adjusts dynamically when no subtext is shown (i.e., speed limit offset, distance to next speed limit)
* FIXED: MADS: Intermittent CAN Error when engaging for Toyota Prius TSS-P
* Bug fixes and performance improvements
sunnypilot - Version Latest (2022-10-09)
========================
* ADDED: commaai: Low speed lateral control improvements (commaai:openpilot#26022, bca288bb) - pending PR
* FIXED: MADS: Intermittent CAN Error when engaging for Toyota Prius TSS-P
* IMPROVED: mapd: stop signs and other supported traffic_calming tags are now slowing/stopping as expected
* Bug fixes and performance improvements
sunnypilot - Version Latest (2022-10-08)
========================
* UPDATED: Synced with commaai's master branch - 2022.10.08-12:07:00:GMT+1 - 0.8.17
* FIXED: MADS: Intermittent CAN Error when engaging for Toyota Prius TSS-P
* IMPROVED: mapd: Speed Humps are now set at 20 MPH or 32 km/h
* IMPROVED: OpenStreetMap Offline Database download experience
* Bug fixes and performance improvements
sunnypilot - Version Latest (2022-10-07)
========================
* UPDATED: Synced with commaai's master branch - 2022.10.07-08:16:00:GMT - 0.8.17
* NEW❗: OpenStreetMap database can now be downloaded locally for offline use
* Now offering US South, US West, US Northeast, US Florida, Taiwan, and South Africa
* Databases updated - 2022.10.05-03:30:00:GMT
* NEW❗: mapd: Stop Sign, Yield, Speed Bump, Speed Hump, Sharp Curve support - huge thanks to @move-fast and @dragonpilot-community!
* Go to https://openstreetmap.org and start mapping out your area!
* Bug fixes and performance improvements
sunnypilot - Version Latest (2022-09-30)
========================
* UPDATED: Synced with commaai's master branch - 2022.09.30-22:43:00:GMT - 0.8.17
* RE-ADDED: Torque Lateral Controller Live Tune Menu
* Bug fixes and performance improvements
sunnypilot - Version Latest (2022-09-23)
========================
* ADDED: Developer UI: latAccelFactorFiltered & frictionCoefficientFiltered values displays in green if Torque is using live params
* Bug fixes and performance improvements
sunnypilot - Version Latest (2022-09-22)
========================
* UPDATED: Synced with commaai's master branch - 2022.09.19-22:19:00:GMT - 0.8.17
* NEW❗: Toggle to explicitly enable Custom Stock Longitudinal Control
* Applicable cars only: Honda, Hyundai/Kia/Genesis
* Settings -> Toggles menu
sunnypilot - Version Latest (2022-09-21)
========================
* UPDATED: Synced with commaai's master branch - 2022.09.19-22:19:00:GMT - 0.8.17
* ADDED: Toggle to enable Live Torque (self/auto tune) with Torque lateral controller
* To enable, first enable "Enforce Torque Lateral Controller" toggle
* UPDATED: New metrics in Developer UI (when Live Torque is enabled)
* REMOVED: latAccelFactorRaw & frictionCoefficientRaw from torqued
* ADDED: latAccelFactorFiltered & frictionCoefficientFiltered from torqued
* REMOVED: Temporary remove Torque Lateral Controller Live Tune Menu
sunnypilot - Version Latest (2022-09-20)
========================
* UPDATED: Synced with commaai's master branch - 2022.09.19-22:19:00:GMT - 0.8.17
* ADDED: Toggle to enable Live Torque (self/auto tune) with Torque lateral controller
* To enable, first enable "Enforce Torque Lateral Controller" toggle
* REMOVED: Temporary remove Torque Lateral Controller Live Tune Menu
sunnypilot - Version Latest (2022-09-18)
========================
* UPDATED: Synced with commaai's master branch - 2022.09.17-11:23:00:GMT - 0.8.17
* ADDED: Kia Forte Non-SCC 2019 support for @askalice
* FIXED: Torque Lateral Control Live Tune now syncs with commaai:openpilot#25822
* FIXED: mapd dependencies no longer need to be re-downloaded after unknown reboots
sunnypilot - Version Latest (2022-09-17)
========================
* UPDATED: Synced with commaai's master branch - 2022.09.17-11:23:00:GMT - 0.8.17
* NEW❗: Non SCC HKG support
* Custom Stock Longitudinal Control
* ❗No❗ openpilot longitudinal control
* FIXED: Honda Bosch random low-value set speed changes
sunnypilot - Version Latest (2022-09-16)
========================
* UPDATED: Synced with commaai's master branch - 2022.09.16-20:23:00:GMT - 0.8.17
sunnypilot - Version Latest (2022-09-15)
========================
* UPDATED: Synced with commaai's master branch - 2022.09.16-02:00:00:GMT - 0.8.17
* FIXED: Block additional auto lane change actions if blinker stays on after the first lane change
* REVERTED: Some Toyota with LKAS button no longer requires double press to engage/disengage M.A.D.S.
sunnypilot - Version Latest (2022-09-14)u
========================
* UPDATED: Synced with commaai's master branch - 2022.09.11-02:47:00:GMT - 0.8.17
* NEW❗: GM models supported in Force Car Recognition (FCR)
* Under "SP - Vehicles"
* NEW❗: Prompt to select car in "SP - Vehicles" if car unrecognized on startup
* FIXED: Some Toyota with LKAS button no longer requires double press to engage/disengage M.A.D.S.
* UPDATED: ESCC: Use radar tracks from radar if available
sunnypilot - Version Latest (2022-09-13)
========================
* UPDATED: Synced with commaai's master branch - 2022.09.11-02:47:00:GMT - 0.8.17
* NEW❗: New metric in Developer UI
* Actual Lateral Acceleration (Roll Compensated)
sunnypilot - Version Latest (2022-09-12)
========================
* UPDATED: Synced with commaai's master branch - 2022.09.11-02:47:00:GMT - 0.8.17
* FIXED: Honda Nidec models not gaining speed when longitudinal engaged
sunnypilot - Version Latest (2022-09-11)
========================
* UPDATED: Synced with commaai's master branch - 2022.09.11-02:47:00:GMT - 0.8.17
* NEW❗: Hyundai Enhanced SCC now forwards FCW and AEB signals and commands from radar to car
* RE-ENABLED: MADS Status Icon toggle
sunnypilot - Version Latest (2022-09-10)
========================
* UPDATED: Synced with commaai's master branch - 2022.09.11-02:47:00:GMT - 0.8.17
* NEW❗: RAM improvement implementation thanks to realfast!
* DISABLED: Chrysler/Jeep/Ram with Custom Stock Longitudinal Control
* DISABLED: Volkswagen MQB & PQ with Custom Stock Longitudinal Control
sunnypilot - Version Latest (2022-09-09)
========================
* UPDATED: Synced with commaai's master branch - 2022.09.09-07:35:00:GMT - 0.8.17
* NEW❗: MADS now supporting General Motors (GM)
* ADDED: Custom Stock Longitudinal Control - Volkswagen
* MQB & PQ
* ADDED: Reverse ACC Change
* ACC +/-: Short=5, Long=1
* ADDED: Custom Stock Longitudinal Control
* Hyundai/Kia/Genesis
* Honda Bosch
* ADDED: Hyundai: 2015-16 Genesis resume from standstill fix (commaai:openpilot#25579) - pending PR
* Vision Turn Speed Control re-enabled
* Disable Onroad Uploads toggle re-enabled
sunnypilot - Version Latest (2022-09-08)
========================
* UPDATED: Synced with commaai's master branch - 2022.09.08-04:05:00:GMT - 0.8.17
* NEW❗: Block lane change initiation while brake is pressed
sunnypilot - Version Latest (2022-09-07)
========================
* UPDATED: Synced with commaai's master branch - 2022.09.08-04:05:00:GMT - 0.8.17
* NEW❗: Display End-to-end longitudinal 🌮 on screen
* NEW❗: Hold DISTANCE button on the steering wheel for 1 second to switch between E2E Long and ACC mode
* Enable toggle on the driving screen to switch between modes with End-to-end longitudinal
* Only applicable to cars with openpilot longitudinal control
* NEW❗: Block lane change initiation while brake is pressed
* REMOVED: Dynamic Lane Profile - upstream laneless model is now on by default
* REMOVED: hyundai: consistent start from stop (commaai:openpilot#25672) - pending PR
sunnypilot - Version Latest (2022-09-06)
========================
* UPDATED: Synced with commaai's master branch - 2022.09.06 - 0.8.17
* NEW❗: Display useful metrics above the chevron that tracks the lead car
* Under "SP - Visuals" menu
* Only applicable to cars with openpilot longitudinal control
* ADDED: hyundai: consistent start from stop (commaai:openpilot#25672) - pending PR
* FIXED: Vienna speed limit interface now scales properly with the outer box
* REMOVED: Hyundai long improvements (commaai:openpilot#25604) - closed PR
sunnypilot - Version Latest (2022-09-05)
========================
* UPDATED: Synced with commaai's master branch - 2022.09.03 - 0.8.17
* NEW❗: Speed Limit Control (SLC) interface integrated with upstream
* NEW❗: Speed limit from active navigation is now prioritized for Speed Limit Control
* NEW❗: MUTCD (U.S.) or Vienna (E.U.) speed limit interfaces can now be selected under "SP - Controls"
sunnypilot - Version Latest (2022-09-04)
========================
* UPDATED: Synced with commaai's master branch - 2022.09.03 - 0.8.17
* FIXED: Gap Adjust Cruise status now displays properly on screen
* FIXED: mapd - missing index in list caused mapd to crash
* REMOVED: Temporary removed Vision Turn Speed Control
sunnypilot - Version Latest (2022-09-03)
========================
* UPDATED: Synced with commaai's master branch - 2022.09.03 - 0.8.17
* ADDED: New border colors for different operation engagements
* ADDED: UI: Show barrier when car detected in blind spot
* Only applicable to cars that have BSM detection with openpilot
* FIXED: Cruise Cancel button no longer display prompt if cruise not engaged
* TWEAKED: Update changelogs on startup in Settings -> Software -> Version
* REMOVED: Upload Raw Logs and Full Resolution Videos toggles
sunnypilot - Version Latest (2022-08-31)
========================
* UPDATED: Synced with commaai's master branch - 2022.08.31 - 0.8.17
* ADDED: New border colors for different operation engagements
* ADDED: UI: Show barrier when car detected in blind spot
* Only applicable to cars that have BSM detection with openpilot
* FIXED: Cruise Cancel button no longer display prompt if cruise not engaged
* REMOVED: Upload Raw Logs and Full Resolution Videos toggles
sunnypilot - Version 0.8.16 (2022-07-16)
========================
* Sync with commaai's master branches
* NEW❗: Add toggle to pause lateral actuation below 30 MPH / 50 KM/H
* IMPROVED: Better controls mismatch handling
* IMPROVED: Less frequent Low Memory alert
* IMPROVED: Only allow lateral control when in forward gears
* IMPROVED: Better alerts handling on gear changes
sunnypilot - Version 0.8.14-1.3 (2022-06-29)
========================
* Hyundai/Kia/Genesis
* NEW❗: MADS: Add GAP/Distance button on the steering wheel to engage/disengage
* To engage/disengage MADS: Hold the button for 0.5 second
* NEW❗: Dynamic Lane Profile: Add toggle to enable "Laneless for Curves in Auto Lane"
* HOTFIX🛠: Improve Torque lateral control and reduce ping pong for some Toyota cars
* Torque control: higher low speed gains and better steering angle deadzone logic
* Developer UI: Remove Distance Traveled, replace with Memory Usage %
* This may have a potential to fix the Low Memory alert that may appear
sunnypilot - Version 0.8.14-1 (2022-06-27)
========================
* HOTFIX🛠: Honda, Toyota, Volkswagen now initialized correctly with Torque Lateral Live Tune
sunnypilot - Version 0.8.14-1 (2022-06-27)
========================
* NEW❗: Added toggle to enable updates for sunnypilot
* HOTFIX🛠: Volkswagen car list now displays properly in Force Car Recognition menu
* REVERTED: Honda - temporary removes CRUISE (MAIN) for MADS engagement
* LKAS button continues to be used for MADS engagement/disengagement
sunnypilot - Version 0.8.14-1 (2022-06-26)
========================
Visit https://bit.ly/sunnyreadme for more details
* sunnypilot 0.8.14 release - based on openpilot 0.8.14 devel
* "0.8.14-prod-c3" branch only supports comma three
* If you have a comma two, EON, or other devices than a comma three, visit sunnyhaibin's discord server for more details: https://discord.gg/wRW3meAgtx
* Mono-branch support
* Honda/Acura
* Hyundai/Kia/Genesis
* Toyota/Lexus
* Volkswagen MQB
* Modified Assistive Driving Safety (MADS) Mode
* NEW❗: CRUISE (MAIN) now engages MADS for all supported car makes
* NEW❗: Added toggle to disable disengaging Automatic Lane Centering (ALC) on the brake pedal
* Dynamic Lane Profile (DLP)
* NEW❗: Gap Adjust Cruise (GAC)
* openpilot longitudinal cars can now adjust between the lead car's following distance gap via 3 modes:
* Steering Wheel (SW) | User Interface (UI) | Steering Wheel + User Interface (SW+UI)
* NEW❗: Custom Camera & Path Offsets
* NEW❗: Torque Lateral Control from openpilot 0.8.15 master (as of 2022-06-15)
* NEW❗: Torque Lateral Control Live Tune Menu
* NEW❗: Speed Limit Sign from openpilot 0.8.15 master (as of 2022-06-22)
* NEW❗: Mapbox Speed Limit data will now be utilized in Speed Limit Control (SLC)
* Speed limit data will be utilized in the following availability:
* Mapbox (active navigation) -> OpenStreetMap -> Car Interface (Toyota's TSR)
* Custom Stock Longitudinal Control
* NEW❗: Volkswagen MQB
* Honda
* Hyundai/Kia/Genesis
* NEW❗: Mapbox navigation support for non-Prime users
* Visit sunnyhaibin's discord server for more details: https://discord.gg/wRW3meAgtx
* Hyundai/Kia/Genesis
* NEW❗: Enhanced SCC (ESCC) Support
* Requires hardware modification. Visit sunnyhaibin's discord server for more details: https://discord.gg/wRW3meAgtx
* NEW❗: Smart MDPS (SMDPS) Support - Auto-detection
* Requires hardware modification and custom firmware for the SMDPS. Visit sunnyhaibin's discord server for more details: https://discord.gg/wRW3meAgtx
* Toyota/Lexus
* NEW❗: Added toggle to enforce stock longitudinal control
sunnypilot - Version 0.8.12-4
========================
* NEW❗: Custom Stock Longitudinal Control by setting the target speed via openpilot's "MAX" speed thanks to multikyd!
* Speed Limit Control
* Vision-based Turn Control
* Map-based Turn Control
* NEW❗: HDA status integration with Custom Stock Longitudinal Control on applicable HKG cars only
* NEW❗: Roll Compensation and SteerRatio fix from comma's 0.8.13
* NEW❗: Dev UI to display different metrics on screen
* Click on the "MAX" box on the top left of the openpilot display to toggle different metrics display
* Lead car relative distance; Lead car relative speed; Actual steering degree; Desired steering degree; Engine RPM; Longitudinal acceleration; Lead car actual speed; EPS torque; Current altitude; Compass direction
* NEW❗: Stand Still Timer to display time spent at a stop with M.A.D.S engaged (i.e., stop lights, stop signs, traffic congestions)
* NEW❗: Current car speed text turns red when the car is braking
* NEW❗: Export GPS tracks into GPX files and upload to OSM thanks to eFini!
* NEW❗: Enable ACC and M.A.D.S with a single press of the RES+/SET- button
* NEW❗: ACC +/-: Short=5, Long=1
* Change the ACC +/- buttons behavior with cruise speed change in openpilot
* Disabled (Stock): Short=1, Long=5
* Enabled: Short=5, Long=1
* NEW❗: Speed Limit Value Offset (not %)*
* Set speed limit higher or lower than actual speed limit for a more personalized drive.
* *To use this feature, turn off "Enable Speed Limit % Offset"*
* NEW❗: Dedicated icon to show the status of M.A.D.S.
* NEW❗: No Offroad Fix for non-official devices that cannot shut down after the car is turned off
* NEW❗: Stop N' Go Resume Alternative
* Offer alternative behavior to auto resume when stopped behind a lead car using stock SCC/ACC. This feature removes the repeating prompt chime when stopped and/or allows some cars to use auto resume (i.e., Genesis)
* IMPROVED: Show the lead car icon in the car's dashboard when a lead car is detected by openpilot's camera vision
* FIXED: MADS button unintentionally set MAX when using stock longitudinal control thanks to Spektor56!
sunnypilot - Version 0.8.12-3
========================
* NEW❗: Bypass "System Malfunction" alert toggle
* Prevent openpilot from returning the "System Malfunction" alert that hinders the ability use openpilot
* FIXED: Hyundai/Kia/Genesis Brake Hold Active now outputs the correct events on screen with M.A.D.S. engaged
sunnypilot - Version 0.8.12-2
========================
* NEW❗: Disable M.A.D.S. toggle to disable the beloved M.A.D.S. feature
* Enable Stock openpilot engagement/disengagement
* ADJUST: Initialize Driving Screen Off Brightness at 50%
sunnypilot - Version 0.8.12-1
========================
* sunnypilot 0.8.12 release - based on openpilot 0.8.12 devel
* Dedicated Hyundai/Kia/Genesis branch support
* NEW❗: OpenStreetMap integration thanks to the Move Fast team!
* NEW❗: Vision-based Turn Control
* NEW❗: Map-Data-based Turn Control
* NEW❗: Speed Limit Control w/ optional Speed Limit Offset
* NEW❗: OpenStreetMap integration debug UI
* Only available to openpilot longitudinal enabled cars
* NEW❗: Hands on Wheel Monitoring according to EU r079r4e regulation
* NEW❗: Disable Onroad Uploads for data-limited Wi-Fi hotspots when using OpenStreetMap related features
* NEW❗: Fast Boot (Prebuilt)
* NEW❗: Auto Lane Change Timer
* NEW❗: Screen Brightness Control (Global)
* NEW❗: Driving Screen Off Timer
* NEW❗: Driving Screen Off Brightness (%)
* NEW❗: Max Time Offroad
* Improved user feedback with M.A.D.S. operations thanks to Spektor56!
* Lane Path
* Green🟢 (Laneful), Red🔴 (Laneless): M.A.D.S. engaged
* White⚪: M.A.D.S. suspended or disengaged
* Black⚫: M.A.D.S. engaged, steering is being manually override by user
* Screen border now only illuminates Green when SCC/ACC is engaged
sunnypilot - Version 0.8.10-1 (Unreleased)
========================
* sunnypilot 0.8.10 release - based on openpilot 0.8.10 `devel`
* Add Toyota cars to Force Car Recognition
sunnypilot - Version 0.8.9-4
========================
* Hyundai: Fix Ioniq Hybrid signals
sunnypilot - Version 0.8.9-3
========================
* Update home screen brand and version structure
sunnypilot - Version 0.8.9-2
========================
* Added additional Sonata Hybrid Firmware Versions
* Features
* Modified Assistive Driving Safety (MADS) Mode
* Dynamic Lane Profile (DLP)
* Quiet Drive 🤫
* Force Car Recognition (FCR)
* PID Controller: add kd into the stock PID controller
sunnypilot - Version 0.8.9-1
========================
* First changelog!
* Features
* Modified Assistive Driving Safety (MADS) Mode
* Dynamic Lane Profile (DLP)
* Quiet Drive 🤫
* Force Car Recognition (FCR)
* PID Controller: add kd into the stock PID controller
+4 -3
View File
@@ -2,7 +2,7 @@ FROM ghcr.io/commaai/openpilot-base:latest
ENV PYTHONUNBUFFERED 1
ENV OPENPILOT_PATH /home/batman/openpilot/
ENV OPENPILOT_PATH /home/batman/openpilot
ENV PYTHONPATH ${OPENPILOT_PATH}:${PYTHONPATH}
RUN mkdir -p ${OPENPILOT_PATH}
@@ -10,11 +10,11 @@ WORKDIR ${OPENPILOT_PATH}
COPY SConstruct ${OPENPILOT_PATH}
COPY ./openpilot ${OPENPILOT_PATH}/openpilot
COPY ./third_party ${OPENPILOT_PATH}/third_party
COPY ./site_scons ${OPENPILOT_PATH}/site_scons
COPY ./laika ${OPENPILOT_PATH}/laika
COPY ./laika_repo ${OPENPILOT_PATH}/laika_repo
COPY ./rednose ${OPENPILOT_PATH}/rednose
COPY ./rednose_repo/site_scons ${OPENPILOT_PATH}/rednose_repo/site_scons
COPY ./tools ${OPENPILOT_PATH}/tools
COPY ./release ${OPENPILOT_PATH}/release
COPY ./common ${OPENPILOT_PATH}/common
@@ -23,5 +23,6 @@ COPY ./cereal ${OPENPILOT_PATH}/cereal
COPY ./panda ${OPENPILOT_PATH}/panda
COPY ./selfdrive ${OPENPILOT_PATH}/selfdrive
COPY ./system ${OPENPILOT_PATH}/system
COPY ./body ${OPENPILOT_PATH}/body
RUN scons --cache-readonly -j$(nproc)
+65 -12
View File
@@ -4,7 +4,7 @@ ENV PYTHONUNBUFFERED 1
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && \
apt-get install -y --no-install-recommends sudo tzdata locales ssh && \
apt-get install -y --no-install-recommends sudo tzdata locales ssh pulseaudio xvfb x11-xserver-utils gnome-screenshot && \
rm -rf /var/lib/apt/lists/*
RUN sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && locale-gen
@@ -12,22 +12,75 @@ ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8
ENV POETRY_VIRTUALENVS_CREATE=false
ENV PYENV_VERSION=3.8.10
ENV PYENV_ROOT="/root/.pyenv"
ENV PATH="$PYENV_ROOT/bin:$PYENV_ROOT/shims:$PATH"
COPY pyproject.toml poetry.lock .python-version update_requirements.sh /tmp/
COPY tools/ubuntu_setup.sh /tmp/tools/
COPY tools/install_ubuntu_dependencies.sh /tmp/tools/
RUN cd /tmp && \
tools/ubuntu_setup.sh && \
tools/install_ubuntu_dependencies.sh && \
rm -rf /var/lib/apt/lists/* && \
rm -rf /tmp/* && \
rm -rf /root/.cache && \
pip uninstall -y poetry && \
# remove unused architectures from gcc for panda
cd /usr/lib/gcc/arm-none-eabi/9.2.1 && \
rm -rf arm/ && \
rm -rf thumb/nofp thumb/v6* thumb/v8* thumb/v7+fp thumb/v7-r+fp.sp
RUN sudo git config --global --add safe.directory /tmp/openpilot
# Add OpenCL
RUN apt-get update && apt-get install -y --no-install-recommends \
apt-utils \
alien \
unzip \
tar \
curl \
xz-utils \
dbus \
gcc-arm-none-eabi \
tmux \
vim \
lsb-core \
libx11-6 \
&& rm -rf /var/lib/apt/lists/*
ARG INTEL_DRIVER=l_opencl_p_18.1.0.015.tgz
ARG INTEL_DRIVER_URL=https://registrationcenter-download.intel.com/akdlm/irc_nas/vcp/15532
RUN mkdir -p /tmp/opencl-driver-intel
RUN cd /tmp/opencl-driver-intel && \
echo INTEL_DRIVER is $INTEL_DRIVER && \
curl -O $INTEL_DRIVER_URL/$INTEL_DRIVER && \
tar -xzf $INTEL_DRIVER && \
for i in $(basename $INTEL_DRIVER .tgz)/rpm/*.rpm; do alien --to-deb $i; done && \
dpkg -i *.deb && \
rm -rf $INTEL_DRIVER $(basename $INTEL_DRIVER .tgz) *.deb && \
mkdir -p /etc/OpenCL/vendors && \
echo /opt/intel/opencl_compilers_and_libraries_18.1.0.015/linux/compiler/lib/intel64_lin/libintelocl.so > /etc/OpenCL/vendors/intel.icd && \
cd / && \
rm -rf /tmp/opencl-driver-intel
ENV NVIDIA_VISIBLE_DEVICES all
ENV NVIDIA_DRIVER_CAPABILITIES graphics,utility,compute
ENV QTWEBENGINE_DISABLE_SANDBOX 1
RUN dbus-uuidgen > /etc/machine-id
ARG USER=batman
ARG USER_UID=1000
RUN useradd -m -s /bin/bash -u $USER_UID $USER
RUN usermod -aG sudo $USER
RUN echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
USER $USER
ENV POETRY_VIRTUALENVS_CREATE=false
ENV PYENV_VERSION=3.11.4
ENV PYENV_ROOT="/home/$USER/pyenv"
ENV PATH="$PYENV_ROOT/bin:$PYENV_ROOT/shims:$PATH"
COPY --chown=$USER pyproject.toml poetry.lock .python-version /tmp/
COPY --chown=$USER tools/install_python_dependencies.sh /tmp/tools/
RUN cd /tmp && \
tools/install_python_dependencies.sh && \
rm -rf /tmp/* && \
rm -rf /home/$USER/.cache && \
find /home/$USER/pyenv -type d -name ".git" | xargs rm -rf && \
rm -rf /home/$USER/pyenv/versions/3.11.4/lib/python3.11/test
USER root
RUN sudo git config --global --add safe.directory /tmp/openpilot
-37
View File
@@ -1,37 +0,0 @@
FROM ghcr.io/commaai/openpilot-base:latest
RUN apt-get update && apt-get install -y --no-install-recommends\
apt-utils \
alien \
unzip \
tar \
curl \
xz-utils \
dbus \
gcc-arm-none-eabi \
tmux \
vim \
lsb-core \
libx11-6 \
&& rm -rf /var/lib/apt/lists/*
# Intel OpenCL driver
ARG INTEL_DRIVER=l_opencl_p_18.1.0.015.tgz
ARG INTEL_DRIVER_URL=https://registrationcenter-download.intel.com/akdlm/irc_nas/vcp/15532
RUN mkdir -p /tmp/opencl-driver-intel
WORKDIR /tmp/opencl-driver-intel
RUN echo INTEL_DRIVER is $INTEL_DRIVER && \
curl -O $INTEL_DRIVER_URL/$INTEL_DRIVER && \
tar -xzf $INTEL_DRIVER && \
for i in $(basename $INTEL_DRIVER .tgz)/rpm/*.rpm; do alien --to-deb $i; done && \
dpkg -i *.deb && \
rm -rf $INTEL_DRIVER $(basename $INTEL_DRIVER .tgz) *.deb && \
mkdir -p /etc/OpenCL/vendors && \
echo /opt/intel/opencl_compilers_and_libraries_18.1.0.015/linux/compiler/lib/intel64_lin/libintelocl.so > /etc/OpenCL/vendors/intel.icd && \
rm -rf /tmp/opencl-driver-intel
ENV NVIDIA_VISIBLE_DEVICES all
ENV NVIDIA_DRIVER_CAPABILITIES graphics,utility,compute
ENV QTWEBENGINE_DISABLE_SANDBOX 1
RUN dbus-uuidgen > /etc/machine-id
Vendored
+204 -153
View File
@@ -1,21 +1,62 @@
def phone(String ip, String step_label, String cmd) {
def retryWithDelay(int maxRetries, int delay, Closure body) {
for (int i = 0; i < maxRetries; i++) {
try {
return body()
} catch (Exception e) {
sleep(delay)
}
}
throw Exception("Failed after ${maxRetries} retries")
}
def device(String ip, String step_label, String cmd) {
withCredentials([file(credentialsId: 'id_rsa', variable: 'key_file')]) {
def ssh_cmd = """
ssh -tt -o StrictHostKeyChecking=no -i ${key_file} 'comma@${ip}' /usr/bin/bash <<'END'
ssh -tt -o ConnectTimeout=5 -o ServerAliveInterval=5 -o ServerAliveCountMax=2 -o BatchMode=yes -o StrictHostKeyChecking=no -i ${key_file} 'comma@${ip}' /usr/bin/bash <<'END'
set -e
shopt -s huponexit # kill all child processes when the shell exits
export CI=1
export PYTHONWARNINGS=error
export LOGPRINT=debug
export TEST_DIR=${env.TEST_DIR}
export SOURCE_DIR=${env.SOURCE_DIR}
export GIT_BRANCH=${env.GIT_BRANCH}
export GIT_COMMIT=${env.GIT_COMMIT}
export AZURE_TOKEN='${env.AZURE_TOKEN}'
export MAPBOX_TOKEN='${env.MAPBOX_TOKEN}'
# only use 1 thread for tici tests since most require HIL
export PYTEST_ADDOPTS="-n 0"
export GIT_SSH_COMMAND="ssh -i /data/gitkey"
source ~/.bash_profile
if [ -f /TICI ]; then
source /etc/profile
rm -rf /tmp/tmp*
rm -rf ~/.commacache
rm -rf /dev/shm/*
if ! systemctl is-active --quiet systemd-resolved; then
echo "restarting resolved"
sudo systemctl start systemd-resolved
sleep 3
fi
# restart aux USB
if [ -e /sys/bus/usb/drivers/hub/3-0:1.0 ]; then
echo "restarting aux usb"
echo "3-0:1.0" | sudo tee /sys/bus/usb/drivers/hub/unbind
sleep 0.5
echo "3-0:1.0" | sudo tee /sys/bus/usb/drivers/hub/bind
fi
fi
if [ -f /data/openpilot/launch_env.sh ]; then
source /data/openpilot/launch_env.sh
fi
ln -snf ${env.TEST_DIR} /data/pythonpath
@@ -30,172 +71,182 @@ END"""
}
}
def phone_steps(String device_type, steps) {
lock(resource: "", label: device_type, inversePrecedence: true, variable: 'device_ip', quantity: 1) {
timeout(time: 20, unit: 'MINUTES') {
phone(device_ip, "git checkout", readFile("selfdrive/test/setup_device_ci.sh"),)
steps.each { item ->
phone(device_ip, item[0], item[1])
def deviceStage(String stageName, String deviceType, List extra_env, def steps) {
stage(stageName) {
if (currentBuild.result != null) {
return
}
def extra = extra_env.collect { "export ${it}" }.join('\n');
def branch = env.BRANCH_NAME ?: 'master';
lock(resource: "", label: deviceType, inversePrecedence: true, variable: 'device_ip', quantity: 1, resourceSelectStrategy: 'random') {
docker.image('ghcr.io/commaai/alpine-ssh').inside('--user=root') {
timeout(time: 20, unit: 'MINUTES') {
retry (3) {
device(device_ip, "git checkout", extra + "\n" + readFile("selfdrive/test/setup_device_ci.sh"))
}
steps.each { item ->
device(device_ip, item[0], item[1])
}
}
}
}
}
}
pipeline {
agent none
environment {
CI = "1"
TEST_DIR = "/data/openpilot"
SOURCE_DIR = "/data/openpilot_source/"
AZURE_TOKEN = credentials('azure_token')
MAPBOX_TOKEN = credentials('mapbox_token')
}
options {
timeout(time: 3, unit: 'HOURS')
disableConcurrentBuilds(abortPrevious: env.BRANCH_NAME != 'master')
}
stages {
stage('build release3') {
agent { docker { image 'ghcr.io/commaai/alpine-ssh'; args '--user=root' } }
when {
branch 'devel-staging'
}
steps {
phone_steps("tici-needs-can", [
["build release3-staging & dashcam3-staging", "PUSH=1 $SOURCE_DIR/release/build_release.sh"],
])
}
def pcStage(String stageName, Closure body) {
node {
stage(stageName) {
if (currentBuild.result != null) {
return
}
stage('openpilot tests') {
when {
not {
anyOf {
branch 'master-ci'; branch 'devel'; branch 'devel-staging';
branch 'release3'; branch 'release3-staging'; branch 'dashcam3'; branch 'dashcam3-staging';
branch 'testing-closet*'; branch 'hotfix-*'
}
}
}
checkout scm
parallel {
def dockerArgs = "--user=batman -v /tmp/comma_download_cache:/tmp/comma_download_cache -v /tmp/scons_cache:/tmp/scons_cache -e PYTHONPATH=${env.WORKSPACE} --cpus=8 --memory 16g -e PYTEST_ADDOPTS='-n8'";
stage('simulator') {
agent {
dockerfile {
filename 'Dockerfile.sim_nvidia'
dir 'tools/sim'
args '--user=root'
def openpilot_base = retryWithDelay (3, 15) {
return docker.build("openpilot-base:build-${env.GIT_COMMIT}", "-f Dockerfile.openpilot_base .")
}
lock(resource: "", label: 'pc', inversePrecedence: true, quantity: 1) {
openpilot_base.inside(dockerArgs) {
timeout(time: 20, unit: 'MINUTES') {
try {
retryWithDelay (3, 15) {
sh "git config --global --add safe.directory '*'"
sh "git submodule update --init --recursive"
sh "git lfs pull"
}
}
steps {
sh "git config --global --add safe.directory ${WORKSPACE}"
sh "git lfs pull"
lock(resource: "", label: "simulator", inversePrecedence: true, quantity: 1) {
sh "${WORKSPACE}/tools/sim/build_container.sh"
sh "DETACH=1 ${WORKSPACE}/tools/sim/start_carla.sh"
sh "${WORKSPACE}/tools/sim/start_openpilot_docker.sh"
}
}
post {
always {
sh "docker kill carla_sim || true"
sh "rm -rf ${WORKSPACE}/* || true"
body()
} finally {
sh "rm -rf ${env.WORKSPACE}/* || true"
sh "rm -rf .* || true"
}
}
}
stage('build') {
agent { docker { image 'ghcr.io/commaai/alpine-ssh'; args '--user=root' } }
environment {
R3_PUSH = "${env.BRANCH_NAME == 'master' ? '1' : ' '}"
}
steps {
phone_steps("tici-needs-can", [
["build master-ci", "cd $SOURCE_DIR/release && TARGET_DIR=$TEST_DIR EXTRA_FILES='tools/' ./build_devel.sh"],
["build openpilot", "cd selfdrive/manager && ./build.py"],
["check dirty", "release/check-dirty.sh"],
["onroad tests", "cd selfdrive/test/ && ./test_onroad.py"],
["test car interfaces", "cd selfdrive/car/tests/ && ./test_car_interfaces.py"],
])
}
}
stage('loopback-tests') {
agent { docker { image 'ghcr.io/commaai/alpine-ssh'; args '--user=root' } }
steps {
phone_steps("tici-loopback", [
["build openpilot", "cd selfdrive/manager && ./build.py"],
["test boardd loopback", "python selfdrive/boardd/tests/test_boardd_loopback.py"],
])
}
}
stage('HW + Unit Tests') {
agent { docker { image 'ghcr.io/commaai/alpine-ssh'; args '--user=root' } }
steps {
phone_steps("tici-common", [
["build", "cd selfdrive/manager && ./build.py"],
["test power draw", "python system/hardware/tici/test_power_draw.py"],
["test loggerd", "python selfdrive/loggerd/tests/test_loggerd.py"],
["test encoder", "LD_LIBRARY_PATH=/usr/local/lib python selfdrive/loggerd/tests/test_encoder.py"],
["test pigeond", "python selfdrive/sensord/tests/test_pigeond.py"],
["test manager", "python selfdrive/manager/test/test_manager.py"],
])
}
}
stage('camerad-ar') {
agent { docker { image 'ghcr.io/commaai/alpine-ssh'; args '--user=root' } }
steps {
phone_steps("tici-ar0321", [
["build", "cd selfdrive/manager && ./build.py"],
["test camerad", "python system/camerad/test/test_camerad.py"],
["test exposure", "python system/camerad/test/test_exposure.py"],
])
}
}
stage('camerad-ox') {
agent { docker { image 'ghcr.io/commaai/alpine-ssh'; args '--user=root' } }
steps {
phone_steps("tici-ox03c10", [
["build", "cd selfdrive/manager && ./build.py"],
["test camerad", "python system/camerad/test/test_camerad.py"],
["test exposure", "python system/camerad/test/test_exposure.py"],
])
}
}
stage('sensord') {
agent { docker { image 'ghcr.io/commaai/alpine-ssh'; args '--user=root' } }
steps {
phone_steps("tici-lsmc", [
["build", "cd selfdrive/manager && ./build.py"],
["test sensord", "cd selfdrive/sensord/tests && python -m unittest test_sensord.py"],
])
phone_steps("tici-bmx-lsm", [
["build", "cd selfdrive/manager && ./build.py"],
["test sensord", "cd selfdrive/sensord/tests && python -m unittest test_sensord.py"],
])
}
}
stage('replay') {
agent { docker { image 'ghcr.io/commaai/alpine-ssh'; args '--user=root' } }
steps {
phone_steps("tici-common", [
["build", "cd selfdrive/manager && ./build.py"],
["model replay", "cd selfdrive/test/process_replay && ./model_replay.py"],
])
}
}
}
}
}
}
def setupCredentials() {
withCredentials([
string(credentialsId: 'azure_token', variable: 'AZURE_TOKEN'),
string(credentialsId: 'mapbox_token', variable: 'MAPBOX_TOKEN')
]) {
env.AZURE_TOKEN = "${AZURE_TOKEN}"
env.MAPBOX_TOKEN = "${MAPBOX_TOKEN}"
}
}
node {
env.CI = "1"
env.PYTHONWARNINGS = "error"
env.TEST_DIR = "/data/openpilot"
env.SOURCE_DIR = "/data/openpilot_source/"
setupCredentials()
env.GIT_BRANCH = checkout(scm).GIT_BRANCH
env.GIT_COMMIT = checkout(scm).GIT_COMMIT
def excludeBranches = ['master-ci', 'devel', 'devel-staging', 'release3', 'release3-staging',
'testing-closet*', 'hotfix-*']
def excludeRegex = excludeBranches.join('|').replaceAll('\\*', '.*')
if (env.BRANCH_NAME != 'master') {
properties([
disableConcurrentBuilds(abortPrevious: true)
])
}
try {
if (env.BRANCH_NAME == 'devel-staging') {
deviceStage("build release3-staging", "tici-needs-can", [], [
["build release3-staging", "RELEASE_BRANCH=release3-staging $SOURCE_DIR/release/build_release.sh"],
])
}
if (env.BRANCH_NAME == 'master-ci') {
deviceStage("build nightly", "tici-needs-can", [], [
["build nightly", "RELEASE_BRANCH=nightly $SOURCE_DIR/release/build_release.sh"],
])
}
if (!env.BRANCH_NAME.matches(excludeRegex)) {
parallel (
// tici tests
'onroad tests': {
deviceStage("onroad", "tici-needs-can", [], [
// TODO: ideally, this test runs in master-ci, but it takes 5+m to build it
//["build master-ci", "cd $SOURCE_DIR/release && TARGET_DIR=$TEST_DIR $SOURCE_DIR/scripts/retry.sh ./build_devel.sh"],
["build openpilot", "cd selfdrive/manager && ./build.py"],
["check dirty", "release/check-dirty.sh"],
["onroad tests", "pytest selfdrive/test/test_onroad.py -s"],
["time to onroad", "pytest selfdrive/test/test_time_to_onroad.py"],
])
},
'HW + Unit Tests': {
deviceStage("tici-hardware", "tici-common", ["UNSAFE=1"], [
["build", "cd selfdrive/manager && ./build.py"],
["test pandad", "pytest selfdrive/boardd/tests/test_pandad.py"],
["test power draw", "pytest -s system/hardware/tici/tests/test_power_draw.py"],
["test encoder", "LD_LIBRARY_PATH=/usr/local/lib pytest system/loggerd/tests/test_encoder.py"],
["test pigeond", "pytest system/sensord/tests/test_pigeond.py"],
["test manager", "pytest selfdrive/manager/test/test_manager.py"],
])
},
'loopback': {
deviceStage("loopback", "tici-loopback", ["UNSAFE=1"], [
["build openpilot", "cd selfdrive/manager && ./build.py"],
["test boardd loopback", "pytest selfdrive/boardd/tests/test_boardd_loopback.py"],
])
},
'camerad': {
deviceStage("AR0231", "tici-ar0231", ["UNSAFE=1"], [
["build", "cd selfdrive/manager && ./build.py"],
["test camerad", "pytest system/camerad/test/test_camerad.py"],
["test exposure", "pytest system/camerad/test/test_exposure.py"],
])
deviceStage("OX03C10", "tici-ox03c10", ["UNSAFE=1"], [
["build", "cd selfdrive/manager && ./build.py"],
["test camerad", "pytest system/camerad/test/test_camerad.py"],
["test exposure", "pytest system/camerad/test/test_exposure.py"],
])
},
'sensord': {
deviceStage("LSM + MMC", "tici-lsmc", ["UNSAFE=1"], [
["build", "cd selfdrive/manager && ./build.py"],
["test sensord", "pytest system/sensord/tests/test_sensord.py"],
])
deviceStage("BMX + LSM", "tici-bmx-lsm", ["UNSAFE=1"], [
["build", "cd selfdrive/manager && ./build.py"],
["test sensord", "pytest system/sensord/tests/test_sensord.py"],
])
},
'replay': {
deviceStage("model-replay", "tici-replay", ["UNSAFE=1"], [
["build", "cd selfdrive/manager && ./build.py"],
["model replay", "selfdrive/test/process_replay/model_replay.py"],
])
},
'tizi': {
deviceStage("tizi", "tizi", ["UNSAFE=1"], [
["build openpilot", "cd selfdrive/manager && ./build.py"],
["test boardd loopback", "SINGLE_PANDA=1 pytest selfdrive/boardd/tests/test_boardd_loopback.py"],
["test pandad", "pytest selfdrive/boardd/tests/test_pandad.py"],
["test amp", "pytest system/hardware/tici/tests/test_amplifier.py"],
["test hw", "pytest system/hardware/tici/tests/test_hardware.py"],
["test qcomgpsd", "pytest system/qcomgpsd/tests/test_qcomgpsd.py"],
])
},
)
}
} catch (Exception e) {
currentBuild.result = 'FAILED'
throw e
}
}
Executable → Regular
+415 -100
View File
@@ -1,145 +1,460 @@
![](https://i.imgur.com/b0ZyIx5.jpg)
![](https://user-images.githubusercontent.com/47793918/233812617-beab2e71-57b9-479e-8bff-c3931347ca40.png)
Table of Contents
=======================
* [What is openpilot?](#what-is-openpilot)
* [Running in a car](#running-on-a-dedicated-device-in-a-car)
* [Running on PC](#running-on-pc)
* [Community and Contributing](#community-and-contributing)
* [User Data and comma Account](#user-data-and-comma-account)
* [Safety and Testing](#safety-and-testing)
* [Directory Structure](#directory-structure)
* [Join our Discord](#-join-our-discord)
* [What is sunnypilot?](#-what-is-sunnypilot)
* [Running in a car](#-running-on-a-dedicated-device-in-a-car)
* [Read Before Installing](#-read-before-installing)
* [Prohibited Safety Modifications](#-prohibited-safety-modifications)
* [Installation](#-installation)
* [Highlight Features](#-highlight-features)
* [Driving Enhancements](#-driving-enhancements)
* [Branch Definitions](#-branch-definitions)
* [Recommended Branches](#-recommended-branches)
* [How-To's](#-How-Tos)
* [Pull Requests](#-Pull-Requests)
* [Special Thanks](#-special-thanks)
* [User Data](#-user-data)
* [Licensing](#licensing)
* [Donate](#-support-sunnypilot)
---
What is openpilot?
<details><summary><h3>💭 Join our Discord</h3></summary>
---
Join the official sunnypilot Discord server to stay up to date with all the latest features and be a part of shaping the future of sunnypilot!
* https://discord.gg/sunnypilot
![](https://dcbadge.vercel.app/api/server/wRW3meAgtx?style=flat) ![Discord Shield](https://discordapp.com/api/guilds/880416502577266699/widget.png?style=shield)
</details>
<details><summary><h3>🌞 What is sunnypilot?</h3></summary>
---
[sunnypilot](https://github.com/sunnyhaibin/sunnypilot) is a fork of comma.ai's openpilot, an open source driver assistance system. sunnypilot offers the user a unique driving experience for over 250+ supported car makes and models with modified behaviors of driving assist engagements. sunnypilot complies with comma.ai's safety rules as accurately as possible.
</details>
<details><summary><h3>🚘 Running on a dedicated device in a car</h3></summary>
---
To use sunnypilot in a car, you need the following:
* A supported device to run this software
* a [comma three](https://comma.ai/shop/products/three), or
* a comma two (only with older versions below 0.8.13)
* This software
* One of [the 250+ supported cars](https://github.com/commaai/openpilot/blob/master/docs/CARS.md). We support Honda, Toyota, Hyundai, Nissan, Kia, Chrysler, Lexus, Acura, Audi, VW, Ford and more. If your car is not supported but has adaptive cruise control and lane-keeping assist, it's likely able to run sunnypilot.
* A [car harness](https://comma.ai/shop/products/car-harness) to connect to your car
Detailed instructions for [how to mount the device in a car](https://comma.ai/setup).
</details>
<details><summary><h3>🚨 Read Before Installing</h3></summary>
---
It is recommended to read this **entire page** before proceeding. This will ensure that you fully understand each added feature on sunnypilot, and you are selecting the right branch for your car to have the best driving experience.
This is a fork of [comma.ai's openpilot](https://github.com/commaai/openpilot). By installing this software, you accept all responsibility for anything that might occur while you use it. All contributors to sunnypilot are not liable. ❗<ins>**Use at your own risk.**</ins>❗
</details>
<details><summary><h3>⛔ Prohibited Safety Modifications</h3></summary>
---
All [official sunnypilot branches](https://github.com/sunnyhaibin/sunnypilot/branches) strictly adhere to [comma.ai's safety policy](https://github.com/commaai/openpilot/blob/master/docs/SAFETY.md). Any changes that go against this policy will result in your fork and your device being banned from both comma.ai and sunnypilot channels.
The following changes are a **VIOLATION** of this policy and **ARE NOT** included in any sunnypilot branches:
* Driver Monitoring:
* ❌ "Nerfing" or reducing monitoring parameters.
* Panda safety:
* ❌ No preventing disengaging of <ins>**LONGITUDINAL CONTROL**</ins> (acceleration/brake) on brake pedal press.
* ❌ No auto re-engaging of <ins>**LONGITUDINAL CONTROL**</ins> (acceleration/brake) on brake pedal release.
* ❌ No disengaging on ACC MAIN in OFF state.
</details>
<details><summary><h3>⚒ Installation</h3></summary>
---
<details><summary>URL (Easy)</summary>
comma three
------
[openpilot](http://github.com/commaai/openpilot) is an open source driver assistance system. Currently, openpilot performs the functions of Adaptive Cruise Control (ACC), Automated Lane Centering (ALC), Forward Collision Warning (FCW), and Lane Departure Warning (LDW) for a growing variety of [supported car makes, models, and model years](docs/CARS.md). In addition, while openpilot is engaged, a camera-based Driver Monitoring (DM) feature alerts distracted and asleep drivers. See more about [the vehicle integration](docs/INTEGRATION.md) and [limitations](docs/LIMITATIONS.md).
Please refer to [Recommended Branches](#-recommended-branches) to find your preferred/supported branch. This guide will assume you want to install the latest `release-c3` branch.
<table>
<tr>
<td><a href="https://youtu.be/NmBfgOanCyk" title="Video By Greer Viau"><img src="https://i.imgur.com/1w8c6d2.jpg"></a></td>
<td><a href="https://youtu.be/VHKyqZ7t8Gw" title="Video By Logan LeGrand"><img src="https://i.imgur.com/LnBucik.jpg"></a></td>
<td><a href="https://youtu.be/VxiR4iyBruo" title="Video By Charlie Kim"><img src="https://i.imgur.com/4Qoy48c.jpg"></a></td>
<td><a href="https://youtu.be/-IkImTe1NYE" title="Video By Aragon"><img src="https://i.imgur.com/04VNzPf.jpg"></a></td>
</tr>
<tr>
<td><a href="https://youtu.be/iIUICQkdwFQ" title="Video By Logan LeGrand"><img src="https://i.imgur.com/b1LHQTy.jpg"></a></td>
<td><a href="https://youtu.be/XOsa0FsVIsg" title="Video By PinoyDrives"><img src="https://i.imgur.com/6FG0Bd8.jpg"></a></td>
<td><a href="https://youtu.be/bCwcJ98R_Xw" title="Video By JS"><img src="https://i.imgur.com/zO18CbW.jpg"></a></td>
<td><a href="https://youtu.be/BQ0tF3MTyyc" title="Video By Tsai-Fi"><img src="https://i.imgur.com/eZzelq3.jpg"></a></td>
</tr>
</table>
* sunnypilot not installed or you installed a version before 0.8.17?
1. [Factory reset/uninstall](https://github.com/commaai/openpilot/wiki/FAQ#how-can-i-reset-the-device) the previous software if you have another software/fork installed.
2. After factory reset/uninstall and upon reboot, select `Custom Software` when given the option.
3. Input the installation URL per [Recommended Branches](#-recommended-branches). Example: ```release-c3.sunnypilot.ai``` [^4] (note: `https://` is not requirement on the comma three)
4. Complete the rest of the installation following the onscreen instructions.
* sunnypilot already installed and you installed a version after 0.8.17?
1. On the comma three, go to `Settings` ▶️ `Software`.
2. At the `Download` option, press `CHECK`. This will fetch the list of latest branches from sunnypilot.
3. At the `Target Branch` option, press `SELECT` to open the Target Branch selector.
4. Scroll to select the desired branch per [Recommended Branches](#-recommended-branches). Example: `release-c3`
Running on a dedicated device in a car
| Branch | Installation URL |
|:------------:|:--------------------------------:|
| `release-c3` | https://release-c3.sunnypilot.ai |
| `staging-c3` | https://staging-c3.sunnypilot.ai |
| `dev-c3` | https://dev-c3.sunnypilot.ai |
Requires further assistance with software installation? Join the [sunnypilot Discord server](https://discord.sunnypilot.com) and message us in the `#installation-help` channel.
comma two
------
To use openpilot in a car, you need four things
* A supported device to run this software: a [comma three](https://comma.ai/shop/products/three).
* This software. The setup procedure of the comma three allows the user to enter a URL for custom software.
The URL, openpilot.comma.ai will install the release version of openpilot. To install openpilot master, you can use installer.comma.ai/commaai/master, and replacing commaai with another GitHub username can install a fork.
* One of [the 200+ supported cars](docs/CARS.md). We support Honda, Toyota, Hyundai, Nissan, Kia, Chrysler, Lexus, Acura, Audi, VW, and more. If your car is not supported but has adaptive cruise control and lane-keeping assist, it's likely able to run openpilot.
* A [car harness](https://comma.ai/shop/products/car-harness) to connect to your car.
1. [Factory reset/uninstall](https://github.com/commaai/openpilot/wiki/FAQ#how-can-i-reset-the-device) the previous software if you have another software/fork installed.
2. After factory reset/uninstall and upon reboot, select `Custom Software` when given the option.
3. Input the installation URL per [Recommended Branches](#-recommended-branches). Example: ```https://smiskol.com/fork/sunnyhaibin/0.8.12-4-prod```
4. Complete the rest of the installation following the onscreen instructions.
We have detailed instructions for [how to mount the device in a car](https://comma.ai/setup).
Requires further assistance with software installation? Join the [sunnypilot Discord server](https://discord.sunnypilot.com) and message us in the `#installation-help` channel.
Running on PC
</details>
<details>
<summary>SSH (More Versatile)</summary>
<br>
Prerequisites: [How to SSH](https://github.com/commaai/openpilot/wiki/SSH)
If you are looking to install sunnypilot via SSH, run the following command in an SSH terminal after connecting to your device:
comma three:
------
* [`release-c3`](https://github.com/sunnyhaibin/openpilot/tree/release-c3):
All openpilot services can run as usual on a PC without requiring special hardware or a car. You can also run openpilot on recorded or simulated data to develop or experiment with openpilot.
```
cd /data; rm -rf ./openpilot; git clone -b release-c3 --recurse-submodules https://github.com/sunnyhaibin/sunnypilot.git openpilot; cd openpilot; sudo reboot
```
With openpilot's tools, you can plot logs, replay drives, and watch the full-res camera streams. See [the tools README](tools/README.md) for more information.
You can also run openpilot in simulation [with the CARLA simulator](tools/sim/README.md). This allows openpilot to drive around a virtual car on your Ubuntu machine. The whole setup should only take a few minutes but does require a decent GPU.
A PC running openpilot can also control your vehicle if it is connected to a [webcam](https://github.com/commaai/openpilot/tree/master/tools/webcam), a [black panda](https://comma.ai/shop/products/panda), and a [harness](https://comma.ai/shop/products/car-harness).
Community and Contributing
comma two:
------
* [`0.8.12-prod-personal-hkg`](https://github.com/sunnyhaibin/openpilot/tree/0.8.12-prod-personal-hkg):
openpilot is developed by [comma](https://comma.ai/) and by users like you. We welcome both pull requests and issues on [GitHub](http://github.com/commaai/openpilot). Bug fixes and new car ports are encouraged. Check out [the contributing docs](docs/CONTRIBUTING.md).
```
cd /data; rm -rf ./openpilot; git clone -b 0.8.12-prod-personal-hkg --recurse-submodules https://github.com/sunnyhaibin/sunnypilot.git openpilot; cd openpilot; sudo reboot
```
Documentation related to openpilot development can be found on [docs.comma.ai](https://docs.comma.ai). Information about running openpilot (e.g. FAQ, fingerprinting, troubleshooting, custom forks, community hardware) should go on the [wiki](https://github.com/commaai/openpilot/wiki).
After running the command to install the desired branch, your comma device should reboot.
</details>
You can add support for your car by following guides we have written for [Brand](https://blog.comma.ai/how-to-write-a-car-port-for-openpilot/) and [Model](https://blog.comma.ai/openpilot-port-guide-for-toyota-models/) ports. Generally, a car with adaptive cruise control and lane keep assist is a good candidate. [Join our Discord](https://discord.comma.ai) to discuss car ports: most car makes have a dedicated channel.
</details>
Want to get paid to work on openpilot? [comma is hiring](https://comma.ai/jobs/).
And [follow us on Twitter](https://twitter.com/comma_ai).
<details><summary><h3>🚗 Highlight Features</h3></summary>
User Data and comma Account
------
---
By default, openpilot uploads the driving data to our servers. You can also access your data through [comma connect](https://connect.comma.ai/). We use your data to train better models and improve openpilot for everyone.
### Quality of Life Enhancements
- [**Modified Assistive Driving Safety (MADS)**](#modified-assistive-driving-safety-mads) - Automatic Lane Centering (ALC) / Lane Keep Assist System (LKAS) and Adaptive Cruise Control (ACC) / Smart Cruise Control (SCC) can be engaged independently of each other
- [**Dynamic Lane Profile (DLP)**](#dynamic-lane-profile-dlp) - Dynamically switch lane profile (between Laneful and Laneless) based on lane recognition confidence
- [**Enhanced Speed Control**](#enhanced-speed-control) - Automatically adjust cruise control speed using vision model, OpenStreetMap (OSM) data, and/or Speed Limit control (SLC) without user interaction
* Vision-based Turn Speed Control (V-TSC) - lower speed when going around corners using vision model
* Map-Data-based Turn Speed Control (M-TSC) - lower speed when going around corners using OSM data[^1]
* Speed Limit Control (SLC) - Set speed limit based on map data or car interface (if applicable)
* HKG only: Highway Driving Assist (HDA) status integration - Use cars native speed sign detection to set desired speed (on applicable HKG cars only)
- [**Gap Adjust Cruise (GAC)**](#gap-adjust-cruise) - Allow `GAP`/`INTERVAL`/`DISTANCE` button on the steering wheel or on-screen button to adjust the follow distance from the lead car. See table below for options
- [**Quiet Drive 🤫**](#-quiet-drive) - Toggle to mute all notification sounds (excluding driver safety warnings)
- [**Auto Lane Change Timer**](#Auto-Lane-Change-Timer) - Set a timer to delay the auto lane change operation when the blinker is used. No nudge on the steering wheel is required to auto lane change if a timer is set
- [**Force Car Recognition (FCR)**](#Force-Car-Recognition-) - Use a selector to force your car to be recognized by sunnypilot
- [**Fix sunnypilot No Offroad**](#Fix-sunnypilot-No-Offroad) - Enforce sunnypilot to go offroad and turns off after shutting down the car. This feature fixes non-official devices running sunnypilot without comma power
- [**Enable ACC+MADS with RES+/SET-**](#Enable-ACC+MADS-with-RES+/SET-) - Engage both ACC and MADS with a single press of RES+ or SET- button
- [**Offline OSM Maps**](#Offline-OSM-Maps) - OSM database can now be downloaded locally for offline use[^2]. This enables offline SLC, V-TSC and M-TSC. Currently available for US South, US West, US Northeast, Florida, Taiwan, South Africa and New Zealand
- [**Various Live Tuning**](#Various-Live-Tuning) - Ability to tailor your driving experience on the fly:
* Enforce Torque Lateral Control - Use the newest [torque controller](https://blog.comma.ai/0815release/#torque-controller) for all vehicles.
* Torque Lateral Control Live Tune - Ability to adjust the torque controllers `FRICTION` and `LAT_ACCEL_FACTOR` values to suit your vehicle.
* Torque Lateral Controller Self-Tune - Enable automatic turning for the Torque controller.
openpilot is open source software: the user is free to disable data collection if they wish to do so.
### Visual Enhancements
* **M.A.D.S Status Icon** - Dedicated icon to display M.A.D.S. engagement status
* Green🟢: M.A.D.S. engaged
* White⚪: M.A.D.S. suspended or disengaged
* **Lane Path Color** - Various lane path colors to display real-time Lane Model and M.A.D.S. engagement status
* 0.8.14 and later:
* Blue🔵: Laneful mode & M.A.D.S. engaged
* Green🟢: Laneless mode & M.A.D.S. engaged
* Yellow🟡: Experimental e2e & M.A.D.S. engaged
* Pre 0.8.14:
* Green🟢: Laneful mode & M.A.D.S. engaged
* Red🔴: Laneless mode & M.A.D.S. engaged
* White⚪: M.A.D.S. suspended or disengaged
* Black⚫: M.A.D.S. engaged, steering is being manually overridden by user
* **Developer (Dev) UI** - Display various real-time metrics on screen while driving
* **Stand Still Timer** - Display time spent at a stop with M.A.D.S engaged (i.e., at traffic lights, stop signs, traffic congestions)
* **Braking Status** - Current car speed text turns red when the car is braking by the driver or ACC/SCC
openpilot logs the road-facing cameras, CAN, GPS, IMU, magnetometer, thermal sensors, crashes, and operating system logs.
### Operational Enhancements
* **Fast Boot** - sunnypilot will fast boot by creating a Prebuilt file
* **Disable Onroad Uploads** - Disable uploads completely when onroad. Necessary to avoid high data usage when connected to Wi-Fi hotspot
* **Brightness Control (Global)** - Manually adjusts the global brightness of the screen
* **Driving Screen Off Timer** - Turns off the device screen or reduces brightness to protect the screen after car starts
* **Driving Screen Off Brightness (%)** - When using the Driving Screen Off feature, the brightness is reduced according to the automatic brightness ratio
* **Max Time Offroad** - Device is automatically turned off after a set time when the engine is turned off (off-road) after driving (on-road)
</details>
<details><summary><h3>🚗 Driving Enhancements</h3></summary>
---
### Modified Assistive Driving Safety (MADS)
The goal of Modified Assistive Driving Safety (MADS) is to enhance the user driving experience with modified behaviors of driving assist engagements. This feature complies with comma.ai's safety rules as accurately as possible with the following changes:
* sunnypilot Automatic Lane Centering (ALC) and ACC/SCC can be engaged independently of each other
* Dedicated button to toggle sunnypilot ALC:
* `CRUISE (MAIN)` button: All supported cars on sunnypilot
* `LFA` button: Newer HKG cars with `LFA` button
* `LKAS` button: Honda, Toyota, Global Subaru
* `SET-` button enables ACC/SCC
* `CANCEL` button only disables ACC/SCC
* `CRUISE (MAIN)` must be `ON` to use ACC/SCC
* `CRUISE (MAIN)` button disables sunnypilot completely when `OFF` **(strictly enforced in panda safety code)**
### Disengage Lateral ALC on Brake Press Mode toggle
Dedicated toggle to handle Lateral state on brake pedal press and release:
1. `ON`: `BRAKE pedal` press will pause Automatic Lane Centering; `BRAKE pedal` release will resume Automatic Lane Centering. Note: `BRAKE pedal` release will NOT resume ACC/SCC/Long control without explicit user engagement **(strictly enforced in panda safety code)**
2. `OFF`: `BRAKE pedal` press will NOT pause Automatic Lane Centering; `BRAKE pedal` release will NOT resume ACC/SCC/Long control without explicit user engagement **(strictly enforced in panda safety code)**
### Miscellaneous
* `TURN SIGNALS` (`Left` or `Right`) will pause Automatic Lane Centering if the vehicle speed is below the [threshold](https://github.com/commaai/openpilot/blob/master/selfdrive/controls/lib/desire_helper.py#L8) for Automatic Lane Change
* Event audible alerts are more relaxed to match manufacturer's stock behavior
* Critical events trigger disengagement of Automatic Lane Centering completely. The disengagement is enforced in sunnypilot and panda safety
### Dynamic Lane Profile (DLP)
Dynamic Lane Profile (DLP) aims to provide the best driving experience at staying within a lane confidently. Dynamic Lane Profile allows sunnypilot to dynamically switch between lane profiles based on lane recognition confidence level on road.
There are 3 modes to select on the onroad camera screen:
* **Auto Lane**: sunnypilot dynamically chooses between `Laneline` or `Laneless` model
* **Laneline**: sunnypilot uses Laneline model only.
* **Laneless**: sunnypilot uses Laneless model only.
To use Dynamic Lane Profile, do the following:
```
1. sunnypilot Settings -> `SP - Controls` -> Enable Dynamic Lane Profile -> ON toggle
2. Reboot.
3. Before driving, on the onroad camera screen, toggle between the 3 modes by pressing on the button.
4. Drive.
```
### Enhanced Speed Control
This fork now allows supported cars to dynamically adjust the longitudinal plan based on the fetched map data. Big thanks to the Move Fast team for the amazing implementation!
**Supported cars:**
* sunnypilot Longitudinal Control capable
* Stock Longitudinal Control
* Hyundai/Kia/Genesis (non CAN-FD)
* Honda Bosch
* Volkswagen MQB
Certain features are only available with an active data connection, via:
* [comma Prime](https://comma.ai/prime) - Intuitive service provided directly by comma, or
* Personal Hotspot - From your mobile device, or a dedicated hotspot from a cellular carrier.
**Features:**
* Vision-based Turn Speed Control (VTSC) - Use vision path predictions to estimate the appropriate speed to drive through turns ahead - i.e. slowing down for curves
* Map-Data-based Turn Speed Control (MTSC) - Use curvature information from map data to define speed limits to take turns ahead - i.e. slowing down for curves[^1]
* Speed Limit Control (SLC) - Use speed limit signs information from map data and car interface to automatically adapt cruise speed to road limits
* HKG only: Highway Driving Assist (HDA) status integration - on applicable HKG cars only[^1]
* Speed Limit Offset - When Speed Limit Control is enabled, set speed limit slightly higher than the actual speed limit for a more natural drive[^1]
* Toggle Hands on Wheel Monitoring - Monitors and alerts the driver when their hands have not been on the steering wheel for an extended time
### Custom Stock Longitudinal Control
While using stock Adaptive/Smart Cruise Control, Custom Stock Longitudinal Control in sunnypilot allows sunnypilot to manipulate and take over the set speed on the car's dashboard.
**Supported Cars:**
* Hyundai/Kia/Genesis
* CAN platform
* CAN-FD platform with 0x1CF broadcasted in CAN traffic
* Honda Bosch
* Volkswagen MQB
**Instruction**
**📗 How to use Custom Longitudinal Control on sunnypilot **
When using Speed Limit, Vision, or Map based Turn control, you will be setting the "MAX" ACC speed on the sunnypilot display instead of the one in the dashboard. The car will then set the ACC setting in the dashboard to the targeted speed, but will never exceed the max speed set on the sunnypilot display. A quick press of the RES+ or SET- buttons will change this speed by 5 MPH or KM/H on the sunnypilot display, while a long deliberate press (about a 1/2 second press) changes it by 1 MPH or KM/H. DO NOT hold the RES+ or SET- buttons for longer that a 1 second. Either make quick or long deliberate presses only.
**‼ Where to look when setting ACC speed ‼**
Do not look at the dashboard when setting your ACC max speed. Instead, only look at the one on the sunnypilot display, "MAX". The reason you need to look at the sunnypilot display is because sunnypilot will be changing the one in the dashboard. It will be adjusting it as needed, never raising it above the one set on the sunnypilot display. ONLY look at the MAX speed on the sunnypilot display when setting the ACC speed instead of the dashboard!
(Courtesy instructions from John, author of jvePilot)
### Gap Adjust Cruise
This fork now allows supported openpilot longitudinal cars to adjust the cruise gap between the car and the lead car.
**Supported cars:**
* sunnypilot Longitudinal Control capable
🚨**PROCEED WITH EXTREME CAUTION AND BE READY TO MANUALLY TAKE OVER AT ALL TIMES**
There are 4 modes to select on the steering wheel and/or the onroad camera screen:
* **Stock Gap**: Stock sunnypilot distance - 1.45 second profile
* **Mild Gap**: Semi-aggressive distance - 1.25 second profile
* 🚨**Aggro Gap**🚨: Aggressive distance - 1.0 second profile
**Availability**
| Car Make | Stock Gap | Mild Gap | Aggro Gap |
|:-------------------:|:---------:|:--------:|:---------:|
| Honda/Acura | ✅ | ✅ | ✅ |
| Hyundai/Kia/Genesis | ✅ | ✅ | ✅ |
| Toyota/Lexus | ✅ | ✅ | ✅ |
| Volkswagen MQB/PQ | ✅ | ✅ | ✅ |
</details>
<details><summary><h3>⚒ Branch Definitions</h3></summary>
---
| Tag | Definition | Description |
|:---------:|----------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `release` | Release branches | Include features that are **verified** by trusted testers and the community. Ready to use. ✅ |
| `staging` | Staging branches | Include new features that are **tested** by trusted testers and the community. Stability may vary. ⚠ |
| `dev` | Development branches | All features are gathered in respective versions. Reviewed and merged features will be committed to `dev`. Stability may vary. ⚠ |
| `master` | Main branch | Syncs with [commaai's openpilot `master`](https://github.com/commaai/openpilot) upstream branch. Accepts all pull requests. Does not include all sunnypilot features. Stability may vary. ⚠ |
Example:
* [`release-c3`](https://github.com/sunnyhaibin/sunnypilot/tree/release-c3): Latest release branch for comma three that are verified by trusted testers and the community. Ready to use.
* [`staging-c3`](https://github.com/sunnyhaibin/sunnypilot/tree/staging-c3): Latest staging branch for comma three that are tested by trusted testers and the community. Verification required.
* [`dev-c3`](https://github.com/sunnyhaibin/sunnypilot/tree/dev-c3): Latest development branch for comma three that include all sunnypilot features. Testing required.
</details>
<details><summary><h3>✅ Recommended Branches</h3></summary>
---
| Branch | Definition | Compatible Device | Changelogs |
|:------------------------------------------------------------------------------------|---------------------------------------------------------|-------------------|--------------------------------------------------------------------------------------------|
| [`release-c3`](https://github.com/sunnyhaibin/sunnypilot/tree/release-c3) | • Latest release/stable branch | comma three | [`CHANGELOGS.md`](https://github.com/sunnyhaibin/sunnypilot/blob/release-c3/CHANGELOGS.md) |
| [`staging-c3`](https://github.com/sunnyhaibin/sunnypilot/tree/staging-c3) | • Latest staging branch | comma three | [`CHANGELOGS.md`](https://github.com/sunnyhaibin/sunnypilot/blob/staging-c3/CHANGELOGS.md) |
| [`dev-c3`](https://github.com/sunnyhaibin/sunnypilot/tree/dev-c3) | • Latest development branch with experimental features | comma three | [`CHANGELOGS.md`](https://github.com/sunnyhaibin/sunnypilot/blob/dev-c3/CHANGELOGS.md) |
</details>
<details><summary><h3>📗 How To's</h3></summary>
---
How-To instructions can be found in [HOW-TOS.md](https://github.com/sunnyhaibin/openpilot/blob/(!)README/HOW-TOS.md).
</details>
<details><summary><h3>🎆 Pull Requests</h3></summary>
---
We welcome both pull requests and issues on GitHub. Bug fixes are encouraged.
Pull requests should be against the most current `master` branch.
</details>
<details><summary><h3>🏆 Special Thanks</h3></summary>
---
* [spektor56](https://github.com/spektor56/openpilot)
* [rav4kumar](https://github.com/rav4kumar/openpilot)
* [mob9221](https://github.com/mob9221/opendbc)
* [briantran33](https://github.com/briantran33/openpilot)
* [Aragon7777](https://github.com/aragon7777/openpilot)
* [sshane](https://github.com/sshane/openpilot-installer-generator)
* [jung](https://github.com/chanhojung/openpilot)
* [dri94](https://github.com/dri94/openpilot)
* [FrogAi](https://github.com/frogAi/FrogPilot/)
* [twilsonco](https://github.com/twilsonco/openpilot)
* [martinl](https://github.com/martinl/openpilot)
* [multikyd](https://github.com/openpilotkr)
* [Move Fast GmbH](https://github.com/move-fast/openpilot)
* [dragonpilot](https://github.com/dragonpilot-community/dragonpilot)
* [neokii](https://github.com/neokii/openpilot)
* [AlexandreSato](https://github.com/AlexandreSato/openpilot)
* [Moodkiller](https://github.com/moodkiller)
</details>
<details><summary><h3>📊 User Data</h3></summary>
---
By default, sunnypilot uploads the driving data to comma servers. You can also access your data through [comma connect](https://connect.comma.ai/).
sunnypilot is open source software. The user is free to disable data collection if they wish to do so.
sunnypilot logs the road-facing camera, CAN, GPS, IMU, magnetometer, thermal sensors, crashes, and operating system logs.
The driver-facing camera is only logged if you explicitly opt-in in settings. The microphone is not recorded.
By using openpilot, you agree to [our Privacy Policy](https://comma.ai/privacy). You understand that use of this software or its related services will generate certain types of user data, which may be logged and stored at the sole discretion of comma. By accepting this agreement, you grant an irrevocable, perpetual, worldwide right to comma for the use of this data.
By using this software, you understand that use of this software or its related services will generate certain types of user data, which may be logged and stored at the sole discretion of comma. By accepting this agreement, you grant an irrevocable, perpetual, worldwide right to comma for the use of this data.
Safety and Testing
----
</details>
* openpilot observes ISO26262 guidelines, see [SAFETY.md](docs/SAFETY.md) for more details.
* openpilot has software-in-the-loop [tests](.github/workflows/selfdrive_tests.yaml) that run on every commit.
* The code enforcing the safety model lives in panda and is written in C, see [code rigor](https://github.com/commaai/panda#code-rigor) for more details.
* panda has software-in-the-loop [safety tests](https://github.com/commaai/panda/tree/master/tests/safety).
* Internally, we have a hardware-in-the-loop Jenkins test suite that builds and unit tests the various processes.
* panda has additional hardware-in-the-loop [tests](https://github.com/commaai/panda/blob/master/Jenkinsfile).
* We run the latest openpilot in a testing closet containing 10 comma devices continuously replaying routes.
Directory Structure
------
.
├── cereal # The messaging spec and libs used for all logs
├── common # Library like functionality we've developed here
├── docs # Documentation
├── opendbc # Files showing how to interpret data from cars
├── panda # Code used to communicate on CAN
├── third_party # External libraries
└── system # Generic services
├── camerad # Driver to capture images from the camera sensors
├── clocksd # Broadcasts current time
├── hardware # Hardware abstraction classes
├── logcatd # systemd journal as a service
└── proclogd # Logs information from /proc
└── selfdrive # Code needed to drive the car
├── assets # Fonts, images, and sounds for UI
├── athena # Allows communication with the app
├── boardd # Daemon to talk to the board
├── car # Car specific code to read states and control actuators
├── controls # Planning and controls
├── debug # Tools to help you debug and do car ports
├── locationd # Precise localization and vehicle parameter estimation
├── loggerd # Logger and uploader of car data
├── manager # Daemon that starts/stops all other daemons as needed
├── modeld # Driving and monitoring model runners
├── monitoring # Daemon to determine driver attention
├── navd # Turn-by-turn navigation
├── sensord # IMU interface code
├── test # Unit tests, system tests, and a car simulator
└── ui # The UI
Licensing
------
<details><summary><h3>Licensing</h3></summary>
openpilot is released under the MIT license. Some parts of the software are released under other licenses as specified.
Any user of this software shall indemnify and hold harmless Comma.ai, Inc. and its directors, officers, employees, agents, stockholders, affiliates, subcontractors and customers from and against all allegations, claims, actions, suits, demands, damages, liabilities, obligations, losses, settlements, judgments, costs and expenses (including without limitation attorneys fees and costs) which arise out of, relate to or result from any use of this software by user.
Any user of this software shall indemnify and hold harmless comma.ai, Inc. and its directors, officers, employees, agents, stockholders, affiliates, subcontractors and customers from and against all allegations, claims, actions, suits, demands, damages, liabilities, obligations, losses, settlements, judgments, costs and expenses (including without limitation attorneys fees and costs) which arise out of, relate to or result from any use of this software by user.
**THIS IS ALPHA QUALITY SOFTWARE FOR RESEARCH PURPOSES ONLY. THIS IS NOT A PRODUCT.
YOU ARE RESPONSIBLE FOR COMPLYING WITH LOCAL LAWS AND REGULATIONS.
NO WARRANTY EXPRESSED OR IMPLIED.**
</details>
<h3>💰 Support sunnypilot</h3>
---
<img src="https://d1qb2nb5cznatu.cloudfront.net/startups/i/1061157-bc7e9bf3b246ece7322e6ffe653f6af8-medium_jpg.jpg?buster=1458363130" width="75"></img> <img src="https://cdn-images-1.medium.com/max/1600/1*C87EjxGeMPrkTuVRVWVg4w.png" width="225"></img>
If you find any of the features useful, consider becoming a [patron on Patreon](https://www.patreon.com/sunnyhaibin) or a [sponsor on GitHub](https://github.com/sponsors/sunnyhaibin) to support future feature development and improvements.
[![openpilot tests](https://github.com/commaai/openpilot/workflows/openpilot%20tests/badge.svg?event=push)](https://github.com/commaai/openpilot/actions)
[![codecov](https://codecov.io/gh/commaai/openpilot/branch/master/graph/badge.svg)](https://codecov.io/gh/commaai/openpilot)
By becoming a patron/sponsor, you will gain access to exclusive content, early access to new features, and the opportunity to directly influence the project's development.
<h3>Patreon</h3>
<a href="https://www.patreon.com/sunnyhaibin">
<img src="https://user-images.githubusercontent.com/47793918/244128051-bc7e913e-a196-4455-926e-23aec9a4bd3b.png" alt="Become a Patron" width="300" style="max-width: 100%; height: auto;">
</a>
<br>
<h3>GitHub Sponsor</h3>
<a href="https://github.com/sponsors/sunnyhaibin">
<img src="https://user-images.githubusercontent.com/47793918/244135584-9800acbd-69fd-4b2b-bec9-e5fa2d85c817.png" alt="Become a Sponsor" width="300" style="max-width: 100%; height: auto;">
</a>
<br>
<h3>PayPal</h3>
<a href="https://paypal.me/sunnyhaibin0850" target="_blank">
<img src="https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif" alt="PayPal this" title="PayPal - The safer, easier way to pay online!" border="0" />
</a>
<br></br>
Your continuous love and support are greatly appreciated! Enjoy 🥰
<span>-</span> Jason, Founder of sunnypilot
[^1]:Requires data connection if not using Offline Maps data
[^2]:At least 50 GB of storage space is required. If you have the 32 GB version of comma three, upgrading with a compatible 250 GB or 1 TB SSD is strongly recommended
[^4]:Shortened URL for convenience. Full URL is ```smiskol.com/fork/sunnyhaibin/release-c3```
+114 -4
View File
@@ -1,12 +1,122 @@
Version 0.9.1 (2022-12-XX)
Version 0.9.7 (2024-XX-XX)
========================
* Adjust alert volume using ambient noise level
* Removed driver monitoring timer resetting on interaction if face detected and distracted
* New German translation thanks to Vrabetz and CzokNorris!
* New driving model
* Support for many hybrid Ford models
Version 0.9.6 (2024-02-27)
========================
* New driving model
* Vision model trained on more data
* Improved driving performance
* Directly outputs curvature for lateral control
* New driver monitoring model
* Trained on larger dataset
* AGNOS 9
* comma body streaming and controls over WebRTC
* Improved fuzzy fingerprinting for many makes and models
* Alpha longitudinal support for new Toyota models
* Chevrolet Equinox 2019-22 support thanks to JasonJShuler and nworb-cire!
* Dodge Durango 2020-21 support
* Hyundai Staria 2023 support thanks to sunnyhaibin!
* Kia Niro Plug-in Hybrid 2022 support thanks to sunnyhaibin!
* Lexus LC 2024 support thanks to nelsonjchen!
* Toyota RAV4 2023-24 support
* Toyota RAV4 Hybrid 2023-24 support
Version 0.9.5 (2023-11-17)
========================
* New driving model
* Improved navigate on openpilot performance using navigation instructions as an additional model input
* Do lateral planning inside the model
* New vision transformer architecture
* Cadillac Escalade ESV 2019 support thanks to twilsonco!
* Hyundai Azera 2022 support thanks to sunnyhaibin!
* Hyundai Azera Hybrid 2020 support thanks to chanhojung and haram-KONA!
* Hyundai Custin 2023 support thanks to sunnyhaibin and Saber422!
* Hyundai Ioniq 6 2023 support thanks to sunnyhaibin and alamo3!
* Hyundai Kona Electric 2023 (Korean version) support thanks to sunnyhaibin and haram-KONA!
* Kia K8 Hybrid (with HDA II) 2023 support thanks to sunnyhaibin!
* Kia Optima Hybrid 2019 support
* Kia Sorento Hybrid 2023 support thanks to sunnyhaibin!
* Lexus GS F 2016 support thanks to snyperifle!
* Lexus IS 2023 support thanks to L3R5!
Version 0.9.4 (2023-07-27)
========================
* comma 3X support
* Navigate on openpilot in Experimental mode
* When navigation has a destination, openpilot will input the map information into the model, which provides useful context to help the model understand the scene
* When navigating on openpilot, openpilot will keep left or right appropriately at forks and exits
* When navigating on openpilot, lane change behavior is unchanged and still activated by the driver
* When navigate on openpilot is active, the path on the map is green
* UI updates
* Navigation settings moved to home screen and map
* Border color always shows engagement status. Blue means disengaged, green means engaged, and grey means engaged with human overriding
* Alerts are shown inside the border. Black means info, orange means warning, and red means critical alert
* Bookmarked segments are preserved on the device's storage
* Ford Focus 2018 support
* Kia Carnival 2023 support thanks to sunnyhaibin!
Version 0.9.3 (2023-06-29)
========================
* New driving model
* Improved height estimation and added height tracking in liveCalibration
* Model inputs refactor
* New driving personality setting
* Three settings: aggressive, standard, and relaxed
* Standard is recommended and the default
* In aggressive mode, lead follow distance is shorter and acceleration response is quicker
* In relaxed mode, lead follow distance is longer
* Improved fuzzy fingerprinting for Hyundai, Kia, and Genesis
* Improved thermal management logic
Version 0.9.2 (2023-05-22)
========================
* New driving model
* Reduced turn diving
* Trained on a new dataset
* UI updates
* New experimental mode visualization
* Draw MPC path instead of model-predicted path
* AGNOS 7
* Faster boot time
* Fixes rare no sounds bug
* Fixes bootsplash bug at extreme temperatures
* Buick LaCrosse 2017-19 support thanks to koch-cf!
* Chevrolet Trailblazer 2021-22 support thanks to TurboCE!
* Ford Bronco Sport 2021-22 support
* Ford Escape 2020-22 support
* Ford Explorer 2020-22 support
* Ford Kuga 2020-22 support
* Ford Maverick 2022-23 support
* Genesis GV80 2023 support thanks to JWingate80!
* Honda HR-V 2023 support thanks to AlexandreSato and galegozi!
* Kia Niro EV 2023 support thanks to JosselinLecocq!
* Lexus ES 2017-18 support
* Lincoln Aviator 2021 support
* Škoda Fabia 2022-23 support thanks to jyoung8607!
Version 0.9.1 (2023-02-28)
========================
* New driving model
* 30% improved height estimation resulting in better driving performance for tall cars
* Driver monitoring: removed timer resetting on user interaction if distracted
* UI updates
* Adjust alert volume using ambient noise level
* Driver monitoring icon shows driver's head pose
* German translation thanks to Vrabetz and CzokNorris!
* Cadillac Escalade 2017 support thanks to rickygilleland!
* Chevrolet Bolt EV 2022-23 support thanks to JasonJShuler!
* Genesis GV60 2023 support thanks to sunnyhaibin!
* Hyundai Tucson 2022-23 support
* Kia K5 Hybrid 2020 support thanks to sunnyhaibin!
* Kia Niro Hybrid 2023 support thanks to sunnyhaibin!
* Kia Sorento 2022-23 support thanks to sunnyhaibin!
* Kia Sorento Plug-in Hybrid 2022 support thanks to sunnyhaibin!
* Toyota C-HR 2021 support thanks to eFiniLan!
* Toyota C-HR Hybrid 2022 support thanks to Korben00!
* Volkswagen Crafter and MAN TGE 2017-23 support thanks to jyoung8607!
Version 0.9.0 (2022-11-21)
========================
+107 -152
View File
@@ -5,14 +5,19 @@ import sysconfig
import platform
import numpy as np
import SCons.Errors
SCons.Warnings.warningAsException(True)
# pending upstream fix - https://github.com/SCons/scons/issues/4461
#SetOption('warn', 'all')
TICI = os.path.isfile('/TICI')
AGNOS = TICI
Decider('MD5-timestamp')
AddOption('--extras',
action='store_true',
help='build misc extras, like setup and installer files')
SetOption('num_jobs', int(os.cpu_count()/2))
AddOption('--kaitai',
action='store_true',
@@ -26,6 +31,10 @@ AddOption('--ubsan',
action='store_true',
help='turn on UBSan')
AddOption('--coverage',
action='store_true',
help='build with test coverage options')
AddOption('--clazy',
action='store_true',
help='build with clazy')
@@ -34,6 +43,12 @@ AddOption('--compile_db',
action='store_true',
help='build clang compilation database')
AddOption('--ccflags',
action='store',
type='string',
default='',
help='pass arbitrary flags over the command line')
AddOption('--snpe',
action='store_true',
help='use SNPE on PC')
@@ -44,36 +59,36 @@ AddOption('--external-sconscript',
dest='external_sconscript',
help='add an external SConscript to the build')
AddOption('--no-thneed',
action='store_true',
dest='no_thneed',
help='avoid using thneed')
AddOption('--pc-thneed',
action='store_true',
dest='pc_thneed',
help='use thneed on pc')
AddOption('--no-test',
AddOption('--minimal',
action='store_false',
dest='test',
default=os.path.islink(Dir('#laika/').abspath),
help='skip building test files')
dest='extras',
default=os.path.islink(Dir('#rednose/').abspath), # minimal by default on release branch (where rednose is not a link)
help='the minimum build to run openpilot. no tests, tools, etc.')
## Architecture name breakdown (arch)
## - larch64: linux tici aarch64
## - aarch64: linux pc aarch64
## - x86_64: linux pc x64
## - Darwin: mac x64 or arm64
real_arch = arch = subprocess.check_output(["uname", "-m"], encoding='utf8').rstrip()
if platform.system() == "Darwin":
arch = "Darwin"
if arch == "aarch64" and AGNOS:
brew_prefix = subprocess.check_output(['brew', '--prefix'], encoding='utf8').strip()
elif arch == "aarch64" and AGNOS:
arch = "larch64"
assert arch in ["larch64", "aarch64", "x86_64", "Darwin"]
lenv = {
"PATH": os.environ['PATH'],
"LD_LIBRARY_PATH": [Dir(f"#third_party/acados/{arch}/lib").abspath],
"PYTHONPATH": Dir("#").abspath,
"PYTHONPATH": Dir("#").abspath + ':' + Dir(f"#third_party/acados").abspath,
"ACADOS_SOURCE_DIR": Dir("#third_party/acados/include/acados").abspath,
"ACADOS_SOURCE_DIR": Dir("#third_party/acados").abspath,
"ACADOS_PYTHON_INTERFACE_PATH": Dir("#third_party/acados/acados_template").abspath,
"TERA_PATH": Dir("#").abspath + f"/third_party/acados/{arch}/t_renderer"
}
@@ -81,8 +96,6 @@ lenv = {
rpath = lenv["LD_LIBRARY_PATH"].copy()
if arch == "larch64":
lenv["LD_LIBRARY_PATH"] += ['/data/data/com.termux/files/usr/lib']
cpppath = [
"#third_party/opencl/include",
]
@@ -106,51 +119,41 @@ else:
cflags = []
cxxflags = []
cpppath = []
rpath += []
# MacOS
if arch == "Darwin":
if real_arch == "x86_64":
lenv["TERA_PATH"] = Dir("#").abspath + f"/third_party/acados/Darwin_x86_64/t_renderer"
brew_prefix = subprocess.check_output(['brew', '--prefix'], encoding='utf8').strip()
yuv_dir = "mac" if real_arch != "arm64" else "mac_arm64"
libpath = [
f"#third_party/libyuv/{yuv_dir}/lib",
f"#third_party/libyuv/{arch}/lib",
f"#third_party/acados/{arch}/lib",
f"{brew_prefix}/lib",
f"{brew_prefix}/Library",
f"{brew_prefix}/opt/openssl/lib",
f"{brew_prefix}/Cellar",
f"{brew_prefix}/opt/openssl@3.0/lib",
"/System/Library/Frameworks/OpenGL.framework/Libraries",
]
if real_arch == "x86_64":
libpath.append(f"#third_party/acados/Darwin_x86_64/lib")
else:
libpath.append(f"#third_party/acados/{arch}/lib")
cflags += ["-DGL_SILENCE_DEPRECATION"]
cxxflags += ["-DGL_SILENCE_DEPRECATION"]
cpppath += [
f"{brew_prefix}/include",
f"{brew_prefix}/opt/openssl/include",
f"{brew_prefix}/opt/openssl@3.0/include",
]
# Linux 86_64
lenv["DYLD_LIBRARY_PATH"] = lenv["LD_LIBRARY_PATH"]
# Linux
else:
libpath = [
"#third_party/acados/x86_64/lib",
"#third_party/snpe/x86_64-linux-clang",
"#third_party/libyuv/x64/lib",
"#third_party/mapbox-gl-native-qt/x86_64",
"#cereal",
"#common",
f"#third_party/acados/{arch}/lib",
f"#third_party/libyuv/{arch}/lib",
"/usr/lib",
"/usr/local/lib",
]
rpath += [
Dir("#third_party/snpe/x86_64-linux-clang").abspath,
Dir("#cereal").abspath,
Dir("#common").abspath
]
if arch == "x86_64":
libpath += [
f"#third_party/snpe/{arch}"
]
rpath += [
Dir(f"#third_party/snpe/{arch}").abspath,
]
if GetOption('asan'):
ccflags = ["-fsanitize=address", "-fno-omit-frame-pointer"]
@@ -170,6 +173,10 @@ if arch != "Darwin":
cflags += ['-DSWAGLOG="\\"common/swaglog.h\\""']
cxxflags += ['-DSWAGLOG="\\"common/swaglog.h\\""']
ccflags_option = GetOption('ccflags')
if ccflags_option:
ccflags += ccflags_option.split(' ')
env = Environment(
ENV=lenv,
CCFLAGS=[
@@ -196,18 +203,14 @@ env = Environment(
"#third_party/catch2/include",
"#third_party/libyuv/include",
"#third_party/json11",
"#third_party/curl/include",
"#third_party/libgralloc/include",
"#third_party/android_frameworks_native/include",
"#third_party/android_hardware_libhardware/include",
"#third_party/android_system_core/include",
"#third_party/linux/include",
"#third_party/snpe/include",
"#third_party/mapbox-gl-native-qt/include",
"#third_party/qrcode",
"#third_party",
"#cereal",
"#opendbc/can",
"#third_party/maplibre-native-qt/include",
f"#third_party/maplibre-native-qt/{arch}/include"
],
CC='clang',
@@ -224,14 +227,19 @@ env = Environment(
"#opendbc/can",
"#selfdrive/boardd",
"#common",
"#rednose/helpers",
],
CYTHONCFILESUFFIX=".cpp",
COMPILATIONDB_USE_ABSPATH=True,
tools=["default", "cython", "compilation_db"],
REDNOSE_ROOT="#",
tools=["default", "cython", "compilation_db", "rednose_filter"],
toolpath=["#rednose_repo/site_scons/site_tools"],
)
if arch == "Darwin":
env['RPATHPREFIX'] = "-rpath "
# RPATH is not supported on macOS, instead use the linker flags
darwin_rpath_link_flags = [f"-Wl,-rpath,{path}" for path in env["RPATH"]]
env["LINKFLAGS"] += darwin_rpath_link_flags
if GetOption('compile_db'):
env.CompilationDatabase('compile_commands.json')
@@ -251,30 +259,16 @@ def progress_function(node):
if os.environ.get('SCONS_PROGRESS'):
Progress(progress_function, interval=node_interval)
SHARED = False
# TODO: this can probably be removed
def abspath(x):
if arch == 'aarch64':
pth = os.path.join("/data/pythonpath", x[0].path)
env.Depends(pth, x)
return File(pth)
else:
# rpath works elsewhere
return x[0].path.rsplit("/", 1)[1][:-3]
# Cython build environment
py_include = sysconfig.get_paths()['include']
envCython = env.Clone()
envCython["CPPPATH"] += [py_include, np.get_include()]
envCython["CCFLAGS"] += ["-Wno-#warnings", "-Wno-shadow", "-Wno-deprecated-declarations"]
envCython["CCFLAGS"].remove("-Werror")
envCython["LIBS"] = []
if arch == "Darwin":
envCython["LINKFLAGS"] = ["-bundle", "-undefined", "dynamic_lookup"]
elif arch == "aarch64":
envCython["LINKFLAGS"] = ["-shared"]
envCython["LIBS"] = [os.path.basename(py_include)]
envCython["LINKFLAGS"] = ["-bundle", "-undefined", "dynamic_lookup"] + darwin_rpath_link_flags
else:
envCython["LINKFLAGS"] = ["-pthread", "-shared"]
@@ -282,14 +276,11 @@ Export('envCython')
# Qt build environment
qt_env = env.Clone()
qt_modules = ["Widgets", "Gui", "Core", "Network", "Concurrent", "Multimedia", "Quick", "Qml", "QuickWidgets", "Location", "Positioning", "DBus"]
qt_modules = ["Widgets", "Gui", "Core", "Network", "Concurrent", "Multimedia", "Quick", "Qml", "QuickWidgets", "Location", "Positioning", "DBus", "Xml"]
qt_libs = []
if arch == "Darwin":
if real_arch == "arm64":
qt_env['QTDIR'] = "/opt/homebrew/opt/qt@5"
else:
qt_env['QTDIR'] = "/usr/local/opt/qt@5"
qt_env['QTDIR'] = f"{brew_prefix}/opt/qt@5"
qt_dirs = [
os.path.join(qt_env['QTDIR'], "include"),
]
@@ -304,18 +295,28 @@ else:
qt_env['QTDIR'] = qt_install_prefix
qt_dirs = [
f"{qt_install_headers}",
f"{qt_install_headers}/QtGui/5.12.8/QtGui",
]
qt_gui_path = os.path.join(qt_install_headers, "QtGui")
qt_gui_dirs = [d for d in os.listdir(qt_gui_path) if os.path.isdir(os.path.join(qt_gui_path, d))]
qt_dirs += [f"{qt_install_headers}/QtGui/{qt_gui_dirs[0]}/QtGui", ] if qt_gui_dirs else []
qt_dirs += [f"{qt_install_headers}/Qt{m}" for m in qt_modules]
qt_libs = [f"Qt5{m}" for m in qt_modules]
if arch == "larch64":
qt_libs += ["GLESv2", "wayland-client"]
qt_env.PrependENVPath('PATH', Dir("#third_party/qt5/larch64/bin/").abspath)
elif arch != "Darwin":
qt_libs += ["GL"]
qt_env['QT3DIR'] = qt_env['QTDIR']
qt_env.Tool('qt')
qt_env['CPPPATH'] += qt_dirs + ["#selfdrive/ui/qt/"]
# compatibility for older SCons versions
try:
qt_env.Tool('qt3')
except SCons.Errors.UserError:
qt_env.Tool('qt')
qt_env['CPPPATH'] += qt_dirs# + ["#selfdrive/ui/qt/"]
qt_flags = [
"-D_REENTRANT",
"-DQT_NO_DEBUG",
@@ -328,9 +329,9 @@ qt_flags = [
"-DQT_MESSAGELOGCONTEXT",
]
qt_env['CXXFLAGS'] += qt_flags
qt_env['LIBPATH'] += ['#selfdrive/ui']
qt_env['LIBPATH'] += ['#selfdrive/ui', f"#third_party/maplibre-native-qt/{arch}/lib"]
qt_env['RPATH'] += [Dir(f"#third_party/maplibre-native-qt/{arch}/lib").srcnode().abspath]
qt_env['LIBS'] = qt_libs
qt_env['QT_MOCHPREFIX'] = cache_dir + '/moc_files/moc_'
if GetOption("clazy"):
checks = [
@@ -343,102 +344,56 @@ if GetOption("clazy"):
qt_env['ENV']['CLAZY_IGNORE_DIRS'] = qt_dirs[0]
qt_env['ENV']['CLAZY_CHECKS'] = ','.join(checks)
Export('env', 'qt_env', 'arch', 'real_arch', 'SHARED')
Export('env', 'qt_env', 'arch', 'real_arch')
# Build common module
SConscript(['common/SConscript'])
Import('_common', '_gpucommon')
if SHARED:
common, gpucommon = abspath(common), abspath(gpucommon)
else:
common = [_common, 'json11']
gpucommon = [_gpucommon]
common = [_common, 'json11']
gpucommon = [_gpucommon]
Export('common', 'gpucommon')
# cereal and messaging are shared with the system
# Build cereal and messaging
SConscript(['cereal/SConscript'])
if SHARED:
cereal = abspath([File('cereal/libcereal_shared.so')])
messaging = abspath([File('cereal/libmessaging_shared.so')])
else:
cereal = [File('#cereal/libcereal.a')]
messaging = [File('#cereal/libmessaging.a')]
visionipc = [File('#cereal/libvisionipc.a')]
Export('cereal', 'messaging', 'visionipc')
# Build rednose library and ekf models
rednose_deps = [
"#selfdrive/locationd/models/constants.py",
"#selfdrive/locationd/models/gnss_helpers.py",
]
rednose_config = {
'generated_folder': '#selfdrive/locationd/models/generated',
'to_build': {
'gnss': ('#selfdrive/locationd/models/gnss_kf.py', True, [], rednose_deps),
'live': ('#selfdrive/locationd/models/live_kf.py', True, ['live_kf_constants.h'], rednose_deps),
'car': ('#selfdrive/locationd/models/car_kf.py', True, [], rednose_deps),
},
}
if arch != "larch64":
rednose_config['to_build'].update({
'loc_4': ('#selfdrive/locationd/models/loc_kf.py', True, [], rednose_deps),
'pos_computer_4': ('#rednose/helpers/lst_sq_computer.py', False, [], []),
'pos_computer_5': ('#rednose/helpers/lst_sq_computer.py', False, [], []),
'feature_handler_5': ('#rednose/helpers/feature_handler.py', False, [], []),
'lane': ('#xx/pipeline/lib/ekf/lane_kf.py', True, [], rednose_deps),
})
Export('rednose_config')
SConscript(['rednose/SConscript'])
# Build system services
SConscript([
'system/camerad/SConscript',
'system/clocksd/SConscript',
'system/proclogd/SConscript',
])
if arch != "Darwin":
SConscript(['system/logcatd/SConscript'])
# Build openpilot
# build submodules
# Build other submodules
SConscript([
'body/board/SConscript',
'cereal/SConscript',
'opendbc/can/SConscript',
'panda/SConscript',
])
# Build rednose library
SConscript(['rednose/SConscript'])
# Build system services
SConscript([
'system/proclogd/SConscript',
'system/ubloxd/SConscript',
'system/loggerd/SConscript',
])
if arch != "Darwin":
SConscript([
'system/camerad/SConscript',
'system/sensord/SConscript',
'system/logcatd/SConscript',
])
# Build openpilot
SConscript(['third_party/SConscript'])
SConscript(['common/kalman/SConscript'])
SConscript(['common/transformations/SConscript'])
SConscript(['selfdrive/modeld/SConscript'])
SConscript(['selfdrive/boardd/SConscript'])
SConscript(['selfdrive/controls/lib/lateral_mpc_lib/SConscript'])
SConscript(['selfdrive/controls/lib/longitudinal_mpc_lib/SConscript'])
SConscript(['selfdrive/boardd/SConscript'])
SConscript(['selfdrive/loggerd/SConscript'])
SConscript(['selfdrive/locationd/SConscript'])
SConscript(['selfdrive/sensord/SConscript'])
SConscript(['selfdrive/ui/SConscript'])
SConscript(['selfdrive/navd/SConscript'])
SConscript(['selfdrive/modeld/SConscript'])
SConscript(['selfdrive/ui/SConscript'])
if arch in ['x86_64', 'Darwin'] or GetOption('extras'):
if arch in ['x86_64', 'aarch64', 'Darwin'] and Dir('#tools/cabana/').exists() and GetOption('extras'):
SConscript(['tools/replay/SConscript'])
opendbc = abspath([File('opendbc/can/libdbc.so')])
Export('opendbc')
SConscript(['tools/cabana/SConscript'])
external_sconscript = GetOption('external_sconscript')
+1 -1
Submodule body updated: dc780f858c...61ace31efa
+1 -1
Submodule cereal updated: f200875ca3...d4c43a0865
+5
View File
@@ -6,3 +6,8 @@ coverage:
informational: true
patch: off
ignore:
- "**/test_*.py"
- "selfdrive/test/**"
- "system/version.py" # codecov changes depending on if we are in a branch or not
- "tools"
+22 -16
View File
@@ -1,33 +1,39 @@
Import('env', 'envCython', 'arch', 'SHARED')
if SHARED:
fxn = env.SharedLibrary
else:
fxn = env.Library
Import('env', 'envCython', 'arch')
common_libs = [
'params.cc',
'statlog.cc',
'swaglog.cc',
'util.cc',
'gpio.cc',
'i2c.cc',
'watchdog.cc',
'ratekeeper.cc'
]
_common = fxn('common', common_libs, LIBS="json11")
if arch != "Darwin":
common_libs.append('gpio.cc')
_common = env.Library('common', common_libs, LIBS="json11")
files = [
'clutil.cc',
]
_gpucommon = fxn('gpucommon', files)
_gpucommon = env.Library('gpucommon', files)
Export('_common', '_gpucommon')
if GetOption('test'):
env.Program('tests/test_util', ['tests/test_util.cc'], LIBS=[_common])
env.Program('tests/test_swaglog', ['tests/test_swaglog.cc'], LIBS=[_common, 'json11', 'zmq', 'pthread'])
if GetOption('extras'):
env.Program('tests/test_common',
['tests/test_runner.cc', 'tests/test_params.cc', 'tests/test_util.cc', 'tests/test_swaglog.cc'],
LIBS=[_common, 'json11', 'zmq', 'pthread'])
# Cython
envCython.Program('clock.so', 'clock.pyx')
envCython.Program('params_pyx.so', 'params_pyx.pyx', LIBS=envCython['LIBS'] + [_common, 'zmq', 'json11'])
# Cython bindings
params_python = envCython.Program('params_pyx.so', 'params_pyx.pyx', LIBS=envCython['LIBS'] + [_common, 'zmq', 'json11'])
SConscript([
'transformations/SConscript',
])
Import('transformations_python')
common_python = [params_python, transformations_python]
Export('common_python')
+3 -3
View File
@@ -2,15 +2,15 @@ import jwt
import os
import requests
from datetime import datetime, timedelta
from common.basedir import PERSIST
from system.version import get_version
from openpilot.system.hardware.hw import Paths
from openpilot.system.version import get_version
API_HOST = os.getenv('API_HOST', 'https://api.commadotai.com')
class Api():
def __init__(self, dongle_id):
self.dongle_id = dongle_id
with open(PERSIST+'/comma/id_rsa') as f:
with open(Paths.persist_root()+'/comma/id_rsa') as f:
self.private_key = f.read()
def get(self, *args, **kwargs):
-7
View File
@@ -1,11 +1,4 @@
import os
from pathlib import Path
from system.hardware import PC
BASEDIR = os.path.abspath(os.path.join(os.path.dirname(os.path.realpath(__file__)), "../"))
if PC:
PERSIST = os.path.join(str(Path.home()), ".comma", "persist")
else:
PERSIST = "/persist"
-24
View File
@@ -1,24 +0,0 @@
# distutils: language = c++
# cython: language_level = 3
from posix.time cimport clock_gettime, timespec, CLOCK_MONOTONIC_RAW, clockid_t
IF UNAME_SYSNAME == "Darwin":
# Darwin doesn't have a CLOCK_BOOTTIME
CLOCK_BOOTTIME = CLOCK_MONOTONIC_RAW
ELSE:
from posix.time cimport CLOCK_BOOTTIME
cdef double readclock(clockid_t clock_id):
cdef timespec ts
cdef double current
clock_gettime(clock_id, &ts)
current = ts.tv_sec + (ts.tv_nsec / 1000000000.)
return current
def monotonic_time():
return readclock(CLOCK_MONOTONIC_RAW)
def sec_since_boot():
return readclock(CLOCK_BOOTTIME)
+17 -11
View File
@@ -5,6 +5,7 @@
#include <memory>
#include "common/util.h"
#include "common/swaglog.h"
namespace { // helper functions
@@ -31,14 +32,14 @@ void cl_print_info(cl_platform_id platform, cl_device_id device) {
case CL_DEVICE_TYPE_ACCELERATOR: type_str = "CL_DEVICE_TYPE_ACCELERATOR"; break;
}
std::cout << "vendor: " << get_platform_info(platform, CL_PLATFORM_VENDOR) << std::endl
<< "platform version: " << get_platform_info(platform, CL_PLATFORM_VERSION) << std::endl
<< "profile: " << get_platform_info(platform, CL_PLATFORM_PROFILE) << std::endl
<< "extensions: " << get_platform_info(platform, CL_PLATFORM_EXTENSIONS) << std::endl
<< "name :" << get_device_info(device, CL_DEVICE_NAME) << std::endl
<< "device version :" << get_device_info(device, CL_DEVICE_VERSION) << std::endl
<< "max work group size :" << work_group_size << std::endl
<< "type = " << device_type << " = " << type_str << std::endl;
LOGD("vendor: %s", get_platform_info(platform, CL_PLATFORM_VENDOR).c_str());
LOGD("platform version: %s", get_platform_info(platform, CL_PLATFORM_VERSION).c_str());
LOGD("profile: %s", get_platform_info(platform, CL_PLATFORM_PROFILE).c_str());
LOGD("extensions: %s", get_platform_info(platform, CL_PLATFORM_EXTENSIONS).c_str());
LOGD("name: %s", get_device_info(device, CL_DEVICE_NAME).c_str());
LOGD("device version: %s", get_device_info(device, CL_DEVICE_VERSION).c_str());
LOGD("max work group size: %zu", work_group_size);
LOGD("type = %d, %s", (int)device_type, type_str);
}
void cl_print_build_errors(cl_program program, cl_device_id device) {
@@ -49,7 +50,7 @@ void cl_print_build_errors(cl_program program, cl_device_id device) {
std::string log(log_size, '\0');
clGetProgramBuildInfo(program, device, CL_PROGRAM_BUILD_LOG, log_size, &log[0], NULL);
std::cout << "build failed; status=" << status << ", log:" << std::endl << log << std::endl;
LOGE("build failed; status=%d, log: %s", status, log.c_str());
}
} // namespace
@@ -61,18 +62,23 @@ cl_device_id cl_get_device_id(cl_device_type device_type) {
CL_CHECK(clGetPlatformIDs(num_platforms, &platform_ids[0], NULL));
for (size_t i = 0; i < num_platforms; ++i) {
std::cout << "platform[" << i << "] CL_PLATFORM_NAME: " << get_platform_info(platform_ids[i], CL_PLATFORM_NAME) << std::endl;
LOGD("platform[%zu] CL_PLATFORM_NAME: %s", i, get_platform_info(platform_ids[i], CL_PLATFORM_NAME).c_str());
// Get first device
if (cl_device_id device_id = NULL; clGetDeviceIDs(platform_ids[i], device_type, 1, &device_id, NULL) == 0 && device_id) {
cl_print_info(platform_ids[i], device_id);
return device_id;
}
}
std::cout << "No valid openCL platform found" << std::endl;
LOGE("No valid openCL platform found");
assert(0);
return nullptr;
}
cl_context cl_create_context(cl_device_id device_id) {
return CL_CHECK_ERR(clCreateContext(NULL, 1, &device_id, NULL, NULL, &err));
}
cl_program cl_program_from_file(cl_context ctx, cl_device_id device_id, const char* path, const char* args) {
return cl_program_from_source(ctx, device_id, util::read_file(path), args);
}
+1
View File
@@ -22,6 +22,7 @@
})
cl_device_id cl_get_device_id(cl_device_type device_type);
cl_context cl_create_context(cl_device_id device_id);
cl_program cl_program_from_source(cl_context ctx, cl_device_id device_id, const std::string& src, const char* args = nullptr);
cl_program cl_program_from_binary(cl_context ctx, cl_device_id device_id, const uint8_t* binary, size_t length, const char* args = nullptr);
cl_program cl_program_from_file(cl_context ctx, cl_device_id device_id, const char* path, const char* args);
+1 -48
View File
@@ -1,55 +1,8 @@
import os
import sys
import fcntl
import hashlib
import platform
from cffi import FFI
def suffix():
if platform.system() == "Darwin":
return ".dylib"
else:
return ".so"
def ffi_wrap(name, c_code, c_header, tmpdir="/tmp/ccache", cflags="", libraries=None):
if libraries is None:
libraries = []
cache = name + "_" + hashlib.sha1(c_code.encode('utf-8')).hexdigest()
try:
os.mkdir(tmpdir)
except OSError:
pass
fd = os.open(tmpdir, 0)
fcntl.flock(fd, fcntl.LOCK_EX)
try:
sys.path.append(tmpdir)
try:
mod = __import__(cache)
except Exception:
print(f"cache miss {cache}")
compile_code(cache, c_code, c_header, tmpdir, cflags, libraries)
mod = __import__(cache)
finally:
os.close(fd)
return mod.ffi, mod.lib
def compile_code(name, c_code, c_header, directory, cflags="", libraries=None):
if libraries is None:
libraries = []
ffibuilder = FFI()
ffibuilder.set_source(name, c_code, source_extension='.cpp', libraries=libraries)
ffibuilder.cdef(c_header)
os.environ['OPT'] = "-fwrapv -O2 -DNDEBUG -std=c++1z"
os.environ['CFLAGS'] = cflags
ffibuilder.compile(verbose=True, debug=False, tmpdir=directory)
def wrap_compiled(name, directory):
sys.path.append(directory)
mod = __import__(name)
return mod.ffi, mod.lib
+12 -74
View File
@@ -1,60 +1,6 @@
import os
import shutil
import tempfile
from atomicwrites import AtomicWriter
def mkdirs_exists_ok(path):
if path.startswith('http://') or path.startswith('https://'):
raise ValueError('URL path')
try:
os.makedirs(path)
except OSError:
if not os.path.isdir(path):
raise
def rm_not_exists_ok(path):
try:
os.remove(path)
except OSError:
if os.path.exists(path):
raise
def rm_tree_or_link(path):
if os.path.islink(path):
os.unlink(path)
elif os.path.isdir(path):
shutil.rmtree(path)
def get_tmpdir_on_same_filesystem(path):
normpath = os.path.normpath(path)
parts = normpath.split("/")
if len(parts) > 1 and parts[1] == "scratch":
return "/scratch/tmp"
elif len(parts) > 2 and parts[2] == "runner":
return f"/{parts[1]}/runner/tmp"
return "/tmp"
class NamedTemporaryDir():
def __init__(self, temp_dir=None):
self._path = tempfile.mkdtemp(dir=temp_dir)
@property
def name(self):
return self._path
def close(self):
shutil.rmtree(self._path)
def __enter__(self):
return self
def __exit__(self, exc_type, exc_value, traceback):
self.close()
import contextlib
class CallbackReader:
@@ -76,24 +22,16 @@ class CallbackReader:
return chunk
def _get_fileobject_func(writer, temp_dir):
def _get_fileobject():
return writer.get_fileobject(dir=temp_dir)
return _get_fileobject
@contextlib.contextmanager
def atomic_write_in_dir(path: str, mode: str = 'w', buffering: int = -1, encoding: str = None, newline: str = None,
overwrite: bool = False):
"""Write to a file atomically using a temporary file in the same directory as the destination file."""
dir_name = os.path.dirname(path)
def atomic_write_on_fs_tmp(path, **kwargs):
"""Creates an atomic writer using a temporary file in a temporary directory
on the same filesystem as path.
"""
# TODO(mgraczyk): This use of AtomicWriter relies on implementation details to set the temp
# directory.
writer = AtomicWriter(path, **kwargs)
return writer._open(_get_fileobject_func(writer, get_tmpdir_on_same_filesystem(path)))
if not overwrite and os.path.exists(path):
raise FileExistsError(f"File '{path}' already exists. To overwrite it, set 'overwrite' to True.")
def atomic_write_in_dir(path, **kwargs):
"""Creates an atomic writer using a temporary file in the same directory
as the destination file.
"""
writer = AtomicWriter(path, **kwargs)
return writer._open(_get_fileobject_func(writer, os.path.dirname(path)))
with tempfile.NamedTemporaryFile(mode=mode, buffering=buffering, encoding=encoding, newline=newline, dir=dir_name, delete=False) as tmp_file:
yield tmp_file
tmp_file_name = tmp_file.name
os.replace(tmp_file_name, path)
+23 -4
View File
@@ -1,5 +1,22 @@
#include "common/gpio.h"
#include <string>
#ifdef __APPLE__
int gpio_init(int pin_nr, bool output) {
return 0;
}
int gpio_set(int pin_nr, bool high) {
return 0;
}
int gpiochip_get_ro_value_fd(const char* consumer_label, int gpiochiop_id, int pin_nr) {
return 0;
}
#else
#include <fcntl.h>
#include <unistd.h>
@@ -14,7 +31,7 @@ int gpio_init(int pin_nr, bool output) {
char pin_dir_path[50];
int pin_dir_path_len = snprintf(pin_dir_path, sizeof(pin_dir_path),
"/sys/class/gpio/gpio%d/direction", pin_nr);
if(pin_dir_path_len <= 0) {
if (pin_dir_path_len <= 0) {
return -1;
}
const char *value = output ? "out" : "in";
@@ -25,7 +42,7 @@ int gpio_set(int pin_nr, bool high) {
char pin_val_path[50];
int pin_val_path_len = snprintf(pin_val_path, sizeof(pin_val_path),
"/sys/class/gpio/gpio%d/value", pin_nr);
if(pin_val_path_len <= 0) {
if (pin_val_path_len <= 0) {
return -1;
}
return util::write_file(pin_val_path, (void*)(high ? "1" : "0"), 1);
@@ -38,7 +55,7 @@ int gpiochip_get_ro_value_fd(const char* consumer_label, int gpiochiop_id, int p
std::string gpiochip_path = "/dev/gpiochip" + std::to_string(gpiochiop_id);
int fd = open(gpiochip_path.c_str(), O_RDONLY);
if (fd < 0) {
LOGE("Error opening gpiochip0 fd")
LOGE("Error opening gpiochip0 fd");
return -1;
}
@@ -53,7 +70,7 @@ int gpiochip_get_ro_value_fd(const char* consumer_label, int gpiochiop_id, int p
rq.eventflags = GPIOEVENT_REQUEST_BOTH_EDGES;
strncpy(rq.consumer_label, consumer_label, std::size(rq.consumer_label) - 1);
int ret = ioctl(fd, GPIO_GET_LINEEVENT_IOCTL, &rq);
int ret = util::safe_ioctl(fd, GPIO_GET_LINEEVENT_IOCTL, &rq);
if (ret == -1) {
LOGE("Unable to get line event from ioctl : %s", strerror(errno));
close(fd);
@@ -63,3 +80,5 @@ int gpiochip_get_ro_value_fd(const char* consumer_label, int gpiochiop_id, int p
close(fd);
return rq.fd;
}
#endif
+2 -2
View File
@@ -5,7 +5,7 @@
#define GPIO_HUB_RST_N 30
#define GPIO_UBLOX_RST_N 32
#define GPIO_UBLOX_SAFEBOOT_N 33
#define GPIO_UBLOX_PWR_EN 34
#define GPIO_GNSS_PWR_EN 34 /* SCHEMATIC LABEL: GPIO_UBLOX_PWR_EN */
#define GPIO_STM_RST_N 124
#define GPIO_STM_BOOT0 134
#define GPIO_BMX_ACCEL_INT 21
@@ -17,7 +17,7 @@
#define GPIO_HUB_RST_N 0
#define GPIO_UBLOX_RST_N 0
#define GPIO_UBLOX_SAFEBOOT_N 0
#define GPIO_UBLOX_PWR_EN 0
#define GPIO_GNSS_PWR_EN 0 /* SCHEMATIC LABEL: GPIO_UBLOX_PWR_EN */
#define GPIO_STM_RST_N 0
#define GPIO_STM_BOOT0 0
#define GPIO_BMX_ACCEL_INT 0
+31 -2
View File
@@ -1,4 +1,5 @@
from typing import Optional
import os
from functools import lru_cache
def gpio_init(pin: int, output: bool) -> None:
try:
@@ -14,7 +15,7 @@ def gpio_set(pin: int, high: bool) -> None:
except Exception as e:
print(f"Failed to set gpio {pin} value: {e}")
def gpio_read(pin: int) -> Optional[bool]:
def gpio_read(pin: int) -> bool | None:
val = None
try:
with open(f"/sys/class/gpio/gpio{pin}/value", 'rb') as f:
@@ -23,3 +24,31 @@ def gpio_read(pin: int) -> Optional[bool]:
print(f"Failed to set gpio {pin} value: {e}")
return val
def gpio_export(pin: int) -> None:
if os.path.isdir(f"/sys/class/gpio/gpio{pin}"):
return
try:
with open("/sys/class/gpio/export", 'w') as f:
f.write(str(pin))
except Exception:
print(f"Failed to export gpio {pin}")
@lru_cache(maxsize=None)
def get_irq_action(irq: int) -> list[str]:
try:
with open(f"/sys/kernel/irq/{irq}/actions") as f:
actions = f.read().strip().split(',')
return actions
except FileNotFoundError:
return []
def get_irqs_for_action(action: str) -> list[str]:
ret = []
with open("/proc/interrupts") as f:
for l in f.readlines():
irq = l.split(':')[0].strip()
if irq.isdigit() and action in get_irq_action(irq):
ret.append(irq)
return ret
+13 -8
View File
@@ -8,14 +8,13 @@
#include <cstdio>
#include <stdexcept>
#include "common/util.h"
#include "common/swaglog.h"
#include "common/util.h"
#define UNUSED(x) (void)(x)
#ifdef QCOM2
// TODO: decide if we want to isntall libi2c-dev everywhere
// TODO: decide if we want to install libi2c-dev everywhere
extern "C" {
#include <linux/i2c-dev.h>
#include <i2c/smbus.h>
@@ -26,36 +25,42 @@ I2CBus::I2CBus(uint8_t bus_id) {
snprintf(bus_name, 20, "/dev/i2c-%d", bus_id);
i2c_fd = HANDLE_EINTR(open(bus_name, O_RDWR));
if(i2c_fd < 0) {
if (i2c_fd < 0) {
throw std::runtime_error("Failed to open I2C bus");
}
}
I2CBus::~I2CBus() {
if(i2c_fd >= 0) { close(i2c_fd); }
if (i2c_fd >= 0) {
close(i2c_fd);
}
}
int I2CBus::read_register(uint8_t device_address, uint register_address, uint8_t *buffer, uint8_t len) {
std::lock_guard lk(m);
int ret = 0;
ret = HANDLE_EINTR(ioctl(i2c_fd, I2C_SLAVE, device_address));
if(ret < 0) { goto fail; }
if (ret < 0) { goto fail; }
ret = i2c_smbus_read_i2c_block_data(i2c_fd, register_address, len, buffer);
if((ret < 0) || (ret != len)) { goto fail; }
if ((ret < 0) || (ret != len)) { goto fail; }
fail:
return ret;
}
int I2CBus::set_register(uint8_t device_address, uint register_address, uint8_t data) {
std::lock_guard lk(m);
int ret = 0;
ret = HANDLE_EINTR(ioctl(i2c_fd, I2C_SLAVE, device_address));
if(ret < 0) { goto fail; }
if (ret < 0) { goto fail; }
ret = i2c_smbus_write_byte_data(i2c_fd, register_address, data);
if(ret < 0) { goto fail; }
if (ret < 0) { goto fail; }
fail:
return ret;
+2
View File
@@ -1,12 +1,14 @@
#pragma once
#include <cstdint>
#include <mutex>
#include <sys/types.h>
class I2CBus {
private:
int i2c_fd;
std::mutex m;
public:
I2CBus(uint8_t bus_id);
-1
View File
@@ -1 +0,0 @@
simple_kalman_impl.c
-3
View File
@@ -1,3 +0,0 @@
Import('envCython')
envCython.Program('simple_kalman_impl.so', 'simple_kalman_impl.pyx')
-3
View File
@@ -1,3 +0,0 @@
# pylint: skip-file
from common.kalman.simple_kalman_impl import KF1D as KF1D
assert KF1D
-18
View File
@@ -1,18 +0,0 @@
# cython: language_level = 3
cdef class KF1D:
cdef public:
double x0_0
double x1_0
double K0_0
double K1_0
double A0_0
double A0_1
double A1_0
double A1_1
double C0_0
double C0_1
double A_K_0
double A_K_1
double A_K_2
double A_K_3
-37
View File
@@ -1,37 +0,0 @@
# distutils: language = c++
# cython: language_level=3
cdef class KF1D:
def __init__(self, x0, A, C, K):
self.x0_0 = x0[0][0]
self.x1_0 = x0[1][0]
self.A0_0 = A[0][0]
self.A0_1 = A[0][1]
self.A1_0 = A[1][0]
self.A1_1 = A[1][1]
self.C0_0 = C[0]
self.C0_1 = C[1]
self.K0_0 = K[0][0]
self.K1_0 = K[1][0]
self.A_K_0 = self.A0_0 - self.K0_0 * self.C0_0
self.A_K_1 = self.A0_1 - self.K0_0 * self.C0_1
self.A_K_2 = self.A1_0 - self.K1_0 * self.C0_0
self.A_K_3 = self.A1_1 - self.K1_0 * self.C0_1
def update(self, meas):
cdef double x0_0 = self.A_K_0 * self.x0_0 + self.A_K_1 * self.x1_0 + self.K0_0 * meas
cdef double x1_0 = self.A_K_2 * self.x0_0 + self.A_K_3 * self.x1_0 + self.K1_0 * meas
self.x0_0 = x0_0
self.x1_0 = x1_0
return [self.x0_0, self.x1_0]
@property
def x(self):
return [[self.x0_0], [self.x1_0]]
@x.setter
def x(self, x):
self.x0_0 = x[0][0]
self.x1_0 = x[1][0]
-23
View File
@@ -1,23 +0,0 @@
import numpy as np
class KF1D:
# this EKF assumes constant covariance matrix, so calculations are much simpler
# the Kalman gain also needs to be precomputed using the control module
def __init__(self, x0, A, C, K):
self.x = x0
self.A = A
self.C = np.atleast_2d(C)
self.K = K
self.A_K = self.A - np.dot(self.K, self.C)
# K matrix needs to be pre-computed as follow:
# import control
# (x, l, K) = control.dare(np.transpose(self.A), np.transpose(self.C), Q, R)
# self.K = np.transpose(K)
def update(self, meas):
self.x = np.dot(self.A_K, self.x) + np.dot(self.K, meas)
return self.x
-87
View File
@@ -1,87 +0,0 @@
import unittest
import random
import timeit
import numpy as np
from common.kalman.simple_kalman import KF1D
from common.kalman.simple_kalman_old import KF1D as KF1D_old
class TestSimpleKalman(unittest.TestCase):
def setUp(self):
dt = 0.01
x0_0 = 0.0
x1_0 = 0.0
A0_0 = 1.0
A0_1 = dt
A1_0 = 0.0
A1_1 = 1.0
C0_0 = 1.0
C0_1 = 0.0
K0_0 = 0.12287673
K1_0 = 0.29666309
self.kf_old = KF1D_old(x0=np.array([[x0_0], [x1_0]]),
A=np.array([[A0_0, A0_1], [A1_0, A1_1]]),
C=np.array([C0_0, C0_1]),
K=np.array([[K0_0], [K1_0]]))
self.kf = KF1D(x0=[[x0_0], [x1_0]],
A=[[A0_0, A0_1], [A1_0, A1_1]],
C=[C0_0, C0_1],
K=[[K0_0], [K1_0]])
def test_getter_setter(self):
self.kf.x = [[1.0], [1.0]]
self.assertEqual(self.kf.x, [[1.0], [1.0]])
def update_returns_state(self):
x = self.kf.update(100)
self.assertEqual(x, self.kf.x)
def test_old_equal_new(self):
for _ in range(1000):
v_wheel = random.uniform(0, 200)
x_old = self.kf_old.update(v_wheel)
x = self.kf.update(v_wheel)
# Compare the output x, verify that the error is less than 1e-4
np.testing.assert_almost_equal(x_old[0], x[0])
np.testing.assert_almost_equal(x_old[1], x[1])
def test_new_is_faster(self):
setup = """
import numpy as np
from common.kalman.simple_kalman import KF1D
from common.kalman.simple_kalman_old import KF1D as KF1D_old
dt = 0.01
x0_0 = 0.0
x1_0 = 0.0
A0_0 = 1.0
A0_1 = dt
A1_0 = 0.0
A1_1 = 1.0
C0_0 = 1.0
C0_1 = 0.0
K0_0 = 0.12287673
K1_0 = 0.29666309
kf_old = KF1D_old(x0=np.array([[x0_0], [x1_0]]),
A=np.array([[A0_0, A0_1], [A1_0, A1_1]]),
C=np.array([C0_0, C0_1]),
K=np.array([[K0_0], [K1_0]]))
kf = KF1D(x0=[[x0_0], [x1_0]],
A=[[A0_0, A0_1], [A1_0, A1_1]],
C=[C0_0, C0_1],
K=[[K0_0], [K1_0]])
"""
kf_speed = timeit.timeit("kf.update(1234)", setup=setup, number=10000)
kf_old_speed = timeit.timeit("kf_old.update(1234)", setup=setup, number=10000)
self.assertTrue(kf_speed < kf_old_speed / 4)
if __name__ == "__main__":
unittest.main()
-12
View File
@@ -1,12 +0,0 @@
class lazy_property():
"""Defines a property whose value will be computed only once and as needed.
This can only be used on instance methods.
"""
def __init__(self, func):
self._func = func
def __get__(self, obj_self, cls):
value = self._func(obj_self)
setattr(obj_self, self._func.__name__, value)
return value
+3 -3
View File
@@ -153,9 +153,9 @@ class SwagLogger(logging.Logger):
def bind_global(self, **kwargs):
self.global_ctx.update(kwargs)
def event(self, event_name, *args, **kwargs):
def event(self, event, *args, **kwargs):
evt = NiceOrderedDict()
evt['event'] = event_name
evt['event'] = event
if args:
evt['args'] = args
evt.update(kwargs)
@@ -197,7 +197,7 @@ class SwagLogger(logging.Logger):
filename = os.path.normcase(co.co_filename)
# TODO: is this pylint exception correct?
if filename == _srcfile: # pylint: disable=comparison-with-callable
if filename == _srcfile:
f = f.f_back
continue
sinfo = None
+2 -2
View File
@@ -1,7 +1,7 @@
#pragma once
typedef struct vec3 {
float v[3];
float v[3];
} vec3;
typedef struct vec4 {
@@ -9,7 +9,7 @@ typedef struct vec4 {
} vec4;
typedef struct mat3 {
float v[3*3];
float v[3*3];
} mat3;
typedef struct mat4 {
+50
View File
@@ -0,0 +1,50 @@
"""
Utilities for generating mock messages for testing.
example in common/tests/test_mock.py
"""
import functools
import threading
from cereal.messaging import PubMaster
from cereal.services import SERVICE_LIST
from openpilot.common.mock.generators import generate_liveLocationKalman
from openpilot.common.realtime import Ratekeeper
MOCK_GENERATOR = {
"liveLocationKalman": generate_liveLocationKalman
}
def generate_messages_loop(services: list[str], done: threading.Event):
pm = PubMaster(services)
rk = Ratekeeper(100)
i = 0
while not done.is_set():
for s in services:
should_send = i % (100/SERVICE_LIST[s].frequency) == 0
if should_send:
message = MOCK_GENERATOR[s]()
pm.send(s, message)
i += 1
rk.keep_time()
def mock_messages(services: list[str] | str):
if isinstance(services, str):
services = [services]
def decorator(func):
@functools.wraps(func)
def wrapper(*args, **kwargs):
done = threading.Event()
t = threading.Thread(target=generate_messages_loop, args=(services, done))
t.start()
try:
return func(*args, **kwargs)
finally:
done.set()
t.join()
return wrapper
return decorator
+20
View File
@@ -0,0 +1,20 @@
from cereal import messaging
LOCATION1 = (32.7174, -117.16277)
LOCATION2 = (32.7558, -117.2037)
LLK_DECIMATION = 10
RENDER_FRAMES = 15
DEFAULT_ITERATIONS = RENDER_FRAMES * LLK_DECIMATION
def generate_liveLocationKalman(location=LOCATION1):
msg = messaging.new_message('liveLocationKalman')
msg.liveLocationKalman.positionGeodetic = {'value': [*location, 0], 'std': [0., 0., 0.], 'valid': True}
msg.liveLocationKalman.positionECEF = {'value': [0., 0., 0.], 'std': [0., 0., 0.], 'valid': True}
msg.liveLocationKalman.calibratedOrientationNED = {'value': [0., 0., 0.], 'std': [0., 0., 0.], 'valid': True}
msg.liveLocationKalman.velocityCalibrated = {'value': [0., 0., 0.], 'std': [0., 0., 0.], 'valid': True}
msg.liveLocationKalman.status = 'valid'
msg.liveLocationKalman.gpsOK = True
return msg
-46
View File
@@ -1,46 +0,0 @@
#pragma once
#include <array>
#include "common/mat.h"
#include "system/hardware/hw.h"
const int TRAJECTORY_SIZE = 33;
const int LAT_MPC_N = 16;
const int LON_MPC_N = 32;
const float MIN_DRAW_DISTANCE = 10.0;
const float MAX_DRAW_DISTANCE = 100.0;
template <typename T, size_t size>
constexpr std::array<T, size> build_idxs(float max_val) {
std::array<T, size> result{};
for (int i = 0; i < size; ++i) {
result[i] = max_val * ((i / (double)(size - 1)) * (i / (double)(size - 1)));
}
return result;
}
constexpr auto T_IDXS = build_idxs<double, TRAJECTORY_SIZE>(10.0);
constexpr auto T_IDXS_FLOAT = build_idxs<float, TRAJECTORY_SIZE>(10.0);
constexpr auto X_IDXS = build_idxs<double, TRAJECTORY_SIZE>(192.0);
constexpr auto X_IDXS_FLOAT = build_idxs<float, TRAJECTORY_SIZE>(192.0);
const mat3 fcam_intrinsic_matrix = (mat3){{2648.0, 0.0, 1928.0 / 2,
0.0, 2648.0, 1208.0 / 2,
0.0, 0.0, 1.0}};
// tici ecam focal probably wrong? magnification is not consistent across frame
// Need to retrain model before this can be changed
const mat3 ecam_intrinsic_matrix = (mat3){{567.0, 0.0, 1928.0 / 2,
0.0, 567.0, 1208.0 / 2,
0.0, 0.0, 1.0}};
static inline mat3 get_model_yuv_transform() {
float db_s = 1.0;
const mat3 transform = (mat3){{
1.0, 0.0, 0.0,
0.0, 1.0, 0.0,
0.0, 0.0, 1.0
}};
// Can this be removed since scale is 1?
return transform_scale_buffer(transform, db_s);
}
-22
View File
@@ -1,22 +0,0 @@
import numpy as np
def deep_interp_np(x, xp, fp, axis=None):
if axis is not None:
fp = fp.swapaxes(0,axis)
x = np.atleast_1d(x)
xp = np.array(xp)
if len(xp) < 2:
return np.repeat(fp, len(x), axis=0)
if min(np.diff(xp)) < 0:
raise RuntimeError('Bad x array for interpolation')
j = np.searchsorted(xp, x) - 1
j = np.clip(j, 0, len(xp)-2)
d = np.divide(x - xp[j], xp[j + 1] - xp[j], out=np.ones_like(x, dtype=np.float64), where=xp[j + 1] - xp[j] != 0)
vals_interp = (fp[j].T*(1 - d)).T + (fp[j + 1].T*d).T
if axis is not None:
vals_interp = vals_interp.swapaxes(0,axis)
if len(vals_interp) == 1:
return vals_interp[0]
else:
return vals_interp
+195 -63
View File
@@ -4,9 +4,11 @@
#include <sys/file.h>
#include <algorithm>
#include <cassert>
#include <csignal>
#include <unordered_map>
#include "common/queue.h"
#include "common/swaglog.h"
#include "common/util.h"
#include "system/hardware/hw.h"
@@ -64,7 +66,9 @@ bool create_params_path(const std::string &param_path, const std::string &key_pa
std::string ensure_params_path(const std::string &prefix, const std::string &path = {}) {
std::string params_path = path.empty() ? Path::params() : path;
if (!create_params_path(params_path, params_path + prefix)) {
throw std::runtime_error(util::string_format("Failed to ensure params path, errno=%d", errno));
throw std::runtime_error(util::string_format(
"Failed to ensure params path, errno=%d, path=%s, param_prefix=%s",
errno, params_path.c_str(), prefix.c_str()));
}
return params_path;
}
@@ -85,35 +89,43 @@ private:
std::unordered_map<std::string, uint32_t> keys = {
{"AccessToken", CLEAR_ON_MANAGER_START | DONT_LOG},
{"ApiCache_Device", PERSISTENT},
{"ApiCache_NavDestinations", PERSISTENT},
{"AssistNowToken", PERSISTENT},
{"AthenadPid", PERSISTENT},
{"AthenadUploadQueue", PERSISTENT},
{"AthenadRecentlyViewedRoutes", PERSISTENT},
{"BootCount", PERSISTENT},
{"CalibrationParams", PERSISTENT},
{"CameraDebugExpGain", CLEAR_ON_MANAGER_START},
{"CameraDebugExpTime", CLEAR_ON_MANAGER_START},
{"CarBatteryCapacity", PERSISTENT},
{"CarParams", CLEAR_ON_MANAGER_START | CLEAR_ON_IGNITION_ON},
{"CarParams", CLEAR_ON_MANAGER_START | CLEAR_ON_ONROAD_TRANSITION},
{"CarParamsCache", CLEAR_ON_MANAGER_START},
{"CarParamsPersistent", PERSISTENT},
{"CarVin", CLEAR_ON_MANAGER_START | CLEAR_ON_IGNITION_ON},
{"CarParamsPrevRoute", PERSISTENT},
{"CarVin", CLEAR_ON_MANAGER_START | CLEAR_ON_ONROAD_TRANSITION},
{"CompletedTrainingVersion", PERSISTENT},
{"ControlsReady", CLEAR_ON_MANAGER_START | CLEAR_ON_IGNITION_ON},
{"CurrentRoute", CLEAR_ON_MANAGER_START | CLEAR_ON_IGNITION_ON},
{"DashcamOverride", PERSISTENT},
{"DisableLogging", CLEAR_ON_MANAGER_START | CLEAR_ON_IGNITION_ON},
{"ControlsReady", CLEAR_ON_MANAGER_START | CLEAR_ON_ONROAD_TRANSITION},
{"CurrentBootlog", PERSISTENT},
{"CurrentRoute", CLEAR_ON_MANAGER_START | CLEAR_ON_ONROAD_TRANSITION},
{"DisableLogging", CLEAR_ON_MANAGER_START | CLEAR_ON_ONROAD_TRANSITION},
{"DisablePowerDown", PERSISTENT},
{"ExperimentalMode", PERSISTENT},
{"ExperimentalModeConfirmed", PERSISTENT},
{"ExperimentalLongitudinalEnabled", PERSISTENT}, // WARNING: THIS MAY DISABLE AEB
{"DisableUpdates", PERSISTENT},
{"DisengageOnAccelerator", PERSISTENT},
{"DmModelInitialized", CLEAR_ON_ONROAD_TRANSITION},
{"DongleId", PERSISTENT},
{"DoReboot", CLEAR_ON_MANAGER_START},
{"DoShutdown", CLEAR_ON_MANAGER_START},
{"DoUninstall", CLEAR_ON_MANAGER_START},
{"ForcePowerDown", CLEAR_ON_MANAGER_START},
{"ExperimentalLongitudinalEnabled", PERSISTENT | DEVELOPMENT_ONLY},
{"ExperimentalMode", PERSISTENT},
{"ExperimentalModeConfirmed", PERSISTENT},
{"FirmwareQueryDone", CLEAR_ON_MANAGER_START | CLEAR_ON_ONROAD_TRANSITION},
{"ForcePowerDown", PERSISTENT},
{"GitBranch", PERSISTENT},
{"GitCommit", PERSISTENT},
{"GitCommitDate", PERSISTENT},
{"GitDiff", PERSISTENT},
{"GithubSshKeys", PERSISTENT},
{"GithubUsername", PERSISTENT},
@@ -132,80 +144,178 @@ std::unordered_map<std::string, uint32_t> keys = {
{"IsOffroad", CLEAR_ON_MANAGER_START},
{"IsOnroad", PERSISTENT},
{"IsRhdDetected", PERSISTENT},
{"IsReleaseBranch", CLEAR_ON_MANAGER_START},
{"IsTakingSnapshot", CLEAR_ON_MANAGER_START},
{"IsTestedBranch", CLEAR_ON_MANAGER_START},
{"IsUpdateAvailable", CLEAR_ON_MANAGER_START},
{"JoystickDebugMode", CLEAR_ON_MANAGER_START | CLEAR_ON_IGNITION_OFF},
{"LaikadEphemeris", PERSISTENT | DONT_LOG},
{"JoystickDebugMode", CLEAR_ON_MANAGER_START | CLEAR_ON_OFFROAD_TRANSITION},
{"LanguageSetting", PERSISTENT},
{"LastAthenaPingTime", CLEAR_ON_MANAGER_START},
{"LastGPSPosition", PERSISTENT},
{"LastManagerExitReason", CLEAR_ON_MANAGER_START},
{"LastOffroadStatusPacket", CLEAR_ON_MANAGER_START | CLEAR_ON_OFFROAD_TRANSITION},
{"LastPowerDropDetected", CLEAR_ON_MANAGER_START},
{"LastSystemShutdown", CLEAR_ON_MANAGER_START},
{"LastUpdateException", CLEAR_ON_MANAGER_START},
{"LastUpdateTime", PERSISTENT},
{"LiveParameters", PERSISTENT},
{"LiveTorqueCarParams", PERSISTENT},
{"LiveTorqueParameters", PERSISTENT | DONT_LOG},
{"NavDestination", CLEAR_ON_MANAGER_START | CLEAR_ON_IGNITION_OFF},
{"NavDestinationWaypoints", CLEAR_ON_MANAGER_START | CLEAR_ON_IGNITION_OFF},
{"NavSettingTime24h", PERSISTENT},
{"LongitudinalPersonality", PERSISTENT},
{"NavDestination", CLEAR_ON_MANAGER_START | CLEAR_ON_OFFROAD_TRANSITION},
{"NavDestinationWaypoints", CLEAR_ON_MANAGER_START | CLEAR_ON_OFFROAD_TRANSITION},
{"NavPastDestinations", PERSISTENT},
{"NavSettingLeftSide", PERSISTENT},
{"NavdRender", PERSISTENT},
{"OpenpilotEnabledToggle", PERSISTENT},
{"PandaHeartbeatLost", CLEAR_ON_MANAGER_START | CLEAR_ON_IGNITION_OFF},
{"PandaSignatures", CLEAR_ON_MANAGER_START},
{"Passive", PERSISTENT},
{"PrimeType", PERSISTENT},
{"RecordFront", PERSISTENT},
{"RecordFrontLock", PERSISTENT}, // for the internal fleet
{"ReplayControlsState", CLEAR_ON_MANAGER_START | CLEAR_ON_IGNITION_ON},
{"ShouldDoUpdate", CLEAR_ON_MANAGER_START},
{"SnoozeUpdate", CLEAR_ON_MANAGER_START | CLEAR_ON_IGNITION_OFF},
{"SshEnabled", PERSISTENT},
{"SubscriberInfo", PERSISTENT},
{"TermsVersion", PERSISTENT},
{"Timezone", PERSISTENT},
{"TrainingVersion", PERSISTENT},
{"UbloxAvailable", PERSISTENT},
{"UpdateAvailable", CLEAR_ON_MANAGER_START},
{"UpdateFailedCount", CLEAR_ON_MANAGER_START},
{"UpdaterState", CLEAR_ON_MANAGER_START},
{"UpdaterFetchAvailable", CLEAR_ON_MANAGER_START},
{"UpdaterTargetBranch", CLEAR_ON_MANAGER_START},
{"UpdaterAvailableBranches", CLEAR_ON_MANAGER_START},
{"UpdaterCurrentDescription", CLEAR_ON_MANAGER_START},
{"UpdaterCurrentReleaseNotes", CLEAR_ON_MANAGER_START},
{"UpdaterNewDescription", CLEAR_ON_MANAGER_START},
{"UpdaterNewReleaseNotes", CLEAR_ON_MANAGER_START},
{"Version", PERSISTENT},
{"VisionRadarToggle", PERSISTENT},
{"WideCameraOnly", PERSISTENT},
{"ApiCache_Device", PERSISTENT},
{"ApiCache_DriveStats", PERSISTENT},
{"ApiCache_NavDestinations", PERSISTENT},
{"ApiCache_Owner", PERSISTENT},
{"NavSettingTime24h", PERSISTENT},
{"NetworkMetered", PERSISTENT},
{"ObdMultiplexingChanged", CLEAR_ON_MANAGER_START | CLEAR_ON_ONROAD_TRANSITION},
{"ObdMultiplexingEnabled", CLEAR_ON_MANAGER_START | CLEAR_ON_ONROAD_TRANSITION},
{"Offroad_BadNvme", CLEAR_ON_MANAGER_START},
{"Offroad_CarUnrecognized", CLEAR_ON_MANAGER_START | CLEAR_ON_IGNITION_ON},
{"Offroad_CarUnrecognized", CLEAR_ON_MANAGER_START | CLEAR_ON_ONROAD_TRANSITION},
{"Offroad_ConnectivityNeeded", CLEAR_ON_MANAGER_START},
{"Offroad_ConnectivityNeededPrompt", CLEAR_ON_MANAGER_START},
{"Offroad_InvalidTime", CLEAR_ON_MANAGER_START},
{"Offroad_IsTakingSnapshot", CLEAR_ON_MANAGER_START},
{"Offroad_NeosUpdate", CLEAR_ON_MANAGER_START},
{"Offroad_NoFirmware", CLEAR_ON_MANAGER_START | CLEAR_ON_IGNITION_ON},
{"Offroad_NoFirmware", CLEAR_ON_MANAGER_START | CLEAR_ON_ONROAD_TRANSITION},
{"Offroad_Recalibration", CLEAR_ON_MANAGER_START | CLEAR_ON_ONROAD_TRANSITION},
{"Offroad_StorageMissing", CLEAR_ON_MANAGER_START},
{"Offroad_TemperatureTooHigh", CLEAR_ON_MANAGER_START},
{"Offroad_UnofficialHardware", CLEAR_ON_MANAGER_START},
{"Offroad_UpdateFailed", CLEAR_ON_MANAGER_START},
{"OpenpilotEnabledToggle", PERSISTENT},
{"PandaHeartbeatLost", CLEAR_ON_MANAGER_START | CLEAR_ON_OFFROAD_TRANSITION},
{"PandaSomResetTriggered", CLEAR_ON_MANAGER_START | CLEAR_ON_OFFROAD_TRANSITION},
{"PandaSignatures", CLEAR_ON_MANAGER_START},
{"PrimeType", PERSISTENT},
{"RecordFront", PERSISTENT},
{"RecordFrontLock", PERSISTENT}, // for the internal fleet
{"ReplayControlsState", CLEAR_ON_MANAGER_START | CLEAR_ON_ONROAD_TRANSITION},
{"SnoozeUpdate", CLEAR_ON_MANAGER_START | CLEAR_ON_OFFROAD_TRANSITION},
{"SshEnabled", PERSISTENT},
{"TermsVersion", PERSISTENT},
{"Timezone", PERSISTENT},
{"TrainingVersion", PERSISTENT},
{"UbloxAvailable", PERSISTENT},
{"UpdateAvailable", CLEAR_ON_MANAGER_START | CLEAR_ON_ONROAD_TRANSITION},
{"UpdateFailedCount", CLEAR_ON_MANAGER_START},
{"UpdaterAvailableBranches", PERSISTENT},
{"UpdaterCurrentDescription", CLEAR_ON_MANAGER_START},
{"UpdaterCurrentReleaseNotes", CLEAR_ON_MANAGER_START},
{"UpdaterFetchAvailable", CLEAR_ON_MANAGER_START},
{"UpdaterNewDescription", CLEAR_ON_MANAGER_START},
{"UpdaterNewReleaseNotes", CLEAR_ON_MANAGER_START},
{"UpdaterState", CLEAR_ON_MANAGER_START},
{"UpdaterTargetBranch", CLEAR_ON_MANAGER_START},
{"UpdaterLastFetchTime", PERSISTENT},
{"Version", PERSISTENT},
{"VisionRadarToggle", PERSISTENT},
{"AccMadsCombo", PERSISTENT},
{"AmapKey1", PERSISTENT},
{"AmapKey2", PERSISTENT},
{"AutoLaneChangeTimer", PERSISTENT},
{"AutoLaneChangeBsmDelay", PERSISTENT},
{"BelowSpeedPause", PERSISTENT},
{"BrakeLights", PERSISTENT},
{"BrightnessControl", PERSISTENT},
{"ButtonAutoHide", PERSISTENT},
{"CameraControl", PERSISTENT},
{"CameraControlToggle", PERSISTENT},
{"CameraOffset", PERSISTENT},
{"CarModel", PERSISTENT},
{"CarModelText", PERSISTENT},
{"ChevronInfo", PERSISTENT},
{"CustomBootScreen", PERSISTENT},
{"CustomMapboxTokenPk", PERSISTENT},
{"CustomMapboxTokenSk", PERSISTENT},
{"CustomOffsets", PERSISTENT},
{"CustomStockLong", PERSISTENT},
{"CustomTorqueLateral", PERSISTENT},
{"DevUI", PERSISTENT},
{"DevUIInfo", PERSISTENT},
{"DisableOnroadUploads", PERSISTENT},
{"DisengageLateralOnBrake", PERSISTENT},
{"DynamicExperimentalControl", PERSISTENT},
{"DynamicExperimentalControlToggle", PERSISTENT},
{"DynamicLaneProfile", PERSISTENT},
{"DynamicLaneProfileToggle", PERSISTENT},
{"EnableAmap", PERSISTENT},
{"EnableDebugSnapshot", PERSISTENT},
{"EnableGmap", PERSISTENT},
{"EnableMads", PERSISTENT},
{"EndToEndLongAlertLead", PERSISTENT},
{"EndToEndLongAlertLight", PERSISTENT},
{"EndToEndLongAlertUI", PERSISTENT},
{"EndToEndLongToggle", PERSISTENT},
{"EnforceTorqueLateral", PERSISTENT},
{"EnhancedScc", PERSISTENT},
{"FleetManagerPin", PERSISTENT},
{"GapAdjustCruise", PERSISTENT},
{"GapAdjustCruiseMax", PERSISTENT},
{"GapAdjustCruiseMin", PERSISTENT},
{"GapAdjustCruiseMode", PERSISTENT},
{"GapAdjustCruiseTr", PERSISTENT},
{"GmapKey", PERSISTENT},
{"HandsOnWheelMonitoring", PERSISTENT},
{"HideVEgoUi", PERSISTENT},
{"HkgSmoothStop", PERSISTENT},
{"HotspotOnBoot", PERSISTENT},
{"LastCarModel", PERSISTENT},
{"LastSpeedLimitSignTap", PERSISTENT},
{"LiveTorque", PERSISTENT},
{"LkasToggle", PERSISTENT},
{"MadsCruiseMain", PERSISTENT},
{"MadsIconToggle", PERSISTENT},
{"MapboxFullScreen", PERSISTENT},
{"MaxTimeOffroad", PERSISTENT},
{"OnroadScreenOff", PERSISTENT},
{"OnroadScreenOffBrightness", PERSISTENT},
{"OnroadScreenOffEvent", PERSISTENT},
{"OsmDbUpdatesCheck", PERSISTENT},
{"OsmLocal", PERSISTENT},
{"OsmLocalDb", PERSISTENT},
{"OsmLocationName", PERSISTENT},
{"OsmLocationTitle", PERSISTENT},
{"OsmLocationUrl", PERSISTENT},
{"OsmWayTest", PERSISTENT},
{"PathOffset", PERSISTENT},
{"QuietDrive", PERSISTENT},
{"RoadEdge", PERSISTENT},
{"ReverseAccChange", PERSISTENT},
{"ReverseDmCam", PERSISTENT},
{"ScreenRecorder", PERSISTENT},
{"ShowDebugUI", PERSISTENT},
{"SidebarTemperature", PERSISTENT},
{"SidebarTemperatureOptions", PERSISTENT},
{"SpeedLimitControl", PERSISTENT},
{"SpeedLimitPercOffset", PERSISTENT},
{"SpeedLimitValueOffset", PERSISTENT},
{"SpeedLimitOffsetType", PERSISTENT},
{"StandStillTimer", PERSISTENT},
{"StockLongToyota", PERSISTENT},
{"TorqueDeadzoneDeg", PERSISTENT},
{"TorqueFriction", PERSISTENT},
{"TorqueMaxLatAccel", PERSISTENT},
{"ToyotaTSS2Long", PERSISTENT},
{"TrueVEgoUi", PERSISTENT},
{"TurnSpeedControl", PERSISTENT},
{"TurnVisionControl", PERSISTENT},
{"VisionCurveLaneless", PERSISTENT},
{"VwAccType", PERSISTENT},
{"Offroad_SupersededUpdate", PERSISTENT},
};
} // namespace
Params::Params(const std::string &path) {
prefix = "/" + util::getenv("OPENPILOT_PREFIX", "d");
params_path = ensure_params_path(prefix, path);
params_prefix = "/" + util::getenv("OPENPILOT_PREFIX", "d");
params_path = ensure_params_path(params_prefix, path);
}
Params::~Params() {
if (future.valid()) {
future.wait();
}
assert(queue.empty());
}
std::vector<std::string> Params::allKeys() const {
@@ -301,15 +411,37 @@ std::map<std::string, std::string> Params::readAll() {
void Params::clearAll(ParamKeyType key_type) {
FileLock file_lock(params_path + "/.lock");
if (key_type == ALL) {
util::remove_files_in_dir(getParamPath());
} else {
for (auto &[key, type] : keys) {
if (type & key_type) {
unlink(getParamPath(key).c_str());
// 1) delete params of key_type
// 2) delete files that are not defined in the keys.
if (DIR *d = opendir(getParamPath().c_str())) {
struct dirent *de = NULL;
while ((de = readdir(d))) {
if (de->d_type != DT_DIR) {
auto it = keys.find(de->d_name);
if (it == keys.end() || (it->second & key_type)) {
unlink(getParamPath(de->d_name).c_str());
}
}
}
closedir(d);
}
fsync_dir(getParamPath());
}
void Params::putNonBlocking(const std::string &key, const std::string &val) {
queue.push(std::make_pair(key, val));
// start thread on demand
if (!future.valid() || future.wait_for(std::chrono::milliseconds(0)) == std::future_status::ready) {
future = std::async(std::launch::async, &Params::asyncWriteThread, this);
}
}
void Params::asyncWriteThread() {
// TODO: write the latest one if a key has multiple values in the queue.
std::pair<std::string, std::string> p;
while (queue.try_pop(p, 0)) {
// Params::put is Thread-Safe
put(p.first, p.second);
}
}
+26 -5
View File
@@ -1,26 +1,37 @@
#pragma once
#include <future>
#include <map>
#include <string>
#include <tuple>
#include <utility>
#include <vector>
#include "common/queue.h"
enum ParamKeyType {
PERSISTENT = 0x02,
CLEAR_ON_MANAGER_START = 0x04,
CLEAR_ON_IGNITION_ON = 0x08,
CLEAR_ON_IGNITION_OFF = 0x10,
CLEAR_ON_ONROAD_TRANSITION = 0x08,
CLEAR_ON_OFFROAD_TRANSITION = 0x10,
DONT_LOG = 0x20,
DEVELOPMENT_ONLY = 0x40,
ALL = 0xFFFFFFFF
};
class Params {
public:
Params(const std::string &path = {});
explicit Params(const std::string &path = {});
~Params();
// Not copyable.
Params(const Params&) = delete;
Params& operator=(const Params&) = delete;
std::vector<std::string> allKeys() const;
bool checkKey(const std::string &key);
ParamKeyType getKeyType(const std::string &key);
inline std::string getParamPath(const std::string &key = {}) {
return params_path + prefix + (key.empty() ? "" : "/" + key);
return params_path + params_prefix + (key.empty() ? "" : "/" + key);
}
// Delete a value
@@ -42,8 +53,18 @@ public:
inline int putBool(const std::string &key, bool val) {
return put(key.c_str(), val ? "1" : "0", 1);
}
void putNonBlocking(const std::string &key, const std::string &val);
inline void putBoolNonBlocking(const std::string &key, bool val) {
putNonBlocking(key, val ? "1" : "0");
}
private:
void asyncWriteThread();
std::string params_path;
std::string prefix;
std::string params_prefix;
// for nonblocking write
std::future<void> future;
SafeQueue<std::pair<std::string, std::string>> queue;
};
+1 -3
View File
@@ -1,9 +1,7 @@
from common.params_pyx import Params, ParamKeyType, UnknownKeyName, put_nonblocking, put_bool_nonblocking # pylint: disable=no-name-in-module, import-error
from openpilot.common.params_pyx import Params, ParamKeyType, UnknownKeyName
assert Params
assert ParamKeyType
assert UnknownKeyName
assert put_nonblocking
assert put_bool_nonblocking
if __name__ == "__main__":
import sys
Executable → Regular
+19 -12
View File
@@ -3,22 +3,24 @@
from libcpp cimport bool
from libcpp.string cimport string
from libcpp.vector cimport vector
import threading
cdef extern from "common/params.h":
cpdef enum ParamKeyType:
PERSISTENT
CLEAR_ON_MANAGER_START
CLEAR_ON_IGNITION_ON
CLEAR_ON_IGNITION_OFF
CLEAR_ON_ONROAD_TRANSITION
CLEAR_ON_OFFROAD_TRANSITION
DEVELOPMENT_ONLY
ALL
cdef cppclass c_Params "Params":
c_Params(string) nogil
c_Params(string) except + nogil
string get(string, bool) nogil
bool getBool(string, bool) nogil
int remove(string) nogil
int put(string, string) nogil
void putNonBlocking(string, string) nogil
void putBoolNonBlocking(string, bool) nogil
int putBool(string, bool) nogil
bool checkKey(string) nogil
string getParamPath(string) nogil
@@ -27,7 +29,7 @@ cdef extern from "common/params.h":
def ensure_bytes(v):
return v.encode() if isinstance(v, str) else v;
return v.encode() if isinstance(v, str) else v
class UnknownKeyName(Exception):
pass
@@ -79,7 +81,7 @@ cdef class Params:
"""
Warning: This function blocks until the param is written to disk!
In very rare cases this can take over a second, and your code will hang.
Use the put_nonblocking helper function in time sensitive code, but
Use the put_nonblocking, put_bool_nonblocking in time sensitive code, but
in general try to avoid writing params as much as possible.
"""
cdef string k = self.check_key(key)
@@ -92,6 +94,17 @@ cdef class Params:
with nogil:
self.p.putBool(k, val)
def put_nonblocking(self, key, dat):
cdef string k = self.check_key(key)
cdef string dat_bytes = ensure_bytes(dat)
with nogil:
self.p.putNonBlocking(k, dat_bytes)
def put_bool_nonblocking(self, key, bool val):
cdef string k = self.check_key(key)
with nogil:
self.p.putBoolNonBlocking(k, val)
def remove(self, key):
cdef string k = self.check_key(key)
with nogil:
@@ -103,9 +116,3 @@ cdef class Params:
def all_keys(self):
return self.p.allKeys()
def put_nonblocking(key, val, d=""):
threading.Thread(target=lambda: Params(d).put(key, val)).start()
def put_bool_nonblocking(key, bool val, d=""):
threading.Thread(target=lambda: Params(d).put_bool(key, val)).start()
+51
View File
@@ -0,0 +1,51 @@
import os
import shutil
import uuid
from openpilot.common.params import Params
from openpilot.system.hardware.hw import Paths
from openpilot.system.hardware.hw import DEFAULT_DOWNLOAD_CACHE_ROOT
class OpenpilotPrefix:
def __init__(self, prefix: str = None, clean_dirs_on_exit: bool = True, shared_download_cache: bool = False):
self.prefix = prefix if prefix else str(uuid.uuid4().hex[0:15])
self.msgq_path = os.path.join('/dev/shm', self.prefix)
self.clean_dirs_on_exit = clean_dirs_on_exit
self.shared_download_cache = shared_download_cache
def __enter__(self):
self.original_prefix = os.environ.get('OPENPILOT_PREFIX', None)
os.environ['OPENPILOT_PREFIX'] = self.prefix
try:
os.mkdir(self.msgq_path)
except FileExistsError:
pass
os.makedirs(Paths.log_root(), exist_ok=True)
if self.shared_download_cache:
os.environ["COMMA_CACHE"] = DEFAULT_DOWNLOAD_CACHE_ROOT
return self
def __exit__(self, exc_type, exc_obj, exc_tb):
if self.clean_dirs_on_exit:
self.clean_dirs()
try:
del os.environ['OPENPILOT_PREFIX']
if self.original_prefix is not None:
os.environ['OPENPILOT_PREFIX'] = self.original_prefix
except KeyError:
pass
return False
def clean_dirs(self):
symlink_path = Params().get_param_path()
if os.path.exists(symlink_path):
shutil.rmtree(os.path.realpath(symlink_path), ignore_errors=True)
os.remove(symlink_path)
shutil.rmtree(self.msgq_path, ignore_errors=True)
shutil.rmtree(Paths.log_root(), ignore_errors=True)
if not os.environ.get("COMMA_CACHE", False):
shutil.rmtree(Paths.download_cache_root(), ignore_errors=True)
shutil.rmtree(Paths.comma_home(), ignore_errors=True)
-45
View File
@@ -1,45 +0,0 @@
import time
class Profiler():
def __init__(self, enabled=False):
self.enabled = enabled
self.cp = {}
self.cp_ignored = []
self.iter = 0
self.start_time = time.time()
self.last_time = self.start_time
self.tot = 0.
def reset(self, enabled=False):
self.enabled = enabled
self.cp = {}
self.cp_ignored = []
self.iter = 0
self.start_time = time.time()
self.last_time = self.start_time
def checkpoint(self, name, ignore=False):
# ignore flag needed when benchmarking threads with ratekeeper
if not self.enabled:
return
tt = time.time()
if name not in self.cp:
self.cp[name] = 0.
if ignore:
self.cp_ignored.append(name)
self.cp[name] += tt - self.last_time
if not ignore:
self.tot += tt - self.last_time
self.last_time = tt
def display(self):
if not self.enabled:
return
self.iter += 1
print("******* Profiling %d *******" % self.iter)
for n, ms in sorted(self.cp.items(), key=lambda x: -x[1]):
if n in self.cp_ignored:
print("%30s: %9.2f avg: %7.2f percent: %3.0f IGNORED" % (n, ms*1000.0, ms*1000.0/self.iter, ms/self.tot*100))
else:
print("%30s: %9.2f avg: %7.2f percent: %3.0f" % (n, ms*1000.0, ms*1000.0/self.iter, ms/self.tot*100))
print(f"Iter clock: {self.tot / self.iter:2.6f} TOTAL: {self.tot:2.2f}")
+40
View File
@@ -0,0 +1,40 @@
#include "common/ratekeeper.h"
#include <algorithm>
#include "common/swaglog.h"
#include "common/timing.h"
#include "common/util.h"
RateKeeper::RateKeeper(const std::string &name, float rate, float print_delay_threshold)
: name(name),
print_delay_threshold(std::max(0.f, print_delay_threshold)) {
interval = 1 / rate;
last_monitor_time = seconds_since_boot();
next_frame_time = last_monitor_time + interval;
}
bool RateKeeper::keepTime() {
bool lagged = monitorTime();
if (remaining_ > 0) {
util::sleep_for(remaining_ * 1000);
}
return lagged;
}
bool RateKeeper::monitorTime() {
++frame_;
last_monitor_time = seconds_since_boot();
remaining_ = next_frame_time - last_monitor_time;
bool lagged = remaining_ < 0;
if (lagged) {
if (print_delay_threshold > 0 && remaining_ < -print_delay_threshold) {
LOGW("%s lagging by %.2f ms", name.c_str(), -remaining_ * 1000);
}
next_frame_time = last_monitor_time + interval;
} else {
next_frame_time += interval;
}
return lagged;
}
+23
View File
@@ -0,0 +1,23 @@
#pragma once
#include <cstdint>
#include <string>
class RateKeeper {
public:
RateKeeper(const std::string &name, float rate, float print_delay_threshold = 0);
~RateKeeper() {}
bool keepTime();
bool monitorTime();
inline double frame() const { return frame_; }
inline double remaining() const { return remaining_; }
private:
double interval;
double next_frame_time;
double last_monitor_time;
double remaining_ = 0;
float print_delay_threshold = 0;
uint64_t frame_ = 0;
std::string name;
};
+12 -14
View File
@@ -3,12 +3,10 @@ import gc
import os
import time
from collections import deque
from typing import Optional, List, Union
from setproctitle import getproctitle # pylint: disable=no-name-in-module
from setproctitle import getproctitle
from common.clock import sec_since_boot # pylint: disable=no-name-in-module, import-error
from system.hardware import PC
from openpilot.system.hardware import PC
# time step for each process
@@ -31,15 +29,15 @@ class Priority:
def set_realtime_priority(level: int) -> None:
if not PC:
os.sched_setscheduler(0, os.SCHED_FIFO, os.sched_param(level)) # pylint: disable=no-member
os.sched_setscheduler(0, os.SCHED_FIFO, os.sched_param(level))
def set_core_affinity(cores: List[int]) -> None:
def set_core_affinity(cores: list[int]) -> None:
if not PC:
os.sched_setaffinity(0, cores) # pylint: disable=no-member
os.sched_setaffinity(0, cores)
def config_realtime_process(cores: Union[int, List[int]], priority: int) -> None:
def config_realtime_process(cores: int | list[int], priority: int) -> None:
gc.disable()
set_realtime_priority(priority)
c = cores if isinstance(cores, list) else [cores, ]
@@ -47,16 +45,16 @@ def config_realtime_process(cores: Union[int, List[int]], priority: int) -> None
class Ratekeeper:
def __init__(self, rate: float, print_delay_threshold: Optional[float] = 0.0) -> None:
def __init__(self, rate: float, print_delay_threshold: float | None = 0.0) -> None:
"""Rate in Hz for ratekeeping. print_delay_threshold must be nonnegative."""
self._interval = 1. / rate
self._next_frame_time = sec_since_boot() + self._interval
self._next_frame_time = time.monotonic() + self._interval
self._print_delay_threshold = print_delay_threshold
self._frame = 0
self._remaining = 0.0
self._process_name = getproctitle()
self._dts = deque([self._interval], maxlen=100)
self._last_monitor_time = sec_since_boot()
self._last_monitor_time = time.monotonic()
@property
def frame(self) -> int:
@@ -79,14 +77,14 @@ class Ratekeeper:
time.sleep(self._remaining)
return lagged
# this only monitor the cumulative lag, but does not enforce a rate
# Monitors the cumulative lag, but does not enforce a rate
def monitor_time(self) -> bool:
prev = self._last_monitor_time
self._last_monitor_time = sec_since_boot()
self._last_monitor_time = time.monotonic()
self._dts.append(self._last_monitor_time - prev)
lagged = False
remaining = self._next_frame_time - sec_since_boot()
remaining = self._next_frame_time - time.monotonic()
self._next_frame_time += self._interval
if self._print_delay_threshold is not None and remaining < -self._print_delay_threshold:
print(f"{self._process_name} lagging by {-remaining * 1000:.2f} ms")
+30
View File
@@ -0,0 +1,30 @@
import time
import functools
from openpilot.common.swaglog import cloudlog
def retry(attempts=3, delay=1.0, ignore_failure=False):
def decorator(func):
@functools.wraps(func)
def wrapper(*args, **kwargs):
for _ in range(attempts):
try:
return func(*args, **kwargs)
except Exception:
cloudlog.exception(f"{func.__name__} failed, trying again")
time.sleep(delay)
if ignore_failure:
cloudlog.error(f"{func.__name__} failed after retry")
else:
raise Exception(f"{func.__name__} failed after retry")
return wrapper
return decorator
if __name__ == "__main__":
@retry(attempts=10)
def abc():
raise ValueError("abc failed :(")
abc()
+54
View File
@@ -0,0 +1,54 @@
import numpy as np
def get_kalman_gain(dt, A, C, Q, R, iterations=100):
P = np.zeros_like(Q)
for _ in range(iterations):
P = A.dot(P).dot(A.T) + dt * Q
S = C.dot(P).dot(C.T) + R
K = P.dot(C.T).dot(np.linalg.inv(S))
P = (np.eye(len(P)) - K.dot(C)).dot(P)
return K
class KF1D:
# this EKF assumes constant covariance matrix, so calculations are much simpler
# the Kalman gain also needs to be precomputed using the control module
def __init__(self, x0, A, C, K):
self.x0_0 = x0[0][0]
self.x1_0 = x0[1][0]
self.A0_0 = A[0][0]
self.A0_1 = A[0][1]
self.A1_0 = A[1][0]
self.A1_1 = A[1][1]
self.C0_0 = C[0]
self.C0_1 = C[1]
self.K0_0 = K[0][0]
self.K1_0 = K[1][0]
self.A_K_0 = self.A0_0 - self.K0_0 * self.C0_0
self.A_K_1 = self.A0_1 - self.K0_0 * self.C0_1
self.A_K_2 = self.A1_0 - self.K1_0 * self.C0_0
self.A_K_3 = self.A1_1 - self.K1_0 * self.C0_1
# K matrix needs to be pre-computed as follow:
# import control
# (x, l, K) = control.dare(np.transpose(self.A), np.transpose(self.C), Q, R)
# self.K = np.transpose(K)
def update(self, meas):
#self.x = np.dot(self.A_K, self.x) + np.dot(self.K, meas)
x0_0 = self.A_K_0 * self.x0_0 + self.A_K_1 * self.x1_0 + self.K0_0 * meas
x1_0 = self.A_K_2 * self.x0_0 + self.A_K_3 * self.x1_0 + self.K1_0 * meas
self.x0_0 = x0_0
self.x1_0 = x1_0
return [self.x0_0, self.x1_0]
@property
def x(self):
return [[self.x0_0], [self.x1_0]]
def set_x(self, x):
self.x0_0 = x[0][0]
self.x1_0 = x[1][0]
+5 -5
View File
@@ -1,6 +1,6 @@
import os
import subprocess
from common.basedir import BASEDIR
from openpilot.common.basedir import BASEDIR
class Spinner():
@@ -29,11 +29,11 @@ class Spinner():
def close(self):
if self.spinner_proc is not None:
self.spinner_proc.kill()
try:
self.spinner_proc.stdin.close()
except BrokenPipeError:
pass
self.spinner_proc.terminate()
self.spinner_proc.communicate(timeout=2.)
except subprocess.TimeoutExpired:
print("WARNING: failed to kill spinner")
self.spinner_proc = None
def __del__(self):
-46
View File
@@ -1,46 +0,0 @@
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif
#include "common/statlog.h"
#include "common/util.h"
#include <stdio.h>
#include <mutex>
#include <zmq.h>
class StatlogState : public LogState {
public:
StatlogState() : LogState("ipc:///tmp/stats") {}
};
static StatlogState s = {};
static void log(const char* metric_type, const char* metric, const char* fmt, ...) {
std::lock_guard lk(s.lock);
if (!s.initialized) s.initialize();
char* value_buf = nullptr;
va_list args;
va_start(args, fmt);
int ret = vasprintf(&value_buf, fmt, args);
va_end(args);
if (ret > 0 && value_buf) {
char* line_buf = nullptr;
ret = asprintf(&line_buf, "%s:%s|%s", metric, value_buf, metric_type);
if (ret > 0 && line_buf) {
zmq_send(s.sock, line_buf, ret, ZMQ_NOBLOCK);
free(line_buf);
}
free(value_buf);
}
}
void statlog_log(const char* metric_type, const char* metric, int value) {
log(metric_type, metric, "%d", value);
}
void statlog_log(const char* metric_type, const char* metric, float value) {
log(metric_type, metric, "%f", value);
}
-10
View File
@@ -1,10 +0,0 @@
#pragma once
#define STATLOG_GAUGE "g"
#define STATLOG_SAMPLE "sa"
void statlog_log(const char* metric_type, const char* metric, int value);
void statlog_log(const char* metric_type, const char* metric, float value);
#define statlog_gauge(metric, value) statlog_log(STATLOG_GAUGE, metric, value)
#define statlog_sample(metric, value) statlog_log(STATLOG_SAMPLE, metric, value)
+49 -34
View File
@@ -5,29 +5,29 @@
#include "common/swaglog.h"
#include <cassert>
#include <cstring>
#include <limits>
#include <mutex>
#include <string>
#include <zmq.h>
#include "json11.hpp"
#include "common/util.h"
#include <stdarg.h>
#include "third_party/json11/json11.hpp"
#include "common/version.h"
#include "system/hardware/hw.h"
class SwaglogState : public LogState {
public:
SwaglogState() : LogState("ipc:///tmp/logmessage") {}
class SwaglogState {
public:
SwaglogState() {
zctx = zmq_ctx_new();
sock = zmq_socket(zctx, ZMQ_PUSH);
json11::Json::object ctx_j;
// Timeout on shutdown for messages to be received by the logging process
int timeout = 100;
zmq_setsockopt(sock, ZMQ_LINGER, &timeout, sizeof(timeout));
zmq_connect(sock, Path::swaglog_ipc().c_str());
inline void initialize() {
ctx_j = json11::Json::object {};
print_level = CLOUDLOG_WARNING;
const char* print_lvl = getenv("LOGPRINT");
if (print_lvl) {
if (const char* print_lvl = getenv("LOGPRINT")) {
if (strcmp(print_lvl, "debug") == 0) {
print_level = CLOUDLOG_DEBUG;
} else if (strcmp(print_lvl, "info") == 0) {
@@ -37,40 +37,53 @@ class SwaglogState : public LogState {
}
}
// openpilot bindings
char* dongle_id = getenv("DONGLE_ID");
if (dongle_id) {
ctx_j = json11::Json::object{};
if (char* dongle_id = getenv("DONGLE_ID")) {
ctx_j["dongle_id"] = dongle_id;
}
char* daemon_name = getenv("MANAGER_DAEMON");
if (daemon_name) {
if (char* git_origin = getenv("GIT_ORIGIN")) {
ctx_j["origin"] = git_origin;
}
if (char* git_branch = getenv("GIT_BRANCH")) {
ctx_j["branch"] = git_branch;
}
if (char* git_commit = getenv("GIT_COMMIT")) {
ctx_j["commit"] = git_commit;
}
if (char* daemon_name = getenv("MANAGER_DAEMON")) {
ctx_j["daemon"] = daemon_name;
}
ctx_j["version"] = COMMA_VERSION;
ctx_j["dirty"] = !getenv("CLEAN");
// device type
ctx_j["device"] = Hardware::get_name();
LogState::initialize();
}
~SwaglogState() {
zmq_close(sock);
zmq_ctx_destroy(zctx);
}
void log(int levelnum, const char* filename, int lineno, const char* func, const char* msg, const std::string& log_s) {
std::lock_guard lk(lock);
if (levelnum >= print_level) {
printf("%s: %s\n", filename, msg);
}
zmq_send(sock, log_s.data(), log_s.length(), ZMQ_NOBLOCK);
}
std::mutex lock;
void* zctx = nullptr;
void* sock = nullptr;
int print_level;
json11::Json::object ctx_j;
};
static SwaglogState s = {};
bool LOG_TIMESTAMPS = getenv("LOG_TIMESTAMPS");
uint32_t NO_FRAME_ID = std::numeric_limits<uint32_t>::max();
static void log(int levelnum, const char* filename, int lineno, const char* func, const char* msg, const std::string& log_s) {
if (levelnum >= s.print_level) {
printf("%s: %s\n", filename, msg);
}
char levelnum_c = levelnum;
zmq_send(s.sock, (levelnum_c + log_s).c_str(), log_s.length() + 1, ZMQ_NOBLOCK);
}
static void cloudlog_common(int levelnum, const char* filename, int lineno, const char* func,
char* msg_buf, const json11::Json::object &msg_j={}) {
std::lock_guard lk(s.lock);
if (!s.initialized) s.initialize();
static SwaglogState s;
json11::Json::object log_j = json11::Json::object {
{"ctx", s.ctx_j},
@@ -86,8 +99,11 @@ static void cloudlog_common(int levelnum, const char* filename, int lineno, cons
log_j["msg"] = msg_j;
}
std::string log_s = ((json11::Json)log_j).dump();
log(levelnum, filename, lineno, func, msg_buf, log_s);
std::string log_s;
log_s += (char)levelnum;
((json11::Json)log_j).dump(log_s);
s.log(levelnum, filename, lineno, func, msg_buf, log_s);
free(msg_buf);
}
@@ -134,4 +150,3 @@ void cloudlog_te(int levelnum, const char* filename, int lineno, const char* fun
cloudlog_t_common(levelnum, filename, lineno, func, frame_id, fmt, args);
va_end(args);
}
+13 -7
View File
@@ -9,23 +9,29 @@
#define CLOUDLOG_CRITICAL 50
#ifdef __GNUC__
#define SWAG_LOG_CHECK_FMT(a, b) __attribute__ ((format (printf, a, b)))
#else
#define SWAG_LOG_CHECK_FMT(a, b)
#endif
void cloudlog_e(int levelnum, const char* filename, int lineno, const char* func,
const char* fmt, ...) /*__attribute__ ((format (printf, 6, 7)))*/;
const char* fmt, ...) SWAG_LOG_CHECK_FMT(5, 6);
void cloudlog_te(int levelnum, const char* filename, int lineno, const char* func,
const char* fmt, ...) /*__attribute__ ((format (printf, 6, 7)))*/;
const char* fmt, ...) SWAG_LOG_CHECK_FMT(5, 6);
void cloudlog_te(int levelnum, const char* filename, int lineno, const char* func,
uint32_t frame_id, const char* fmt, ...) /*__attribute__ ((format (printf, 6, 7)))*/;
uint32_t frame_id, const char* fmt, ...) SWAG_LOG_CHECK_FMT(6, 7);
#define cloudlog(lvl, fmt, ...) cloudlog_e(lvl, __FILE__, __LINE__, \
__func__, \
fmt, ## __VA_ARGS__);
fmt, ## __VA_ARGS__)
#define cloudlog_t(lvl, ...) cloudlog_te(lvl, __FILE__, __LINE__, \
__func__, \
__VA_ARGS__);
__VA_ARGS__)
#define cloudlog_rl(burst, millis, lvl, fmt, ...) \
@@ -38,7 +44,7 @@ void cloudlog_te(int levelnum, const char* filename, int lineno, const char* fun
int __millis = (millis); \
uint64_t __ts = nanos_since_boot(); \
\
if (!__begin) __begin = __ts; \
if (!__begin) { __begin = __ts; } \
\
if (__begin + __millis*1000000ULL < __ts) { \
if (__missed) { \
+23 -10
View File
@@ -1,22 +1,19 @@
import logging
import os
import time
import warnings
from pathlib import Path
from logging.handlers import BaseRotatingHandler
import zmq
from common.logging_extra import SwagLogger, SwagFormatter, SwagLogFileFormatter
from system.hardware import PC
from openpilot.common.logging_extra import SwagLogger, SwagFormatter, SwagLogFileFormatter
from openpilot.system.hardware.hw import Paths
if PC:
SWAGLOG_DIR = os.path.join(str(Path.home()), ".comma", "log")
else:
SWAGLOG_DIR = "/data/log/"
def get_file_handler():
Path(SWAGLOG_DIR).mkdir(parents=True, exist_ok=True)
base_filename = os.path.join(SWAGLOG_DIR, "swaglog")
Path(Paths.swaglog_root()).mkdir(parents=True, exist_ok=True)
base_filename = os.path.join(Paths.swaglog_root(), "swaglog")
handler = SwaglogRotatingFileHandler(base_filename)
return handler
@@ -72,15 +69,29 @@ class UnixDomainSocketHandler(logging.Handler):
self.setFormatter(formatter)
self.pid = None
self.zctx = None
self.sock = None
def __del__(self):
self.close()
def close(self):
if self.sock is not None:
self.sock.close()
if self.zctx is not None:
self.zctx.term()
def connect(self):
self.zctx = zmq.Context()
self.sock = self.zctx.socket(zmq.PUSH)
self.sock.setsockopt(zmq.LINGER, 10)
self.sock.connect("ipc:///tmp/logmessage")
self.sock.connect(Paths.swaglog_ipc())
self.pid = os.getpid()
def emit(self, record):
if os.getpid() != self.pid:
# TODO suppresses warning about forking proc with zmq socket, fix root cause
warnings.filterwarnings("ignore", category=ResourceWarning, message="unclosed.*<zmq.*>")
self.connect()
msg = self.format(record).rstrip('\n')
@@ -117,6 +128,8 @@ elif print_level == 'info':
elif print_level == 'warning':
outhandler.setLevel(logging.WARNING)
ipchandler = UnixDomainSocketHandler(SwagFormatter(log))
log.addHandler(outhandler)
# logs are sent through IPC before writing to disk to prevent disk I/O blocking
log.addHandler(UnixDomainSocketHandler(SwagFormatter(log)))
log.addHandler(ipchandler)
+1 -2
View File
@@ -1,2 +1 @@
test_util
test_swaglog
test_common
+2 -5
View File
@@ -2,8 +2,7 @@ import os
import unittest
from uuid import uuid4
from common.file_helpers import atomic_write_on_fs_tmp
from common.file_helpers import atomic_write_in_dir
from openpilot.common.file_helpers import atomic_write_in_dir
class TestFileHelpers(unittest.TestCase):
@@ -11,14 +10,12 @@ class TestFileHelpers(unittest.TestCase):
path = f"/tmp/tmp{uuid4()}"
with atomic_write_func(path) as f:
f.write("test")
assert not os.path.exists(path)
with open(path) as f:
self.assertEqual(f.read(), "test")
os.remove(path)
def test_atomic_write_on_fs_tmp(self):
self.run_atomic_write_func(atomic_write_on_fs_tmp)
def test_atomic_write_in_dir(self):
self.run_atomic_write_func(atomic_write_in_dir)
+1 -1
View File
@@ -1,7 +1,7 @@
import numpy as np
import unittest
from common.numpy_fast import interp
from openpilot.common.numpy_fast import interp
class InterpTest(unittest.TestCase):
+27
View File
@@ -0,0 +1,27 @@
#include "catch2/catch.hpp"
#define private public
#include "common/params.h"
#include "common/util.h"
TEST_CASE("params_nonblocking_put") {
char tmp_path[] = "/tmp/asyncWriter_XXXXXX";
const std::string param_path = mkdtemp(tmp_path);
auto param_names = {"CarParams", "IsMetric"};
{
Params params(param_path);
for (const auto &name : param_names) {
params.putNonBlocking(name, "1");
// param is empty
REQUIRE(params.get(name).empty());
}
// check if thread is running
REQUIRE(params.future.valid());
REQUIRE(params.future.wait_for(std::chrono::milliseconds(0)) == std::future_status::timeout);
}
// check results
Params p(param_path);
for (const auto &name : param_names) {
REQUIRE(p.get(name) == "1");
}
}
+15 -13
View File
@@ -1,19 +1,14 @@
import os
import threading
import time
import tempfile
import shutil
import uuid
import unittest
from common.params import Params, ParamKeyType, UnknownKeyName, put_nonblocking, put_bool_nonblocking
from openpilot.common.params import Params, ParamKeyType, UnknownKeyName
class TestParams(unittest.TestCase):
def setUp(self):
self.tmpdir = tempfile.mkdtemp()
print("using", self.tmpdir)
self.params = Params(self.tmpdir)
def tearDown(self):
shutil.rmtree(self.tmpdir)
self.params = Params()
def test_params_put_and_get(self):
self.params.put("DongleId", "cb38263377b873ee")
@@ -28,9 +23,16 @@ class TestParams(unittest.TestCase):
self.params.put("CarParams", "test")
self.params.put("DongleId", "cb38263377b873ee")
assert self.params.get("CarParams") == b"test"
undefined_param = self.params.get_param_path(uuid.uuid4().hex)
with open(undefined_param, "w") as f:
f.write("test")
assert os.path.isfile(undefined_param)
self.params.clear_all(ParamKeyType.CLEAR_ON_MANAGER_START)
assert self.params.get("CarParams") is None
assert self.params.get("DongleId") is not None
assert not os.path.isfile(undefined_param)
def test_params_two_things(self):
self.params.put("DongleId", "bob")
@@ -81,19 +83,19 @@ class TestParams(unittest.TestCase):
self.assertFalse(self.params.get_bool("IsMetric"))
def test_put_non_blocking_with_get_block(self):
q = Params(self.tmpdir)
q = Params()
def _delayed_writer():
time.sleep(0.1)
put_nonblocking("CarParams", "test", self.tmpdir)
Params().put_nonblocking("CarParams", "test")
threading.Thread(target=_delayed_writer).start()
assert q.get("CarParams") is None
assert q.get("CarParams", True) == b"test"
def test_put_bool_non_blocking_with_get_block(self):
q = Params(self.tmpdir)
q = Params()
def _delayed_writer():
time.sleep(0.1)
put_bool_nonblocking("CarParams", True, self.tmpdir)
Params().put_bool_nonblocking("CarParams", True)
threading.Thread(target=_delayed_writer).start()
assert q.get("CarParams") is None
assert q.get("CarParams", True) == b"1"

Some files were not shown because too many files have changed in this diff Show More