Commit Graph

262 Commits

Author SHA1 Message Date
HaraldSchafer a034837924
Best practice (#107)
* Update README.md

* Update README.md

* Split out sensors

* no duplicate ports

* not used

* misc cleanup

* fix tests

* only catch import error

* celcius is not SI

* better temp

* update servicespy

* add explicit

* -data

* save sensors for later

* more thermal

* little more

* thermal -> deviceState

* steering

* forgot deg

* explicit ids

Co-authored-by: Willem Melching <willem.melching@gmail.com>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-02-16 21:09:50 -08:00
Adeeb Shihadeh b19a3ed38d
cleanup + comments (#116)
* start cleanup

* controlsState is horrible

* more controlsState cleanup

* carstate

* cleanup plan packets

* rename events

* update mono times

* update service list

* don't need multiple radar alerts

* small car.capnp cleanup

* start thermal cleanup

* fan speed

* model packets

* fix build

* hw -> panda

* capitalize

* deprecate rest of warp matrices

* generate headers
2021-02-03 19:56:19 -08:00
Willem Melching 46f56a2977
add managerState (#111)
* add managerState

* add alert
2021-01-25 20:01:39 -08:00
Adeeb Shihadeh a85bf58bb5 add gps malfunction event 2021-01-14 13:04:33 -08:00
Greg Hogan 344c5c6fdb
add maxSteerAngle to car.capnp (#110) 2021-01-14 18:45:23 +01:00
Igor 2220a4f100
Adding breakpoints to INDI lateral tuning (#108)
* Adding breakpoints to INDI lateral tuning

* Returned old variables as DEPRECATED
2021-01-07 15:55:56 +01:00
Adeeb Shihadeh f05af8c149 deprecate internet connectivity needed event 2020-12-21 15:21:15 -08:00
Adeeb Shihadeh c025363de3 Revert "deprecate the deprecation event"
This reverts commit 3e5444b9eb.
2020-12-19 16:39:32 -08:00
Adeeb Shihadeh 3e5444b9eb deprecate the deprecation event 2020-12-19 16:30:02 -08:00
Adeeb Shihadeh 2a2f3b98e4 deprecate commIssueWarning
This reverts commit c81953cbf4.
2020-12-17 12:29:45 -08:00
Adeeb Shihadeh c81953cbf4 remove commIssueWarning 2020-12-17 12:17:44 -08:00
Igor a9058ef287
Parametrize startingBrakeRate (#106) 2020-12-16 12:19:28 +01:00
Adeeb Shihadeh 5d51df5a9a eon deprecation event 2020-12-11 13:46:44 -08:00
Igor c5a7e49fd3
Added stoppingBrakeRate to CarParams to parametrize STOPPING_BRAKE_RATE to interfaces (#104) 2020-12-11 13:56:49 +01:00
Igor 15c431a3d6
Added minSpeedCan to CarParams to parametrize MIN_CAN_SPEED to interfaces (#103) 2020-12-03 19:49:32 +01:00
Adeeb Shihadeh c0877fc8cd comm issue warning 2020-11-27 14:47:59 -08:00
George Hotz bafe019e36 deprecate model lag warning 2020-11-24 13:02:27 -08:00
Adeeb Shihadeh f1a9b228c6 modelLagWarning 2020-11-23 12:29:28 -08:00
Adeeb Shihadeh eb0ede91af deprecate deprecation fields 2020-11-03 11:02:39 -08:00
Adeeb Shihadeh c290b1e1df giraffe are extinct 2020-10-30 12:07:05 -07:00
Adeeb Shihadeh 58545fafa6 just white for now 2020-10-26 22:38:40 -07:00
Adeeb Shihadeh f16faa29a7 events for grey panda deprecation 2020-10-24 14:52:36 -07:00
Adeeb Shihadeh b39fb46a72 fix duplicate ordinal 2020-10-22 14:46:25 -07:00
Adeeb Shihadeh d562803827 add cameraMalfunction event 2020-10-22 14:30:43 -07:00
Adeeb Shihadeh 1e7810dbbf
alert cleanup (#94)
* deprecte some events

* deprecate gasUnavailable event
2020-10-14 15:17:32 -07:00
Adeeb Shihadeh 7755833e87 add fanMalfunction event 2020-10-05 10:57:30 -07:00
Adeeb Shihadeh 6102bed11a cleanup deprecated car events 2020-09-22 13:46:27 -07:00
Adeeb Shihadeh 61d7488e55 add deviceFalling event 2020-08-03 15:01:19 -07:00
Adeeb Shihadeh 8eed8edf19 add hyundaiCommunity 2020-07-27 13:56:14 -07:00
Adeeb Shihadeh 0ae6179619 add modeldLagging event 2020-07-05 19:45:36 -07:00
Adeeb Shihadeh c0c3cc16b2 increment ordinal 2020-06-16 11:39:49 -07:00
Adeeb Shihadeh 6017993139 add neosUpdateRequired event 2020-06-16 11:25:48 -07:00
Adeeb Shihadeh e0f77b2331 laneChangeBlocked 2020-06-15 16:00:12 -07:00
Adeeb Shihadeh a302c17dc3 add adaptive cruise flag to cruiseState 2020-06-15 13:20:04 -07:00
Adeeb Shihadeh 0f5d7033e1 add wrongCruiseMode event 2020-06-15 12:24:08 -07:00
Adeeb Shihadeh 18698b113e add hyundai legacy safety mode 2020-06-12 17:27:20 -07:00
ZwX1616 8294386152 add to enum 2020-06-12 17:03:36 -07:00
Willem Melching 9774f7a08b
add noGps event (#55) 2020-06-12 16:03:46 -07:00
Adeeb Shihadeh b93b165a5c deprecate canErrorPersistent 2020-06-12 15:04:28 -07:00
Adeeb Shihadeh cc14179697 add belowEngageSpeed event 2020-06-02 16:41:54 -07:00
Adeeb Shihadeh 0adfc7e77e add canErrorPersistent event 2020-05-29 11:57:47 -07:00
Willem Melching d589d5e3d8 add white panda deprecation events 2020-05-15 12:08:02 -07:00
Adeeb Shihadeh 856c9812d5 mark unused car events as deprecated 2020-05-13 17:19:54 -07:00
Adeeb Shihadeh 4f68db8f6a remove unnecessary new event type 2020-05-12 21:05:31 -07:00
Adeeb Shihadeh 7a786d9ced move remaining alerts to car events 2020-05-11 17:08:23 -07:00
Adeeb Shihadeh d6f10a4b9c add alert event type 2020-05-11 13:34:45 -07:00
Adeeb Shihadeh 0050e0acb5 stockFcw event 2020-05-07 12:29:04 -07:00
Adeeb Shihadeh 2c325ed327 gasPressed event 2020-05-04 14:08:35 -07:00
Adeeb Shihadeh 8573a24d2e don't duplicate ordinals 2020-04-30 20:45:05 -07:00
Adeeb Shihadeh 3f384efa9f add carState.steerWarning and carState.steerError 2020-04-30 20:42:54 -07:00
ZwX1616 8b347b0ac7 add repeated warning2 2020-04-21 15:02:30 -07:00
Willem Melching 65af4368cb Add relayMalfunction alert 2020-04-16 10:18:25 -07:00
Arne Schwarck e370f79522
Add the laneChangeBlocked Event (#40)
If there is something in the way. Create alert for User to know why it can not lane change currently
2020-04-06 12:14:38 -07:00
Jason Young 8f13dfcaf2
Additional car params auto-detection in support of VW (#38)
* Add enum for installed location in car network

* Add electric vehicle/direct drive to transmission enum

* Better naming of direct-drive variant
2020-03-30 17:53:01 -07:00
Willem Melching 22986de4a6 add speedTooHigh alert 2020-03-30 15:49:30 -07:00
Willem Melching f515e4db2e Add invalid lkas setting alert 2020-03-27 16:11:02 -07:00
Willem Melching bb2cc7572d fix duplicate ordinals 2020-03-04 14:43:46 -08:00
Willem Melching 0c38fc9e1b
Add blindspot cereal values (#26)
continuation of https://github.com/commaai/cereal/pull/7
2020-03-04 11:53:39 -08:00
Riccardo Biasini 20c7fd6084 Add subaru pre-Global safety mode 2020-02-27 10:32:17 -08:00
Willem Melching 25eaf9df5c
add espDisabled to carState (#30)
Co-authored-by: rbiasini <riccardo.biasini@gmail.com>
2020-02-24 15:48:11 -08:00
jpancotti bb13121282
add honda ecus (#29) 2020-02-18 12:59:42 -08:00
Willem Melching 6c4735f219 add fixed fingerprintSource 2020-02-12 11:56:40 -08:00
Willem Melching 8f9aa8fcc3 add fingerprintSource to carParams 2020-01-30 14:39:14 -08:00
ZwX1616 579403090b better put 2020-01-27 18:21:36 -08:00
ZwX1616 06f8d15c74
standalone monitorstate (#23) 2020-01-27 16:48:11 -08:00
Greg Hogan c38fb57283 LateralParams 2020-01-18 15:51:34 -08:00
ZwX1616 0c45f20d48 add uncertainty event name 2020-01-15 15:48:42 -08:00
Riccardo e7d2f97826 Add radar comm issue error 2020-01-04 10:13:45 -08:00
Jason Young db64cd43f4 Reserve safety #21 for VAG PQ35/PQ46/NMS (#19) 2019-12-28 23:28:38 -08:00
Riccardo 79d638d571 separate honda safety models between Bosch Giraffe and Bosch Nidec 2019-12-20 15:28:02 -08:00
Willem Melching df80b87058 add more stuff to fw log in CarParams 2019-12-16 17:02:19 -08:00
Riccardo 31ac47c255 Add carUnrecognized event 2019-12-13 14:19:31 -08:00
Riccardo b8382bbb2b steerLimitTimer should be car dependent 2019-12-12 14:05:28 -08:00
Riccardo f6f0f60e7d Add stock Fcw to carState 2019-12-11 11:35:08 -08:00
Riccardo b608683f32 no l/r distinction for LDW 2019-12-10 14:34:34 -08:00
Riccardo 555f48d661 Add ldw alert 2019-12-10 14:30:01 -08:00
Riccardo 3410325c81 log stock AEB events 2019-12-05 16:46:28 -08:00
Riccardo e86d954520 adding low memory event 2019-12-05 12:25:13 -08:00
Riccardo c7d215b601 Added communityFeatureDisallowed event 2019-12-02 19:29:56 -08:00
Riccardo 492140a507 Added communityFeature bit detection to CarParams 2019-12-02 18:37:52 -08:00
Riccardo fe43a99423 20Hz for radar time step is very standard 2019-11-22 00:14:29 -08:00
Riccardo 2aabf1eef5 Added radar time step to car params 2019-11-21 23:49:52 -08:00
Riccardo 2b0cb60845 noOutput safety mode is now called silent 2019-11-19 20:50:25 -08:00
Willem Melching 50302fee6b add steeringRateLimited to car.capnp 2019-11-12 17:11:26 -08:00
Riccardo 94b7377860 Add struct to log FW version 2019-11-12 12:43:47 -08:00
Riccardo 3d90c7877f Fix wrong event enum 2019-10-04 16:38:19 -07:00
Jason Young 12bc189652 Add fields and states required for robust Volkswagen safety compliance (#8)
* Add fields and states required for robust Volkswagen safety compliance.

* Add generic (manufacturer-independent) cruise-control button events in support of enhanced steering wheel or third stalk ACC control.
* Add generic (manufacturer-independent) gearshift position definitions for Eco and Manumatic.
* Add preEntry Event state, in support of generic (manufacturer-independent) strict safety model compliance. This is intended for later use in controlsd, to display NO_ENTRY alerts without attempting engagement.
* Update Volkswagen safety model ID from "vw" to "volkswagen" to be consistent with the existing community port.

* Remove the separate increase and decrease buttons.

A different approach has been discussed and agreed to.

* Per conversation with Riccardo, pulling the preEntry thing until later.
2019-10-03 15:32:53 -07:00
Riccardo 16b5850f12 let's spell wolkswagen 2019-10-02 14:50:59 -07:00
rbiasini 6243622e67
Safety cereal (#9)
* complete safety cereal enum
2019-10-02 13:41:45 -07:00
Chris Souers 1526784290 add ldw to visual hud alerts (#5) 2019-10-01 14:06:48 -07:00
Riccardo 24f6fa78cd merge https://github.com/commaai/cereal/pull/3 after fixing conflicts 2019-10-01 13:58:17 -07:00
Riccardo 4d5862c541 added event about internet connection 2019-09-30 22:38:16 -07:00
Riccardo 8472175d6e Added invalidGiraffeToyota event 2019-09-12 12:22:33 -07:00
Riccardo 71be97053c placeholders for mazda, nissan and vw safety models 2019-09-09 16:03:40 -07:00
Riccardo ea14abe4bd add gm passive safety model 2019-09-08 14:15:48 -07:00
Riccardo 78d3e31232 allow to specify a passive safety model in CarParams 2019-09-08 14:11:44 -07:00
Riccardo 8a4f891b64 Add lane change events 2019-09-05 17:28:33 -07:00
Riccardo 39e31397a4 Add dashcamOnly flag 2019-09-05 14:10:53 -07:00
Willem Melching bb94ed98ac add eps torque to carstate 2019-08-08 15:26:20 -07:00
Adeeb Shihadeh 291319a63f add soundsUnavailable event 2019-08-05 17:02:57 -07:00
Willem Melching f27249ea94 Add fields for LQR lateral control 2019-07-24 16:39:26 -07:00
rbiasini 12da45fdaf
Blackpanda (#4)
* hw type added to thermal

* better name

* Add isPandaBlack to CarParams
2019-07-23 15:28:04 -07:00
Willem Melching 2198ad240d add alert for invalid posenet 2019-07-18 14:36:57 -07:00
Riccardo 820bf7b4ce added tooDistracted event 2019-07-15 16:07:12 -07:00
Riccardo dc8c0d044f in CarParams, use the enum for SafetyModel 2019-06-27 16:50:01 -07:00
Riccardo af550b1b2b Deprecated model valid bool from PathPlan 2019-06-25 18:30:15 -07:00
Riccardo f7043fde06 Added canValid bool to carState 2019-06-21 16:56:57 -07:00
Riccardo f19ece1df7 removerted very recent changes. subLog tracking will be done differently 2019-06-18 16:39:45 -07:00
Riccardo 3ccd796368 added comm issue events 2019-06-17 00:37:18 -07:00
Riccardo df8e8d00e5 radarCommIssue events is renamed to radarCanError 2019-06-16 23:16:48 -07:00
Riccardo 0ed1f38200 canError is a better name than commIssue 2019-06-14 19:05:45 -07:00
George Hotz 74acf43066 initial commit, internal from 6/13/19 2019-06-13 12:06:15 -07:00