Commit Graph

32 Commits

Author SHA1 Message Date
Adeeb Shihadeh 94f8115236 Log panda signature to param (#23670)
old-commit-hash: 8d9afa7171acd38d5c23673fe1e1ec9d6ac6c9ee
2022-01-30 13:07:05 -08:00
Willem Melching f2b644eeb2 pandad: only reset pandas on first run (#23511)
old-commit-hash: 15380139ef6663325b7ea01102812fadb2607297
2022-01-13 15:52:59 +01:00
Adeeb Shihadeh 63d9bed046 pre-commit: fix exclude patterns (#23375)
old-commit-hash: a1a9a0f342bc40540d31d1cfbc10c6263a748ef3
2022-01-03 15:24:34 -08:00
George Hotz 86a39e838b Add More Types for mypy (#23268)
* mypy passes

* a few more

* a few in manager

* more types, will lint

* more

* simple types

* events type

* Update selfdrive/thermald/thermald.py

* Apply suggestions from code review

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: dc96d4bee7b898172a6a15de4799af0e2d35605e
2021-12-28 18:07:00 +01:00
Ewout ter Hoeven f206ebd054 Pyupgrade 3.6: Update syntax with Python 3.6+ features (#23305)
Updated Python code with Python 3.6+ features:
- utf-8 encoding is now the default (PEP 3120)
- Replace list comprehensions by Generator Expressions (PEP 289)
- Replace yield loop by yield from (PEP 380)
- Remove the (object) subclass when defining a class
- Replace the IOError alias by OSError (PEP 3151)
- Define sets with curly braces {} instead of set()
- Remove "r" parameter from open function, which is default

Co-Authored-By: Adeeb Shihadeh <8762862+adeebshihadeh@users.noreply.github.com>
Co-Authored-By: GregorKikelj <96022003+GregorKikelj@users.noreply.github.com>

Co-authored-by: Adeeb Shihadeh <8762862+adeebshihadeh@users.noreply.github.com>
Co-authored-by: GregorKikelj <96022003+GregorKikelj@users.noreply.github.com>
old-commit-hash: 332f568a8241fba9459cb70c76840b9670e6993a
2021-12-24 11:18:39 -08:00
Robbe Derks dbe4641e04 Multipanda support (#22402)
* squash all PR commits for easy rebase

* merged all panda rx can into one message

* fix buffers in can_send

* more cleanup and minor fixes

* fix even more stuff

* fix non-allocated send buffer

* make connecting more robust

* fix bus offset

* fix controls_mismatch?

* simplify mismatch check

* C++ style struct

* fix connect loop

* update ref

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 585c16cd2aba6e2504c2427aaf1855b97035eb41
2021-10-29 13:04:26 +02:00
Willem Melching 5bdd6a5165 Write panda heartbeat lost in param (#21957)
old-commit-hash: 2abd288567d849dc52bf664f3c536908f2a183c7
2021-08-18 12:48:01 +02:00
Adeeb Shihadeh 5553f30a57 small pandad speedup (#21168)
old-commit-hash: f37731b06d083740444a9988152842bb5faea298
2021-06-06 16:20:39 -07:00
Adeeb Shihadeh f8cd0061c8 log on startup when panda heartbeat is lost (#21151)
* log when heartbeat lost

* bump panda

* bump panda

* add to pandaState

* move that
old-commit-hash: f04d6a9b3ff9e8558c2711be14797971c3a83d87
2021-06-04 23:22:08 -07:00
Josh Smith 2cae3a3799 Add type hints, small cleanups (#21080)
* improve tools.lib.kbhit and tools.sim.lib.keyboard_ctrl

* unpack more efficiently

* minor improvements

* agnos.py match spec better

* manual_ctrl test missing queue arg

* fix incorrect type annotation

* queues are generic

* varname reuse resulting in incorrect type inference

* bytes().hex() rather than bytes.hex(bytes())

* a bit of type hinting stuff
old-commit-hash: 77321dbac4ebfedf9cb5e9085e16055346299749
2021-06-03 12:21:04 +02:00
Willem Melching 1d79459667 Remove panda set power functions (#20712)
* remove panda set power functions

* removed
old-commit-hash: 34328ba3056557e2efc614ca35e8d04a480b6caa
2021-04-20 15:31:19 +02:00
Willem Melching 285e086d80 use scons to build panda fw (#20457)
* use scons to build panda fw

* add arm gcc to dockerfile

* install gcc on macOS

* pandad shutdown test is flaky and broken due to faster startup

* bump panda
old-commit-hash: 0e338d2b91f35af6a7222eeb414951cd88784092
2021-03-24 14:44:39 +01:00
Adeeb Shihadeh 198115bd9d reset panda on startup (#20065)
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 6264b5bb3b1306e068dab8fdbb64b3c4bf600fc3
2021-02-11 15:33:22 -08:00
Adeeb Shihadeh f2ad4e28a6 remove legacy reset line support (#19770)
old-commit-hash: 8c31ab3cee7c2f3a4b91c223aa5c0eedae533fe6
2021-01-27 14:19:49 +01:00
Adeeb Shihadeh 5bbe4f3d52 manager tests + make all processes exit cleanly (#19595)
* manager tests

* logcatd exits cleanly

* sigint

* boardd

* multiple dbus connections hangs for some reason

* clocksd proclogd

* network type from thermal

* fix tests

* fix android logcatd

* fix mac

* fix mac proclogd

* move on device athena tests

* build first

* build first

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: ffa7e0cbdb0859751685caae1321d3ccf732fed9
2020-12-29 22:32:03 -08:00
Adeeb Shihadeh b950cab874 HW abstraction layer (#19530)
* start hw refactor

* move that

* pins

* put that back
old-commit-hash: 8674b023bab2b44405139ceec5785a389f837682
2020-12-16 21:30:23 -08:00
robbederks c038a38f88 add legacy reset line support (#2625)
* add legacy reset line support

* clean up names

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 57cd8c38b7f9ce62b522ee3d0a51f9b2561af8c0
2020-11-26 14:37:07 +01:00
Willem Melching c9341b0735 add error handling to pandad get signature
old-commit-hash: 014e1521b337c71cfefdb929a7f8f7789c6860b5
2020-10-21 10:43:39 +02:00
Willem Melching 291d150a3c hub is handled by systemd gpio service (#2172)
old-commit-hash: 855f52c3e0c8fc732d472a888eb2c5dff466c6e6
2020-09-16 17:58:46 +02:00
Willem Melching 22e0a2474a Pandad: turn on panda power (#2073)
* pandad turn on panda power

* Add gpio.py

* needs bytes

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 6bb2630eba1bff2db745e56d639fce8b85ec6d0d
2020-08-24 16:56:29 +02:00
Willem Melching bd9ca30ee8 log bootstub version in pandad
old-commit-hash: 9d83103b0980cd7f5f7156cf3e730a5c57263bb6
2020-04-13 14:41:36 -07:00
Adeeb 65a2c62114 Abstract common events + event cleanup (#1129)
* too many if

* unused

* whitespace

* key

* sefldrive/car/*

* no more gctx

* lower

* start abstracting common events

* all cars

* start small

* all cars

* reverse gear

* wrongCarMode

* wrongGear

* espDisabled

* steerUnvailable

* make linter happy

* c isn't used

* fix esp_disabled in VW

* update ref

* more red

* more cleanup

* fix subaru

* update ref

old-commit-hash: e8cb6ea06a2470dd89a6ad8fd17bd1d1b62034cc
2020-02-20 16:22:25 -08:00
Willem Melching 6ced97ed33 Panda signature needs to be bytes
old-commit-hash: d9e054477b
2020-01-19 09:40:37 -08:00
George Hotz a7fa20b566 selfdrive/*.py
old-commit-hash: 2f9379a139
2020-01-17 11:03:42 -08:00
George Hotz 81dd5a50cf root commit
old-commit-hash: 6c33a5c1f3
2020-01-17 10:02:52 -08:00
Willem Melching ae43cff4e8 Panda signature needs to be bytes
old-commit-hash: 21572ce67b
2020-01-19 09:42:10 -08:00
Vehicle Researcher fa4b6f33d1 openpilot v0.7.1 release
old-commit-hash: 8da8b6135c
2020-01-15 14:05:04 -08:00
Vehicle Researcher b713eae9f8 openpilot v0.6.6 release
old-commit-hash: d7f0b402a8
2019-11-04 15:13:52 -08:00
Vehicle Researcher 89d1d84c70 openpilot v0.6.5 release
old-commit-hash: cf80f7a28b
2019-10-09 18:43:53 +00:00
Vehicle Researcher 9abcfabc5f openpilot v0.6 release
old-commit-hash: 8a9ed94f5f
2019-06-28 21:11:30 +00:00
Vehicle Researcher e41a943dd0 openpilot v0.5 release
old-commit-hash: de33bc4645
2018-07-12 18:52:06 -07:00
Vehicle Researcher 81ebf6b142 openpilot v0.3.8.2 release
old-commit-hash: 187a70f760
2017-10-31 02:27:39 -07:00