Commit Graph

25 Commits

Author SHA1 Message Date
Louis Velez e57375f1e2
CI: fix macOS test running (#1516)
* CI: fixes MacOS test running

* CI: adds coreutils for nproc

* CI: fixes based on PR

* cleanup

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2024-11-21 14:16:17 -08:00
Shane Smiskol 7cb3d4c021 ruff: ignore site_scons 2024-11-10 20:34:11 -08:00
Shane Smiskol b0a5cb3060 Add missing __init__.py 2024-11-10 20:33:38 -08:00
Shane Smiskol 359aa38656
Ford: cluster radar points (#1427)
* messy first draft with dbscan

* points -> keys

* not sure if necessary

* doesn't work

* it was a reference!!!!!!!!!1111!!!!1111111!!!!!!111 ugh

* todos

* more

* nope

* just want to test in-car

* Revert "just want to test in-car"

This reverts commit b280019da6.

* simple clustering

* no print

* hold points

* little faster

* ~4x faster

* little more

* now this matters

* cached property

* argmin

* no to_dict

* calculate means for new cluster once

* no need for deepcopy anymore!

* don't store points, pre-check length

* fix that

* comment

* hmm this is promising

* unused

* no np

* works pretty well

* store cluster center

* whoops

* >2x speedup on pc

* forgot this

* vectorize

* no pts

* more optimization

* 5x faster

* a list

* try

* fix

* fix radar errors

* fix

* fixes to pass checklist

* remove old stuff

* is this faster?

fix

* Revert "is this faster?"

This reverts commit 89f6cd3935.

* some clean up

* more clean up

* simplify

* no vals

* see if this is faster

* make it a fixme

* clean up

fix

* more

* final

* sheesh fix dRel

* fix static analysis

* fix more static
2024-10-30 01:11:34 -07:00
Jason Young c90858514c
Toyota: 2021-23 RAV4 Prime (#1287)
* from @pd0wm commaai/opendbc#1005

* from @pd0wm commaai/openpilot#31179

* we did need that flag rename

* those flags were numbered like that for a reason

* no more bustime

* add secOCKey to structs

* hack around new pitch value for now

* secOCKey placeholder

* help the test along for now

* codespell disapproves of my creative vision

* add crypto dependency

* the other one

* the other other one

* temp use SecOC branch of Panda

* i am the panda, for now

* propitiate static type checker

* on second thought, moving car.capnp is a good idea

* remove the SecOC key from CarParams

* remove SecOC key reading from Toyota port

* add secoc_key to CS/CC

* update SecOC key references

* default key in interfaces for tests

* more CarParams.SecurityConfig

* set secOcRequired at startup for SecOC car

* see if type checker likes this better

* santa please bring car.capnp back soon

* list -> flag

* diff reduction: won't need the flag rename

* add IDLE_COAST signal

* regen RAV4 DBC

* consolidate and remove ALT_GAS_MSG flag

* consolidate and remove GEAR_PACKET_HYBRID flag

* cleanup pitch signal

* cleanup can_gear

* cleanup SECOC_SYNCHRONIZATION

* more cleanup

* cleanup Mirai

* FLAG.value consistency, in case capnp move needs this

* not necessary, reduce diff with master

* prettier

* validation like this should be an offline test

* match non-SecOC LTA message

* follow secoc library move

* repack flag values

* whitespace fix

* cleanup stockAeb

* comment not necessary

* add explicit FIXME for pandacan ref

* how did that sneak back in

* mention why CarDocs are missing

* use carlog to note wrong key problems

* limit logging volume

* prep for new CARS.md infra

* pandacan back to panda master
2024-10-04 16:12:17 -04:00
Shane Smiskol ff2ac79e07
move car.capnp to opendbc (#1339)
* move car.capnp to opendbc

* actuators and some types

* fix all tests!

* not needed

* lint stuff

* missing
2024-10-03 16:38:53 -07:00
Maxime Desroches 6619c18f1f
distutils comment (#1222)
comment
2024-09-04 14:48:02 -07:00
Maxime Desroches 1e6e045f64
add setuptools for python3.12 (#1221)
setuptools
2024-09-04 14:20:59 -07:00
Shane Smiskol ebb6d22ede Revert "pytest: add default fixture option for pytest-asyncio"
This reverts commit 81b081bbc2.
2024-09-04 14:11:29 -07:00
Shane Smiskol 81b081bbc2 pytest: add default fixture option for pytest-asyncio
https://github.com/commaai/openpilot/pull/33442
2024-09-04 13:59:50 -07:00
Adeeb Shihadeh f2fa755ab7
longitudinal profile runner (#1197)
* long profiles

* start with creep

* lil cleanup

* corolla updates

* cleanup

* 2s

* plot is a little nicer

* strict mode

* cleanup

* unused

* fix that

---------

Co-authored-by: Comma Device <device@comma.ai>
2024-08-30 13:48:13 -07:00
Adeeb Shihadeh cbad7f0066
simple joystick example (#1200)
* setup runner

* port over joystickd

* fix mypy

* set accel and steer
2024-08-29 15:12:44 -07:00
Shane Smiskol 7d6f7cbe71 add banned apis 2024-08-20 15:45:43 -07:00
Adeeb Shihadeh 8866aa7a75 this was getting installed from panda 2024-08-18 12:08:53 -07:00
Adeeb Shihadeh d377af6c2d pyyaml is unused 2024-08-18 11:01:09 -07:00
Adeeb Shihadeh 3537404a18
no docker (#1081)
* cleanup dependencies

* all

* install

* less

* try this

* slimmm

* skip docker

* silence that one

* disable for now

* e

* fix build

* bring that back

* not ready yet
2024-08-17 12:04:46 -07:00
Shane Smiskol 9a53f08080
move selfdrive/car to opendbc (#1049)
* move most of /car

* rename selfdrive.car imports to opendbc.car

* move some car tests

move some car tests

* fix car tests

* fix actions?

* add panda ignore to pytest

* need these ignores from openpilot

* fix tests for outside pip install (openpilot/local)

forgot
2024-08-17 00:38:33 -07:00
Shane Smiskol 132b1a66b0
Bump pre-commit hooks, more coverage (similar to openpilot) (#1078)
* pytest defaults

* move some stuff to pyproject

* bump codespell

* more like openpilot
2024-08-16 22:24:44 -07:00
Adeeb Shihadeh 1e9f853615 fix ruff warnings 2024-08-01 23:17:16 -07:00
Shane Smiskol 5c16f7ec29
define project (#1073)
* define project

* spacing

* cleanup
2024-08-01 16:40:51 -07:00
Shane Smiskol a40652d341
move to nested opendbc/ (#1069)
* move to nested opendbc/

* get CI working / similar to msgq

* move dbcs to dbc/

* run pre-commit outside docker

* move generator to dbc/

* fix path in print
2024-07-31 22:46:43 -07:00
Justin Newberry 98c2b11378
Ruff: propogate config from OP (#916) 2023-08-14 12:52:47 -07:00
Justin Newberry 4b44eb6c3c
CI: Pylint to ruff (#911) 2023-08-07 15:26:46 -07:00
Cameron Clough aa044ea945
add poetry pyproject required fields 2023-06-18 16:06:42 +01:00
Cameron Clough 7e1f7d5b7e
setup cython linting (#851) 2023-06-14 15:55:49 +01:00