Commit Graph

19 Commits

Author SHA1 Message Date
Robbe Derks
585c16cd2a 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>
2021-10-29 13:04:26 +02:00
Willem Melching
2abd288567 Write panda heartbeat lost in param (#21957) 2021-08-18 12:48:01 +02:00
Adeeb Shihadeh
f37731b06d small pandad speedup (#21168) 2021-06-06 16:20:39 -07:00
Adeeb Shihadeh
f04d6a9b3f log on startup when panda heartbeat is lost (#21151)
* log when heartbeat lost

* bump panda

* bump panda

* add to pandaState

* move that
2021-06-04 23:22:08 -07:00
Josh Smith
77321dbac4 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
2021-06-03 12:21:04 +02:00
Willem Melching
34328ba305 Remove panda set power functions (#20712)
* remove panda set power functions

* removed
2021-04-20 15:31:19 +02:00
Willem Melching
0e338d2b91 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
2021-03-24 14:44:39 +01:00
Adeeb Shihadeh
6264b5bb3b reset panda on startup (#20065)
Co-authored-by: Comma Device <device@comma.ai>
2021-02-11 15:33:22 -08:00
Adeeb Shihadeh
8c31ab3cee remove legacy reset line support (#19770) 2021-01-27 14:19:49 +01:00
Adeeb Shihadeh
ffa7e0cbdb 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>
2020-12-29 22:32:03 -08:00
Adeeb Shihadeh
8674b023ba HW abstraction layer (#19530)
* start hw refactor

* move that

* pins

* put that back
2020-12-16 21:30:23 -08:00
robbederks
57cd8c38b7 add legacy reset line support (#2625)
* add legacy reset line support

* clean up names

Co-authored-by: Comma Device <device@comma.ai>
2020-11-26 14:37:07 +01:00
Willem Melching
014e1521b3 add error handling to pandad get signature 2020-10-21 10:43:39 +02:00
Willem Melching
855f52c3e0 hub is handled by systemd gpio service (#2172) 2020-09-16 17:58:46 +02:00
Willem Melching
6bb2630eba Pandad: turn on panda power (#2073)
* pandad turn on panda power

* Add gpio.py

* needs bytes

Co-authored-by: Comma Device <device@comma.ai>
2020-08-24 16:56:29 +02:00
Willem Melching
9d83103b09 log bootstub version in pandad 2020-04-13 14:41:36 -07:00
Adeeb
e8cb6ea06a 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
2020-02-20 16:22:25 -08:00
Willem Melching
d9e054477b Panda signature needs to be bytes 2020-01-19 09:40:37 -08:00
George Hotz
2f9379a139 selfdrive/*.py 2020-01-17 11:03:42 -08:00