nopenpilot/selfdrive/car
Ewout ter Hoeven 55390d273f
Convert format strings strings to f-strings (#23241)
* Convert all text strings to f-strings

Reformats all the text from the old "%-formatted" and .format(...) format to the newer f-string format, as defined in PEP 498. This requires Python 3.6+.

Flynt 0.69 was used to reformat the strings. 120 f-strings were created in 51 files.

F-strings are in general more readable, concise and performant. See also: https://www.python.org/dev/peps/pep-0498/#rationale

* revert pyextra changes

* revert ublox.py

Co-authored-by: Willem Melching <willem.melching@gmail.com>
2021-12-16 14:58:17 +01:00
..
chrysler Log actuators after applying rate limits in CarController (#23230) 2021-12-16 13:08:20 +01:00
ford Log actuators after applying rate limits in CarController (#23230) 2021-12-16 13:08:20 +01:00
gm Log actuators after applying rate limits in CarController (#23230) 2021-12-16 13:08:20 +01:00
honda Convert format strings strings to f-strings (#23241) 2021-12-16 14:58:17 +01:00
hyundai Log actuators after applying rate limits in CarController (#23230) 2021-12-16 13:08:20 +01:00
mazda Log actuators after applying rate limits in CarController (#23230) 2021-12-16 13:08:20 +01:00
mock Log actuators after applying rate limits in CarController (#23230) 2021-12-16 13:08:20 +01:00
nissan Log actuators after applying rate limits in CarController (#23230) 2021-12-16 13:08:20 +01:00
subaru Log actuators after applying rate limits in CarController (#23230) 2021-12-16 13:08:20 +01:00
tesla Log actuators after applying rate limits in CarController (#23230) 2021-12-16 13:08:20 +01:00
tests Convert format strings strings to f-strings (#23241) 2021-12-16 14:58:17 +01:00
toyota Log actuators after applying rate limits in CarController (#23230) 2021-12-16 13:08:20 +01:00
volkswagen Convert format strings strings to f-strings (#23241) 2021-12-16 14:58:17 +01:00
README.MD Update README.MD 2021-08-03 16:59:13 -07:00
__init__.py comma pedal: rename create_gas_command -> create_gas_interceptor_command 2021-11-20 20:13:58 -08:00
car_helpers.py Convert format strings strings to f-strings (#23241) 2021-12-16 14:58:17 +01:00
disable_ecu.py Hyundai longitudinal prerequisites (#22121) 2021-09-13 22:03:08 -07:00
fingerprints.py Convert format strings strings to f-strings (#23241) 2021-12-16 14:58:17 +01:00
fw_versions.py Convert format strings strings to f-strings (#23241) 2021-12-16 14:58:17 +01:00
interfaces.py Log actuators after applying rate limits in CarController (#23230) 2021-12-16 13:08:20 +01:00
isotp_parallel_query.py FW query: catch asserts from uds.py (#22456) 2021-10-07 10:34:59 +02:00
vin.py selfdrive/car 2020-01-17 10:58:43 -08:00

README.MD

Port structure

interace.py

Generic interface to send and receive messages from CAN (controlsd uses this to communicate with car)

carcontroller.py

Builds CAN messages to send to car

carstate.py

Reads CAN from car and builds openpilot CarState message

values.py

Fingerprints and absolute limits

radar_interface.py

Radar interface