Commit Graph

1600 Commits (spacecruft)

Author SHA1 Message Date
Robbe 606f1d9131 Fixed RTC on non-uno boards, second try. Cannot work when there is no xtal. 2019-10-30 18:30:00 -07:00
robbederks 933c757705
Fix RTC on non-uno boards (#311)
* Fan and IR at 0 when in power savings mode

* Initialise RTC for all boards, not only uno. Fixes hang while getting time from non-initialized RTCs
2019-10-30 18:11:30 -07:00
rbiasini 48d0d0c782
VW button spam: fix safety and add tests (#306)
* VW button spam: fix safety and add tests

* button spam is actually sent on bus 2

* Fix safety test. Still need to add gas safety test

* added gas safety test to VW and using consistent nomenclature

* style fixes
2019-10-29 15:11:42 -07:00
robbederks 6cccf969ab
Fan and IR at 0 when in power savings mode (#309) 2019-10-29 12:36:47 -07:00
Riccardo 05373282a2 board get_sdk scripts were left on python2 2019-10-29 11:51:37 -07:00
Riccardo de18a7ef1a bump version after uno merge 2019-10-25 16:29:47 -07:00
Robbe 1965817d30 Changed default values for testing 2019-10-25 16:24:53 -07:00
rbiasini a12a148d5f Uno (#274)
* Added uno

* Added usb switch support

* Added PWM and IR power functions

* Implemented bootkick

* Added uno as a new hw type

* Bumped version

* Added fan control and tach readout

* WIP: RTC support

* Working RTC

* Fixed python

* Misra compliance

* Added USB control messages for fan/IR power

* Added USB commands + tests for fan & IR control. Fixed bootstub and pedal compilation

* Added IR and fan to power saving mode

* Changed defaults

* Fix safety considering uno

* passing safety now

* Minor UNO tweaks

* Fixed version

* More minor temporary tweaks

* Removed usb load switch from uno

* Added power control for shutting down the fan completely

* Disable IR LEDs by default

* Fixed linter issue

* Linter fix #2
2019-10-25 16:22:42 -07:00
Riccardo 7d29dc5a24 bump panda version. We really need a better way 2019-10-25 12:57:18 -07:00
Riccardo 40075321dc VW: stricter limits to comply with comma safety policy 2019-10-24 19:52:16 -07:00
Riccardo e2e2be92c9 add safety mode to health packet 2019-10-24 15:33:27 -07:00
Riccardo 101238c7f6 turned on VW ignition based CAN logic 2019-10-22 17:27:35 -07:00
Riccardo a0d8d5dae7 fix misra 5.3: check_ignition is intended as check_started and can't be used twice 2019-10-22 16:12:18 -07:00
Riccardo ea636de615 made check_ignition function to both look at ignition_line and ignition_can 2019-10-22 15:27:55 -07:00
rbiasini 1102e69652
make ignition logic common for all cars (#303)
* make ignition logic common for all cars

* ignition_can is not a safety thing. move it to can drivers

* bump version

* gm safety passive is deprecated

* move tx 1 on logic into board specific headers.
2019-10-22 15:10:43 -07:00
Riccardo 3a110c6f66 bump version after CMSIS core upgrade 2019-10-16 15:22:27 -07:00
dekerr 55dfa52306 Update core to CMSIS 5.6 release (#251)
* initial commit

* release version
2019-10-16 15:19:01 -07:00
Riccardo ee864907ce fix linter 2 2019-10-16 11:55:00 -07:00
Riccardo f410b110d8 fix linter 2019-10-16 11:52:55 -07:00
Greg Hogan 55957d6e4e proper python3 exception inheritance 2019-10-16 00:15:16 -07:00
Greg Hogan 6ba0f47b56 fix linter errors 2019-10-15 23:52:52 -07:00
Greg Hogan 5c49fe050e
Merge pull request #145 from gregjhogan/uds
Unified Diagnostic Services (UDS) panda library (ISO 14229)
2019-10-15 23:42:22 -07:00
Greg Hogan 0f361999bd timeout is float 2019-10-15 23:38:24 -07:00
Riccardo 396d6aad58 safety_replay only installs few extra requirements 2019-10-15 14:30:02 -07:00
Riccardo 25af7d3019 Misra also need python 3 env 2019-10-15 14:25:34 -07:00
Riccardo 7434c5ce28 centralize requirements for tests 2019-10-15 14:21:33 -07:00
Riccardo a0c37c70ab coverage not needed in linter reqs 2019-10-15 14:08:29 -07:00
rbiasini fce38a91d7
Linter python (#299)
* Added pyflakes and Pylint for python

* Actually run linter in CI

* some simple pyflakes changes

* Add flake8 to panda reqs for linter test

* flake8 errors are fixed

* run flake8 in regression tests

* meant to run flake8

* hack to ignore unused import

* bug

* fix bugs in tucan_loopback

* Another fix by using set_safety_mode

* added pylintrc file

* more fixes and enabled pylint as well

* Fix pylint in circleci

* added linter to readme
2019-10-15 14:03:31 -07:00
Riccardo 62e2f5caac update cppcheck commit 2019-10-15 13:57:36 -07:00
Greg Hogan 711810d2f0 more uds debug 2019-10-15 12:14:09 -07:00
Greg Hogan 4454e3a6bb better CAN comm abstraction 2019-10-15 12:07:19 -07:00
rbiasini 6b1f28f574
fix more encoding and some bytes cleanup (#300) 2019-10-15 12:05:33 -07:00
Greg Hogan 43adad3116 fix WARNING_INDICATOR_REQUESTED name 2019-10-14 17:32:23 -07:00
Greg Hogan 9c857da379 0x 2019-10-14 17:32:23 -07:00
Greg Hogan b64d6fa5d2 typing 2019-10-14 17:32:23 -07:00
Greg Hogan 768fdf7e19 bytes() > chr().encode() 2019-10-14 17:32:23 -07:00
Greg Hogan 1be15ea934 custom errors from thread 2019-10-14 17:32:23 -07:00
Greg Hogan 68da8315f3 more python3 2019-10-14 17:32:23 -07:00
Greg Hogan eb358e81ca uds lib example 2019-10-14 17:32:23 -07:00
Greg Hogan 4f288586d5 updates for python3 2019-10-14 17:32:23 -07:00
Greg Hogan 932745f62b support tx flow control for chunked messages 2019-10-14 17:32:23 -07:00
Greg Hogan b1c371292c add timeout param 2019-10-14 17:32:23 -07:00
Greg Hogan cdf2f626ba bug fixes 2019-10-14 17:32:23 -07:00
Greg Hogan b1a3195770 fix rx message filtering bug 2019-10-14 17:32:23 -07:00
Greg Hogan 80fb6a6fa0 convert uds lib to class 2019-10-14 17:32:23 -07:00
Greg Hogan 59cd2b47f9 handle separation time in microseconds 2019-10-14 17:32:23 -07:00
Greg Hogan 4429600d8e fix separation time parsing 2019-10-14 17:32:23 -07:00
Greg Hogan c641e66f72 fix typo 2019-10-14 17:32:23 -07:00
Greg Hogan 48b8dcc6f9 fix flow control delay scale 2019-10-14 17:32:23 -07:00
Greg Hogan 78f413d88f flow control delay 2019-10-14 17:32:23 -07:00