Commit Graph

741 Commits

Author SHA1 Message Date
Kirk Miller 9c5a978027
Nissan Leaf: add user brake signal (#458) 2021-11-02 23:08:01 -07:00
Jason Young 53fefa1d81
VW PQ: Corrections to Lenkhilfe_3 (#463) 2021-11-02 20:29:13 -07:00
Mayfield fc71f723ee
enable wshadow (#461)
* enable Wshadow flag

* specify cereal commit

* exclude cython

Co-authored-by: Willem Melching <willem.melching@gmail.com>
2021-11-02 14:40:00 +01:00
cydia2020 eaeadfcb53
Toyota: expand toyota ACC_CONTROL signals (#457)
* expand toyota ACC_CONTROL signal and run generator

* wrong address

* add signal definition and run generator

* add more definitions and run generator

* run generator

* update signal def and run generator

1ce1b041fb068985|2021-10-25--17-57-01

* set_me_x3 makes no sense here

* add definition and run generator

* add radar dirty message

and fix some ugliness
2021-11-01 11:59:38 +01:00
danielzmod c8d7cb4cc6
Volvo: Turn signal and brakepress signal update for v40 and byte order asthetic fix for v40/v60. (#459) 2021-10-31 15:06:49 -07:00
Willem Melching c229621003 allow including readme in openpilot 2021-10-27 11:54:03 +02:00
Willem Melching 6a717367ae do not run scripts on import 2021-10-26 14:12:38 +02:00
cydia2020 229e9fffd8
Toyota: PCS indicator signal is actually 2 bits (#456) 2021-10-20 14:52:42 -07:00
Willem Melching 071cedca61 toyota PCS_INDICATOR, fix signal start after size change 2021-10-20 16:11:04 +02:00
Marc Wimmershoff 8a62233a83
Python DBC CAN encoder, fix scale/offset (#428)
* Bugfix in dbc CAN encoder

While encoding, we need to subtract the offset first before we apply the factor.

* Update dbc.py

* Forgot to add import for assert_almost_equal

* test against C++ can packer

* turn into unittest

Co-authored-by: Willem Melching <willem.melching@gmail.com>
2021-10-20 16:05:43 +02:00
Willem Melching d5670d5eac toytoa PCS_INDICATOR fix small typos 2021-10-20 16:05:21 +02:00
cydia2020 e06d204e40
Toyota PCS Off Indicator (#454)
* add PCS indicator signal

* fix typo and run generator
2021-10-20 16:01:25 +02:00
Willem Melching c7caba4a5c
C++ CAN Packer, add test for scale/offset (#455) 2021-10-20 15:48:15 +02:00
cydia2020 df8d3e63f0
Toyota PCS Off Signal (#452)
* pcs_off_signal

* generate signals with generator

* PCS sensitivity value

* better signal name

* Update generator/toyota/_toyota_2017.dbc

* run generator

* remove extra and run generator again

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-10-19 21:52:57 -07:00
Kevin Robert Keegan 735d330983
Toyota: Add SDSU signals to community DBC (#451)
* Follow Distance Button Signal Forwarded from sDSU

The sDSU forwards the signal from the follow distance button:
b5120f6427

* Move sDSU DBC to Comma File
2021-10-19 14:03:09 -07:00
Robbe Derks d597599ebe
DAS_control is also on the main bus (#450) 2021-10-16 00:07:54 +02:00
Adeeb Shihadeh 088c07acc5 bump pre-commit version 2021-10-14 14:21:57 -07:00
Adeeb Shihadeh f2ba57138a bump pre-commit hook versions 2021-10-14 13:12:05 -07:00
Adeeb Shihadeh f03b406e38 update python to 3.8.10 2021-10-13 22:19:16 -07:00
Robbe Derks 962a412f8b
powertrain DBC (#432) 2021-10-09 14:05:30 +02:00
Willem Melching 8ca52eb1f8
Honda Bosch: imperial/metric status (#431) 2021-10-04 18:41:30 +02:00
Jafar Al-Gharaibeh 1bf5b62008
Mazda: Cruise Speed (#430) 2021-09-24 16:53:17 -07:00
Greg Hogan efd84f9445
hyundai: radar does not output elevation (#429) 2021-09-23 13:42:02 -07:00
Greg Hogan 4dff6e7e33
hyundai: update mando radar signal names (#427)
* hyundai: update mando radar signal names

* only one zero field

* more descriptive message name
2021-09-16 18:32:07 -07:00
Greg Hogan 9d1e6f328d
hyundai: mando front radar dbc (#425)
* hyundai: mando front radar dbc

* add vision messages

* more messages

* remove duplicate msgs

* only used msg

* fix speed scale

* signal names

Co-authored-by: Willem Melching <willem.melching@gmail.com>
2021-09-15 14:29:33 -07:00
Jason Young d8ad386e40
Stellantis: RAM 1500 DBC, wave 1 (#424)
* Stellantis: Initial WIP DBC

* add more SWCM signals

* ABS yaw rate and accels, auto high beam passthru

* fix STEER_ANGLE signal

* official Stellantis control module names
2021-09-14 23:08:42 -07:00
qadmus 2d12cda01f
GM: brake pedal position sensors and normalized/scaled brake/decel signal (#361) 2021-09-13 19:03:55 -07:00
Jafar Al-Gharaibeh e4d1554d34
Mazda: Main Cruise Control Available Signal (#423)
* Cruise Available Signal

* Add description to Radar distance settings
2021-09-11 17:13:31 -07:00
Edgy 61cca0a81a
VW PQ: Add Braking and ACC led control messages (#422)
* Add PQ Braking and ACC led control CAN messages

mMotor_Bremse used to control braking on cars that don't support ACC.
mAWV used to control ACC led in dashboard.

* Update vw_golf_mk4.dbc

Co-authored-by: Jason Young <46612682+jyoung8607@users.noreply.github.com>

* Update vw_golf_mk4.dbc

Co-authored-by: Jason Young <46612682+jyoung8607@users.noreply.github.com>

* Update vw_golf_mk4.dbc

Co-authored-by: Jason Young <46612682+jyoung8607@users.noreply.github.com>

Co-authored-by: Jason Young <46612682+jyoung8607@users.noreply.github.com>
2021-09-06 18:01:24 -07:00
martinl 68bab3746f
Subaru Global Dash state and LKAS messages (#403)
* squash merge crispin subaru_global_updates

* Update ES_LKAS_State for 2020+ models

* run generator

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-09-03 15:52:40 -07:00
Dean Lee b6ceded26b
use std::string for SignalPackValue::name (#390) 2021-09-02 14:25:47 -07:00
martinl 83afde21fa
Do not reverse multiple includes order in dbc templates (#418)
* no reverse

* run generator

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-09-02 14:24:49 -07:00
Omar Alam bb8112f251
Add LFA button and speed limit signal for newer Hyundai cars. (#412)
* Add speed limit message for hyundai navigation systems

* Move comment to bottom of dbc

* Add LFA button pressed signal
2021-09-02 14:03:16 -07:00
John Belmonte ac37f4885f
clean up CANDefine constructor (#417)
* clean up CANDefine constructor

explicit `d[foo] = {}` not needed if `d` is `defaultdict(dict)`

* cleanup

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-09-02 13:53:06 -07:00
Andy Goetz 344ce262d1
GM: updated Longitude with correct offset (#410) 2021-09-02 13:44:55 -07:00
martinl 78c639f813
Subaru: Global + Pre-Global ACC speed units signals (#414) 2021-09-02 13:40:38 -07:00
cydia2020 93a72553c8
toyota parking brake signal (#407) 2021-08-30 22:19:25 -07:00
cydia2020 d2e55020ab
toyota door lock signals (#408) 2021-08-30 22:12:42 -07:00
John Belmonte 3afceadb84
Expand Honda Fit DBC to support HR-V and Freed (#419)
* add GAS_PEDAL message (HR-V)
  * add DRIVERS_DOOR_OPEN field to SCM_BUTTONS (HR-V and Freed)
  * honda_hrv_touring_2019_can is retired

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-08-30 21:54:44 -07:00
cydia2020 7c49c7ef66
Toyota Daytime Running Light (#406) 2021-08-30 21:39:24 -07:00
Willem Melching 23a500ef83
Fix CI: export common and add numpy includes (#421)
* Fix CI: export common in SConstruct

* add numpy includes

* add numpy to requirements
2021-08-30 17:53:14 -07:00
sshane 80e7b94ae9
Toyota: define ACC_TYPE signal (#409) 2021-07-08 19:30:18 -07:00
Chris Souers a76084eddc
Honda Bosch: Add new LKAS HUG messages for 2021+ models (#372)
* Support checksum for extended IDs on 2021 Honda Bosch

Add 2021 Honda Accord Hybrid 2.0T Touring

Update can/common.cc

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>

Yield a proper 4 bit value.

less space

Revert odyssey changes

Remove RDM signal def

Add new BRAKE_HOLD bits

- From route: 085ac1d942c35910|2021-05-08--17-44-16

Update can/common.cc

* just move to _bosch_2018

* delete that

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-07-07 13:13:37 -07:00
sshane 1e9219759b
Define Hyundai gears in dbc (#405)
* Define Hyundai gears in dbc

* combine clusters into one signal
2021-06-29 14:30:21 -07:00
streber42 6a6468c0b8
Updated Chevrolet Volt HV management messages (#345)
* Added High Voltage Management to powertrain file.

* Removed non high voltage items.
Added units.

* Fixed up cell voltages to be right.
Trying to decipher the rest of Pack_stats, charger_stats.
Added Charger command and parameters, Coolant_temp, AC_stats (needs scaling),
some unknown message that is either connection or charging indicator.

* Add messages for Chevy Volt APM 14V Power Modules on the Powertrain
expansion bus

* Add pack_current signal to BECM

* remove trailing whtiespace

* Fix 0x460 to decode inlet and outlet coolant temps correctly

* Charge stats signals corrected

* Fix BECM pack current scaling
Add charger mains and status decoding

* revert that

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-06-23 14:04:30 -07:00
cydia2020 ebe6b00b79
toyota light sensor (#393) 2021-06-23 14:02:47 -07:00
sshane e3216de83b
Fix steering rate signs for Hondas (#404)
* Fix steering rate signs, _bosch_2020.dbc is only imported by ACURA RDX 2020

* generate
2021-06-23 13:59:06 -07:00
Jason Young 11b61cd09d
VW MQB: Add detail to Blinkmodi_02 (#402) 2021-06-13 20:50:11 -07:00
Adeeb Shihadeh 563033ed9e pin mypy version 2021-06-10 00:22:32 -07:00
ShaneSmiskol 3d65bdb77e
Hyundai: add gas pedal position for hybrids (#401)
* add temp dbc with different gas pedal signal from xps

* add additional message to existing dbc

* split the two messages on the same address

* run generator

* actually we want a base dbc as well for ice cars

* add base generated

* we can use relative imports

* not autogenerated

* not autogenerated

* one dbc

* make Accel_Pedal_Pc a percent

* correctly scale

* correct scaling (both 8 bits)

* maximum is 254 for both

* add comment

* just do this in carstate, more precise

* Update comment
2021-06-09 19:09:04 -07:00