Commit Graph

56 Commits (spacecruft)

Author SHA1 Message Date
Willem Melching e0a706e4f0
Stricter pylint (#550)
* stricter pylint

* Add as argument
2020-06-02 16:27:07 -07:00
Adeeb d7f7b14118
Enable almost all Flake8 checks (#548)
* fix W391

* E262

* E703

* W293

* some E

* E231

* some more E

* E225

* more E

* E252

* no tabs

* more tabs

* E701

* uds.py

* almost all of them

* only e265 left

* not sure why this is triggering on commented out code

* ignore esptool
2020-06-01 01:49:26 -07:00
Adeeb Shihadeh 3d5a7179b0 fix whitespace after opening bracket 2020-05-31 21:36:34 -07:00
Adeeb Shihadeh 275e76c2b2 fix linter complaint about too many blank lines 2020-05-31 17:20:47 -07:00
Adeeb Shihadeh 9102c16118 two spaces before inline comment 2020-05-31 14:07:01 -07:00
Drew Hintz 592c2c864d
add support to can_unique.py for Cabana CSV format. (#506)
* add support to can_unique.py for Cabana CSV format.

also fix python3 issue where open() was in binary mode, but we want text
mode.

* consolidate duplicated code

* fix typo caught by the linter
2020-04-15 16:56:19 -07:00
Greg Hogan ac0fd5dd5d query fw versions example - use extended diagnostic session 2019-12-13 11:45:10 -08:00
Clay Dugo 000282e544 Fix can_logger.py to run correctly on python3 (#392) 2019-11-27 11:11:55 -08:00
rbiasini 597436d32a
NOOUTPUT safety mode is now SILENT. NOOUTPUT still exists but keeps C… (#388)
* NOOUTPUT safety mode is now SILENT. NOOUTPUT still exists but keeps CAN live

* README mention of 'no output'

* mispelled
2019-11-20 11:56:26 -08:00
Greg Hogan d44b5621cd fix print in example 2019-11-17 11:19:59 -08:00
Greg Hogan 02d579a537 functional addr handling 2019-11-17 09:30:06 -08:00
Greg Hogan 8138fc14c8 uds: handle function addrs and fw version query example 2019-11-16 18:54:28 -08:00
Greg Hogan 501db8d199 uds drain before send and use has_obd() 2019-11-05 18:40:21 -08: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 5c49fe050e
Merge pull request #145 from gregjhogan/uds
Unified Diagnostic Services (UDS) panda library (ISO 14229)
2019-10-15 23:42:22 -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
Greg Hogan eb358e81ca uds lib example 2019-10-14 17:32:23 -07:00
rbiasini 162f4853df
fix chr to bytes conversions (#298) 2019-10-13 18:15:04 -07:00
rbiasini f9053f5df4
more Python 3 fixes, attempting to fix jenkins wifi regresison test (#295)
* more Python 3 fixes, attempting to fix jenkins wifi regresison test. Not successful, but closer.
2019-10-10 12:34:52 -07:00
Riccardo 2dc34096a0 2to3 applied 2019-09-24 22:33:46 -07:00
Riccardo ffa68ef711 undo unnecessary brackets for print 2019-09-24 18:07:05 -07:00
Riccardo dbc248027e Fix all the prints with 2to3, some need to be undo 2019-09-24 18:02:15 -07:00
Riccardo 5a7aeba0f5 xrange is gone 2019-09-24 17:56:55 -07:00
Riccardo 1e2412a297 env python -> env python3 2019-09-24 17:50:53 -07:00
dekerr 45d0d286f4 remove whitespace (#255) 2019-07-19 19:35:50 -07:00
Riccardo cd104e2625 Vin query msg is 0x7df 2019-05-22 13:16:19 -07:00
Riccardo Biasini 223323a861 Examples: fixed import bug 2019-05-22 11:49:54 -07:00
ubuntu 18c2e69ed7 Fix query_vin_and_status.py require python 3.7 2019-05-02 09:48:06 -07:00
Adam Urban c0b1ef2c62 Example to get wifi password from panda over USB using python library 2018-08-06 16:02:17 -04:00
AllWashedOut d8fc9ff4e8
Update tesla_tester.py 2018-06-15 12:54:37 -07:00
AllWashedOut 2a8c2c21c4
Strengthen VIN detection
Replaces a counter with a check of the dictionary contents to work around a potential bug: if the same VIN piece were received twice, it would still have incremented the counter.
2018-06-14 17:48:31 -07:00
adhintz de2b19eebe add support for multiple buses to can_unique and can_bittransition
output data in sorted order.
2018-03-09 19:36:04 -08:00
George Hotz be828991ae despite it being bad code, move isotp 2018-03-09 17:37:47 -08:00
George Hotz 81e6b0dc98 fix bug 2018-03-08 18:18:35 -08:00
George Hotz 083cd12875 should have bounty to refactor that ish 2018-03-08 15:10:35 -08:00
George Hotz b65d30cf18 bad asserts 2018-03-08 15:05:19 -08:00
Jennifer Strange b2e6c3fac0 isotp untested support for subaddr 2018-03-08 14:39:36 -08:00
Greg Hogan 858d150e6b added script to find bits that transition from 0 to 1 2018-03-07 13:57:03 -06:00
George Hotz b5e4962560 leave msgs around in isotp 2018-01-22 21:15:41 -08:00
George Hotz 0acce2df19 add recvaddr support 2018-01-22 18:55:10 -08:00
George Hotz 09ab8f6290 add sendaddr support to isotp 2018-01-07 14:31:42 -08:00
Drew Hintz a5f99b5346 update can_unique.py for new can_logger.py format 2017-11-20 22:27:25 -08:00
Drew Hintz 80d2b1fd56 guide to using can_unique.py 2017-11-12 19:27:48 -08:00
Drew Hintz eaff982294 Given an interesting CSV file of CAN messages and a list of background CAN
messages, print which bits in the interesting file have never appeared
in the background files.
2017-11-12 19:27:48 -08:00
Adam Urban 160c9c0809 Add tesla VIN decoder 2017-11-12 15:15:23 -08:00
Adam Urban c58fbdc3b4 Adding a an example for outputting CAN data to a tesla from Panda 2017-11-12 15:15:23 -08:00
Adam Urban 1a7b95e684 Adding 0x to message to Excel doesn't trim leading zeros 2017-11-12 15:15:23 -08:00
Adam Urban acf2377bb7 Add message length column 2017-11-12 15:15:23 -08:00
Adam Urban bc7f21f1a4 Show address in hex to match cabana 2017-11-12 15:15:23 -08:00