Commit Graph

262 Commits

Author SHA1 Message Date
Shane Smiskol f60f0ef200
Add resume blocked event (#345)
add new alert
2022-08-16 23:09:08 -07:00
Adeeb Shihadeh 5ab1970017 rename hyundaiHDA2 safety mode to hyundaiCanfd 2022-08-11 21:50:19 -07:00
Adeeb Shihadeh 9ae66d0712 deprecate CS.steeringRateLimited 2022-07-22 13:12:45 -07:00
Shane Smiskol bc999518e7
CarFw: log bus (#335)
* Log bus (might have multiple requests per bus)

* fix ordinal
2022-07-21 16:02:19 -07:00
Willem Melching 7870a1123d
Match speeds show on car's dash (#333)
* add CarState.vEgoCluster

* fix ordinal and add CruiseState.speedCluster

* add ControlsState.vCruiseCluster

* Apply suggestions from code review
2022-07-20 17:32:12 +02:00
Shane Smiskol cda60ec965
Log brand with carFw (#331)
add brand to CarFw
2022-07-06 19:39:46 -07:00
Adeeb Shihadeh e83c81c07b deprecate carParams.steerRateCost 2022-06-17 11:04:39 -07:00
Shane Smiskol 15265168b2
Rename override to resume in CarControl.CruiseControl (#325)
* rename that to resume

* deprecate those
2022-06-15 23:12:16 -07:00
HaraldSchafer a197e38c0c
Torque control deadzone (#318)
* Add deadzone

* wrong number
2022-06-10 21:43:18 -07:00
Shane Smiskol 7cbb4f1c8c
CarParams: add maxLateralAccel (#312)
add maxLateralAccel
2022-06-03 14:38:56 -07:00
Shane Smiskol 61cee7c2a7
CarParams: log FW responseAddress and request (#313)
* add responseAddress

* log request bytes as well

* fix ordinal

* everything else does this

* needs to be a list
2022-06-03 12:03:39 -07:00
Adeeb Shihadeh b1b0a407b2
EV6 safety mode (#302) 2022-05-12 14:58:14 -07:00
Adeeb Shihadeh 3f8210d1fd add carState.charging 2022-05-03 12:01:04 -07:00
Shane Smiskol 39cbdbfecf
add accFaulted to carState (#295)
better location
2022-05-02 17:51:17 -07:00
Shane Smiskol c9cdd7e398
Deprecate uint32 safetyParam (#289) 2022-05-02 12:50:58 -07:00
Keyvan Fatehi 8e9e9d3cee
add fuelGauge to CarState (#292)
A Float32 "fuelGauge" represents the fuel gauge value from
0.0 to 1.0. It should be generic enough for whatever power
source we call fuel be it gas, electric or something else.
2022-05-01 08:51:51 -07:00
Adeeb Shihadeh a057aed167 add controlsdLagging alert 2022-04-28 14:10:11 -07:00
Shane Smiskol 29f4fe89ef
Make safetyParam unsigned (#276)
* make safety param unsigned

new ordinal

safety config as well

* fix dup ordinal
2022-04-20 23:25:41 -07:00
Adeeb Shihadeh 932c44c6bd
add carState.canTimeout (#280) 2022-04-12 15:13:30 -07:00
Adeeb Shihadeh aa52e6dfbe fix duplicate ordinal 2022-04-06 22:27:21 -07:00
Adeeb Shihadeh 0eea83d34b add canBusMissing event 2022-04-06 22:20:13 -07:00
Willem Melching 24c34d7bc0
add cameraFrameRate alert (#275) 2022-04-06 17:10:17 -07:00
Willem Melching 1620ce54ee
add SubMaster.freq_ok (#274)
* add SubMaster.freq_ok

* actually check freq_ok

* include freq ok into alive again

* revert those changes

* split out from alive
2022-04-06 16:07:18 -07:00
HaraldSchafer 947166f04c
Torque control (#272)
* Add new controller

* Craycray now torque

* Add proper logging

* Fix and add rate

* No kd needed
2022-04-05 16:22:05 -07:00
Adeeb Shihadeh 3d5e778425 add debug ecu 2022-04-05 11:26:19 -07:00
Shane Smiskol 1a1e03e451
controlsState: add overriding state (#268)
* add gasPressedPreEnable and override AlertStatus

* add state machine fields

* just rename for now

* add gasPressedOverride

* pedalPressedPreEnable includes brake in the future
2022-04-01 18:43:28 -07:00
Adeeb Shihadeh f05953e72a
add carState.notCar (#271) 2022-04-01 15:17:04 -07:00
Igor Biletskyy c7c22aacfc
add safety mode for comma body(#270) 2022-03-30 19:05:01 -07:00
Adeeb Shihadeh a818779f1a
deprecate carParams.steerMax* (#266)
Co-authored-by: Harald Schafer <harald.the.engineer@gmail.com>
2022-03-25 19:03:13 -07:00
Shane Smiskol e94649e0ed
rename unsafeMode to alternativeExperience (#260)
* update unsafeMode name

* Update car.capnp

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2022-03-24 13:55:49 -07:00
Jason Young 694dd63d0f
FAW: Add safety mode (#261) 2022-03-21 08:45:11 -07:00
HaraldSchafer 447d8b8a7a
Add angular rates (#259) 2022-03-16 21:31:03 -07:00
Adeeb Shihadeh ad2fe885da add carState.parkingBrake 2022-03-14 16:08:33 -07:00
Shane Smiskol 84a1793eb4
Add carControl.latActive & carControl.longActive (#255) 2022-03-13 20:29:45 -07:00
Willem Melching 1217cad445 Revert "Fields for active actuators (#248)"
This reverts commit 3a313f364d.
2022-03-08 13:48:36 +01:00
Shane Smiskol 3a313f364d
Fields for active actuators (#248)
* move active to actuators packet

* add back

* carControl->long/latActive
2022-03-07 15:14:28 -08:00
Adeeb Shihadeh df60d9da00
better steer fault names (#249) 2022-03-01 22:35:38 -08:00
Willem Melching 32eae5e80d LongitudinalPIDTuning.kf 2022-02-16 15:00:00 +01:00
Shane Smiskol 5c64eaab78
Add unsafeMode to carParams (#242)
doesn't vary by panda

add to pandaState for health packet as well
2022-01-25 11:20:26 +01:00
Adeeb Shihadeh e2868d85ae deprecate carParams.communityFeature 2022-01-24 14:21:30 -08:00
Adeeb Shihadeh 102638623c actually deprecate 2022-01-24 13:40:10 -08:00
Adeeb Shihadeh d3805815d9 deprecate community features event 2022-01-24 13:37:27 -08:00
Diego Tellez d61741abed
fix typo (#241)
fixed a small typo
2022-01-14 07:19:52 -08:00
Shane Smiskol 70aeecf093
deprecate some fields (#238) 2022-01-04 15:24:59 -08:00
Jafar Al-Gharaibeh e83ec3be7d
Add event for LKAS disabled (#235)
Signed-off-by: Jafar Al-Gharaibeh <to.jafar@gmail.com>
2021-12-20 14:41:21 -08:00
Willem Melching f1c5c8ef7c
Log actual actuator command that was sent (#233)
* un-deprecate gas/brake

* log processed actuators

* add speed for honda

* rename and add comment
2021-12-16 12:21:25 +01:00
Adeeb Shihadeh f45cd59d78 deprecate minSpeedCan 2021-12-14 12:14:44 -08:00
Adeeb Shihadeh e5a04ab458
add carParams.flags (#225) 2021-12-05 13:22:16 -08:00
Willem Melching c4a1c9fa00
add CarParams.wheelSpeedFactor (#228) 2021-12-03 14:01:56 +01:00
Adeeb Shihadeh 596d34e77a add promptDistracted alert sound 2021-12-01 11:51:28 -08:00
Adeeb Shihadeh 9ce45916c6
new sounds (#219)
* new sounds

* refuse

* deprecate distracted warning

* refuse
2021-11-30 17:47:32 -08:00
Adeeb Shihadeh 819ecdaec9 Revert "deprecated old safety modes", doesn't make sense to deprecate this
This reverts commit 5a5968c53c.
2021-11-25 22:32:13 -08:00
Adeeb Shihadeh 032aca6ca3 only harness now 2021-11-21 14:19:39 -08:00
Adeeb Shihadeh 5a5968c53c deprecated old safety modes 2021-11-19 14:25:34 -08:00
HaraldSchafer 78ded8f860
need this sometimes (#218) 2021-11-12 12:25:03 -08:00
Willem Melching c2761bdbd8
add cruiseMismatch event (#217)
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-11-10 12:59:35 -08:00
Willem Melching 4d93775f7e Revert "add cruiseMismatch event"
This reverts commit c453f307e9.
2021-11-10 16:22:55 +01:00
Adeeb Shihadeh c453f307e9 add cruiseMismatch event 2021-11-09 17:37:19 -08:00
Adeeb Shihadeh 12162ac4de add chimeWarningRepeat + chimeWarningRepeatInfinite audible alerts 2021-11-09 15:52:31 -08:00
Adeeb Shihadeh aa349f6c31 add brake hold to carState 2021-11-07 16:37:54 -08:00
Robbe Derks 5168470661
Convert pandaState and safetyParam to lists (#206)
* list of pandaStates

* fix last commit

* safetyParams is now also a list

* move to list(SafetyMode)

* safetyMode to safetyConfig
2021-10-08 17:52:41 +02:00
Adeeb Shihadeh 99e2733dc9 deprecate carParams.hasStockCamera 2021-10-05 14:27:06 -07:00
Willem Melching bbcc8eea73
deprecate fuzzy fingerprint startup alert (#200) 2021-09-23 17:14:54 -07:00
Adeeb Shihadeh eef624067f
get rid of the java (#199) 2021-09-21 14:48:35 -07:00
Willem Melching 5c3520d53f
Add upper/lower bounds for longitudinal lag (#197) 2021-09-14 18:56:48 -07:00
Jason Young 6f34699f5c
Stellantis: Allocate safety mode ID (#194) 2021-09-13 10:39:12 -07:00
Adeeb Shihadeh 6f842ba524 carState.gas is user only 2021-09-13 09:59:08 -07:00
Willem Melching 49a0ee9196
Add missing values to parameterize longitudinal control (#195) 2021-09-11 18:01:03 -07:00
Willem Melching 95f9fa186f move LongControlState to CarControl.Actuators 2021-09-06 18:05:44 -07:00
Willem Melching 89557c5a17 add car.longitudinalActuatorDelay 2021-09-06 17:12:34 -07:00
Adeeb Shihadeh bbdf7973f1
Change car controller interface from gas/brake to acceleration (#192)
* gas brake is a car thing

* add accel

* unused

Co-authored-by: Harald Schafer <harald.the.engineer@gmail.com>
2021-08-30 09:25:32 -07:00
Adeeb Shihadeh 9c23923d48 add event for high cpu usage 2021-08-19 16:14:22 -07:00
Willem Melching dbdab72167
add CarState.steeringAngleOffsetDeg (#189) 2021-08-19 19:02:37 +02:00
Harald Schafer 2c7d9c5b8f comment 2021-08-11 18:50:58 -07:00
Harald Schafer 1a85fe1fa3 add accel 2021-08-11 18:45:17 -07:00
Adeeb Shihadeh 2f64d4902e rename carState.enableCruise -> carState.pcmCruise 2021-07-10 13:32:26 -07:00
Adeeb Shihadeh b372ab3ae1 rename steerTempUnavailableUserOverride -> steerTempUnavailableSilent 2021-07-10 00:52:15 -07:00
HaraldSchafer 1f5c4aa350
deprecated (#175) 2021-07-07 15:43:02 -07:00
Adeeb Shihadeh 96109a71b3 deprecate CarParams.enableCamera 2021-07-07 14:21:11 -07:00
Adeeb Shihadeh cde8667d3b add no fw startup event 2021-06-07 13:43:12 -07:00
ShaneSmiskol 18f1e48244
Permanent joystick debug alert (#158)
* add startupDebug alert

* rename alert

* better placement

* rename current debug alert
2021-06-03 14:57:18 -07:00
Willem Melching 97b386cb3f
Check resets (#163)
* add flag

* add flag

* need event

Co-authored-by: Harald Schafer <harald.the.engineer@gmail.com>
2021-06-03 19:54:51 +02:00
Jason Young 9d9e136164
Add stock LKAS/LDW camera detection flag (#156)
* Add CP enableStockCamera

* Change param name to hasStockCamera
2021-06-02 19:30:38 -07:00
ShaneSmiskol cda167db9d
add cvt transmission type (#162) 2021-06-02 19:14:39 -07:00
ShaneSmiskol 1d648f8311 Revert "Add startupDebug alert"
This reverts commit aa3e4995ed.
2021-05-24 17:13:17 -07:00
ShaneSmiskol aa3e4995ed Add startupDebug alert 2021-05-24 17:12:49 -07:00
Adeeb Shihadeh b1675bac3d split up camera events 2021-05-21 12:22:48 -07:00
Willem Melching 7a3b02dabe
add cameraError event: (#149)
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
Co-authored-by: Comma Device <device@comma.ai>
2021-05-19 20:43:52 -07:00
ShaneSmiskol c429707aef
rename to deprecate (#151) 2021-05-18 16:55:45 -07:00
Willem Melching 4cfd67776e Revert "add cameraError event:"
This reverts commit 2afde00266.
2021-05-18 14:01:49 +02:00
Adeeb Shihadeh 2afde00266 add cameraError event: 2021-05-17 12:35:29 -07:00
Adeeb Shihadeh 4ecee78a76
add usbError event (#145) 2021-05-14 20:09:41 -07:00
Comma Device 2b28609003 add controls initializing event 2021-04-30 13:37:07 -07:00
Adeeb Shihadeh 9532238f18 add bsm to car params 2021-04-25 00:03:28 -07:00
Adeeb Shihadeh 9c56c531c6 add steerTempUnavailableUserOverride event 2021-04-20 19:50:20 -07:00
Willem Melching b39c6fc26d
Fuzzy FW match alert and carParams (#134)
* add fuzzy startup alert

* add field to carParams for fuzzy fingerprint

* put with other events
2021-04-20 11:57:09 +02:00
Adeeb Shihadeh 4222bc9104
Events cleanup 2021-04-07 12:01:36 -07:00
Adeeb Shihadeh e1741865f8 deprecate oneplus event 2021-03-25 20:35:12 -07:00
Adeeb Shihadeh 7036cf9e51 add event for an always-on dashcam alert 2021-03-25 20:34:36 -07:00
qadmus 8f9e68b6f0
Improve comments on CarParams from manual (#124)
* improve comments on CarParams from manual

* Update car.capnp

Co-authored-by: qadmus <42746943+qadmus@users.noreply.github.com>

Co-authored-by: Willem Melching <willem.melching@gmail.com>
2021-03-15 13:42:12 +01:00